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 c/15429] New: internal compiler error: in emit_move_insn_1, at expr.c:3510


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


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