This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/22321] [4.0/4.1 Regression] &volatile_var != &volatile_var is always true
- 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: 9 Jul 2005 17:58:06 -0000
- Subject: [Bug middle-end/22321] [4.0/4.1 Regression] &volatile_var != &volatile_var is always true
- References: <20050706093241.22321.paul.woegerer@nsc.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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