This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/23584] [4.1 Regression] ipa-pure-const pass ignores dereferencing a volatile pointer type
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Aug 2005 22:06:40 -0000
- Subject: [Bug tree-optimization/23584] [4.1 Regression] ipa-pure-const pass ignores dereferencing a volatile pointer type
- References: <20050826215952.23584.jconner@apple.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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