MSP430: Add -fno-exceptions multilib
authorJozef Lawrynowicz <jozefl@gcc.gnu.org>
Mon, 7 Aug 2023 11:07:29 +0000 (13:07 +0200)
committerAlan Modra <amodra@gmail.com>
Sat, 12 Aug 2023 00:54:26 +0000 (10:24 +0930)
* config-ml.in (msp430-*-*): Support --disable-no-exceptions configure
flag.

config-ml.in

index 1c66748b65fc0a2b82bb0d9cd6f1618de182055f..68854a4f16c2bfcd48a8d721d4c28f0a602148cf 100644 (file)
@@ -383,6 +383,19 @@ mips*-*-*)
          done
        fi
        ;;
+msp430-*-*)
+       if [ x$enable_no_exceptions = xno ]
+       then
+         old_multidirs="${multidirs}"
+         multidirs=""
+         for x in ${old_multidirs}; do
+           case "$x" in
+             *no-exceptions* ) : ;;
+             *) multidirs="${multidirs} ${x}" ;;
+           esac
+         done
+       fi
+       ;;
 powerpc*-*-* | rs6000*-*-*)
        if [ x$enable_aix64 = xno ]
        then