public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/13577] New: multiple -o options with -c cause unrecognized option `-strip'
@ 2004-01-06  1:31 robbat2 at gentoo dot org
  2004-01-06  1:51 ` [Bug driver/13577] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: robbat2 at gentoo dot org @ 2004-01-06  1:31 UTC (permalink / raw)
  To: gcc-bugs

affects all of gcc-3.3{,.1,.2}
does not effect gcc-3.2*
gcc-3.3.3 and 3.4 not tested,

basically, if you run:
# gcc -c test.c -o test.o -o test2.o
gcc doesn't compile and gives this output:
cc1: error: unrecognized option `-strip'
cc1: error: output filename specified twice

contents of test.c:
int main(int argc,char* argv[]) {
    return 0;
}

or you can have an empty file, you get the same results.

primary testcase:
1. build stock gcc-3.3* as ./configure --disable-libgcj --enable-languages=c
2. create test.c as noted above
3. run: PATH=".:/bin:/sbin:/usr/bin:/usr/sbin" ./xgcc -v -c test.c -o test.o -o 
test2.o

output:
Using built-in specs.
Configured with: ./configure --disable-libgcj --enable-languages=c
Thread model: posix
gcc version 3.3.2
 cc1 -quiet -v -iprefix ./../lib/gcc-lib/i686-pc-linux-gnu/3.3.2/ -D__GNUC__=3
-D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=2 test.c -quiet -dumpbase test.c
-auxbase-strip test.o -strip test2.o -version -o /tmp/ccDKgzen.s
cc1: error: unrecognized option `-strip'
cc1: error: output filename specified twice
GNU C version 3.3.2 (i686-pc-linux-gnu)
        compiled by GNU C version 3.3.2.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072

note the extra '-strip test2.o' in the call to cc1

expected results:
binary object should be produced.

i originally reported the bug to gentoo here:
http://bugs.gentoo.org/show_bug.cgi?id=32763
and produced this stock reproducable testcase.

-- 
           Summary: multiple -o options with -c cause unrecognized option `-
                    strip'
           Product: gcc
           Version: 3.3
            Status: UNCONFIRMED
          Severity: critical
          Priority: P1
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: robbat2 at gentoo dot org
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13577


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2004-03-13  0:47 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-06  1:31 [Bug middle-end/13577] New: multiple -o options with -c cause unrecognized option `-strip' robbat2 at gentoo dot org
2004-01-06  1:51 ` [Bug driver/13577] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
2004-01-11  0:01 ` pinskia at gcc dot gnu dot org
2004-01-11  0:37 ` pinskia at gcc dot gnu dot org
2004-03-04 18:51 ` [Bug driver/13577] [3.3/3.4/3.5 " pappy at gentoo dot org
2004-03-05 13:53 ` nathan at gcc dot gnu dot org
2004-03-05 13:54 ` cvs-commit at gcc dot gnu dot org
2004-03-05 13:57 ` cvs-commit at gcc dot gnu dot org
2004-03-05 14:38 ` giovannibajo at libero dot it
2004-03-05 15:18 ` [Bug driver/13577] [3.3 " pinskia at gcc dot gnu dot org
2004-03-05 15:31 ` nathan at gcc dot gnu dot org
2004-03-13  0:45 ` cvs-commit at gcc dot gnu dot org
2004-03-13  0:47 ` gdr at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).