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: Compiler options as string?


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


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