From b75863a88ececd4fcce9e3b35df8d91b82cf4fc5 Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Tue, 8 Sep 2020 11:31:02 +0100 Subject: 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. --- gcc/configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/configure') diff --git a/gcc/configure b/gcc/configure index 0f7a8db..0a09777 100755 --- a/gcc/configure +++ b/gcc/configure @@ -27981,7 +27981,7 @@ else then gcc_cv_as_msp430_mspabi_attribute=yes fi elif test x$gcc_cv_as != x; then - $as_echo '.mspabi_attribute 4,1' > conftest.s + $as_echo '.mspabi_attribute 4,2' > conftest.s if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 -- cgit v1.1