public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* libstdc++/9815: atomicity.h - fails to compile with -O3 -masm=intel
@ 2003-02-23  9:16 kfoltman
  0 siblings, 0 replies; 2+ messages in thread
From: kfoltman @ 2003-02-23  9:16 UTC (permalink / raw)
  To: gcc-gnats


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: libstdc++/9815: atomicity.h - fails to compile with -O3 -masm=intel
@ 2003-02-23  9:36 Krzysztof Foltman
  0 siblings, 0 replies; 2+ messages in thread
From: Krzysztof Foltman @ 2003-02-23  9:36 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR libstdc++/9815; it has been noted by GNATS.

From: "Krzysztof Foltman" <kfoltman@onet.pl>
To: <gcc-gnats@gcc.gnu.org>, <gcc-bugs@gcc.gnu.org>,
	<nobody@gcc.gnu.org>, <gcc-prs@gcc.gnu.org>,
	"Krzysztof Foltman" <kfoltman@onet.pl>
Cc:  
Subject: Re: libstdc++/9815: atomicity.h - fails to compile with -O3 -masm=intel
Date: Sun, 23 Feb 2003 10:51:14 +0100

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=g
 cc&pr=9815
 
 Also occurs in Debian 3.2.2:
 
 Reading specs from /usr/lib/gcc-lib/i386-linux/3.2.2/specs
 Configured with:
 ../src/configure -v --enable-languages=c,c++,java,f77,proto,pascal,objc,
 ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --wi
 th-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zl
 ib --enable-nls --without-included-gettext --enable-__cxa_atexit --enabl
 e-clocale=gnu --enable-java-gc=boehm --enable-objc-gc i386-linux
 Thread model: posix
 gcc version 3.2.2 20030109 (Debian prerelease)
 
 Krzysztof
 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-02-23  9:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-23  9:16 libstdc++/9815: atomicity.h - fails to compile with -O3 -masm=intel kfoltman
2003-02-23  9:36 Krzysztof Foltman

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).