This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libstdc++/9815: atomicity.h - fails to compile with -O3 -masm=intel


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]