summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-10-17 22:14:53 -0700
committerGuy Harris <guy@alum.mit.edu>2013-10-17 22:14:53 -0700
commitecb87d847b2035242c2921a4b88a7c997c565e2a (patch)
tree2efe5fe0eeadc40d52fd59ce387622dbf864c92d
parentdff33accfb9b04f26f93ff3d9d34f2aec5cf5002 (diff)
downloadtcpdump-ecb87d847b2035242c2921a4b88a7c997c565e2a.tar.gz
Explain why we set -xansi -signed for MIPS C.
-rw-r--r--aclocal.m415
-rwxr-xr-xconfigure15
2 files changed, 30 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index b9939126..54f0757d 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -145,6 +145,21 @@ AC_DEFUN(AC_LBL_C_INIT,
# don't want to try using GCC-style -W flags.
#
ac_lbl_cc_dont_try_gcc_dashW=yes
+ #
+ # It also, apparently, defaults to "char" being
+ # unsigned, unlike most other C implementations;
+ # I suppose we could say "signed char" whenever
+ # we want to guarantee a signed "char", but let's
+ # just force signed chars.
+ #
+ # -xansi is normally the default, but the
+ # configure script was setting it; perhaps -cckr
+ # was the default in the Old Days. (Then again,
+ # that would probably be for backwards compatibility
+ # in the days when ANSI C was Shiny and New, i.e.
+ # 1989 and the early '90's, so maybe we can just
+ # drop support for those compilers.)
+ #
$1="$$1 -xansi -signed"
;;
diff --git a/configure b/configure
index f985dd42..a3870797 100755
--- a/configure
+++ b/configure
@@ -3406,6 +3406,21 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# don't want to try using GCC-style -W flags.
#
ac_lbl_cc_dont_try_gcc_dashW=yes
+ #
+ # It also, apparently, defaults to "char" being
+ # unsigned, unlike most other C implementations;
+ # I suppose we could say "signed char" whenever
+ # we want to guarantee a signed "char", but let's
+ # just force signed chars.
+ #
+ # -xansi is normally the default, but the
+ # configure script was setting it; perhaps -cckr
+ # was the default in the Old Days. (Then again,
+ # that would probably be for backwards compatibility
+ # in the days when ANSI C was Shiny and New, i.e.
+ # 1989 and the early '90's, so maybe we can just
+ # drop support for those compilers.)
+ #
V_CCOPT="$V_CCOPT -xansi -signed"
;;