This is the mail archive of the gcc@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: Behavior change of driver on multiple input assembly files


On Sun, Jan 2, 2011 at 9:24 PM, Ian Lance Taylor <iant@google.com> wrote:
> Richard Guenther <richard.guenther@gmail.com> writes:
>
>> Your small patch removing have_o || is ok I guess.
>
> Wait. ?That will change the behaviour of
> ? ?gcc -o foo.o -c f1.c f2.c f3.c
> Is that what we want?

Does it?  I don't think so.  Most of the combine handling was removed by
the patch that caused the regression, so -o and -c doesn't combine anymore
(with multiple sources).

> Also, right now the gccgo driver depends on the -o behaviour to combine
> inputs. ?If that changes, the driver will need to provide some other way
> to let the frontend force inputs to be combined.

For go it isn't equivalent to do gcgo -c t1.go; gcgo -c t2.go; gcgo t1.o t2.o
compared to gcgo t1.go t2.go?

Richard.

> Ian
>


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