This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Compiler options as string?
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gcc patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 25 Sep 2010 17:44:01 +0000 (UTC)
- Subject: Re: Compiler options as string?
- References: <4C9DEBA3.8080409@net-b.de>
On Sat, 25 Sep 2010, Tobias Burnus 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.
--
Joseph S. Myers
joseph@codesourcery.com