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
* [Bug driver/13577] [3.3/3.4 Regression] multiple -o options with -c cause unrecognized option `-strip'
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 ` pinskia at gcc dot gnu dot org
2004-01-11 0:01 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-06 1:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-06 01:51 -------
Caused by: <http://gcc.gnu.org/ml/gcc-patches/2002-08/msg00294.html>.
* gcc.c (cc1_options): Pass output file as auxbase when
appropriate.
* profile.c (init_branch_prob): FILENAME has already had ending
stripped.
* final.c (end_final): Likewise.
* toplev.c (aux_base_name): New global.
(compile_file): Pass aux_base_name to init init_branch_prob and
end_final.
(independent_decode_option, case 'a'): New auxinfo options.
(case 'd'): Protect against mising basename.
(do_compile): Initialize aux_base_name.
* toplev.h (aux_base_name): New global.
* doc/invoke.texi: Adjust documentation.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |nathan at gcc dot gnu dot
| |org
Severity|critical |normal
Status|UNCONFIRMED |NEW
Component|middle-end |driver
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-01-06 01:51:36
date| |
Summary|multiple -o options with -c |[3.3/3.4 Regression]
|cause unrecognized option `-|multiple -o options with -c
|strip' |cause unrecognized option `-
| |strip'
Target Milestone|--- |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13577
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug driver/13577] [3.3/3.4 Regression] multiple -o options with -c cause unrecognized option `-strip'
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
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-11 0:01 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |nathan at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13577
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug driver/13577] [3.3/3.4 Regression] multiple -o options with -c cause unrecognized option `-strip'
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
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-11 0:37 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13577
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug driver/13577] [3.3/3.4/3.5 Regression] multiple -o options with -c cause unrecognized option `-strip'
2004-01-06 1:31 [Bug middle-end/13577] New: multiple -o options with -c cause unrecognized option `-strip' robbat2 at gentoo dot org
` (2 preceding siblings ...)
2004-01-11 0:37 ` pinskia at gcc dot gnu dot org
@ 2004-03-04 18:51 ` pappy at gentoo dot org
2004-03-05 13:53 ` nathan at gcc dot gnu dot org
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pappy at gentoo dot org @ 2004-03-04 18:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pappy at gentoo dot org 2004-03-04 18:51 -------
hello
i would like to test a pre-official fix for this error before it will enter gcc
mainstream
is there something worked out already or do we just have to wait?
thanks,
Alex
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13577
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug driver/13577] [3.3/3.4/3.5 Regression] multiple -o options with -c cause unrecognized option `-strip'
2004-01-06 1:31 [Bug middle-end/13577] New: multiple -o options with -c cause unrecognized option `-strip' robbat2 at gentoo dot org
` (3 preceding siblings ...)
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
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: nathan at gcc dot gnu dot org @ 2004-03-05 13:53 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From nathan at gcc dot gnu dot org 2004-03-05 13:53 -------
2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
PR 13577
* gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
options.
Now to fix gas in to rejecting multiple -o options ...
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13577
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug driver/13577] [3.3/3.4/3.5 Regression] multiple -o options with -c cause unrecognized option `-strip'
2004-01-06 1:31 [Bug middle-end/13577] New: multiple -o options with -c cause unrecognized option `-strip' robbat2 at gentoo dot org
` (4 preceding siblings ...)
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
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-05 13:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-03-05 13:54 -------
Subject: Bug 13577
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: nathan@gcc.gnu.org 2004-03-05 13:54:22
Modified files:
gcc : gcc.c ChangeLog
Log message:
PR 13577
* gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
options.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gcc.c.diff?cvsroot=gcc&r1=1.410&r2=1.411
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.3058&r2=2.3059
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13577
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug driver/13577] [3.3/3.4/3.5 Regression] multiple -o options with -c cause unrecognized option `-strip'
2004-01-06 1:31 [Bug middle-end/13577] New: multiple -o options with -c cause unrecognized option `-strip' robbat2 at gentoo dot org
` (5 preceding siblings ...)
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
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-05 13:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-03-05 13:57 -------
Subject: Bug 13577
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: nathan@gcc.gnu.org 2004-03-05 13:57:02
Modified files:
gcc : gcc.c ChangeLog
Log message:
PR driver/13577
* gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
options.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gcc.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.403.4.4&r2=1.403.4.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.290&r2=2.2326.2.291
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13577
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug driver/13577] [3.3/3.4/3.5 Regression] multiple -o options with -c cause unrecognized option `-strip'
2004-01-06 1:31 [Bug middle-end/13577] New: multiple -o options with -c cause unrecognized option `-strip' robbat2 at gentoo dot org
` (6 preceding siblings ...)
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
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: giovannibajo at libero dot it @ 2004-03-05 14:38 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-03-05 14:38 -------
Nathan, if you didn't commit a patch to the 3.3 branch, this is still a
regression there and should be kept open.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13577
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug driver/13577] [3.3 Regression] multiple -o options with -c cause unrecognized option `-strip'
2004-01-06 1:31 [Bug middle-end/13577] New: multiple -o options with -c cause unrecognized option `-strip' robbat2 at gentoo dot org
` (7 preceding siblings ...)
2004-03-05 14:38 ` giovannibajo at libero dot it
@ 2004-03-05 15:18 ` pinskia at gcc dot gnu dot org
2004-03-05 15:31 ` nathan at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-05 15:18 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-05 15:18 -------
Reopening it for 3.3.4.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
Summary|[3.3/3.4/3.5 Regression] |[3.3 Regression] multiple -o
|multiple -o options with -c |options with -c cause
|cause unrecognized option `-|unrecognized option `-strip'
|strip' |
Target Milestone|3.4.0 |3.3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13577
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug driver/13577] [3.3 Regression] multiple -o options with -c cause unrecognized option `-strip'
2004-01-06 1:31 [Bug middle-end/13577] New: multiple -o options with -c cause unrecognized option `-strip' robbat2 at gentoo dot org
` (8 preceding siblings ...)
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
11 siblings, 0 replies; 13+ messages in thread
From: nathan at gcc dot gnu dot org @ 2004-03-05 15:31 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|nathan at gcc dot gnu dot |unassigned at gcc dot gnu
|org |dot org
Status|REOPENED |NEW
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13577
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug driver/13577] [3.3 Regression] multiple -o options with -c cause unrecognized option `-strip'
2004-01-06 1:31 [Bug middle-end/13577] New: multiple -o options with -c cause unrecognized option `-strip' robbat2 at gentoo dot org
` (9 preceding siblings ...)
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
11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-13 0:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-03-13 00:45 -------
Subject: Bug 13577
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_3-branch
Changes by: gdr@gcc.gnu.org 2004-03-13 00:45:45
Modified files:
gcc : ChangeLog gcc.c
Log message:
Backport:
2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
PR driver/13577
* gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
options.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.16114.2.936&r2=1.16114.2.937
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gcc.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.350.2.9&r2=1.350.2.10
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13577
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug driver/13577] [3.3 Regression] multiple -o options with -c cause unrecognized option `-strip'
2004-01-06 1:31 [Bug middle-end/13577] New: multiple -o options with -c cause unrecognized option `-strip' robbat2 at gentoo dot org
` (10 preceding siblings ...)
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
11 siblings, 0 replies; 13+ messages in thread
From: gdr at gcc dot gnu dot org @ 2004-03-13 0:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gdr at gcc dot gnu dot org 2004-03-13 00:47 -------
Backported patch to gcc-3.3.4
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
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).