public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/23399] New: ICE in create_tmp_var, at gimplify.c:387
@ 2005-08-15 14:12 pluto at agmk dot net
  2005-08-15 14:14 ` [Bug other/23399] " pluto at agmk dot net
  2005-08-15 14:53 ` [Bug inline-asm/23399] " pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: pluto at agmk dot net @ 2005-08-15 14:12 UTC (permalink / raw)
  To: gcc-bugs

4.1.0 20050815: 
internal compiler error: in create_tmp_var, at gimplify.c:387 
 
3.3.6: 
internal compiler error: in emit_move_insn, at expr.c:3198

-- 
           Summary: ICE in create_tmp_var, at gimplify.c:387
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pluto at agmk dot net
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pld-linux
GCC target triplet: i686-pld-linux


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


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

* [Bug other/23399] ICE in create_tmp_var, at gimplify.c:387
  2005-08-15 14:12 [Bug other/23399] New: ICE in create_tmp_var, at gimplify.c:387 pluto at agmk dot net
@ 2005-08-15 14:14 ` pluto at agmk dot net
  2005-08-15 14:53 ` [Bug inline-asm/23399] " pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pluto at agmk dot net @ 2005-08-15 14:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pluto at agmk dot net  2005-08-15 14:12 -------
Created an attachment (id=9497)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9497&action=view)
testcase


-- 


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


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

* [Bug inline-asm/23399] ICE in create_tmp_var, at gimplify.c:387
  2005-08-15 14:12 [Bug other/23399] New: ICE in create_tmp_var, at gimplify.c:387 pluto at agmk dot net
  2005-08-15 14:14 ` [Bug other/23399] " pluto at agmk dot net
@ 2005-08-15 14:53 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-15 14:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-15 14:50 -------
Confirmed, reduced testcase:
template<typename T> bool cas(const T& test_val) 
{
  bool ret;
  __asm__ ("": :"r"(test_val));
}
struct atomic_ptr         {
  atomic_ptr(){}
  atomic_ptr(const volatile atomic_ptr& a) {  }
};
void pop()
{
  atomic_ptr ne;
  cas(ne);
}

This is invalid code as you are passing a struct to an inline-asm as a register (the code used to use "a" 
constriant but I changed it to a "r" constaint to make it general across targets).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|other                       |inline-asm
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-invalid-code
      Known to fail|                            |2.95 3.0.4 3.2.2 4.0.0 3.4.0
                   |                            |3.3.3
   Last reconfirmed|0000-00-00 00:00:00         |2005-08-15 14:51:00
               date|                            |


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


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

end of thread, other threads:[~2005-08-15 14:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-15 14:12 [Bug other/23399] New: ICE in create_tmp_var, at gimplify.c:387 pluto at agmk dot net
2005-08-15 14:14 ` [Bug other/23399] " pluto at agmk dot net
2005-08-15 14:53 ` [Bug inline-asm/23399] " pinskia at gcc dot gnu dot org

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