> -----Original Message-----
> From: Mike Stump [mailto:mikest...@comcast.net]
> Sent: Wednesday, October 30, 2013 6:48 PM
> To: Iyer, Balaji V
> Cc: 'ger...@pfeifer.com'; Jeff Law; gcc-patches@gcc.gnu.org
> Subject: Re: [PATCH, committed] libcilkrts - Add check for availability of 
> alloca.h
> (Bug Bootstrap/58918)
> 
> On Oct 30, 2013, at 3:40 PM, "Iyer, Balaji V" <balaji.v.i...@intel.com> wrote:
> >     This attached patch will check for usage of alloca.h before using it. 
> > The
> change is entirely in libcilkrts and I am committing this change as it is 
> pretty
> obvious.
> 
> Uh, no?  Usually runtimes are compiled by the built compiler?!  This built
> compiler _is_ by definition, gcc.  So, one can do:
> 
> #define alloca __builtin_alloca
> 
> safely and be done with it.  So, net result, don't need any config hair.  Is 
> the
> library not compiled by gcc?

Yes, the library is compiled by GCC, but it is also used by LLVM and ICC. So, 
we would like to keep the same code base for all.

Thanks,

Balaji V. Iyer.

Reply via email to