diff options
author | Roger Sayle <roger@eyesopen.com> | 2006-11-02 00:56:38 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2006-11-02 00:56:38 +0000 |
commit | 68b92f787e534dd1a1fff4e239fdf9e9f6aeb88c (patch) | |
tree | b4c4ef2e2161d7f7ffc787b9cd387863c9bd470c /gcc/configure | |
parent | fc354c12ad2ca565b7c45ef7493b43ae85d14f36 (diff) | |
download | gcc-68b92f787e534dd1a1fff4e239fdf9e9f6aeb88c.zip gcc-68b92f787e534dd1a1fff4e239fdf9e9f6aeb88c.tar.gz gcc-68b92f787e534dd1a1fff4e239fdf9e9f6aeb88c.tar.bz2 |
configure.ac (HAVE_AS_IX86_DIFF_SECT_DELTA): New test to determine whether the assembler supports taking the difference of...
* configure.ac (HAVE_AS_IX86_DIFF_SECT_DELTA): New test to determine
whether the assembler supports taking the difference of symbols in
different sections. On x86/Solaris, GAS does but Solaris as doesn't.
* configure: Regenerate.
* config.in: Regenerate.
* config/i386/sol2-10.h (JUMP_TABLES_IN_TEXT_SECTION): Define if
the assembler doesn't support taking the difference of symbols in
different sections, i.e. we're using the native solaris assembler.
From-SVN: r118405
Diffstat (limited to 'gcc/configure')
-rwxr-xr-x | gcc/configure | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/gcc/configure b/gcc/configure index 2e2b0bc..582e37b 100755 --- a/gcc/configure +++ b/gcc/configure @@ -15253,6 +15253,45 @@ _ACEOF fi + echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5 +echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6 +if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + gcc_cv_as_ix86_diff_sect_delta=no + if test x$gcc_cv_as != x; then + echo '.section .rodata +.L1: + .long .L2-.L1 + .long .L3-.L1 + .text +.L3: nop +.L2: nop' > conftest.s + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } + then + gcc_cv_as_ix86_diff_sect_delta=yes + else + echo "configure: failed program was" >&5 + cat conftest.s >&5 + fi + rm -f conftest.o conftest.s + fi +fi +echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5 +echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6 +if test $gcc_cv_as_ix86_diff_sect_delta = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_AS_IX86_DIFF_SECT_DELTA 1 +_ACEOF + +fi + # This one is used unconditionally by i386.[ch]; it is to be defined # to 1 if the feature is present, 0 otherwise. echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5 |