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]

Re: [PATCH] patch for valarray support


Robert Lipe <robertlipe@usa.net> writes:

| > | Simply removing the include <alloca.h> in std/std_valarray.h works for
| > Then how did 'alloca' got resolved?
| 
| Iontno.
| 
| Since it's compiled with G++, does it perhaps pick up some magic prototype
| for the internal alloca that GCC has?

Yep.  But that doesn't work with -ansi in effect.

| 
| GCC always has alloca, right?  The bundled libstdc++ is guaranteed to be
| compiled with GCC, right?

In fact GCC always has __builtin_alloca, not alloca.  The patch takes
care of that.

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]