This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/16346] New: powerpc64 inline assembly causes an ICE
- From: "anton at samba dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jul 2004 12:30:58 -0000
- Subject: [Bug inline-asm/16346] New: powerpc64 inline assembly causes an ICE
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I compiled a 3.5 powerpc64 toolchain from cvs (20040703) and found it ICED when
compiling a linux kernel. It turns out we had some weird inline assembly. A
cut down testcase is:
int main()
{
long *foo;
asm volatile("nop": "=m"(*foo): "m"(foo));
}
# /usr/local/ppc64-3.5/bin/powerpc64-linux-gcc -O2 -c testcase.c
testcase.c: In function `main':
testcase.c:2: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Changing it to "m"(*foo) (which is what we want) fixes the ICE.
--
Summary: powerpc64 inline assembly causes an ICE
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: inline-asm
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: anton at samba dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: powerpc64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16346