for review: re-enable `-ansi' in mgnuc
Fergus Henderson
fjh at cs.mu.OZ.AU
Fri Oct 30 14:00:06 AEDT 1998
Tom, could you please review this one?
--------------------
Estimated hours taken: 0.5
scripts/mgnuc.in:
Re-enable the passing of `-ansi' to gcc, unless `--no-ansi' is
specified. I think Tom Conway's change to disable it in all cases
was committed accidentally.
Change the code which disables `-ansi' if `--thread-safe' is
specified and it's a sparc (since the Solaris "pthread.h"
doesn't work with -ansi) to check the OS (Solaris or SunOS)
rather than the architecture (sparc).
Index: scripts/mgnuc.in
===================================================================
RCS file: /home/staff/zs/imp/mercury/scripts/mgnuc.in,v
retrieving revision 1.56
diff -u -r1.56 mgnuc.in
--- mgnuc.in 1998/10/29 14:10:35 1.56
+++ mgnuc.in 1998/10/30 02:53:42
@@ -67,7 +67,7 @@
case "$CC" in
*gcc*)
- ANSI_OPTS="" # --no-ansi to avoid syntax errors in Solaris pthread.h
+ ANSI_OPTS="-ansi"
CHECK_OPTS="
-Wall -Wwrite-strings -Wpointer-arith -Wtraditional
-Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wno-unused"
@@ -339,7 +339,7 @@
# disabling the warning.
CHECK_OPTS="$CHECK_OPTS -Wno-uninitialized"
;;
- sparc-*)
+ *-solaris*|*-sunos*)
# The solaris headers for pthreads are not ANSI :-(
case $thread_safe in true)
ANSI_OPTS=""
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh> | of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3 | -- the last words of T. S. Garp.
More information about the developers
mailing list