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