This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch to libobjc/, set SHELL, use -O2 & -W*

This patch does three things in libobjc/

1.  Set SHELL = @SHELL@ instead of hardcoding /bin/sh.  I.e. if the user
    set CONFIG_SHELL prior to configuring, then honor it.
2.  Add -O2 during compilation.  CFLAGS gets set to -g in the top
    level dir and gets passed down.  Since we're always using gcc,
    trust that it optimizes correctly.
3.  Likewise we can always use -W* flags.

I'll start submitting fixes for the warnings this exposes if the patch
is accepted.  Tested via full bootstrap on sparc-sun-solaris2.7.

Ok to install on the trunk?


2002-05-10  Kaveh R. Ghazi  <>

	* (SHELL): Set to @SHELL@.

diff -rup orig/egcc-CVS20020509/libobjc/ egcc-CVS20020509/libobjc/
--- orig/egcc-CVS20020509/libobjc/	2002-02-11 16:30:56.000000000 -0500
+++ egcc-CVS20020509/libobjc/	2002-05-10 11:48:41.623470000 -0400
@@ -22,7 +22,7 @@ files.  Some of this stuff may be unnecessary and
-SHELL = /bin/sh
 #### Start of system configuration section. ####
@@ -67,8 +67,9 @@ RANLIB = @RANLIB@
 CC = @CC@
+WARN_CFLAGS = -W -Wall -Wwrite-strings -Wstrict-prototypes
-ALL_CFLAGS = -I. -I$(srcdir) $(CPPFLAGS) $(DEFS) $(CFLAGS) \
+ALL_CFLAGS = -I. -I$(srcdir) $(CPPFLAGS) $(DEFS) $(CFLAGS) -O2 $(WARN_CFLAGS) \
 # Libtool

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]