This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, picochip] Disable exception flags which are unnecessary on a c-only port
- From: Hariharan Sandanagobalane <hariharans at picochip dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 05 Oct 2010 16:52:46 +0100
- Subject: [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