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]

Re: [patch, ping] PR 38018 & 37565 - Option pragma and attribute handling


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


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