From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11500 invoked by alias); 5 Sep 2009 10:02:17 -0000 Received: (qmail 9977 invoked by uid 48); 5 Sep 2009 10:02:03 -0000 Date: Sat, 05 Sep 2009 10:02:00 -0000 Message-ID: <20090905100203.9976.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug driver/41024] driver passes wrong parameter to as In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "ktietz at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-09/txt/msg00494.txt.bz2 ------- 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