summaryrefslogtreecommitdiff
path: root/gcc/configure
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-17 01:39:47 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-17 01:39:47 +0000
commitbb006a8485718d1bd1f0b115c8d1f489ead14e97 (patch)
tree0278d65c37795602590af63f453e4fe59489296b /gcc/configure
parentedc846fb17894250f56581ef689c225f322ff124 (diff)
downloadgcc-bb006a8485718d1bd1f0b115c8d1f489ead14e97.tar.gz
* configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check.
* configure, config.in: Rebuild. * config/i386/i386.c (ix86_output_addr_vec_elt): New. (ix86_output_addr_diff_elt): New. * config/i386/i386.h (ASM_OUTPUT_ADDR_VEC_ELT): Use them. (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise. (JUMP_TABLES_IN_TEXT_SECTION): New. * config/i386/i386.md (tablejump): Handle HAVE_AS_GOTOFF_IN_DATA. * config/i386/i386-protos.h: Update. * config/i386/386bsd.h, config/i386/beos-elf.h, config/i386/freebsd-aout.h, config/i386/freebsd.h, config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h, config/i386/netbsd-elf.h, config/i386/netbsd.h, config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/rtemself.h, config/i386/sco5.h, config/i386/sysv4.h, config/i386/x86-64.h (ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): Remove. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46303 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure')
-rwxr-xr-xgcc/configure34
1 files changed, 31 insertions, 3 deletions
diff --git a/gcc/configure b/gcc/configure
index 413db875718..e177db905ed 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -2057,7 +2057,7 @@ EOF
fi
# Find some useful tools
-for ac_prog in mawk gawk nawk awk
+for ac_prog in gawk mawk nawk awk
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
@@ -7487,11 +7487,39 @@ EOF
fi
echo "$ac_t""$gcc_cv_as_instructions" 1>&6
+
+ echo $ac_n "checking assembler GOTOFF in data directives""... $ac_c" 1>&6
+echo "configure:7493: checking assembler GOTOFF in data directives" >&5
+ gcc_cv_as_gotoff_in_data=no
+ if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x
+ then
+ if test "$gcc_cv_gas_major_version" -eq 2 \
+ -a "$gcc_cv_gas_minor_version" -ge 11 \
+ -o "$gcc_cv_gas_major_version" -gt 2; then
+ gcc_cv_as_gotoff_in_data=yes
+ fi
+ elif test x$gcc_cv_as != x; then
+ cat > conftest.s <<EOF
+ .text
+.L0:
+ nop
+ .data
+ .long .L0@GOTOFF
+EOF
+ if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
+ gcc_cv_as_gotoff_in_data=yes
+ fi
+ fi
+ cat >> confdefs.h <<EOF
+#define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_gotoff_in_data = yes; then echo 1; else echo 0; fi`
+EOF
+
+ echo "$ac_t""$gcc_cv_as_gotoff_in_data" 1>&6
;;
esac
echo $ac_n "checking assembler dwarf2 debug_line support""... $ac_c" 1>&6
-echo "configure:7495: checking assembler dwarf2 debug_line support" >&5
+echo "configure:7523: checking assembler dwarf2 debug_line support" >&5
gcc_cv_as_dwarf2_debug_line=no
# ??? Not all targets support dwarf2 debug_line, even within a version
# of gas. Moreover, we need to emit a valid instruction to trigger any
@@ -7683,7 +7711,7 @@ fi
echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
-echo "configure:7687: checking whether to enable maintainer-specific portions of Makefiles" >&5
+echo "configure:7715: 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"