[PATCH] Configure GCC with --enable-initfini-array [BZ #27945]

Joseph Myers joseph@codesourcery.com
Wed Jun 9 20:44:47 GMT 2021


On Wed, 9 Jun 2021, Adhemerval Zanella via Libc-alpha wrote:

> On 09/06/2021 15:02, Joseph Myers wrote:
> > On Wed, 9 Jun 2021, H.J. Lu via Libc-alpha wrote:
> > 
> >> I disagree.  The behavior of the cross compiler should be as close to the native
> >> Linux system compiler, not other versions of cross compilers, as possible.
> > 
> > But fixing that was the point of your GCC patch.  I don't think working 
> > around deficiencies in previous versions of GCC, that aren't necessary to 
> > work around for building glibc, is within scope for build-many-glibcs.py; 
> > it's enough that the bug (cross compiler different from native) was fixed 
> > in the logically correct place (in GCC, for future GCC releases).
> 
> But this also does not have any really drawback, correct?

It's one more thing to track when to remove when the minimum GCC version 
for building glibc increases.  (We have such a comment on the use of 
--disable-libcilkrts.  We ought to have one on the use of 
--disable-libmpx.  If we used --enable-initfini-array, that should have 
such a comment as well.)

-- 
Joseph S. Myers
joseph@codesourcery.com


More information about the Libc-alpha mailing list