aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-05-09 21:55:04 +0000
committerRichard Stallman <rms@gnu.org>1993-05-09 21:55:04 +0000
commit5ec88efd8236e258640bc1dd8911cfff18c41fc2 (patch)
tree8604541660b24270fa5fe430fa1f786692751e9d /gcc
parent322dce453ac05ed5da517eb09acef12196f87ecc (diff)
downloadgcc-5ec88efd8236e258640bc1dd8911cfff18c41fc2.zip
gcc-5ec88efd8236e258640bc1dd8911cfff18c41fc2.tar.gz
gcc-5ec88efd8236e258640bc1dd8911cfff18c41fc2.tar.bz2
When finding SIZE_TYPE, cd to ${LIB} to run cc.
From-SVN: r4400
Diffstat (limited to 'gcc')
-rwxr-xr-xgcc/fixincludes2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes
index 4773729..254bd64 100755
--- a/gcc/fixincludes
+++ b/gcc/fixincludes
@@ -333,7 +333,7 @@ do
# (This file must be called something.c).
echo "#include \"tm.h\"
gobblegobble SIZE_TYPE" > ${LIB}/types.c
- foo=`cc -E -I${ORIGDIR} -I${SRCDIR} -I${SRCDIR}/config ${LIB}/types.c | grep gobblegobble | sed -e "s/gobblegobble[ ]*//"`
+ foo=`cd ${LIB}; cc -E -I${ORIGDIR} -I${SRCDIR} -I${SRCDIR}/config types.c | grep gobblegobble | sed -e "s/gobblegobble[ ]*//"`
rm -f ${LIB}/types.c
# Default to our preferred type.
if [ "$foo" = SIZE_TYPE ]; then foo="unsigned long int"; else foo=`echo $foo | sed -e 's/^.*"\(.*\)".*$/\1/'`; fi