------- Comment #7 from joseph at codesourcery dot com 2009-08-08 10:37 ------- Subject: Re: alloca broken for -fno-builtin
On Sat, 8 Aug 2009, ktietz at gcc dot gnu dot org wrote: > Well, IMHO it is the same for alloca, as for setjmp, or longjmp. Even some > code > for detecting alloca semanices is present (in a slightly broken way), see > calls.c (special_function_p). > So, if it is really the intention that by -fno-builtin all function have > standard calling convention, then this special cases in calls.c would be a > bug. I consider that those cases should be handled through attributes on built-in functions and in standard headers (added where necessary to those headers through fixincludes), rather than in special_function_p (which should go away); see at the bottom of <http://gcc.gnu.org/projects/beginner.html>. (It is not valid to use setjmp/longjmp without including the standard header, so failing if it is not included and -fno-builtin is used would be fine.) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41001