------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-26 
22:06 -------
Testcase which shows we eliminate the function call:
  int test (void)
  {
    return * (volatile int *) 0x1234;
  }

int f(void)
{
  return test()+test();
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |wrong-code
      Known to fail|                            |4.1.0
      Known to work|                            |4.0.0
   Last reconfirmed|0000-00-00 00:00:00         |2005-08-26 22:06:40
               date|                            |


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

Reply via email to