summaryrefslogtreecommitdiff
path: root/gcc/mkconfig.sh
diff options
context:
space:
mode:
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2002-06-15 17:31:32 +0000
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2002-06-15 17:31:32 +0000
commit8d4f8d462b6fbc77613f48e7f490f6b27a2f7b8f (patch)
tree9cc8a7452fc815ed1f99db6300c934bf5fb50b22 /gcc/mkconfig.sh
parent7835f1631a7aa5fc714a0025400cecff89623c1f (diff)
downloadgcc-8d4f8d462b6fbc77613f48e7f490f6b27a2f7b8f.tar.gz
* Makefile.in (tm_defines): New configuration variable.
(cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES. Pass tm_defines in TM_DEFINES. (cs-tm_p.h): Rename DEFINES to XM_DEFINES. Pass TM_DEFINES. * config.gcc (tm_defines): New configuration variable. (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and pa-7100.h headers. Change hppa1* scheduling default to 7100LC. * configure.in: Substitute tm_defines. * configure: Rebuilt. * mkconfig.sh: Rename DEFINES to XM_DEFINES. Output TM_DEFINES. * doc/install.texi: Update. * pa/pa-700.h: Delete file. * pa/pa-7100.h: Delete file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54648 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/mkconfig.sh')
-rw-r--r--gcc/mkconfig.sh15
1 files changed, 11 insertions, 4 deletions
diff --git a/gcc/mkconfig.sh b/gcc/mkconfig.sh
index 5b86b79f8b9..cc87ccb37e8 100644
--- a/gcc/mkconfig.sh
+++ b/gcc/mkconfig.sh
@@ -2,11 +2,11 @@
# Generate gcc's config.h, which is not your normal autoconf-generated
# config.h (that's auto-(host|build).h). $1 is the file to generate.
-# HEADERS, DEFINES, and possibly TARGET_CPU_DEFAULT are expected to be
-# set in the environment.
+# TM_DEFINES, HEADERS, XM_DEFINES, and possibly TARGET_CPU_DEFAULT are
+# expected to be set in the environment.
if [ -z "$1" ]; then
- echo "Usage: HEADERS='list' DEFINES='list' mkconfig.sh FILE" >&2
+ echo "Usage: TM_DEFINES='list' HEADERS='list' XM_DEFINES='list' mkconfig.sh FILE" >&2
exit 1
fi
@@ -19,6 +19,13 @@ if [ "$TARGET_CPU_DEFAULT" != "" ]; then
echo "#define TARGET_CPU_DEFAULT ($TARGET_CPU_DEFAULT)" >> ${output}T
fi
+# Provide defines for other target machine macros to be used everywhere.
+for def in $TM_DEFINES; do
+ echo "#ifndef $def" | sed 's/=.*//' >> ${output}T
+ echo "# define $def" | sed 's/=/ /' >> ${output}T
+ echo "#endif" >> ${output}T
+done
+
# The first entry in HEADERS may be auto-host.h or auto-build.h;
# it wants to be included even when not -DIN_GCC.
if [ -n "$HEADERS" ]; then
@@ -63,7 +70,7 @@ if [ -n "$HEADERS" ]; then
echo '#endif' >> ${output}T
fi
-for def in $DEFINES; do
+for def in $XM_DEFINES; do
echo "#ifndef $def" | sed 's/=.*//' >> ${output}T
echo "# define $def" | sed 's/=/ /' >> ${output}T
echo "#endif" >> ${output}T