[Patch,AVR]: Avoid unwind warning from toplev.c
Denis Chertykov
chertykov@gmail.com
Mon Oct 10 17:18:00 GMT 2011
2011/10/10 Georg-Johann Lay <avr@gjlay.de>:
> toplev.c complains about "unwind tables currently require a frame pointer for
> correctness".
>
> This patchlet supplies a fix to avoid build warnings/test fails in that it sets
> flag_omit_frame_pointer to 0 if unwind needs FP.
>
> toplev.c:process_options sets flag_unwind_tables depending on
> flag_non_call_exceptions and flag_asynchronous_unwind_tables after calling
> targetm.target_option.override() so that the test includes these flags, too.
>
> Ok?
>
> Johann
>
> * config/avr/avr.c (avr_option_override): Set
> flag_omit_frame_pointer to 0 if frame pointer is needed for
> unwinding.
>
Approved.
Denis.
More information about the Gcc-patches
mailing list