aboutsummaryrefslogtreecommitdiff
path: root/contrib/gcc/mkconfig.sh
diff options
context:
space:
mode:
authorAlexander Kabaev <kan@FreeBSD.org>2003-07-11 03:40:53 +0000
committerAlexander Kabaev <kan@FreeBSD.org>2003-07-11 03:40:53 +0000
commitbd0df3aa27aac083bd60b649fa5347076a5126eb (patch)
treef6b0610f4a17fd26aa234354f050080f789861a4 /contrib/gcc/mkconfig.sh
parentfabd8bcd49e1046bc9abdcb4efaea04638630b6f (diff)
Gcc 3.3.1-pre as of 2003-07-11.
Notes
Notes: svn path=/vendor/gcc/dist/; revision=117395
Diffstat (limited to 'contrib/gcc/mkconfig.sh')
-rw-r--r--contrib/gcc/mkconfig.sh16
1 files changed, 12 insertions, 4 deletions
diff --git a/contrib/gcc/mkconfig.sh b/contrib/gcc/mkconfig.sh
index f0d97ec8c628..cc87ccb37e8c 100644
--- a/contrib/gcc/mkconfig.sh
+++ b/contrib/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
@@ -50,6 +57,7 @@ typedef struct rtvec_def *rtvec;
union tree_node;
typedef union tree_node *tree;
#endif
+#define GTY(x)
EOF
;;
esac
@@ -62,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