This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/15429] New: internal compiler error: in emit_move_insn_1, at expr.c:3510
- From: "jgeorgal at uoc dot gr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 May 2004 23:50:52 -0000
- Subject: [Bug c/15429] New: internal compiler error: in emit_move_insn_1, at expr.c:3510
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I get the error "internal compiler error: in emit_move_insn_1, at
expr.c:3510", when trying to compile:
--------START CODE (dummy.c)----------
void dummy (int value, void* arg)
{
long __pu_err;
__asm__ __volatile__(
"1: movl %%eax,0(%2)\n"
"2: movl %%edx,4(%2)\n"
: "=r"(__pu_err) :
"A" (((__typeof__(*(arg)))(value))),
"r" (((arg))), "i"(-14), "0"(__pu_err)
);
}
----------END CODE (dummy.c)----------
Try to compile with "gcc -c dummy.c"
(this is actually the "affected" part of the expansion of the macro
"__put_user(value, (void*) arg);(*)" which is part of linux (the kernel). Note
that this call is wrong (it should be "(int*) arg", in which case everything
works ok. The same for the "dummy" function if we declare "int* arg"))
(*) in header <asm/uaccess.h>
This "internal error" seems to affect "all" gcc versions.
gcc (GCC) 3.3.3 (Debian 20040306)
2.95.4 (error is "Internal compiler error in `emit_move_insn_1', at
expr.c:2835")
--
Summary: internal compiler error: in emit_move_insn_1, at
expr.c:3510
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jgeorgal at uoc dot gr
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i386-pc-linux-gnu
GCC host triplet: i386-pc-linux-gnu
GCC target triplet: i386-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15429