This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Unit at time compilation mode III
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Richard dot Earnshaw at arm dot com
- Cc: Gabriel Dos Reis <gdr at integrable-solutions dot net>, Geert Bosch <bosch at gnat dot com>, Jan Hubicka <jh at suse dot cz>, Fergus Henderson <fjh at cs dot mu dot oz dot au>, Richard Henderson <rth at redhat dot com>, Zack Weinberg <zack at codesourcery dot com>, gcc-patches at gcc dot gnu dot org
- Date: 14 Feb 2003 19:29:00 -0200
- Subject: Re: Unit at time compilation mode III
- Organization: GCC Team, Red Hat
- References: <200302131531.h1DFV6911467@pc960.cambridge.arm.com>
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