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]

Re: Serious regressions due to newlib's HAVE_INITFINI_ARRAY (Re: [PATCH] Fix up --enable-initfini-array autodetection in configure (PR bootstrap/50237))


On Wed, Feb 22, 2012 at 03:55:34PM +0100, Ulrich Weigand wrote:
> However, the macro HAVE_INITFINI_ARRAY is defined anyway; this
> definition is done by an internal "newlib.h" header that is pulled
> in via the <stdio.h> include in GCC's "tsystem.h".  [ This is clearly
> a violation of C namespace rules, but this has been the situation
> for all newlib releases since about 2005 ... ]

Ugh, clearly newlib bug...

> Any suggestions how to proceed with this welcome!  I'd really
> like to see this fixed for 4.7, otherwise the compiler will be
> seriously broken ...

I guess the easiest would be just to rename the gcc HAVE_INITFINI_ARRAY
macro to something else, HAVE_INITFINI_ARRAY_SUPPORT or whatever.

	Jakub


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