public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: target/4609: Using the `-mno-cygwin' gcc option causes an `Output filename specified twice' bug
@ 2001-10-20 20:10 rodrigc
  0 siblings, 0 replies; 2+ messages in thread
From: rodrigc @ 2001-10-20 20:10 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, sergey_gromov

Synopsis: Using the `-mno-cygwin' gcc option causes an `Output filename specified twice' bug

State-Changed-From-To: open->closed
State-Changed-By: rodrigc
State-Changed-When: Sat Oct 20 20:10:30 2001
State-Changed-Why:
    Duplicate of PR 4157 which is fixed in gcc 3.0.2
    http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4157&database=gcchttp://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4157&database=gcc

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4609&database=gcc


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

* target/4609: Using the `-mno-cygwin' gcc option causes an `Output filename specified twice' bug
@ 2001-10-18 11:56 sergey_gromov
  0 siblings, 0 replies; 2+ messages in thread
From: sergey_gromov @ 2001-10-18 11:56 UTC (permalink / raw)
  To: gcc-gnats

>Number:         4609
>Category:       target
>Synopsis:       Using the `-mno-cygwin' gcc option causes an `Output filename specified twice' bug
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 18 11:56:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     sergey_gromov@cybiko.com
>Release:        gcc-3.0, no patches applied
>Organization:
>Environment:
MS Windows 2000 Pro SP1 Build 2195, Intel PII-400, 128MB RAM, Cygwin binaries snapshot on 10/6/2001
>Description:
When using the `-mno-cygwin' gcc option, an `Output filename specified twice' error is reported by the cc1:

$ gcc -mno-cygwin empty.c
cc1.exe: Output filename specified twice

GCC 3.0 was compiled for a native target (i686-pc-cygwin):

$ gcc -v
Reading specs from /usr/local/lib/gcc-lib/i686-pc-cygwin/3.0/specs
Configured with: /src/gcc/gcc-3.0/configure --with-gnu-as --with-gnu-ld --with-newlib -v
Thread model: single
gcc version 3.0
>How-To-Repeat:
No source code is required to repeat this bug. An empty file will go. Assuming that the `empty.c' file contains no text, just execute the command:

$ gcc -mno-cygwin empty.c
>Fix:
The bug is caused by a misprint in the `gcc/config/i386/cygwin.h' line 83:

81: #define MINGW_INCLUDES "-isystem /usr/include/mingw/g++-3 "\
82: 		       "-isystem /usr/include/mingw/g++ "\
83:		       "-isystem /usr/local/include/mingw" \
		                                         ^^
84:		       "-idirafter /usr/include/mingw"

The trailing space is happened to be -outside- of the quotes instead of being inside them. This causes the resulting macro to read like this:

... -isystem /usr/local/include/mingw-idirafter /usr/include/mingw

which leads to the loss of the `-idirafter' option and leaves the `/usr/include/mingw/' without any preceding option. Moving the trailing space on the line 81 -inside- the quotes fixes the problem:

81: #define MINGW_INCLUDES "-isystem /usr/include/mingw/g++-3 "\
82: 		       "-isystem /usr/include/mingw/g++ "\
83:		       "-isystem /usr/local/include/mingw "\
		                                         ^^
84:		       "-idirafter /usr/include/mingw"
>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2001-10-20 20:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-20 20:10 target/4609: Using the `-mno-cygwin' gcc option causes an `Output filename specified twice' bug rodrigc
  -- strict thread matches above, loose matches on Subject: below --
2001-10-18 11:56 sergey_gromov

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).