This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/22544] [4.0/4.1 Regression] gcc ignores input file given on the command line
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Oct 2005 14:32:09 -0000
- Subject: [Bug driver/22544] [4.0/4.1 Regression] gcc ignores input file given on the command line
- References: <bug-22544-128@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from pinskia at gcc dot gnu dot org 2005-10-16 14:32 -------
(In reply to comment #7)
> Was the non-standard behaviour in 3.4 a bug or a feature? In any case, isn't it
> reasonable to mention the -combine option in the error message?
The behavior in 3.4 was a feature, IIRC not well documented one.
> Something like:
>
> fatal ("cannot specify -o with -c or -S with multiple files. Try -combine");
Well what happens when you do:
gcc -combine t.cc t.c -c -o t.o
We need an error but what should it be. I think leaving out the -combine will
not confuse
people as they should be reading the documention anyways.
> I don't have the gcc code, but you check for have_c && have_o, but can have_o
> ever be true for -S?
have_c is set for both -S and -c.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22544