This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Wed, Sep 15, 2004 at 05:47:11PM -0700, Richard Henderson wrote: > On Wed, Sep 15, 2004 at 04:26:22PM -0700, Steve Kargl wrote: > > AC_STDC_HEADERS > > -AC_HAVE_HEADERS(stdlib.h stdio.h string.h stddef.h math.h unistd.h) > > +AC_HAVE_HEADERS(alloca.h stdlib.h stdio.h string.h stddef.h math.h unistd.h) > > Alloca is much trickier than that. See AC_FUNC_ALLOCA. > You may want to skip all that and do > > #define alloca(x) __builtin_alloca(x) > > in libgfortran, since we know for a fact that we're > building with gcc, and the current version at that. > The revised patch uses the above define. On at least FreeBSD, alloca() is declared in stdlib.h, so we need to do the #undef. Richard if you want to change the name in ChangeLog entry, it's fine with me. 2004-09-16 Steven G. Kargl <kargls@comcast.net> * intrinsics/env.c: Use __builtin_alloca(x). -- Steve
Attachment:
env.c.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |