about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--sysdeps/powerpc/Makefile2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d06348d9a6..205c02c8f1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-11-27  Ulrich Drepper  <drepper@redhat.com>
 
+	* sysdeps/powerpc/Makefile (CFLAGS-initfini.s): Add -O1 to avoid
+	the problems introduced when the user selects -O3.
+
 	* iconv/gconv.h (__gconv_info): Define __data element using __flexarr.
 	* misc/sys/cdefs.h: Define __flexarr.
 	Proposed by Joseph S. Myers <jsm28@cam.ac.uk>.
diff --git a/sysdeps/powerpc/Makefile b/sysdeps/powerpc/Makefile
index ef5d33eaf9..a29e387d83 100644
--- a/sysdeps/powerpc/Makefile
+++ b/sysdeps/powerpc/Makefile
@@ -27,7 +27,7 @@ ifeq ($(subdir),csu)
 ifneq ($(elf),no)
 # The initfini generation code doesn't work in the presence of -fPIC, so
 # we use -fpic instead which is much better.
-CFLAGS-initfini.s = -g0 -fpic
+CFLAGS-initfini.s = -g0 -fpic -O1
 
 # There is no benefit to using sdata for these objects, and the user
 # of the library should be able to control what goes into sdata.