picochip.c (picochip_option_override): Disable exception flags for picochip.
authorHariharan Sandanagobalane <hariharan@picochip.com>
Tue, 5 Oct 2010 15:52:33 +0000 (15:52 +0000)
committerHariharan Sandanagobalane <hariharans@gcc.gnu.org>
Tue, 5 Oct 2010 15:52:33 +0000 (15:52 +0000)
        * config/picochip/picochip.c (picochip_option_override): Disable
          exception flags for picochip.

From-SVN: r164992

gcc/ChangeLog
gcc/config/picochip/picochip.c

index c5f5c4799b5c5adc8e3ee48ae89fcd7384f5d2e7..cf45a53ff12a07195353d59c2c02cd383b509be7 100644 (file)
@@ -1,3 +1,8 @@
+2010-09-29  Hariharan Sandanagobalane <hariharan@picochip.com>
+
+       * config/picochip/picochip.c (picochip_option_override): Disable
+       exception flags for picochip.
+
 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
 
        * opts-common.c (handle_option, handle_generated_option,
index 1671c41b6516fcd204c7c9fc0a4596922d6bd01d..50748edc898db01d840f18acab98b58f1ccb26d0 100644 (file)
@@ -358,6 +358,11 @@ picochip_option_override (void)
   if (optimize >= 1)
     flag_section_anchors = 1;
 
+  /* Exception flags are irrelevant to picochip. It causes failure in libgcc
+     functions. */
+    flag_non_call_exceptions = 0;
+    flag_exceptions = 0;
+
   /* Turn off the second scheduling pass, and move it to
      picochip_reorg, to avoid having the second jump optimisation
      trash the instruction modes (e.g., instructions are changed to