From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6799 invoked by alias); 23 Feb 2003 09:16:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 6772 invoked by uid 71); 23 Feb 2003 09:16:01 -0000 Resent-Date: 23 Feb 2003 09:16:01 -0000 Resent-Message-ID: <20030223091601.6771.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, kfoltman@onet.pl Received: (qmail 6202 invoked by uid 48); 23 Feb 2003 09:12:36 -0000 Message-Id: <20030223091236.6201.qmail@sources.redhat.com> Date: Sun, 23 Feb 2003 09:16:00 -0000 From: kfoltman@onet.pl Reply-To: kfoltman@onet.pl To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: libstdc++/9815: atomicity.h - fails to compile with -O3 -masm=intel X-SW-Source: 2003-02/txt/msg01151.txt.bz2 List-Id: >Number: 9815 >Category: libstdc++ >Synopsis: atomicity.h - fails to compile with -O3 -masm=intel >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sun Feb 23 09:16:01 UTC 2003 >Closed-Date: >Last-Modified: >Originator: kfoltman@onet.pl >Release: gcc-3.2.2 (mingw special 20030208-1) >Organization: >Environment: x86, win32 (windows 2000 pro) >Description: C:\Temp/cceyaaaa.s: Assembler messages: C:\Temp/cceyaaaa.s:59: Error: no such instruction: `xaddl ebx,DWORD PTR [eax-4]' C:\Temp/cceyaaaa.s:199: Error: no such instructio n: `addl eax,DWORD PTR [ecx]' >How-To-Repeat: a.cpp: #include int main(int argc, char *argv[]) { std::string a="a"; } Command line: gcc -O3 a.cpp -lstdc++ -masm=intel >Fix: Use different versions of atomicity.h for intel and AT&T syntax. It will probably need to make the compiler issue a #define when -masm=intel is used. >Release-Note: >Audit-Trail: >Unformatted: