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

No.  We always do

[ia32@gnu-1 gcc]$ gcc -o foo.o -c t1.c t2.c
gcc: cannot specify -o with -c, -S or -E with multiple files
[ia32@gnu-1 gcc]$ ./xgcc -B./ -o foo.o -c t1.c t2.c
xgcc: fatal error: cannot specify -o with -c, -S or -E with multiple files
compilation terminated.
[ia32@gnu-1 gcc]$


-- 
H.J.


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