This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
libstdc++/9815: atomicity.h - fails to compile with -O3 -masm=intel
- From: kfoltman at onet dot pl
- To: gcc-gnats at gcc dot gnu dot org
- Date: 23 Feb 2003 09:12:36 -0000
- Subject: libstdc++/9815: atomicity.h - fails to compile with -O3 -masm=intel
- Reply-to: kfoltman at onet dot pl
>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 at onet dot 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 <string>
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: