This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: proposal: Default settings from environment
- From: <tm_gccmail at mail dot kloo dot net>
- To: "Neal D. Becker" <nbecker at hns dot com>
- Cc: Phil Edwards <phil at jaj dot com>, gcc at gcc dot gnu dot org
- Date: Tue, 11 Mar 2003 12:16:50 -0800 (PST)
- Subject: Re: proposal: Default settings from environment
On Tue, 11 Mar 2003, Neal D. Becker wrote:
> On Tuesday 11 March 2003 12:16 pm, Phil Edwards wrote:
> > > I think an easy way to do this would be for gcc to read default values
> > > from the environment. I imagine it would not be difficult to add such a
> > > patch.
> > >
> > > Before I submit a patch, I'd like to know what others think about this
> > > idea, or would anyone like to propose an alternative.
> >
> > It's been proposed many times before. The reason this is not done by
> > default is that it makes bug hunting more difficult; now the "default"
> > environment cannot be easily predicted based on the platform. Your users
> > might then report bugs to us that we have no way of reproducing, because
> > the -foo option was in use without the user ever having typed it.
> >
>
> 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?
GCC formerly reported all command-line options in comments in the
emitted assembly file. This is a nice feature I wish would return.
Toshi