This is the mail archive of the gcc@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: How is lang.opt processed?


On Sat, Mar 12, 2005 at 10:08:18AM -0800, Mike Stump wrote:
> On Friday, March 11, 2005, at 06:39  PM, Steve Kargl wrote:
> >What is even more appalling is that there is no way to inhibit the
> >swallowing of the options.
> 
> Sure there is, it is just a matter of code.  Check out --classpath and 
> option_map for example in gcc.c.  Sure seems like it isn't harder than 
> adding one line per option.  Would be even better if these were done by 
> a lang fragment that then combined to form this table, but, you get the 
> idea.

If lang.opt is the canonical method used to declare language
specific option, then there should be a feature in parsing
lang.opt to override all other options.  For example,

i8
F95 override
Set the default integer kind to double precision

Expecting someone working on only the Fortran frontend
to check gcc.c (or any other source file) for obscure
documentation is stupid.

-- 
Steve


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