[PATCH] gcc-3.4 does not inline functions that call setjmp.

Steve Munroe sjmunroe@us.ibm.com
Thu Feb 19 23:54:00 GMT 2004


gcc-3.4 does not allow inlining of functions which call setjmp. This 
causes a build problem for powerpc|powerpc64 when 
powerpc/elf/libc-start.c attempts to inline generic_libc_start_main from 
generic/libc-start.c.

I added #ifdef LIBC_START_DISABLE_INLINE to generic/libc-start.c to not 
  define STATIC as "static inline __attribute__ ((always_inline))" and 
define as "static" instead. Now powerpc/elf/libc-start.c can define 
LIBC_START_DISABLE_INLINE to avoid this compile error.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ppc-libc-start-20040219.txt
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20040219/8792599b/attachment.txt>


More information about the Libc-alpha mailing list