summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/config
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1999-08-15 22:02:50 +0000
committerobrien <obrien@FreeBSD.org>1999-08-15 22:02:50 +0000
commitb1194cd711ae922ff610f263021260f3958bde8f (patch)
tree9526dc7d9aa565fc5624fdf2101317d7281f3fe5 /contrib/gcc/config
parente873ea78b5c9f9bb580bd24d1b0b8fa867de6b07 (diff)
downloadFreeBSD-src-b1194cd711ae922ff610f263021260f3958bde8f.zip
FreeBSD-src-b1194cd711ae922ff610f263021260f3958bde8f.tar.gz
Move "WORD_SWITCH_TAKES_ARG" & "SWITCH_TAKES_ARG" to the general spec file
since their definitions were identical. FreeBSD/MIPS will need to override these two defintions, but it can #undef them and define them approapiately.
Diffstat (limited to 'contrib/gcc/config')
-rw-r--r--contrib/gcc/config/alpha/freebsd4.h6
-rw-r--r--contrib/gcc/config/freebsd.h8
2 files changed, 7 insertions, 7 deletions
diff --git a/contrib/gcc/config/alpha/freebsd4.h b/contrib/gcc/config/alpha/freebsd4.h
index afec613..f10b264 100644
--- a/contrib/gcc/config/alpha/freebsd4.h
+++ b/contrib/gcc/config/alpha/freebsd4.h
@@ -50,12 +50,6 @@ 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
#define TARGET_DEFAULT (MASK_FP | MASK_FPREGS | MASK_GAS)
diff --git a/contrib/gcc/config/freebsd.h b/contrib/gcc/config/freebsd.h
index bf70d09..4ec89d5 100644
--- a/contrib/gcc/config/freebsd.h
+++ b/contrib/gcc/config/freebsd.h
@@ -1,4 +1,4 @@
-/* $Id: freebsd.h,v 1.15 1999/07/02 19:26:45 obrien Exp $ */
+/* $Id: freebsd.h,v 1.16 1999/08/15 21:59:46 obrien Exp $ */
/* Base configuration file for all FreeBSD targets.
Copyright (C) 1999 Free Software Foundation, Inc.
@@ -41,12 +41,18 @@ Boston, MA 02111-1307, USA. */
|| (CHAR) == 'z' /* ignored by ld */ \
|| (CHAR) == 'R')
+#undef SWITCH_TAKES_ARG
+#define SWITCH_TAKES_ARG(CHAR) (FBSD_SWITCH_TAKES_ARG(CHAR))
+
#define FBSD_WORD_SWITCH_TAKES_ARG(STR) \
(DEFAULT_WORD_SWITCH_TAKES_ARG (STR) \
|| !strcmp (STR, "rpath") || !strcmp (STR, "rpath-link") \
|| !strcmp (STR, "soname") || !strcmp (STR, "defsym") \
|| !strcmp (STR, "assert") || !strcmp (STR, "dynamic-linker"))
+#undef WORD_SWITCH_TAKES_ARG
+#define WORD_SWITCH_TAKES_ARG(STR) (FBSD_WORD_SWITCH_TAKES_ARG(STR))
+
/* Place spaces around this string. We depend on string splicing to produce
the final CPP_PREDEFINES value. */
#define CPP_FBSD_PREDEFINES " -Dunix -D__FreeBSD__=4 -D__FreeBSD_cc_version=400002 -Asystem(unix) -Asystem(FreeBSD) "
OpenPOWER on IntegriCloud