aboutsummaryrefslogtreecommitdiff
path: root/gcc/configure.ac
diff options
context:
space:
mode:
authorJozef Lawrynowicz <jozef.l@mittosystems.com>2020-09-08 11:31:02 +0100
committerJozef Lawrynowicz <jozef.l@mittosystems.com>2020-09-08 11:31:56 +0100
commitb75863a88ececd4fcce9e3b35df8d91b82cf4fc5 (patch)
tree09a54f6faef5d0215796402f66b81572a99ca0b1 /gcc/configure.ac
parent285d81be9725acc36dc8eca48d4df506cd5e6f6f (diff)
downloadgcc-b75863a88ececd4fcce9e3b35df8d91b82cf4fc5.zip
gcc-b75863a88ececd4fcce9e3b35df8d91b82cf4fc5.tar.gz
gcc-b75863a88ececd4fcce9e3b35df8d91b82cf4fc5.tar.bz2
MSP430: Fix detection of assembler support for .mspabi_attribute
The assembly code ".mspabi_attribute 4,1" uses the object attribute mechanism to indicate that the 430 ISA is in use. However, the default ISA is 430X, so GAS fails to assemble this since the ISA wasn't also set to 430 on the command line. gcc/ChangeLog: * config/msp430/msp430.c (msp430_file_end): Fix jumbled HAVE_AS_MSPABI_ATTRIBUTE and HAVE_AS_GNU_ATTRIBUTE checks. * configure: Regenerate. * configure.ac: Use ".mspabi_attribute 4,2" to check for assembler support for this object attribute directive.
Diffstat (limited to 'gcc/configure.ac')
-rw-r--r--gcc/configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 0f11238..6a233a3c 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -5041,7 +5041,7 @@ pointers into PC-relative form.])
[Define if your assembler supports .gnu_attribute.])])
gcc_GAS_CHECK_FEATURE([.mspabi_attribute support],
gcc_cv_as_msp430_mspabi_attribute, [2,33,50],,
- [.mspabi_attribute 4,1],,
+ [.mspabi_attribute 4,2],,
[AC_DEFINE(HAVE_AS_MSPABI_ATTRIBUTE, 1,
[Define if your assembler supports .mspabi_attribute.])])
if test x$enable_newlib_nano_formatted_io = xyes; then