This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Compiler options as string?
On Tue, 28 Sep 2010, Tobias Burnus wrote:
> Joseph S. Myers wrote:
> > > The bare strings are only available in toplev.c: toplev_main directly gets
> > They are only available in gcc.c. If you want what the user used then you
> > need to get it from gcc.c; if you want canonical forms after specs
> > processing, removal of overridden options etc. then use the canonical
> > forms of the decoded options to produce such a string as you wish
>
> I decided that the latter produces good output. Joseph, do you think that
> following patch basically OK? I export the decoded arguments via toplev.{c,o}
> - or should this be handled differently?
The general approach seems reasonable. The change to interface.c seems
unrelated to the rest of the patch.
--
Joseph S. Myers
joseph@codesourcery.com