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: 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


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