This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
-fssa is broken
- To: gcc-bugs at gcc dot gnu dot org
- Subject: -fssa is broken
- From: Andreas Jaeger <aj at suse dot de>
- Date: 17 May 2000 15:48:16 +0200
- Cc: Alex Samuel <samuel at codesourcery dot com>
I've tried to compile the current glibc 2.2 sources on ix86 with the
current gcc 2.96 CVS version on i686 running Linux 2.3.99pre8.
My CFLAGS were:
CFLAGS= -momit-leaf-frame-pointer -pipe -O3 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g -mpentiumpro -Wno-format -fstrict-aliasing -fssa
Without -fssa glibc compiles fine and passes the testsuite. With
-fssa GCC miscompiles glibc.
For example if you run the ldconfig program, you'll notice that it
prints out:
$ elf/ldconfig
(null): Can't lstat (null): (null)
This seems to come from a miscompilation of sprintf (sprintf is called
to construct a pathname and returns a bogus result).
I couldn't find a small example of this breakage. If anybody wants to
find out what's broken, I can try to assist - but I don't know where
to look and how to hunt this down.
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de