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: [4.7] Avoid global state in pa_handle_option


> Tested building cc1 and xgcc for cross to hppa2.0w-hp-hpux11.23.  Will
> commit to trunk for 4.7 in the absence of target maintainer
> objections.
> 
> 2011-03-06  Joseph Myers  <joseph@codesourcery.com>
> 
> 	* config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
> 	(munix=93): Use Var.
> 	* config/pa/pa-hpux1010.opt (munix=95): Use Var.
> 	* config/pa/pa-hpux1111.opt (munix=98): Use Var.
> 	* config/pa/pa-opts.h: New.
> 	* config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
> 	(pa_handle_option): Don't assert that global structures are in
> 	use.  Access target_flags via opts pointer.  Don't handle
> 	OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
> 	OPT_munix_98 here.
> 	(pa_option_override): Handle deferred OPT_mfixed_range_.

Looks good.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)


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