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 tree-optimization/23584] [4.1 Regression] ipa-pure-const pass ignores dereferencing a volatile pointer type


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


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