This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, ping] PR 38018 & 37565 - Option pragma and attribute handling
- From: Ian Lance Taylor <iant at google dot com>
- To: sje at cup dot hp dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 28 Oct 2009 07:03:33 -0700
- Subject: Re: [patch, ping] PR 38018 & 37565 - Option pragma and attribute handling
- References: <200910221644.n9MGiHJ05006@lucas.cup.hp.com>
Steve Ellcey <sje@cup.hp.com> writes:
> 2009-10-22 Steve Ellcey <sje@cup.hp.com>
>
> PR middle-end/37565
> PR target/38018
> * doc/tm.texi (OVERRIDE_OPTIONS): Update.
> (OVERRIDE_OPTIONS_AFTER_CHANGE): New.
> * optc-gen.awk (cl_target_option_restore): Include call to
> OVERRIDE_OPTIONS_AFTER_CHANGE.
> * c-common.c (parse_optimize_options): Call
> OVERRIDE_OPTIONS_AFTER_CHANGE.
> * ia64-protos.h (ia64_override_options_after_change): New.
> * ia64.h (OVERRIDE_OPTIONS_AFTER_CHANGE): New.
> * ia64.c (ia64_override_options_after_change): New.
> (ia64_override_options) Add call to above.
I can't see any reason to make this a macro rather than a target hook.
The default for the target hook would be hook_void_void. This patch
is OK if you make it a target hook.
Thanks.
Ian