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: Unit at time compilation mode III


On Feb 13, 2003, Richard Earnshaw <rearnsha@arm.com> wrote:

> My point is that a user specifies the name of the file that he wants to 
> compile when invoking gcc.  He doesn't specify the name of each file that 
> that includes.  So file==unit in these circumstances.

Until you get to the point of compiling the same foo.c with different
-D options, that give you different object files that you then link
together.  You certainly don't expect inter-translation-unit
optimizations to apply just because the code comes from the same file,
do you? :-)

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


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