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

2010-02-02 Thread amodra at gmail dot com
--- Comment #1 from amodra at gmail dot com 2010-02-03 03:35 --- Created an attachment (id=19793) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19793action=view) testcase -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42944

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

2010-02-02 Thread amodra at gmail dot com
--- 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 (0x0); D.1963_3 = __errno_location (); save_4 = *D.1963_3; corresponding bits from 065t.fre D.1963_1 =