[26/45] MSP430: Add -fno-exceptions multilib

Message ID 20230807111029.2320238-27-arsen@aarsen.me
State New
Headers
Series Synchronize shared build infrastructure with GCC tree |

Commit Message

Arsen Arsenović Aug. 7, 2023, 11:07 a.m. UTC
  From: Jozef Lawrynowicz <jozefl@gcc.gnu.org>

ChangeLog:

	* config-ml.in (msp430-*-*): Support --disable-no-exceptions configure
	flag.
---
 config-ml.in | 13 +++++++++++++
 1 file changed, 13 insertions(+)
  

Patch

diff --git a/config-ml.in b/config-ml.in
index 1c66748b65f..68854a4f16c 100644
--- a/config-ml.in
+++ b/config-ml.in
@@ -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