This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [4.7] Avoid global state in pa_handle_option
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: joseph at codesourcery dot com (Joseph S. Myers)
- Cc: gcc-patches at gcc dot gnu dot org, law at redhat dot com, dave dot anglin at nrc-cnrc dot gc dot ca
- Date: Sun, 6 Mar 2011 21:12:20 -0500 (EST)
- Subject: 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)