aboutsummaryrefslogtreecommitdiff
path: root/gcc/configure.ac
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2006-11-02 00:56:38 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2006-11-02 00:56:38 +0000
commit68b92f787e534dd1a1fff4e239fdf9e9f6aeb88c (patch)
treeb4c4ef2e2161d7f7ffc787b9cd387863c9bd470c /gcc/configure.ac
parentfc354c12ad2ca565b7c45ef7493b43ae85d14f36 (diff)
downloadgcc-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.ac')
-rw-r--r--gcc/configure.ac12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac
index fca9fed..b089f60 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -2850,6 +2850,18 @@ foo: nop
[AC_DEFINE(HAVE_AS_IX86_FFREEP, 1,
[Define if your assembler supports the ffreep mnemonic.])])
+ gcc_GAS_CHECK_FEATURE([different section symbol subtraction],
+ gcc_cv_as_ix86_diff_sect_delta,,,
+ [.section .rodata
+.L1:
+ .long .L2-.L1
+ .long .L3-.L1
+ .text
+.L3: nop
+.L2: nop],,
+ [AC_DEFINE(HAVE_AS_IX86_DIFF_SECT_DELTA, 1,
+ [Define if your assembler supports the subtraction of symbols in different sections.])])
+
# This one is used unconditionally by i386.[ch]; it is to be defined
# to 1 if the feature is present, 0 otherwise.
gcc_GAS_CHECK_FEATURE([GOTOFF in data],