This is the mail archive of the libc-alpha@sourceware.cygnus.com mailing list for the glibc project.


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

Re: PowerPC bug report


>>>>> Geoff Keating writes:

>> From: Andreas Jaeger <aj@suse.de>
>> Date: 25 Nov 1999 08:26:28 +0100

>> When I compile glibc-2.1.2 with option -O3 and with gcc 2.95.2 for powerpc,
>> the file crtn.o and crti.o are generated incorrectly.
>> The trick used to make theses file don't work.

Geoff> So, don't use -O3?

Geoff> I suppose we could change the Makefiles to filter out -O3 for these
Geoff> files, but there's really no reason to use it for compiling glibc at
Geoff> all.  I don't believe it gives any benefit.

Geoff> I'd be surprised if crt*.o get built properly with -O3 on any machine.

It seems to get build properly on my machine;-)
I do use currently on i686 without problems:
CFLAGS= -momit-leaf-frame-pointer -pipe -O3 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g -mpentiumpro -Wno-format -fstrict-aliasing

But glibc contains the following patches - without these it wouldn't
work on ix86:

1999-09-17  Andreas Jaeger  <aj@suse.de>

	* sysdeps/i386/Makefile (CFLAGS-initfini.s): Add also -mcpu=i386
	to override user settings.

1999-08-30  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/i386/Makefile [csu]: Define CFLAGS-initfini.s to force
	compiling for i386 to avoid i686-like GOT pointer computation.

Cheers,
Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.rhein-neckar.de

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