public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/41024] New: driver passes wrong parameter to as
@ 2009-08-10 11:38 rainer at emrich-ebersheim dot de
2009-09-03 14:41 ` [Bug driver/41024] " fxcoudert at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: rainer at emrich-ebersheim dot de @ 2009-08-10 11:38 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 4261 bytes --]
$ gcc -v -o test.exe test.c
Es werden eingebaute Spezifikationen verwendet.
Ziel: x86_64-w64-mingw32
Konfiguriert mit: ../../../../src/gcc-4.5.0/configure
--prefix=/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw
--with-sysroot=/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw
--with-gmp=/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw
--with-mpfr=/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw
--with-mpc=/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw
--with-ppl=/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw
--with-cloog=/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw
--with-host-libstdcxx='-L/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/lib64
-lstdc++' --build=i686-pc-mingw32 --host=x86_64-w64-mingw32
--target=x86_64-w64-mingw32 --disable-multilib --disable-bootstrap
--with-gnu-as
--with-as=/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/as.exe
--with-gnu-ld
--with-ld=/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/ld.exe
--enable-checking=release --enable-languages=c,c++,fortran,java,objc,obj-c++
--enable-libgomp --disable-werror 'BOOT_CFLAGS=-g -O0' CFLAGS='-g -O0'
CXXFLAGS='-g -O0' 'CFLAGS_FOR_BUILD=-g -O0' CFLAGS_FOR_TARGET=-O0
CXXFLAGS_FOR_TARGET=-O0
Thread-Modell: win32
gcc-Version 4.5.0 20090805 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-v' '-o' 'test.exe' '-mtune=generic'
c:/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../libexec/gcc/x86_64-w64-mingw32/4.5.0/cc1.exe
-quiet -v -iprefix
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.5.0/
-isysroot c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw
test.c -quiet -dumpbase test.c -mtune=generic -auxbase test -version -o
D:\DOKUME~1\rainer\LOCALS~1\Temp\ccxMcHNc.s
GNU C (GCC) Version 4.5.0 20090805 (experimental) (x86_64-w64-mingw32)
kompiliert von GNU-C-Version 4.5.0 20090805 (experimental), GMP version
4.3.1, MPFR version 2.4.1-p5, MPC version 0.6
GGC-Heuristik: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
nicht vorhandenes Verzeichnis
»c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingwC:/MinGW/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/include«
wird ignoriert
doppeltes Verzeichnis
»c:/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.5.0/include«
wird ignoriert
doppeltes Verzeichnis
»c:/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.5.0/include-fixed«
wird ignoriert
#include "..." - Suche beginnt hier:
#include <...> - Suche beginnt hier:
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.5.0/include
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.5.0/include-fixed
c:/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/lib/gcc/../../x86_64-w64-mingw32/include
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/mingw/include
Ende der Suchliste.
GNU C (GCC) Version 4.5.0 20090805 (experimental) (x86_64-w64-mingw32)
kompiliert von GNU-C-Version 4.5.0 20090805 (experimental), GMP version
4.3.1, MPFR version 2.4.1-p5, MPC version 0.6
GGC-Heuristik: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 1161644d70e4366deea2251f6760d83e
COLLECT_GCC_OPTIONS='-v' '-o' 'test.exe' '-mtune=generic'
c:/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/bin/as.exe
-v -V -o D:\DOKUME~1\rainer\LOCALS~1\Temp\cc0jfYFh.o
D:\DOKUME~1\rainer\LOCALS~1\Temp\ccxMcHNc.s
GNU assembler version 2.19.51 (x86_64-w64-mingw32) using BFD version (GNU
Binutils) 2.19.51.20090805
c:/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/bin/as.exe:
unrecognized option `-V'
--
Summary: driver passes wrong parameter to as
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: driver
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rainer at emrich-ebersheim dot de
GCC build triplet: i686-pc-mingw32
GCC host triplet: *-w64-mingw32
GCC target triplet: *-w64-mingw32
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41024
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug driver/41024] driver passes wrong parameter to as
2009-08-10 11:38 [Bug driver/41024] New: driver passes wrong parameter to as rainer at emrich-ebersheim dot de
@ 2009-09-03 14:41 ` fxcoudert at gcc dot gnu dot org
2009-09-05 10:02 ` ktietz at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2009-09-03 14:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from fxcoudert at gcc dot gnu dot org 2009-09-03 14:40 -------
It's because of this in gcc/config/i386/mingw-w64.h:
#define ASM_SPEC "%{v:-V} %{n} %{T} %{Ym,*} %{Yd,*} \
%{Wa,*:%*} %{m32:--32} %{m64:--64}"
The "%{v:-V}" part is what's triggering what you see. Now, the question is why
is your as rejecting the -V option? My linux as accepts it, my darwin as also,
but i586-pc-mingw32-as doesn't...
After further investigation, it seems that handling the option -V on i386
processors is only done for ELF targets; can't even begin to think of a good
reason for that, but that's what gas source code says. So, I recommend the
following (untested) patch to GCC:
Index: gcc/config/i386/mingw-w64.h
===================================================================
--- gcc/config/i386/mingw-w64.h (revision 151373)
+++ gcc/config/i386/mingw-w64.h (working copy)
@@ -36,7 +36,7 @@
/* Enable multilib. */
#undef ASM_SPEC
-#define ASM_SPEC "%{v:-V} %{n} %{T} %{Ym,*} %{Yd,*} \
+#define ASM_SPEC "%{v} %{n} %{T} %{Ym,*} %{Yd,*} \
%{Wa,*:%*} %{m32:--32} %{m64:--64}"
#if TARGET_64BIT_DEFAULT
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fxcoudert at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |patch
Last reconfirmed|0000-00-00 00:00:00 |2009-09-03 14:40:55
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41024
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug driver/41024] driver passes wrong parameter to as
2009-08-10 11:38 [Bug driver/41024] New: driver passes wrong parameter to as rainer at emrich-ebersheim dot de
2009-09-03 14:41 ` [Bug driver/41024] " fxcoudert at gcc dot gnu dot org
@ 2009-09-05 10:02 ` ktietz at gcc dot gnu dot org
2009-09-05 10:14 ` fxcoudert at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: ktietz at gcc dot gnu dot org @ 2009-09-05 10:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from ktietz at gcc dot gnu dot org 2009-09-05 10:02 -------
(In reply to comment #1)
> It's because of this in gcc/config/i386/mingw-w64.h:
>
> #define ASM_SPEC "%{v:-V} %{n} %{T} %{Ym,*} %{Yd,*} \
> %{Wa,*:%*} %{m32:--32} %{m64:--64}"
>
>
> The "%{v:-V}" part is what's triggering what you see. Now, the question is why
> is your as rejecting the -V option? My linux as accepts it, my darwin as also,
> but i586-pc-mingw32-as doesn't...
>
> After further investigation, it seems that handling the option -V on i386
> processors is only done for ELF targets; can't even begin to think of a good
> reason for that, but that's what gas source code says. So, I recommend the
> following (untested) patch to GCC:
>
> Index: gcc/config/i386/mingw-w64.h
> ===================================================================
> --- gcc/config/i386/mingw-w64.h (revision 151373)
> +++ gcc/config/i386/mingw-w64.h (working copy)
> @@ -36,7 +36,7 @@
> /* Enable multilib. */
>
> #undef ASM_SPEC
> -#define ASM_SPEC "%{v:-V} %{n} %{T} %{Ym,*} %{Yd,*} \
> +#define ASM_SPEC "%{v} %{n} %{T} %{Ym,*} %{Yd,*} \
> %{Wa,*:%*} %{m32:--32} %{m64:--64}"
>
> #if TARGET_64BIT_DEFAULT
>
Ok, could you sent a patch for it. It is pre-approved by me.
Thanks,
Kai
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41024
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug driver/41024] driver passes wrong parameter to as
2009-08-10 11:38 [Bug driver/41024] New: driver passes wrong parameter to as rainer at emrich-ebersheim dot de
2009-09-03 14:41 ` [Bug driver/41024] " fxcoudert at gcc dot gnu dot org
2009-09-05 10:02 ` ktietz at gcc dot gnu dot org
@ 2009-09-05 10:14 ` fxcoudert at gcc dot gnu dot org
2009-09-05 11:20 ` ktietz at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2009-09-05 10:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from fxcoudert at gcc dot gnu dot org 2009-09-05 10:14 -------
(In reply to comment #2)
> Ok, could you sent a patch for it. It is pre-approved by me.
I can't test it, have you?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41024
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug driver/41024] driver passes wrong parameter to as
2009-08-10 11:38 [Bug driver/41024] New: driver passes wrong parameter to as rainer at emrich-ebersheim dot de
` (2 preceding siblings ...)
2009-09-05 10:14 ` fxcoudert at gcc dot gnu dot org
@ 2009-09-05 11:20 ` ktietz at gcc dot gnu dot org
2009-09-05 13:14 ` ktietz at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: ktietz at gcc dot gnu dot org @ 2009-09-05 11:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from ktietz at gcc dot gnu dot org 2009-09-05 11:20 -------
(In reply to comment #3)
> (In reply to comment #2)
> > Ok, could you sent a patch for it. It is pre-approved by me.
>
> I can't test it, have you?
>
I am retesting it. I think {v:-v} is better here.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41024
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug driver/41024] driver passes wrong parameter to as
2009-08-10 11:38 [Bug driver/41024] New: driver passes wrong parameter to as rainer at emrich-ebersheim dot de
` (3 preceding siblings ...)
2009-09-05 11:20 ` ktietz at gcc dot gnu dot org
@ 2009-09-05 13:14 ` ktietz at gcc dot gnu dot org
2009-09-05 14:14 ` fxcoudert at gcc dot gnu dot org
2009-09-05 14:17 ` [Bug target/41024] " fxcoudert at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: ktietz at gcc dot gnu dot org @ 2009-09-05 13:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from ktietz at gcc dot gnu dot org 2009-09-05 13:14 -------
> I am retesting it. I think {v:-v} is better here.
This patch works fine. Could you post a patch for it. It is pre-approved.
Thanks,
Kai
Index: mingw-w64.h
===================================================================
--- mingw-w64.h (revision 151421)
+++ mingw-w64.h (working copy)
@@ -36,7 +36,7 @@
/* Enable multilib. */
#undef ASM_SPEC
-#define ASM_SPEC "%{v:-V} %{n} %{T} %{Ym,*} %{Yd,*} \
+#define ASM_SPEC "%{v:-v} %{n} %{T} %{Ym,*} %{Yd,*} \
%{Wa,*:%*} %{m32:--32} %{m64:--64}"
#if TARGET_64BIT_DEFAULT
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41024
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug driver/41024] driver passes wrong parameter to as
2009-08-10 11:38 [Bug driver/41024] New: driver passes wrong parameter to as rainer at emrich-ebersheim dot de
` (4 preceding siblings ...)
2009-09-05 13:14 ` ktietz at gcc dot gnu dot org
@ 2009-09-05 14:14 ` fxcoudert at gcc dot gnu dot org
2009-09-05 14:17 ` [Bug target/41024] " fxcoudert at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2009-09-05 14:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from fxcoudert at gcc dot gnu dot org 2009-09-05 14:14 -------
Subject: Bug 41024
Author: fxcoudert
Date: Sat Sep 5 14:14:28 2009
New Revision: 151450
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=151450
Log:
PR target/41024
* config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
the assembler.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/mingw-w64.h
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41024
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/41024] driver passes wrong parameter to as
2009-08-10 11:38 [Bug driver/41024] New: driver passes wrong parameter to as rainer at emrich-ebersheim dot de
` (5 preceding siblings ...)
2009-09-05 14:14 ` fxcoudert at gcc dot gnu dot org
@ 2009-09-05 14:17 ` fxcoudert at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2009-09-05 14:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from fxcoudert at gcc dot gnu dot org 2009-09-05 14:16 -------
Fixed on trunk, does not exist on 4.4 branch.
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Component|driver |target
Resolution| |FIXED
Target Milestone|--- |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41024
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2009-09-05 14:17 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-10 11:38 [Bug driver/41024] New: driver passes wrong parameter to as rainer at emrich-ebersheim dot de
2009-09-03 14:41 ` [Bug driver/41024] " fxcoudert at gcc dot gnu dot org
2009-09-05 10:02 ` ktietz at gcc dot gnu dot org
2009-09-05 10:14 ` fxcoudert at gcc dot gnu dot org
2009-09-05 11:20 ` ktietz at gcc dot gnu dot org
2009-09-05 13:14 ` ktietz at gcc dot gnu dot org
2009-09-05 14:14 ` fxcoudert at gcc dot gnu dot org
2009-09-05 14:17 ` [Bug target/41024] " fxcoudert 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).