[Bug middle-end/22321] [4.0/4.1 Regression] &volatile_var != &volatile_var is always true
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Jul 9 18:01:00 GMT 2005
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-09 17:58 -------
This fails also at -O0:
volatile int x;
int main()
{
if (&x != &x)
abort ();
return 0;
}
And this testcase worked in 3.4.x too so this is defintely a fold bug.
--
What |Removed |Added
----------------------------------------------------------------------------
Component|tree-optimization |middle-end
Summary|[4.0/4.1 Regression] Wrong |[4.0/4.1 Regression]
|code with SSA dominator |&volatile_var !=
|optimizations |&volatile_var is always true
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22321
More information about the Gcc-bugs
mailing list