summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1999-04-27 19:29:44 +0000
committerobrien <obrien@FreeBSD.org>1999-04-27 19:29:44 +0000
commit152572105da9520e2b5a39cd467b24a514c8fb37 (patch)
tree564637556cb76bdf259c426b56b72027022e4f10 /contrib
parent400af7ccabc7621a79bf321515cbddf79f3df468 (diff)
downloadFreeBSD-src-152572105da9520e2b5a39cd467b24a514c8fb37.zip
FreeBSD-src-152572105da9520e2b5a39cd467b24a514c8fb37.tar.gz
Simplify the definition of FBSD_SWITCH_TAKES_ARG, and make sure
SWITCH_TAKES_ARG isn't defined (which svr4.h does) when we assign our definition to it.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/gcc/config/alpha/freebsd4.h3
-rw-r--r--contrib/gcc/config/freebsd.h23
2 files changed, 8 insertions, 18 deletions
diff --git a/contrib/gcc/config/alpha/freebsd4.h b/contrib/gcc/config/alpha/freebsd4.h
index 6094e75..b693893 100644
--- a/contrib/gcc/config/alpha/freebsd4.h
+++ b/contrib/gcc/config/alpha/freebsd4.h
@@ -49,7 +49,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#undef TARGET_VERSION
#define TARGET_VERSION fprintf (stderr, " (FreeBSD/alpha ELF)");
+#undef SWITCH_TAKES_ARG
#define SWITCH_TAKES_ARG(CHAR) (FBSD_SWITCH_TAKES_ARG(CHAR))
+
+#undef WORD_SWITCH_TAKES_ARG
#define WORD_SWITCH_TAKES_ARG(STR) (FBSD_WORD_SWITCH_TAKES_ARG(STR))
#undef TARGET_DEFAULT
diff --git a/contrib/gcc/config/freebsd.h b/contrib/gcc/config/freebsd.h
index 8db7f10..f86f32c 100644
--- a/contrib/gcc/config/freebsd.h
+++ b/contrib/gcc/config/freebsd.h
@@ -1,4 +1,4 @@
-/* $Id: freebsd.h,v 1.8 1999/04/22 17:45:01 obrien Exp $ */
+/* $Id: freebsd.h,v 1.9 1999/04/27 15:43:56 obrien Exp $ */
/* Base configuration file for all FreeBSD targets.
Copyright (C) 1999 Free Software Foundation, Inc.
@@ -30,26 +30,13 @@ Boston, MA 02111-1307, USA. */
#undef NO_IMPLICIT_EXTERN_C
#define NO_IMPLICIT_EXTERN_C
-/* This defines which switch letters take arguments. On svr4, most of
+/* This defines which switch letters take arguments. On FreeBSD, most of
the normal cases (defined in gcc.c) apply, and we also have -h* and
- -z* options (for the linker). We have a slightly different mix. We
- have -R (alias --rpath), no -z, --soname (-h), --assert etc. */
+ -z* options (for the linker) (comming from svr4).
+ We also have -R (alias --rpath), no -z, --soname (-h), --assert etc. */
#define FBSD_SWITCH_TAKES_ARG(CHAR) \
- ( (CHAR) == 'D' \
- || (CHAR) == 'U' \
- || (CHAR) == 'o' \
- || (CHAR) == 'e' \
- || (CHAR) == 'T' \
- || (CHAR) == 'u' \
- || (CHAR) == 'I' \
- || (CHAR) == 'm' \
- || (CHAR) == 'x' \
- || (CHAR) == 'L' \
- || (CHAR) == 'A' \
- || (CHAR) == 'V' \
- || (CHAR) == 'B' \
- || (CHAR) == 'b' \
+ (DEFAULT_SWITCH_TAKES_ARG (CHAR) \
|| (CHAR) == 'h' \
|| (CHAR) == 'z' /* ignored by ld */ \
|| (CHAR) == 'R')
OpenPOWER on IntegriCloud