]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
t-sol2 (CRTSTUFF_T_CFLAGS): Turn on the optimizer.
authorJeffrey A Law <law@cygnus.com>
Fri, 19 Dec 1997 08:48:57 +0000 (08:48 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 19 Dec 1997 08:48:57 +0000 (01:48 -0700)
        * i386/t-sol2 (CRTSTUFF_T_CFLAGS): Turn on the optimizer.
So egcs-1.0.1 will build/run out of the box on x86-solaris.

From-SVN: r17151

gcc/ChangeLog
gcc/config/i386/t-sol2

index 917e3e2c23c66bfafb18747e78aceffee77fef6a..48ff04514d357c6ae355312d5d10a049ec1b4b10 100644 (file)
@@ -4,6 +4,8 @@ Fri Dec 19 09:50:30 1997  Bernd Schmidt <crux@ohara.Informatik.RWTH-Aachen.DE>
 
 Fri Dec 19 09:39:48 1997  Jeffrey A Law  (law@cygnus.com)
 
+       * i386/t-sol2 (CRTSTUFF_T_CFLAGS): Turn on the optimizer.
+
        * stmt.c (warn_if_unused_value): Don't warn for TRY_CATCH_EXPR.
 
        * stmt.c (expand_asm_operands): If an ASM has no outputs, then treat
index f47905ae65da3c59efb612cbec35ec98664da69b..5dc59cc375ede558615d948214e857eba262a6ad 100644 (file)
@@ -31,6 +31,10 @@ crtn.o: $(srcdir)/config/i386/sol2-cn.asm $(GCC_PASSES)
 # to produce a shared library, but since we don't know ahead of time when
 # we will be doing that, we just always use -fPIC when compiling the
 # routines in crtstuff.c.
+#
+# We must also enable optimization to avoid having any code appear after
+# the call & alignment statement, but before we switch back to the
+# .text section.
 
-CRTSTUFF_T_CFLAGS = -fPIC
+CRTSTUFF_T_CFLAGS = -fPIC -O2
 TARGET_LIBGCC2_CFLAGS = -fPIC