This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]