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: [PATCH] add GCC_OPTIONS


David O'Brien wrote:-

> This patch takes an idea from GNU Grep and adds support for the
> "GCC_OPTIONS" environmental variable.  This is *very* useful when one is
> building a read-only source base and one needs to tweak the options used
> by GCC.  Examples are adding -g, -save-temps, -v, or -m32.
> 
> Unfortunately the more direct "env CC='gcc -g' make" often doesn't work
> as developers frightening often hard code "CC=gcc" in Makefiles, or worse
> just use "gcc" directly in the target's build rules.
> 
> OK to commit to main-line?

I think we'd discussed this before and the idea was rejected because
it would make bug reports harder to understand.  I don't know if this
is still the consensus.

Neil.


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