This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: final intermodule patch
- From: Nathanael Nerode <neroden at twcny dot rr dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: geoffk at geoffk dot org
- Date: Mon, 14 Jul 2003 11:26:16 -0400
- Subject: Re: final intermodule patch
Nathan Sidwell wrote:
>Geoff,
>I think the command line option handling for the (excellent)
>intermodule mode is wrong.
>
> gcc -c file1.c file2.c
>gets me separate file1.o and file2.o objects.
> gcc -c file1.c file2.c -o foo.o
>gets me intermodule work. Yet I've not changed any *optimization*
>option.
>
>I'd guess users (we should canvas some) would think of intermodule
>stuff as an optimization, and be surprised that it is not triggered by
>a -O level (say -O4?) or a -fintermodule flag
I agree strongly with this. The current behavior is non-intuitive;
intermodule optimization is certainly what I think of as a
serious optimization, which should be off definitely at -O0 and -O1,
probably at -O2, and maybe even at -O3.
--
Nathanael Nerode <neroden at gcc.gnu.org>
http://home.twcny.rr.com/nerode/neroden/fdl.html