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 rtl-optimization/16408] [3.4 Regression] internal compiler error: in delete_insn, at cfgrtl.c:146


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-07-07 17:05 -------
Here's a testcase that crashes the C as well as the C++ frontend.
Just compile with "-O2 -fPIC":

===============================================
int *baz() __attribute__ ((__const__));

void bar(int**);

void foo(int i)
{
  int *p;

  if (i) *p = 0;
  bar(&p);
  *p++ = *baz();
  *p++ = 0;
}
===============================================


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
      Known to work|3.5.0 3.3.3                 |3.5.0 3.3.4
   Last reconfirmed|0000-00-00 00:00:00         |2004-07-07 17:05:10
               date|                            |


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


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