[Ffmpeg-devel] [PATCH] build with '--enable-gprof'
Guillaume Poirier
gpoirier
Thu Dec 7 14:10:07 CET 2006
Hi,
Dmitry Antipov wrote:
> Michael Niedermayer wrote:
>
>> rejected NO further complication of the ifdefs will be accpeted, replace
>> them by EBP_IS_SPECIAL and set that by a configure check which checks if
>> the compiler with the current flags can use ebp
>
>
> Ok. Try to look at this, but note that the check is strictly gcc-specific.
> (For example, Intel C will compile it, but the resulting code is wrong and
> will cause SIGSEGV. So, if the portability is important, the checking code
> should be similar to the following:
>
> #if defined(__INTEL_COMPILER)
> #error "This will compile, but will not run"
> #elif defined(__YOUR_FAVORITE_CC)
> /* stuff */
> #elif defined(__GNUC__)
> int main (int argc, char *argv[])
> {
> asm volatile ("mov %0, %%ebp\n\t"
> : : "r"(argc) : "ebp");
> return 0;
> }
> #else
> #error "Unsupported compiler"
> #endif
Dimitry, could you please resend your patch as attachment? Inline
patches aren't very easy to extract, test and apply.
Guillaume
More information about the ffmpeg-devel
mailing list