aboutsummaryrefslogtreecommitdiff
path: root/gcc/configure.in
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@cygnus.co.uk>1999-09-20 10:00:03 +0000
committerBernd Schmidt <crux@gcc.gnu.org>1999-09-20 10:00:03 +0000
commit6baf1cc8f87d1c8c1ebfa9c48e27b74b82eab4e4 (patch)
treee581f680f7e5ca0ee19344ed2e86e199d05a00f2 /gcc/configure.in
parent34a24f18066d489449796be019d7b05798403f89 (diff)
downloadgcc-6baf1cc8f87d1c8c1ebfa9c48e27b74b82eab4e4.zip
gcc-6baf1cc8f87d1c8c1ebfa9c48e27b74b82eab4e4.tar.gz
gcc-6baf1cc8f87d1c8c1ebfa9c48e27b74b82eab4e4.tar.bz2
Make it possible to prototype port-specific functions (and convert i386 to use this)
From-SVN: r29514
Diffstat (limited to 'gcc/configure.in')
-rw-r--r--gcc/configure.in18
1 files changed, 12 insertions, 6 deletions
diff --git a/gcc/configure.in b/gcc/configure.in
index 51687e8..2ce4ac7 100644
--- a/gcc/configure.in
+++ b/gcc/configure.in
@@ -475,8 +475,9 @@ for machine in $build $host $target; do
gnu_ld="$gnu_ld_flag"
enable_threads=$enable_threads_flag
- # Set default cpu_type, tm_file and xm_file so it can be updated in
- # each machine entry.
+ # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
+ # updated in each machine entry.
+ tm_p_file=
cpu_type=`echo $machine | sed 's/-.*$//'`
case $machine in
alpha*-*-*)
@@ -515,7 +516,10 @@ changequote([,])dnl
tm_file=${cpu_type}/${cpu_type}.h
xm_file=${cpu_type}/xm-${cpu_type}.h
-
+ if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
+ then
+ tm_p_file=${cpu_type}/${cpu_type}-protos.h;
+ fi
# On a.out targets, we need to use collect2.
case $machine in
*-*-*aout*)
@@ -3860,9 +3864,9 @@ fi
xm_file="gansidecl.h ${xm_file}"
tm_file="gansidecl.h ${tm_file}"
-vars="host_xm_file tm_file xm_file build_xm_file"
-links="config.h tm.h tconfig.h hconfig.h"
-defines="host_xm_defines null_defines xm_defines build_xm_defines"
+vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
+links="config.h tm.h tm_p.h tconfig.h hconfig.h"
+defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
rm -f config.bak
if test -f config.status; then mv -f config.status config.bak; fi
@@ -3875,6 +3879,8 @@ do
set $defines; define=$1; shift; defines=$*
rm -f $link
+ # Make sure the file is created, even if it is empty.
+ echo >$link
# Define TARGET_CPU_DEFAULT if the system wants one.
# This substitutes for lots of *.h files.