From: Jeffrey A Law Date: Fri, 19 Dec 1997 08:48:57 +0000 (+0000) Subject: t-sol2 (CRTSTUFF_T_CFLAGS): Turn on the optimizer. X-Git-Tag: prereleases/egcs-1.0.1-prerelease~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20023daf91451889a9e9d046388d6ad131ee56a8;p=thirdparty%2Fgcc.git t-sol2 (CRTSTUFF_T_CFLAGS): Turn on the optimizer. * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 917e3e2c23c6..48ff04514d35 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -4,6 +4,8 @@ Fri Dec 19 09:50:30 1997 Bernd Schmidt 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 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