From: Jeffrey A Law Date: Thu, 4 Dec 1997 07:26:05 +0000 (+0000) Subject: * i386/t-sol2 (CRTSTUFF_T_CFLAGS): Turn on the optimizer. X-Git-Tag: releases/libf2c-0.5.21~454 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6a242b6a414db0f82e85b46c93a37e60f3580bc5;p=thirdparty%2Fgcc.git * i386/t-sol2 (CRTSTUFF_T_CFLAGS): Turn on the optimizer. From-SVN: r16935 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2af7dc14aa70..ec46bc2bd50c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 * except.c (expand_fixup_region_end): New fn. diff --git a/gcc/config/i386/t-sol2 b/gcc/config/i386/t-sol2 index f47905ae65da..5dc59cc375ed 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