* i386/t-sol2 (CRTSTUFF_T_CFLAGS): Turn on the optimizer.
authorJeffrey A Law <law@cygnus.com>
Thu, 4 Dec 1997 07:26:05 +0000 (07:26 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 4 Dec 1997 07:26:05 +0000 (00:26 -0700)
From-SVN: r16935

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

index 2af7dc14aa70a2e3233c2235188dcc6aade52b03..ec46bc2bd50c2c4b4b321ecfe05806228c8a9b79 100644 (file)
@@ -1,3 +1,7 @@
+Thu Dec  4 00:24:09 1997  Jeffrey A Law  (law@cygnus.com)
+
+       * i386/t-sol2 (CRTSTUFF_T_CFLAGS): Turn on the optimizer.
+
 Wed Dec  3 12:01:56 1997  Jason Merrill  <jason@yorick.cygnus.com>
 
        * except.c (expand_fixup_region_end): New fn.
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