public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/15429] New: internal compiler error: in emit_move_insn_1, at expr.c:3510
@ 2004-05-14 16:58 jgeorgal at uoc dot gr
  2004-05-14 16:59 ` [Bug inline-asm/15429] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: jgeorgal at uoc dot gr @ 2004-05-14 16:58 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-08-15  7:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-14 16:58 [Bug c/15429] New: internal compiler error: in emit_move_insn_1, at expr.c:3510 jgeorgal at uoc dot gr
2004-05-14 16:59 ` [Bug inline-asm/15429] " pinskia at gcc dot gnu dot org
2004-05-14 17:33 ` jgeorgal at uoc dot gr
2004-05-14 17:54 ` pinskia at gcc dot gnu dot org
2004-05-14 18:32 ` jgeorgal at uoc dot gr
2004-08-13  0:27 ` pinskia at gcc dot gnu dot org
2004-08-14 18:07 ` pinskia at gcc dot gnu dot org
2004-08-15  7:45 ` alonsoschaich at gmx dot de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).