On Sun, Jan 2, 2011 at 9:24 PM, Ian Lance Taylor <i...@google.com> wrote: > Richard Guenther <richard.guent...@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 >