public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/8440: Internal GCC 3.2 compiler error caused by Asm-Statement
@ 2002-11-03 10:46 bkausbk
  0 siblings, 0 replies; 2+ messages in thread
From: bkausbk @ 2002-11-03 10:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         8440
>Category:       c
>Synopsis:       Internal GCC 3.2 compiler error caused by Asm-Statement
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 03 10:46:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Benjamin Kalytta
>Release:        GCC 3.2
>Organization:
>Environment:
x86(AMD XP2200+) cygwin (1.1.8) Windows 2000 Prof.
>Description:
asm-statement (see attachement test.c [preprocessing is not needed]) caused an internal compiler error, only if optimization level is 0 (default)

test.c: In function `KmAtomicCompareExchange':
test.c:10: Internal compiler error in instantiate_virtual_regs_1, at function.c:
3972
>How-To-Repeat:
execute "gcc -c test.c"
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="test.c"
Content-Disposition: inline; filename="test.c"

inline int KmAtomicCompareExchange(int *Destination, int ExchangeWith, int CompareWith){
	int ret=0;
	asm(
	"	cmpxchg [%[Destination]],%[ExchangeWith]\n"
	: [CompareWith] "=eax" (ret)
	: [Destination] "r" (Destination), [ExchangeWith] "r"(ExchangeWith), "0" (CompareWith)
	: "cc", "memory"
	);
	return ret;
}

int main() {
}


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

* Re: c/8440: Internal GCC 3.2 compiler error caused by Asm-Statement
@ 2002-11-03 10:52 paolo
  0 siblings, 0 replies; 2+ messages in thread
From: paolo @ 2002-11-03 10:52 UTC (permalink / raw)
  To: bkausbk, gcc-bugs, gcc-prs, nobody

Synopsis: Internal GCC 3.2 compiler error caused by Asm-Statement

State-Changed-From-To: open->analyzed
State-Changed-By: paolo
State-Changed-When: Sun Nov  3 10:52:23 2002
State-Changed-Why:
    Confirmed mainline and 3_2-branch.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8440


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

end of thread, other threads:[~2002-11-03 18:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-03 10:46 c/8440: Internal GCC 3.2 compiler error caused by Asm-Statement bkausbk
2002-11-03 10:52 paolo

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