PR fortran/9038, a regression in 3.3/3.4 with respect to 3.2.

Neil Booth neil@daikokuya.co.uk
Wed Feb 19 21:07:00 GMT 2003


Geoff Keating wrote:-

> > I don't understand the problem.  I thought the original problem was that
> > the C front end doesn't accept the switch.  So I tell you how to get it
> > to accept it.  Then you say the problem is that the C front end accepts
> > the switch?
> > 
> > The correct place to modify C front end options is the big table in
> > c-opts.c; nowhere else.
> 
> The problem is that the C frontend accepts -ffixed-<regname>, not
> -ffixed-line-length-<n> or -ffixed-form.  I await the day that some
> chip has a register named 'form'...
> 
> We have a lot of problems in this area; for instance,
> -dynamic can mean 'pass -dynamic to the linker' or 'please switch on
> all these -d options'.  I'm not sure what can be done about it other
> than a complete redesign of GCC's options handling.

Ah, I see.  Unless c-opts.c returns -1 then independent_decode_option
looks at it too, and gets confused.

This is easy to fix: handle them in c-opts.c so they set result to -1.
No?  Toon?

Neil.



More information about the Gcc mailing list