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

* [Bug inline-asm/15429] internal compiler error: in emit_move_insn_1, at expr.c:3510
  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 ` pinskia at gcc dot gnu dot org
  2004-05-14 17:33 ` jgeorgal at uoc dot gr
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-14 16:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-13 23:55 -------
Confirmed.
3.4.0 and above give:
pr15429.c: In function `dummy':
pr15429.c:4: internal compiler error: in int_mode_for_mode, at stor-layout.c:327
Please submit a full bug report,

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|c                           |inline-asm
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-invalid-code
      Known to fail|                            |3.3.3 3.4.0 3.5.0 3.1 2.95.3
   Last reconfirmed|0000-00-00 00:00:00         |2004-05-13 23:55:24
               date|                            |
            Version|unknown                     |3.3.3


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15429


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

* [Bug inline-asm/15429] internal compiler error: in emit_move_insn_1, at expr.c:3510
  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
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jgeorgal at uoc dot gr @ 2004-05-14 17:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jgeorgal at uoc dot gr  2004-05-14 09:54 -------
> Please submit a full bug report, 
 
Please tell me if you need additional information.  
 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15429


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

* [Bug inline-asm/15429] internal compiler error: in emit_move_insn_1, at expr.c:3510
  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
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-14 17:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-14 10:57 -------
No we do not need more information, I was just quoting from the error from gcc, sorry for the 
confusion.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15429


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

* [Bug inline-asm/15429] internal compiler error: in emit_move_insn_1, at expr.c:3510
  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
                   ` (2 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jgeorgal at uoc dot gr @ 2004-05-14 18:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jgeorgal at uoc dot gr  2004-05-14 12:50 -------
> No we do not need more information, I was just quoting from the error from 
gcc, sorry for the  
> confusion. 
 
My mistake. I realized it after posting. 
 
btw: added 2.95.4 version to "Known to fail". 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|3.3.3 3.4.0 3.5.0 3.1 2.95.3|3.3.3 3.4.0 3.5.0 3.1 2.95.3
                   |                            |2.95.4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15429


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

* [Bug inline-asm/15429] internal compiler error: in emit_move_insn_1, at expr.c:3510
  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
                   ` (3 preceding siblings ...)
  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
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-13  0:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-13 00:27 -------
Fixed in 3.5.0 by the tree-ssa merge:
: Search converges between 2004-05-11-trunk (#454) and 2004-05-14-trunk (#455).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |3.5.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15429


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

* [Bug inline-asm/15429] internal compiler error: in emit_move_insn_1, at expr.c:3510
  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
                   ` (4 preceding siblings ...)
  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
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-14 18:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-14 18:07 -------
*** Bug 17029 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alonsoschaich at gmx dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15429


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

* [Bug inline-asm/15429] internal compiler error: in emit_move_insn_1, at expr.c:3510
  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
                   ` (5 preceding siblings ...)
  2004-08-14 18:07 ` pinskia at gcc dot gnu dot org
@ 2004-08-15  7:45 ` alonsoschaich at gmx dot de
  6 siblings, 0 replies; 8+ messages in thread
From: alonsoschaich at gmx dot de @ 2004-08-15  7:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From alonsoschaich at gmx dot de  2004-08-15 07:45 -------
(In reply to comment #6) 
> *** Bug 17029 has been marked as a duplicate of this bug. *** 
 
sorry. my browser crashed during upload ( thats why there's no description ). 
 
Minimal case of this is: 
 
---START CODE (bug.c)--- 
void test( void *v ) 
 { 
  __asm__ 
   ( 
    "mov (%%eax),  %%ecx\n" 
    : 
    : "a"(v[0]) 
   ); 
 } 
---END CODE (bug.c)--- 
 
and it also fails on 3.3.4 

-- 


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).