* Makefile.in (CFLAGS_FOR_TARGET): Add -O2.
authorDJ Delorie <dj@redhat.com>
Wed, 12 Jun 2002 15:04:45 +0000 (15:04 +0000)
committerDJ Delorie <dj@redhat.com>
Wed, 12 Jun 2002 15:04:45 +0000 (15:04 +0000)
ChangeLog
Makefile.in

index ca2d693b38af2ef2b573d7020672698c9df70a74..27ac092f6d2a7f9dd5210e70b40f70e78583d3a0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2002-06-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * Makefile.in (CFLAGS_FOR_TARGET): Add -O2.
+
 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
 
        * configure.in (vax-*-netbsd*): Re-enable gas.
index 9d3d677978e30d41d89eef983b0ac0d8a24c817c..4a761096539bb18528e5f93f2abd4ba8a2f533e9 100644 (file)
@@ -100,7 +100,11 @@ CXXFLAGS = -g -O2
 LDFLAGS = 
 LIBCFLAGS = $(CFLAGS)
 CFLAGS_FOR_BUILD = $(CFLAGS)
-CFLAGS_FOR_TARGET = $(CFLAGS)
+# During gcc bootstrap, if we use some random cc for stage1 then
+# CFLAGS will be just -g.  We want to ensure that TARGET libraries
+# (which we know are built with gcc) are built with optimizations so
+# prepend -O2 when setting CFLAGS_FOR_TARGET.
+CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
 LDFLAGS_FOR_TARGET = 
 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
 PICFLAG =