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: proposal: Default settings from environment


On Tue, Mar 11, 2003 at 12:50:58PM -0500, Neal D. Becker wrote:
> 
> This is a good point.  I think that if gcc -v reported all options, including 
> settings from the environment, that this problem would be addressed.  When 
> reporting bugs, users are supposed to include the output of gcc -v, right?

Yes.

(To see what kinds of output this "dump all options" might give, compile
something with "-S -fverbose-asm" and then look at the comments at the
top of the assembly output file.)

For this to be more useful, we'd have to annotate the printed options with
some "this has been changed from the spec'd default" marker, e.g.,

    -ffoo -fbar *-fuser-added -fbaz


There's also a standing wishlist request for storing the options into the
.o file.  I stopped working on that one for similar reasons.


Phil

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams


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