[Bug tree-optimization/42944] errno misoptimization due to __attribute__ ((__const__)) on __errno_location()

amodra at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Feb 3 03:39:00 GMT 2010



------- Comment #2 from amodra at gmail dot com  2010-02-03 03:39 -------
extract from 064t.phiprop
  D.1963_1 = __errno_location ();
  *D.1963_1 = 0;
  p_2 = malloc (0x0ffffffff);
  D.1963_3 = __errno_location ();
  save_4 = *D.1963_3;

corresponding bits from 065t.fre
  D.1963_1 = __errno_location ();
  *D.1963_1 = 0;
  p_2 = malloc (0x0ffffffff);
  D.1963_3 = D.1963_1;
  save_4 = 0;


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42944



More information about the Gcc-bugs mailing list