]> gcc.gnu.org Git - gcc.git/blobdiff - gcc/config/msp430/msp430.c
MSP430: Add new msp430-elfbare target
[gcc.git] / gcc / config / msp430 / msp430.c
index 4ebdcf51e8b14ea483c457758563bf126bb13ac8..cce41011aef8aa95593507cec7e9efe8f58688b8 100644 (file)
@@ -288,6 +288,16 @@ msp430_option_override (void)
   if (TARGET_OPT_SPACE && optimize < 3)
     optimize_size = 1;
 
+#if !DEFAULT_USE_CXA_ATEXIT
+  /* For some configurations, we use atexit () instead of __cxa_atexit () by
+     default to save on code size and remove the declaration of __dso_handle
+     from the CRT library.
+     Configuring GCC with --enable-__cxa-atexit re-enables it by defining
+     DEFAULT_USE_CXA_ATEXIT to 1.  */
+  if (flag_use_cxa_atexit)
+    error ("%<-fuse-cxa-atexit%> is not supported for msp430-elf");
+#endif
+
 #ifndef HAVE_NEWLIB_NANO_FORMATTED_IO
   if (TARGET_TINY_PRINTF)
     error ("GCC must be configured with %<--enable-newlib-nano-formatted-io%> "
This page took 0.031008 seconds and 5 git commands to generate.