diff options
author | neroden <neroden@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-23 18:56:00 +0000 |
---|---|---|
committer | neroden <neroden@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-23 18:56:00 +0000 |
commit | 4c05f6ec775290a2ceaa15a7e64310e6b027670c (patch) | |
tree | d528cc0b84787b6ae79ca837fabf2d4fc33aca27 | |
parent | 5eda1d2edd1adce5275edaa3cdee2970ca8caa57 (diff) | |
download | gcc-4c05f6ec775290a2ceaa15a7e64310e6b027670c.tar.gz |
* config.gcc: Do per-target disabling of fixproto here in clauses,
not in t- fragments.
* configure.in: Adjust to set STMP_FIXPROTO correctly.
* configure: Regenerate.
* config/arm/t-semi, config/cris/t-cris, config/i386/t-beos,
config/i386/t-cygming, config/i386/t-nto, config/ia64/t-hpux,
t-freebsd, t-linux, t-netbsd, t-openbsd, t-rtems, t-vxworks,
xtensa/t-xtensa: Remove setting of STMP_FIXPROTO.
* config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd,
t-interix, t-linux-aout: Delete files consisting only of
setting of STMP_FIXPROTO.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71687 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/config.gcc | 94 | ||||
-rw-r--r-- | gcc/config/arm/t-semi | 3 | ||||
-rw-r--r-- | gcc/config/cris/t-cris | 3 | ||||
-rw-r--r-- | gcc/config/i370/t-oe | 6 | ||||
-rw-r--r-- | gcc/config/i386/t-beos | 3 | ||||
-rw-r--r-- | gcc/config/i386/t-cygming | 2 | ||||
-rw-r--r-- | gcc/config/i386/t-netware | 2 | ||||
-rw-r--r-- | gcc/config/i386/t-nto | 3 | ||||
-rw-r--r-- | gcc/config/ia64/t-hpux | 7 | ||||
-rw-r--r-- | gcc/config/pa/t-bsd | 2 | ||||
-rw-r--r-- | gcc/config/t-freebsd | 3 | ||||
-rw-r--r-- | gcc/config/t-interix | 2 | ||||
-rw-r--r-- | gcc/config/t-linux | 3 | ||||
-rw-r--r-- | gcc/config/t-linux-aout | 2 | ||||
-rw-r--r-- | gcc/config/t-netbsd | 3 | ||||
-rw-r--r-- | gcc/config/t-openbsd | 3 | ||||
-rw-r--r-- | gcc/config/t-rtems | 3 | ||||
-rw-r--r-- | gcc/config/t-vxworks | 3 | ||||
-rw-r--r-- | gcc/config/xtensa/t-xtensa | 3 | ||||
-rwxr-xr-x | gcc/configure | 136 | ||||
-rw-r--r-- | gcc/configure.in | 12 |
21 files changed, 168 insertions, 130 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index 383e7b0ecfc..2a370dfc68f 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -132,6 +132,9 @@ # configure_default_options # Set to an initializer for configure_default_options # in configargs.h, based on --with-cpu et cetera. +# +# use_fixproto Set to "yes" if fixproto should be run normally, +# "no" if fixproto should never be run. # The following variables are used in each case-construct to build up the # outgoing variables: @@ -168,6 +171,9 @@ default_use_cxa_atexit=no target_gtfiles= need_64bit_hwint= +# Default to using fixproto. We will reverse this eventually. +use_fixproto=yes + # Don't carry these over build->host->target. Please. xm_file= md_file= @@ -353,6 +359,7 @@ case $machine in tm_file="${cpu_type}/${cpu_type}.h i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h gnu.h ${tm_file}" ;; esac + use_fixproto=no ;; *-*-openbsd*) tmake_file="t-libc-ok t-openbsd t-libgcc-pic" @@ -360,6 +367,7 @@ case $machine in thread_file='posix' tmake_file="${tmake_file} t-openbsd-thread" fi + use_fixproto=no ;; *-*-netbsd*) tmake_file="t-slibgcc-elf-ver t-libc-ok t-netbsd t-libgcc-pic" @@ -399,6 +407,7 @@ case $machine in default_use_cxa_atexit=yes ;; esac + use_fixproto=no ;; *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*) # This is the place-holder for the generic a.out configuration @@ -451,6 +460,7 @@ case $machine in *) echo 'Unknown thread configuration for FreeBSD'; exit 1;; esac fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h" + use_fixproto=no ;; *-*-darwin*) tm_file="${tm_file} darwin.h" @@ -471,6 +481,7 @@ case $machine in tm_file="${tm_file} elfos.h svr4.h vxworks.h" thread_file='vxworks' use_collect2=yes + use_fixproto=no ;; esac @@ -498,6 +509,7 @@ alpha*-*-linux*) tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" target_cpu_default="MASK_GAS" tmake_file="t-slibgcc-elf-ver t-linux alpha/t-crtfm alpha/t-alpha alpha/t-ieee" + use_fixproto=no ;; alpha*-*-gnu*) target_cpu_default="MASK_GAS" @@ -581,6 +593,7 @@ arm-*-coff* | armel-*-coff*) arm-semi-aof | armel-semi-aof) tm_file="arm/semiaof.h arm/aof.h arm/arm.h" tmake_file=arm/t-semi + use_fixproto=no ;; arm*-*-freebsd*|strongarm*-*-freebsd*) tm_file="dbxelf.h elfos.h ${fbsd_tm_file} arm/elf.h arm/aout.h arm/freebsd.h arm/arm.h" @@ -595,6 +608,7 @@ arm*-*-netbsd*) tmake_file="t-netbsd arm/t-netbsd" extra_parts="" use_collect2=yes + use_fixproto=no ;; arm*-*-linux*) # ARM GNU/Linux with ELF tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/linux-gas.h arm/linux-elf.h" @@ -606,6 +620,7 @@ arm*-*-linux*) # ARM GNU/Linux with ELF thread_file='posix' ;; esac + use_fixproto=no ;; arm*-*-uclinux*) # ARM ucLinux tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/linux-gas.h arm/linux-elf.h arm/uclinux-elf.h" @@ -621,6 +636,7 @@ arm*-*-rtems*) if test x$enable_threads = xyes; then thread_file='rtems' fi + use_fixproto=no ;; arm*-*-elf | ep9312-*-elf) tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h" @@ -651,6 +667,7 @@ c4x-*-rtems* | tic4x-*-rtems*) fi c_target_objs="c4x-c.o" cxx_target_objs="c4x-c.o" + use_fixproto=no ;; c4x-* | tic4x-*) tmake_file=c4x/t-c4x @@ -661,15 +678,18 @@ cris-*-aout) tm_file="dbxelf.h ${tm_file} cris/aout.h" gas=yes tmake_file="cris/t-cris cris/t-aout" + use_fixproto=no ;; cris-*-elf | cris-*-none) tm_file="dbxelf.h elfos.h ${tm_file}" tmake_file="cris/t-cris cris/t-elfmulti" gas=yes + use_fixproto=no ;; cris-*-linux*) tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h" tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux" + use_fixproto=no ;; d30v-*) tm_file="dbxelf.h elfos.h svr4.h ${tm_file}" @@ -691,6 +711,7 @@ h8300-*-rtems*) if test x$enable_threads = xyes; then thread_file='rtems' fi + use_fixproto=no ;; h8300-*-elf*) tmake_file="h8300/t-h8300 h8300/t-elf" @@ -712,36 +733,41 @@ hppa*-*-linux* | parisc*-*-linux*) tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h pa/pa-linux.h \ pa/pa32-regs.h pa/pa32-linux.h" tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux" + use_fixproto=no ;; # port not yet contributed. #hppa*-*-openbsd*) # target_cpu_default="MASK_PA_11" -# tmake_file=pa/t-bsd +# use_fixproto=no # ;; hppa1.1-*-pro*) target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)" tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h" - tmake_file="pa/t-bsd pa/t-pro" + tmake_file="pa/t-pro" + use_fixproto=no ;; hppa1.1-*-osf*) target_cpu_default="MASK_PA_11" tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h pa/pa-osf.h" - tmake_file="pa/t-bsd pa/t-pa" + tmake_file="pa/t-pa" use_collect2=yes + use_fixproto=no ;; hppa1.1-*-rtems*) target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)" tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h rtems.h" - tmake_file="pa/t-bsd pa/t-pro t-rtems" + tmake_file="pa/t-pro t-rtems" if test x$enable_threads = xyes; then thread_file='rtems' fi + use_fixproto=no ;; hppa1.1-*-bsd*) tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h" target_cpu_default="MASK_PA_11" - tmake_file="pa/t-bsd pa/t-pa" + tmake_file="pa/t-pa" use_collect2=yes + use_fixproto=no ;; hppa1.1-*-hpux10* | hppa2*-*-hpux10*) target_cpu_default="MASK_PA_11" @@ -819,9 +845,11 @@ hppa1.0-*-hpux11*) i370-*-opened*) # IBM 360/370/390 Architecture xm_defines='FATAL_EXIT_CODE=12' tm_file="i370/oe.h i370/i370.h" - tmake_file="i370/t-oe i370/t-i370" + tmake_file="i370/t-i370" c_target_objs="i370-c.o" cxx_target_objs="i370-c.o" + # Don't bother fixing up header files; they're weird. + use_fixproto=no ;; i370-*-mvs*) xm_defines='FATAL_EXIT_CODE=12' @@ -834,6 +862,7 @@ i370-*-linux*) tm_file="dbxelf.h elfos.h svr4.h linux.h i370/linux.h i370/i370.h" tmake_file="t-slibgcc-elf-ver t-linux" # broken_install=yes + use_fixproto=no ;; i[34567]86-*-darwin*) tm_file="${tm_file} i386/darwin.h" @@ -850,7 +879,7 @@ i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4 ;; i[34567]86-*-netware) # Intel 80386's running netware tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h netware.h i386/netware.h" - tmake_file=i386/t-netware + use_fixproto=no ;; i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*) if test x$gas = xyes @@ -869,6 +898,7 @@ i[34567]86-*-beoself* | i[34567]86-*-beos*) tmake_file='i386/t-beos i386/t-crtpic' tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/beos-elf.h" extra_parts='crtbegin.o crtend.o' + use_fixproto=no ;; i[34567]86-*-freebsd2 | i[34567]86-*-freebsd2.* | i[34567]86-*-freebsd*aout*) tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/freebsd-aout.h" @@ -888,6 +918,7 @@ i[34567]86-*-netbsd*) tmake_file=t-netbsd extra_parts="" use_collect2=yes + use_fixproto=no ;; x86_64-*-netbsd*) tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/x86-64.h i386/netbsd64.h" @@ -898,15 +929,17 @@ i[34567]86-*-openbsd*) tmake_file="t-libc-ok t-openbsd i386/t-openbsd" # we need collect2 until our bug is fixed... use_collect2=yes + use_fixproto=no ;; i[34567]86-*-coff*) tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/i386-coff.h" ;; i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux # with a.out format - tmake_file="t-linux-aout i386/t-crtstuff" + tmake_file="i386/t-crtstuff" tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h linux-aout.h i386/linux-aout.h" gnu_ld=yes + use_fixproto=no ;; i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux # with ELF format using the @@ -918,17 +951,20 @@ i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux if test x$enable_threads = xyes; then thread_file='single' fi + use_fixproto=no ;; i[34567]86-*-linux*) # Intel 80386's running GNU/Linux # with ELF format using glibc 2 # aka GNU/Linux C library 6 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h" tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff" + use_fixproto=no ;; x86_64-*-linux*) tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h \ i386/x86-64.h i386/linux64.h" tmake_file="t-slibgcc-elf-ver t-linux i386/t-linux64" + use_fixproto=no ;; i[34567]86-*-gnu*) ;; @@ -963,6 +999,7 @@ i[34567]86-*-nto-qnx*) tmake_file=i386/t-nto gnu_ld=yes gas=yes + use_fixproto=no ;; i[34567]86-*-rtems*) tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/rtemself.h rtems.h" @@ -971,6 +1008,7 @@ i[34567]86-*-rtems*) if test x$enable_threads = xyes; then thread_file='rtems' fi + use_fixproto=no ;; i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/sco5.h" @@ -1066,6 +1104,7 @@ i[34567]86-*-pe | i[34567]86-*-cygwin*) if test x$enable_threads = xyes; then thread_file='posix' fi + use_fixproto=no ;; i[34567]86-*-mingw32*) tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/mingw32.h" @@ -1082,6 +1121,7 @@ i[34567]86-*-mingw32*) *mingw32msv* | *mingw32*) ;; esac + use_fixproto=no ;; i[34567]86-*-uwin*) tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygwin.h i386/uwin.h" @@ -1093,7 +1133,7 @@ i[34567]86-*-uwin*) ;; i[34567]86-*-interix3*) tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h i386/i386-interix3.h interix.h interix3.h" - tmake_file="t-interix i386/t-interix" + tmake_file="i386/t-interix" extra_objs=winnt.o if test x$enable_threads = xyes ; then thread_file='posix' @@ -1101,10 +1141,11 @@ i[34567]86-*-interix3*) if test x$stabs = xyes ; then tm_file="${tm_file} dbxcoff.h" fi + use_fixproto=no ;; i[34567]86-*-interix*) tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h interix.h" - tmake_file="t-interix i386/t-interix" + tmake_file="i386/t-interix" extra_objs=winnt.o if test x$enable_threads = xyes ; then thread_file='posix' @@ -1112,6 +1153,7 @@ i[34567]86-*-interix*) if test x$stabs = xyes ; then tm_file="${tm_file} dbxcoff.h" fi + use_fixproto=no ;; i[34567]86-*-kaos*) tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h kaos.h i386/kaos-i386.h" @@ -1136,6 +1178,7 @@ i960-*-rtems) fi c_target_objs="i960-c.o" cxx_target_objs="i960-c.o" + use_fixproto=no ;; i960-*-*) # Default i960 environment. use_collect2=yes @@ -1171,6 +1214,7 @@ ia64*-*-linux*) if test x"$use_libunwind_exceptions" = xyes; then tmake_file="$tmake_file t-libunwind" fi + use_fixproto=no ;; ia64*-*-hpux*) tm_file="${tm_file} dbxelf.h elfos.h svr4.h ia64/sysv4.h ia64/hpux.h ia64/hpux_longdouble.h" @@ -1184,6 +1228,10 @@ ia64*-*-hpux*) use_collect2=no c_target_objs="ia64-c.o" cxx_target_objs="ia64-c.o" + # If we decide to run fixproto we should define FIXPROTO_DEFINES + # in ia64/t-hpux, and also fix the definition of putenv in + # sys-protos.h (const char not char). + use_fixproto=no ;; ip2k-*-elf) tm_file="elfos.h ${tm_file}" @@ -1271,6 +1319,7 @@ m68k*-*-netbsd*) tmake_file=t-netbsd extra_parts="" use_collect2=yes + use_fixproto=no ;; m68k*-*-openbsd*) # needed to unconfuse gdb @@ -1279,6 +1328,7 @@ m68k*-*-openbsd*) tmake_file="t-libc-ok t-openbsd m68k/t-openbsd" # we need collect2 until our bug is fixed... use_collect2=yes + use_fixproto=no ;; m68k-*-sysv4*) # Motorola m68k's running system V.4 tm_file="m68k/m68k.h m68k/sgs.h dbxelf.h elfos.h svr4.h m68k/m68kv4.h" @@ -1292,6 +1342,7 @@ m68k-*-linux*) # Motorola m68k's running GNU/Linux tm_file="m68k/m68k.h dbxelf.h elfos.h svr4.h linux.h m68k/linux.h" tm_defines="MOTOROLA USE_GAS" tmake_file="t-slibgcc-elf-ver t-linux" + use_fixproto=no ;; m68k-*-rtems*) tmake_file="m68k/t-m68kbare m68k/t-crtstuff t-rtems m68k/t-rtems" @@ -1300,6 +1351,7 @@ m68k-*-rtems*) if test x$enable_threads = xyes; then thread_file='rtems' fi + use_fixproto=no ;; mcore-*-elf) tm_file="dbxelf.h elfos.h svr4.h ${tm_file} mcore/mcore-elf.h" @@ -1404,6 +1456,7 @@ mips64*-*-linux*) if test x$enable_threads = xyes; then thread_file='posix' fi + use_fixproto=no ;; mips*-*-linux*) # Linux MIPS, either endian. tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h" @@ -1414,6 +1467,7 @@ mips*-*-linux*) # Linux MIPS, either endian. ;; esac tmake_file="t-slibgcc-elf-ver t-linux" + use_fixproto=no ;; mips*-*-openbsd*) tm_defines="OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_OBJECT OBSD_HAS_CORRECT_SPECS" @@ -1481,6 +1535,7 @@ mips*-*-rtems*) if test x$enable_threads = xyes; then thread_file='rtems' fi + use_fixproto=no ;; mipstx39-*-elf* | mipstx39el-*-elf*) tm_file="${tm_file} mips/r3900.h mips/elf.h" @@ -1506,6 +1561,7 @@ ns32k-*-netbsd*) tmake_file="t-netbsd ns32k/t-ns32k" extra_parts="" use_collect2=yes + use_fixproto=no ;; pdp11-*-bsd) tm_file="${tm_file} pdp11/2bsd.h" @@ -1526,6 +1582,7 @@ powerpc64-*-linux*) esac tm_file="${tm_file} rs6000/linux64.h" tmake_file="rs6000/t-fprules t-slibgcc-elf-ver t-linux rs6000/t-ppccomm rs6000/t-linux64" + use_fixproto=no ;; powerpc64-*-gnu*) tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux64.h rs6000/gnu.h" @@ -1590,18 +1647,22 @@ powerpc-*-rtems*) if test x$enable_threads = xyes; then thread_file='rtems' fi + use_fixproto=no ;; powerpc-*-linux*altivec*) tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h" tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm" + use_fixproto=no ;; powerpc-*-linux*spe*) tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxspe.h" tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm" + use_fixproto=no ;; powerpc-*-linux*) tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h" tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm" + use_fixproto=no ;; powerpc-*-gnu-gnualtivec*) tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h rs6000/gnu.h" @@ -1689,6 +1750,7 @@ rs6000-*-lynxos*) s390-*-linux*) tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h" tmake_file="t-slibgcc-elf-ver t-linux s390/t-crtstuff" + use_fixproto=no ;; s390x-*-linux*) tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h" @@ -1697,6 +1759,7 @@ s390x-*-linux*) extra_modes=s390/s390-modes.def out_file=s390/s390.c tmake_file="t-slibgcc-elf-ver t-linux s390/t-crtstuff s390/t-linux64" + use_fixproto=no ;; sh-*-elf* | sh[2346l]*-*-elf* | sh*-*-kaos*) tmake_file="sh/t-sh sh/t-elf" @@ -1733,6 +1796,7 @@ sh-*-rtemself*) if test x$enable_threads = xyes; then thread_file='rtems' fi + use_fixproto=no ;; sh-*-rtems*) tmake_file="sh/t-sh t-rtems" @@ -1740,6 +1804,7 @@ sh-*-rtems*) if test x$enable_threads = xyes; then thread_file='rtems' fi + use_fixproto=no ;; sh-*-linux* | sh[2346lbe]*-*-linux*) tmake_file="sh/t-sh sh/t-elf t-slibgcc-elf-ver t-linux" @@ -1772,6 +1837,7 @@ sh-*-linux* | sh[2346lbe]*-*-linux*) case $machine in sh[234]*) tmake_file="${tmake_file} sh/t-monolib" ;; esac + use_fixproto=no ;; sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \ sh64-*-netbsd* | sh64l*-*-netbsd*) @@ -1820,6 +1886,7 @@ sparc-*-openbsd*) tmake_file="t-libc-ok t-openbsd sparc/t-openbsd" # we need collect2 until our bug is fixed... use_collect2=yes + use_fixproto=no ;; sparc64-*-openbsd*) tm_file="sparc/openbsd1-64.h sparc/sparc.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/sp64-elf.h openbsd.h sparc/openbsd64.h" @@ -1834,6 +1901,7 @@ sparc-*-elf*) sparc-*-linux*) # SPARC's running GNU/Linux, libc6 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h" tmake_file="t-slibgcc-elf-ver t-linux sparc/t-crtfm" + use_fixproto=no ;; sparc-*-rtems*) tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h sparc/rtemself.h rtems.h" @@ -1842,6 +1910,7 @@ sparc-*-rtems*) if test x$enable_threads = xyes; then thread_file='rtems' fi + use_fixproto=no ;; sparc64-*-solaris2* | sparcv9-*-solaris2*) tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/sol2-64.h sparc/sol2-bi.h" @@ -1957,6 +2026,7 @@ sparc64-*-freebsd*|ultrasparc-*-freebsd*) sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64 sparc/t-crtfm" tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux64.h" + use_fixproto=no ;; sparc64-*-netbsd*) tmake_file="${tmake_file} sparc/t-netbsd64" @@ -2042,6 +2112,7 @@ vax-*-netbsd*) tmake_file=t-netbsd extra_parts="" use_collect2=yes + use_fixproto=no ;; vax-*-openbsd*) tm_file="vax/vax.h vax/openbsd1.h openbsd.h vax/openbsd.h" @@ -2082,10 +2153,12 @@ xstormy16-*-elf) xtensa-*-elf*) tm_file="${tm_file} dbxelf.h elfos.h svr4.h xtensa/elf.h" tmake_file="xtensa/t-xtensa xtensa/t-elf" + use_fixproto=no ;; xtensa-*-linux*) tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h xtensa/linux.h" tmake_file="t-slibgcc-elf-ver t-linux xtensa/t-xtensa xtensa/t-linux" + use_fixproto=no ;; am33_2.0-*-linux*) tm_file="mn10300/mn10300.h dbxelf.h elfos.h linux.h mn10300/linux.h" @@ -2096,6 +2169,7 @@ am33_2.0-*-linux*) fi extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" use_collect2=no + use_fixproto=no ;; *) echo "*** Configuration $machine not supported" 1>&2 diff --git a/gcc/config/arm/t-semi b/gcc/config/arm/t-semi index 072691a9e21..abd642cb02b 100644 --- a/gcc/config/arm/t-semi +++ b/gcc/config/arm/t-semi @@ -6,9 +6,6 @@ LIBGCC2_DEBUG_CFLAGS = -g0 LIB1ASMSRC = arm/lib1funcs.asm LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls _call_via_rX _interwork_call_via_rX -#Don't try to run fixproto -STMP_FIXPROTO = - # We want fine grained libraries, so use the new code to build the # floating point emulation libraries. FPBIT = fp-bit.c diff --git a/gcc/config/cris/t-cris b/gcc/config/cris/t-cris index 61745e50867..30ec633d3a3 100644 --- a/gcc/config/cris/t-cris +++ b/gcc/config/cris/t-cris @@ -7,9 +7,6 @@ # The makefile macros etc. are included in the order found in the # section "Target Fragment" in the gcc info-files (or the paper copy) of # "Using and Porting GCC" -# -# Don't run fixproto -STMP_FIXPROTO = LIB2FUNCS_EXTRA = _udivsi3.c _divsi3.c _umodsi3.c _modsi3.c CRIS_LIB1CSRC = $(srcdir)/config/cris/arit.c diff --git a/gcc/config/i370/t-oe b/gcc/config/i370/t-oe deleted file mode 100644 index a2130a11bb1..00000000000 --- a/gcc/config/i370/t-oe +++ /dev/null @@ -1,6 +0,0 @@ -# -# Target is an i370 running OpenEdition -# - -# Don't bother fixing up header files, they're weird -STMP_FIXPROTO = diff --git a/gcc/config/i386/t-beos b/gcc/config/i386/t-beos index e545abd7d07..b5c8ec20871 100644 --- a/gcc/config/i386/t-beos +++ b/gcc/config/i386/t-beos @@ -2,6 +2,3 @@ # we are most likely to want to apply any fixes to. SYSTEM_HEADER_DIR = /boot/develop/headers/posix CROSS_SYSTEM_HEADER_DIR = $(tooldir)/sys-include/posix - -# Don't run fixproto -STMP_FIXPROTO = diff --git a/gcc/config/i386/t-cygming b/gcc/config/i386/t-cygming index 07e089d35fd..aa6ff61ca03 100644 --- a/gcc/config/i386/t-cygming +++ b/gcc/config/i386/t-cygming @@ -16,6 +16,4 @@ winnt.o: $(srcdir)/config/i386/winnt.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ $(srcdir)/config/i386/winnt.c -# Don't run fixproto -STMP_FIXPROTO= STMP_FIXINC=stmp-fixinc diff --git a/gcc/config/i386/t-netware b/gcc/config/i386/t-netware deleted file mode 100644 index 66ba228551f..00000000000 --- a/gcc/config/i386/t-netware +++ /dev/null @@ -1,2 +0,0 @@ -# Our header files are supposed to be correct, nein? -STMP_FIXPROTO = diff --git a/gcc/config/i386/t-nto b/gcc/config/i386/t-nto index 314c2609f8b..b80ff802927 100644 --- a/gcc/config/i386/t-nto +++ b/gcc/config/i386/t-nto @@ -1,6 +1,3 @@ -# Don't run fixproto -STMP_FIXPROTO = - CRTSTUFF_T_CFLAGS = -fno-omit-frame-pointer -fPIC TARGET_LIBGCC2_CFLAGS = -fPIC -fexceptions diff --git a/gcc/config/ia64/t-hpux b/gcc/config/ia64/t-hpux index 7b42fe519a2..48baadd6582 100644 --- a/gcc/config/ia64/t-hpux +++ b/gcc/config/ia64/t-hpux @@ -20,13 +20,6 @@ quadlib.c: $(srcdir)/config/ia64/quadlib.c LIBGCC1_TEST = -# Don't run fix-headers. HP-UX headers are standards conformant -# and don't need to be fixed up in this way. -# If we remove this (and run fix-headers) we should define FIXPROTO_DEFINES -# and also fix the definition of putenv in sys-protos.h (const char not char). - -STMP_FIXPROTO = - # We do not want to include the EH stuff that linux uses, we want to use # the HP-UX libunwind library. diff --git a/gcc/config/pa/t-bsd b/gcc/config/pa/t-bsd deleted file mode 100644 index ac0236043ff..00000000000 --- a/gcc/config/pa/t-bsd +++ /dev/null @@ -1,2 +0,0 @@ -# BSD on the PA already has ANSI include files which are c++ compatible. -STMP_FIXPROTO= diff --git a/gcc/config/t-freebsd b/gcc/config/t-freebsd index da9c6429acd..211dbdf6b71 100644 --- a/gcc/config/t-freebsd +++ b/gcc/config/t-freebsd @@ -1,6 +1,3 @@ -# Don't run fixproto -STMP_FIXPROTO = - # Compile crtbeginS.o and crtendS.o with pic. CRTSTUFF_T_CFLAGS_S = -fPIC diff --git a/gcc/config/t-interix b/gcc/config/t-interix deleted file mode 100644 index d284b3e7e41..00000000000 --- a/gcc/config/t-interix +++ /dev/null @@ -1,2 +0,0 @@ -# Don't run fixproto -STMP_FIXPROTO = diff --git a/gcc/config/t-linux b/gcc/config/t-linux index 752387c62ad..f25ab6430e9 100644 --- a/gcc/config/t-linux +++ b/gcc/config/t-linux @@ -1,6 +1,3 @@ -# Don't run fixproto -STMP_FIXPROTO = - # Compile crtbeginS.o and crtendS.o with pic. CRTSTUFF_T_CFLAGS_S = $(CRTSTUFF_T_CFLAGS) -fPIC # Compile libgcc2.a with pic. diff --git a/gcc/config/t-linux-aout b/gcc/config/t-linux-aout deleted file mode 100644 index d284b3e7e41..00000000000 --- a/gcc/config/t-linux-aout +++ /dev/null @@ -1,2 +0,0 @@ -# Don't run fixproto -STMP_FIXPROTO = diff --git a/gcc/config/t-netbsd b/gcc/config/t-netbsd index fa2a4886320..843e4100df7 100644 --- a/gcc/config/t-netbsd +++ b/gcc/config/t-netbsd @@ -1,5 +1,2 @@ -# Don't run fixproto -STMP_FIXPROTO = - # Always build crtstuff with PIC. CRTSTUFF_T_CFLAGS = -fPIC diff --git a/gcc/config/t-openbsd b/gcc/config/t-openbsd index 0578cbd6225..2289f154efc 100644 --- a/gcc/config/t-openbsd +++ b/gcc/config/t-openbsd @@ -1,5 +1,2 @@ -# Don't run fixproto -STMP_FIXPROTO = - # We don't need GCC's own include files. USER_H = diff --git a/gcc/config/t-rtems b/gcc/config/t-rtems index c403ff85dda..dfbd3afe9ee 100644 --- a/gcc/config/t-rtems +++ b/gcc/config/t-rtems @@ -1,6 +1,3 @@ -# RTEMS uses newlib which does not require prototype fixing -STMP_FIXPROTO = - # RTEMS always has limits.h. LIMITS_H_TEST = true diff --git a/gcc/config/t-vxworks b/gcc/config/t-vxworks index 550a161152a..ebf47e1bcce 100644 --- a/gcc/config/t-vxworks +++ b/gcc/config/t-vxworks @@ -1,6 +1,3 @@ -# Don't run fixproto. -STMP_FIXPROTO = - # Since we have a functional assert.h, use it. INSTALL_ASSERT_H = diff --git a/gcc/config/xtensa/t-xtensa b/gcc/config/xtensa/t-xtensa index d39f7fe0e0f..d1c8031fdaa 100644 --- a/gcc/config/xtensa/t-xtensa +++ b/gcc/config/xtensa/t-xtensa @@ -8,9 +8,6 @@ fp-bit.c: $(srcdir)/config/fp-bit.c echo '#define FLOAT' > fp-bit.c cat $(srcdir)/config/fp-bit.c >> fp-bit.c -# Don't run fixproto -STMP_FIXPROTO = - LIB1ASMSRC = xtensa/lib1funcs.asm LIB1ASMFUNCS = _mulsi3 _nsau _divsi3 _modsi3 _udivsi3 _umodsi3 diff --git a/gcc/configure b/gcc/configure index 16a86d7400c..b96bb611303 100755 --- a/gcc/configure +++ b/gcc/configure @@ -5747,7 +5747,17 @@ CC_FOR_BUILD='$(CC)' BUILD_CFLAGS='$(ALL_CFLAGS)' STMP_FIXINC=stmp-fixinc -STMP_FIXPROTO=stmp-fixproto + +# Possibly disable fixproto, on a per-target basis. +case ${use_fixproto} in + no) + STMP_FIXPROTO= + ;; + yes) + STMP_FIXPROTO=stmp-fixproto + ;; +esac + # And these apply if build != host, or we are generating coverage data if test x$build != x$host || test "x$coverage_flags" != x @@ -5793,7 +5803,7 @@ esac # build->target assembler and hope that it will have the same features # as the host->target assembler we'll be using. echo $ac_n "checking what assembler to use""... $ac_c" 1>&6 -echo "configure:5797: checking what assembler to use" >&5 +echo "configure:5807: checking what assembler to use" >&5 in_tree_gas=no gcc_cv_as= gcc_cv_gas_major_version= @@ -5917,7 +5927,7 @@ esac # build->target linker and hope that it will have the same features # as the host->target linker we'll be using. echo $ac_n "checking what linker to use""... $ac_c" 1>&6 -echo "configure:5921: checking what linker to use" >&5 +echo "configure:5931: checking what linker to use" >&5 in_tree_ld=no gcc_cv_ld= gcc_cv_gld_major_version= @@ -6025,7 +6035,7 @@ esac # Figure out what nm we will be using. gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils echo $ac_n "checking what nm to use""... $ac_c" 1>&6 -echo "configure:6029: checking what nm to use" >&5 +echo "configure:6039: checking what nm to use" >&5 in_tree_nm=no if test -x nm$host_exeext; then gcc_cv_nm=./nm$host_exeext @@ -6048,7 +6058,7 @@ esac # Figure out what objdump we will be using. echo $ac_n "checking what objdump to use""... $ac_c" 1>&6 -echo "configure:6052: checking what objdump to use" >&5 +echo "configure:6062: checking what objdump to use" >&5 in_tree_objdump=no if test -x objdump$host_exeext; then gcc_cv_objdump=./objdump$host_exeext @@ -6073,7 +6083,7 @@ esac # Figure out what assembler alignment features are present. echo $ac_n "checking assembler for .balign and .p2align""... $ac_c" 1>&6 -echo "configure:6077: checking assembler for .balign and .p2align" >&5 +echo "configure:6087: checking assembler for .balign and .p2align" >&5 if eval "test \"`echo '$''{'gcc_cv_as_balign_and_p2align'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6085,7 +6095,7 @@ fi elif test x$gcc_cv_as != x; then echo '.balign 4 .p2align 2' > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_balign_and_p2align=yes else @@ -6105,7 +6115,7 @@ EOF fi echo $ac_n "checking assembler for .p2align with maximum skip""... $ac_c" 1>&6 -echo "configure:6109: checking assembler for .p2align with maximum skip" >&5 +echo "configure:6119: checking assembler for .p2align with maximum skip" >&5 if eval "test \"`echo '$''{'gcc_cv_as_max_skip_p2align'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6116,7 +6126,7 @@ else fi elif test x$gcc_cv_as != x; then echo '.p2align 4,,7' > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_max_skip_p2align=yes else @@ -6136,7 +6146,7 @@ EOF fi echo $ac_n "checking assembler for working .subsection -1""... $ac_c" 1>&6 -echo "configure:6140: checking assembler for working .subsection -1" >&5 +echo "configure:6150: checking assembler for working .subsection -1" >&5 if eval "test \"`echo '$''{'gcc_cv_as_subsection_m1'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6151,7 +6161,7 @@ fi .subsection -1 conftest_label2: .word 0 .previous' > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then if test x$gcc_cv_nm != x; then $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1 @@ -6179,7 +6189,7 @@ EOF fi echo $ac_n "checking assembler for .weak""... $ac_c" 1>&6 -echo "configure:6183: checking assembler for .weak" >&5 +echo "configure:6193: checking assembler for .weak" >&5 if eval "test \"`echo '$''{'gcc_cv_as_weak'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6190,7 +6200,7 @@ else fi elif test x$gcc_cv_as != x; then echo ' .weak foobar' > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_weak=yes else @@ -6217,7 +6227,7 @@ fi # to be safe. # The gcc_GAS_CHECK_FEATURE call just sets a cache variable. echo $ac_n "checking assembler for .hidden""... $ac_c" 1>&6 -echo "configure:6221: checking assembler for .hidden" >&5 +echo "configure:6231: checking assembler for .hidden" >&5 if eval "test \"`echo '$''{'gcc_cv_as_hidden'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6230,7 +6240,7 @@ fi elif test x$gcc_cv_as != x; then echo ' .hidden foobar foobar:' > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_hidden=yes else @@ -6245,7 +6255,7 @@ echo "$ac_t""$gcc_cv_as_hidden" 1>&6 echo $ac_n "checking linker for .hidden support""... $ac_c" 1>&6 -echo "configure:6249: checking linker for .hidden support" >&5 +echo "configure:6259: checking linker for .hidden support" >&5 if eval "test \"`echo '$''{'gcc_cv_ld_hidden'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6308,7 +6318,7 @@ fi # Check if we have .[us]leb128, and support symbol arithmetic with it. echo $ac_n "checking assembler for .sleb128 and .uleb128""... $ac_c" 1>&6 -echo "configure:6312: checking assembler for .sleb128 and .uleb128" >&5 +echo "configure:6322: checking assembler for .sleb128 and .uleb128" >&5 if eval "test \"`echo '$''{'gcc_cv_as_leb128'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6325,7 +6335,7 @@ L1: .uleb128 1280 .sleb128 -1010 L2:' > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then # GAS versions before 2.11 do not support uleb128, # despite appearing to. @@ -6361,7 +6371,7 @@ fi # GAS versions up to and including 2.11.0 may mis-optimize # .eh_frame data. echo $ac_n "checking assembler for eh_frame optimization""... $ac_c" 1>&6 -echo "configure:6365: checking assembler for eh_frame optimization" >&5 +echo "configure:6375: checking assembler for eh_frame optimization" >&5 if eval "test \"`echo '$''{'gcc_cv_as_eh_frame'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6404,7 +6414,7 @@ __FRAME_BEGIN__: .byte 0x4 .4byte .L1-.LFB1 .LEFDE1:' > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then cat > conftest.lit <<EOF 0000 10000000 00000000 017a0001 781a0004 .........z..x... @@ -6425,7 +6435,7 @@ EOF || cmp conftest.big conftest.got > /dev/null 2>&1; } then gcc_cv_as_eh_frame=yes - elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'; { (eval echo configure:6429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then + elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'; { (eval echo configure:6439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then gcc_cv_as_eh_frame=buggy else # Uh oh, what do we do now? @@ -6450,7 +6460,7 @@ EOF fi echo $ac_n "checking assembler for section merging support""... $ac_c" 1>&6 -echo "configure:6454: checking assembler for section merging support" >&5 +echo "configure:6464: checking assembler for section merging support" >&5 if eval "test \"`echo '$''{'gcc_cv_as_shf_merge'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6462,7 +6472,7 @@ else fi elif test x$gcc_cv_as != x; then echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s - if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'; { (eval echo configure:6466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'; { (eval echo configure:6476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_shf_merge=yes else @@ -6688,7 +6698,7 @@ if test -z "$tls_first_major"; then : # If we don't have a check, assume no support. else echo $ac_n "checking assembler for thread-local storage support""... $ac_c" 1>&6 -echo "configure:6692: checking assembler for thread-local storage support" >&5 +echo "configure:6702: checking assembler for thread-local storage support" >&5 if eval "test \"`echo '$''{'gcc_cv_as_tls'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6699,7 +6709,7 @@ else fi elif test x$gcc_cv_as != x; then echo "$conftest_s" > conftest.s - if { ac_try='$gcc_cv_as $tls_as_opt --fatal-warnings -o conftest.o conftest.s >&5'; { (eval echo configure:6703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as $tls_as_opt --fatal-warnings -o conftest.o conftest.s >&5'; { (eval echo configure:6713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_tls=yes else @@ -6725,7 +6735,7 @@ case "$target" in # All TARGET_ABI_OSF targets. alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*) echo $ac_n "checking assembler for explicit relocation support""... $ac_c" 1>&6 -echo "configure:6729: checking assembler for explicit relocation support" >&5 +echo "configure:6739: checking assembler for explicit relocation support" >&5 if eval "test \"`echo '$''{'gcc_cv_as_alpha_explicit_relocs'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6748,7 +6758,7 @@ fi ldah $1, d($29) !gprelhigh lda $1, d($1) !gprellow lda $29, 0($29) !gpdisp!3' > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_alpha_explicit_relocs=yes else @@ -6770,14 +6780,14 @@ fi sparc*-*-*) echo $ac_n "checking assembler for .register""... $ac_c" 1>&6 -echo "configure:6774: checking assembler for .register" >&5 +echo "configure:6784: checking assembler for .register" >&5 if eval "test \"`echo '$''{'gcc_cv_as_sparc_register_op'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else gcc_cv_as_sparc_register_op=no if test x$gcc_cv_as != x; then echo '.register %g2, #scratch' > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_sparc_register_op=yes else @@ -6797,14 +6807,14 @@ EOF fi echo $ac_n "checking assembler for -relax option""... $ac_c" 1>&6 -echo "configure:6801: checking assembler for -relax option" >&5 +echo "configure:6811: checking assembler for -relax option" >&5 if eval "test \"`echo '$''{'gcc_cv_as_sparc_relax'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else gcc_cv_as_sparc_relax=no if test x$gcc_cv_as != x; then echo '.text' > conftest.s - if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'; { (eval echo configure:6808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'; { (eval echo configure:6818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_sparc_relax=yes else @@ -6824,7 +6834,7 @@ EOF fi echo $ac_n "checking assembler for unaligned pcrel relocs""... $ac_c" 1>&6 -echo "configure:6828: checking assembler for unaligned pcrel relocs" >&5 +echo "configure:6838: checking assembler for unaligned pcrel relocs" >&5 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6837,7 +6847,7 @@ foo: .align 4 .byte 0 .uaword %r_disp32(foo)' > conftest.s - if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'; { (eval echo configure:6841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'; { (eval echo configure:6851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then if test x$gcc_cv_ld != x \ && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then @@ -6860,7 +6870,7 @@ EOF echo $ac_n "checking assembler for unaligned pcrel relocs against hidden symbols""... $ac_c" 1>&6 -echo "configure:6864: checking assembler for unaligned pcrel relocs against hidden symbols" >&5 +echo "configure:6874: checking assembler for unaligned pcrel relocs against hidden symbols" >&5 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel_hidden'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6875,7 +6885,7 @@ else .hidden foo foo: .skip 4' > conftest.s - if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'; { (eval echo configure:6879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'; { (eval echo configure:6889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \ && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \ @@ -6908,7 +6918,7 @@ fi fi # unaligned pcrel relocs echo $ac_n "checking assembler for offsetable %lo()""... $ac_c" 1>&6 -echo "configure:6912: checking assembler for offsetable %lo()" >&5 +echo "configure:6922: checking assembler for offsetable %lo()" >&5 if eval "test \"`echo '$''{'gcc_cv_as_sparc_offsetable_lo10'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6917,7 +6927,7 @@ else echo '.text or %g1, %lo(ab) + 12, %g1 or %g1, %lo(ab + 12), %g1' > conftest.s - if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'; { (eval echo configure:6921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'; { (eval echo configure:6931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then if test x$gcc_cv_objdump != x \ && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \ @@ -6943,7 +6953,7 @@ fi i[34567]86-*-* | x86_64-*-*) echo $ac_n "checking assembler for filds and fists mnemonics""... $ac_c" 1>&6 -echo "configure:6947: checking assembler for filds and fists mnemonics" >&5 +echo "configure:6957: checking assembler for filds and fists mnemonics" >&5 if eval "test \"`echo '$''{'gcc_cv_as_ix86_filds_fists'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6954,7 +6964,7 @@ else fi elif test x$gcc_cv_as != x; then echo 'filds mem; fists mem' > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_ix86_filds_fists=yes else @@ -6974,14 +6984,14 @@ EOF fi echo $ac_n "checking assembler for cmov syntax""... $ac_c" 1>&6 -echo "configure:6978: checking assembler for cmov syntax" >&5 +echo "configure:6988: checking assembler for cmov syntax" >&5 if eval "test \"`echo '$''{'gcc_cv_as_ix86_cmov_sun_syntax'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else gcc_cv_as_ix86_cmov_sun_syntax=no if test x$gcc_cv_as != x; then echo 'cmovl.l %edx, %eax' > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_ix86_cmov_sun_syntax=yes else @@ -7003,7 +7013,7 @@ fi # This one is used unconditionally by i386.[ch]; it is to be defined # to 1 if the feature is present, 0 otherwise. echo $ac_n "checking assembler for GOTOFF in data""... $ac_c" 1>&6 -echo "configure:7007: checking assembler for GOTOFF in data" >&5 +echo "configure:7017: checking assembler for GOTOFF in data" >&5 if eval "test \"`echo '$''{'gcc_cv_as_ix86_gotoff_in_data'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7018,7 +7028,7 @@ fi nop .data .long .L0@GOTOFF' > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:7022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:7032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_ix86_gotoff_in_data=yes else @@ -7039,7 +7049,7 @@ EOF ia64*-*-*) echo $ac_n "checking assembler for ltoffx and ldxmov relocs""... $ac_c" 1>&6 -echo "configure:7043: checking assembler for ltoffx and ldxmov relocs" >&5 +echo "configure:7053: checking assembler for ltoffx and ldxmov relocs" >&5 if eval "test \"`echo '$''{'gcc_cv_as_ia64_ltoffx_ldxmov_relocs'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7053,7 +7063,7 @@ fi addl r15 = @ltoffx(x#), gp ;; ld8.mov r16 = [r15], x#' > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:7057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:7067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes else @@ -7083,7 +7093,7 @@ fi mfcr 3,128" echo $ac_n "checking assembler for mfcr field support""... $ac_c" 1>&6 -echo "configure:7087: checking assembler for mfcr field support" >&5 +echo "configure:7097: checking assembler for mfcr field support" >&5 if eval "test \"`echo '$''{'gcc_cv_as_powerpc_mfcrf'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7094,7 +7104,7 @@ else fi elif test x$gcc_cv_as != x; then echo "$conftest_s" > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:7098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:7108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_powerpc_mfcrf=yes else @@ -7116,7 +7126,7 @@ fi mips*-*-*) echo $ac_n "checking assembler for explicit relocation support""... $ac_c" 1>&6 -echo "configure:7120: checking assembler for explicit relocation support" >&5 +echo "configure:7130: checking assembler for explicit relocation support" >&5 if eval "test \"`echo '$''{'gcc_cv_as_mips_explicit_relocs'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7127,7 +7137,7 @@ else fi elif test x$gcc_cv_as != x; then echo ' lw $4,%gp_rel(foo)($4)' > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:7131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:7141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_mips_explicit_relocs=yes else @@ -7173,7 +7183,7 @@ if test x"$insn" != x; then .loc 1 3 0 $insn" echo $ac_n "checking assembler for dwarf2 debug_line support""... $ac_c" 1>&6 -echo "configure:7177: checking assembler for dwarf2 debug_line support" >&5 +echo "configure:7187: checking assembler for dwarf2 debug_line support" >&5 if eval "test \"`echo '$''{'gcc_cv_as_dwarf2_debug_line'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7185,7 +7195,7 @@ else fi elif test x$gcc_cv_as != x; then echo "$conftest_s" > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:7189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:7199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then # ??? This fails with non-gnu grep. Maybe use objdump? if grep debug_line conftest.o > /dev/null 2>&1; then @@ -7207,7 +7217,7 @@ echo "$ac_t""$gcc_cv_as_dwarf2_debug_line" 1>&6 # by DW_AT_decl_file. Approximate this test by testing if # the assembler bitches if the same index is assigned twice. echo $ac_n "checking assembler for buggy dwarf2 .file directive""... $ac_c" 1>&6 -echo "configure:7211: checking assembler for buggy dwarf2 .file directive" >&5 +echo "configure:7221: checking assembler for buggy dwarf2 .file directive" >&5 if eval "test \"`echo '$''{'gcc_cv_as_dwarf2_file_buggy'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7215,7 +7225,7 @@ else if test x$gcc_cv_as != x; then echo ' .file 1 "foo.s" .file 1 "bar.s"' > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:7219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:7229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_dwarf2_file_buggy=yes else @@ -7238,7 +7248,7 @@ EOF fi echo $ac_n "checking assembler for --gdwarf2 option""... $ac_c" 1>&6 -echo "configure:7242: checking assembler for --gdwarf2 option" >&5 +echo "configure:7252: checking assembler for --gdwarf2 option" >&5 if eval "test \"`echo '$''{'gcc_cv_as_gdwarf2_flag'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7250,7 +7260,7 @@ else fi elif test x$gcc_cv_as != x; then echo "$insn" > conftest.s - if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'; { (eval echo configure:7254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'; { (eval echo configure:7264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_gdwarf2_flag=yes else @@ -7270,7 +7280,7 @@ EOF fi echo $ac_n "checking assembler for --gstabs option""... $ac_c" 1>&6 -echo "configure:7274: checking assembler for --gstabs option" >&5 +echo "configure:7284: checking assembler for --gstabs option" >&5 if eval "test \"`echo '$''{'gcc_cv_as_gstabs_flag'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7282,12 +7292,12 @@ else fi elif test x$gcc_cv_as != x; then echo "$insn" > conftest.s - if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'; { (eval echo configure:7286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'; { (eval echo configure:7296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then # The native Solaris 9/Intel assembler doesn't understand --gstabs # and warns about it, but still exits successfully. So check for # this. - if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'; { (eval echo configure:7291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'; { (eval echo configure:7301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then : else gcc_cv_as_gstabs_flag=yes fi @@ -7309,7 +7319,7 @@ fi fi echo $ac_n "checking linker read-only and read-write section mixing""... $ac_c" 1>&6 -echo "configure:7313: checking linker read-only and read-write section mixing" >&5 +echo "configure:7323: checking linker read-only and read-write section mixing" >&5 gcc_cv_ld_ro_rw_mix=unknown if test $in_tree_ld = yes ; then if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \ @@ -7348,7 +7358,7 @@ fi echo "$ac_t""$gcc_cv_ld_ro_rw_mix" 1>&6 echo $ac_n "checking linker PT_GNU_EH_FRAME support""... $ac_c" 1>&6 -echo "configure:7352: checking linker PT_GNU_EH_FRAME support" >&5 +echo "configure:7362: checking linker PT_GNU_EH_FRAME support" >&5 gcc_cv_ld_eh_frame_hdr=no if test $in_tree_ld = yes ; then if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \ @@ -7370,7 +7380,7 @@ fi echo "$ac_t""$gcc_cv_ld_eh_frame_hdr" 1>&6 echo $ac_n "checking linker position independent executable support""... $ac_c" 1>&6 -echo "configure:7374: checking linker position independent executable support" >&5 +echo "configure:7384: checking linker position independent executable support" >&5 gcc_cv_ld_pie=no if test $in_tree_ld = yes ; then if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \ @@ -7395,7 +7405,7 @@ echo "$ac_t""$gcc_cv_ld_pie" 1>&6 case "$target" in mips*-*-*) echo $ac_n "checking whether libgloss uses STARTUP directives consistently""... $ac_c" 1>&6 -echo "configure:7399: checking whether libgloss uses STARTUP directives consistently" >&5 +echo "configure:7409: checking whether libgloss uses STARTUP directives consistently" >&5 gcc_cv_mips_libgloss_startup=no gcc_cv_libgloss_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/libgloss if test "x$exec_prefix" = xNONE; then @@ -7597,7 +7607,7 @@ fi echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 -echo "configure:7601: checking whether to enable maintainer-specific portions of Makefiles" >&5 +echo "configure:7611: checking whether to enable maintainer-specific portions of Makefiles" >&5 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then enableval="$enable_maintainer_mode" diff --git a/gcc/configure.in b/gcc/configure.in index 6cb114c1dc3..916f3384da4 100644 --- a/gcc/configure.in +++ b/gcc/configure.in @@ -1458,7 +1458,17 @@ CC_FOR_BUILD='$(CC)' AC_SUBST(CC_FOR_BUILD) BUILD_CFLAGS='$(ALL_CFLAGS)' AC_SUBST(BUILD_CFLAGS) STMP_FIXINC=stmp-fixinc AC_SUBST(STMP_FIXINC) -STMP_FIXPROTO=stmp-fixproto AC_SUBST(STMP_FIXPROTO) + +# Possibly disable fixproto, on a per-target basis. +case ${use_fixproto} in + no) + STMP_FIXPROTO= + ;; + yes) + STMP_FIXPROTO=stmp-fixproto + ;; +esac +AC_SUBST(STMP_FIXPROTO) # And these apply if build != host, or we are generating coverage data if test x$build != x$host || test "x$coverage_flags" != x |