This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Getting rid of -fno-unit-at-a-time [Was Re: RFC: Preserving orderof functions and top-level asms via cgraph]
- From: Daniel Kegel <dkegel at google dot com>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: gcc at gcc dot gnu dot org, me at rupey dot net
- Date: Mon, 11 Apr 2005 11:16:08 -0700
- Subject: Re: Getting rid of -fno-unit-at-a-time [Was Re: RFC: Preserving orderof functions and top-level asms via cgraph]
- References: <425AAD8E.1030601@google.com> <20050411170358.GA31028@nevyn.them.org>
Daniel Jacobowitz wrote:
On Mon, Apr 11, 2005 at 10:02:06AM -0700, Daniel Kegel wrote:
BTW, I hope -fno-unit-at-a-time doesn't go away until at least gcc-4.1.1
or so... I still lean on that crutch.
A user! Can you explain why?
Hmm. I just looked, and it seems the only thing I still
use it for is glibc-2.2.x and later.
For glibc-2.3.2, I use the nice patch from glibc cvs:
http://kegel.com/crosstool/crosstool-0.28-rc26/patches/glibc-2.3.2/glibc-2.3.2-allow-gcc-3.4-nounit.patch
For earlier glibc's, I just force in -fno-unit-at-a-time globally.
I might use it somewhere else, too, but I can't put my finger on it.
Generally I prefer to fix software to really build with newer
compilers, but sometimes when faced with a pile of legacy third-party source
turning on a magic compiler flag is more practical.
- Dan