public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/10238: Strange asm stmt produces compiler error
@ 2003-03-27  7:52 res
  0 siblings, 0 replies; only message in thread
From: res @ 2003-03-27  7:52 UTC (permalink / raw)
  To: gcc-gnats


>Number:         10238
>Category:       c
>Synopsis:       Strange asm stmt produces compiler error
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 27 06:36:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Rob Stampfli
>Release:        gcc 3.2.2
>Organization:
>Environment:
Solaris 8 / Ultra 2 Sparc. Compiler was configured and built precisely as described in:

in http://sunfreeware.com/gcc.html
>Description:
The following silly erroneous piece of code produces a compiler error.  It's inconsequential, but it shouldn't error out:

int lock_io;
void xxx() {
   volatile int _ret; asm volatile ("xchgw %0,%1" : "=q" (_ret), "=m" (*(&lock_io)) : "m" (*(&lock_io)), "0" (0));
}


$ gcc x.c
x.c: In function `xxx':
x.c:4: Internal compiler error in instantiate_virtual_regs_1, at function.c:3971
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http:/www.gnu.org/softwre/gcc/bugs.html> for instructions.
$
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-03-27  6:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-27  7:52 c/10238: Strange asm stmt produces compiler error res

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