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

login
register
mail settings
Submitter Hariharan Sandanagobalane
Date Oct. 5, 2010, 3:52 p.m.
Message ID <4CAB49CE.60503@picochip.com>
Download mbox | patch
Permalink /patch/66838/
State New
Headers show

Comments

Hariharan Sandanagobalane - Oct. 5, 2010, 3:52 p.m.
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:

       trash the instruction modes (e.g., instructions are changed to
Richard Henderson - Oct. 5, 2010, 4:40 p.m.
On 10/05/2010 08:52 AM, Hariharan Sandanagobalane wrote:
> The following patch disables exception flags for picochip since
> picochip is a c-only port. Committed to mainline as r164992.
...
> ChangeLog:
>         * config/picochip/picochip.c (picochip_option_override): Disable
>         exception flags for picochip.

This change is incorrect.  Please mirror

2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>

        * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
        sjlj_except_unwind_info.

instead.


r~

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