This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, picochip] Disable exception flags which are unnecessary on a c-only port


Hello all,
The following patch disables exception flags for picochip since picochip is a c-only port. Committed to mainline as r164992.


Thanks
Hari

ChangeLog:
        * config/picochip/picochip.c (picochip_option_override): Disable
        exception flags for picochip.

Patch:

Index: gcc/config/picochip/picochip.c
===================================================================
--- gcc/config/picochip/picochip.c      (revision 164991)
+++ gcc/config/picochip/picochip.c      (working copy)
@@ -358,6 +358,11 @@
   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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]