This is the mail archive of the gcc-bugs@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]

-fssa is broken



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


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