[Bug inline-asm/16346] New: powerpc64 inline assembly causes an ICE

anton at samba dot org gcc-bugzilla@gcc.gnu.org
Sat Jul 3 12:30:00 GMT 2004


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



More information about the Gcc-bugs mailing list