summaryrefslogtreecommitdiff
path: root/gcc/config/i386/t-sol2
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1997-12-04 07:26:05 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1997-12-04 07:26:05 +0000
commit7ba3aec4ed68f7adca985568288dc793c5476ccf (patch)
tree9c208ad78f4a16b2d4df81e595c45aa63269b2a0 /gcc/config/i386/t-sol2
parent3b33333cced81257880bfcccd6737eea502c2952 (diff)
downloadgcc-7ba3aec4ed68f7adca985568288dc793c5476ccf.tar.gz
* i386/t-sol2 (CRTSTUFF_T_CFLAGS): Turn on the optimizer.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@16935 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386/t-sol2')
-rw-r--r--gcc/config/i386/t-sol26
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/config/i386/t-sol2 b/gcc/config/i386/t-sol2
index f47905ae65d..5dc59cc375e 100644
--- a/gcc/config/i386/t-sol2
+++ b/gcc/config/i386/t-sol2
@@ -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