c++/5000: volatile asm code fails in template class member functions
rodrigc@gcc.gnu.org
rodrigc@gcc.gnu.org
Mon Dec 3 17:26:00 GMT 2001
The following reply was made to PR c++/5000; it has been noted by GNATS.
From: rodrigc@gcc.gnu.org
To: gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org,
nobody@gcc.gnu.org, sethml@ofb.net
Cc:
Subject: Re: c++/5000: volatile asm code fails in template class member functions
Date: 4 Dec 2001 01:17:37 -0000
Synopsis: volatile asm code fails in template class member functions
State-Changed-From-To: open->analyzed
State-Changed-By: rodrigc
State-Changed-When: Mon Dec 3 17:17:36 2001
State-Changed-Why:
Compiling your testcase with gcc 3.0 yielded the following
compilation error:
b.cc: In function `int main()':
b.cc:5: invalid `asm': operand number missing after %-letter
b.cc:5: invalid `asm': operand number missing after %-letter
If I changed the __asm__ line in your code to:
__asm__ __volatile__ ("movl %%eax,%%eax");
Then it compiled without problem.
Please see http://www.linuxassembly.org for a good tutorial
on the asm syntax.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=5000&database=gcc
More information about the Gcc-prs
mailing list