This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: use -fno-toplevel-reorder if it's available
- From: Daniel Jacobowitz <drow at false dot org>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Sun, 29 Jan 2006 23:26:38 -0500
- Subject: Re: use -fno-toplevel-reorder if it's available
- References: <or64o2l7x2.fsf@livre.oliva.athome.lsd.ic.unicamp.br>
On Mon, Jan 30, 2006 at 01:19:05AM -0200, Alexandre Oliva wrote:
> -fno-unit-at-a-time is no longer enough to get the gcc trunk to build
> working crt files for glibc, since it no longer implies no reordering
> is to occur, so we end up with #include "defs.h" at the wrong spot in
> initfini.s. -fno-toplevel-reorder is what gets the behavior we want,
> so here's a patch to use it. I've successfully built glibc for x86-64
> and -32 using it.
While this patch probably should be applied, since
-fno-toplevel-reorder is the semantics we actually want,
the fact that -fno-unit-at-a-time didn't work was a bug;
I reported it to Ian yesterday afternoon, and he checked in a fix for
GCC HEAD shortly afterwards.
--
Daniel Jacobowitz
CodeSourcery