From: Kaveh R. Ghazi Date: Mon, 7 Oct 2002 20:47:05 +0000 (+0000) Subject: * Makefile.in (CFLAGS_FOR_TARGET): Add -O2. X-Git-Tag: releases/gcc-3.2.1~193 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9af427800268e72c596e9ea84b28ab976aeb523c;p=thirdparty%2Fgcc.git * Makefile.in (CFLAGS_FOR_TARGET): Add -O2. From-SVN: r57905 --- diff --git a/ChangeLog b/ChangeLog index 8565eabc157a..0a4019e67aa3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2002-10-07 Kaveh R. Ghazi + + * Makefile.in (CFLAGS_FOR_TARGET): Add -O2. + 2002-09-14 Kazu Hirata * MAINTAINERS: Update my email address. diff --git a/Makefile.in b/Makefile.in index 02f4d7078b44..4b1634f1662c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -94,7 +94,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 =