------- Comment #24 from rguenth at gcc dot gnu dot org 2007-08-30 09:49 ------- Note that even with the proposed patch we generate different code dependent on if -g is enabled or not. Starting with the first alias pass there are differences in the has_volatile_ops annotations!
@@ -3818,9 +3823,9 @@ int test01() () D.8890_24 = (struct _Sp_counted_base_impl *) D.8889_23; __d = __d.79; D.8891_25 = &D.8890_24->D.8307; - D.8891_25->_vptr._Sp_counted_base ={v} &_ZTVNSt3tr116_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE1EEE[2]; - D.8891_25->_M_use_count ={v} 1; - D.8891_25->_M_weak_count ={v} 1; + D.8891_25->_vptr._Sp_counted_base = &_ZTVNSt3tr116_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE1EEE[2]; + D.8891_25->_M_use_count = 1; + D.8891_25->_M_weak_count = 1; D.8890_24->D.8307._vptr._Sp_counted_base = &_ZTVNSt3tr121_Sp_counted_base_implIP1BNS_11_Sp_deleterIS1_EELN9__gnu_cxx12_Lock_policyE1EEE[2]; D.8890_24->_M_ptr = D.8855_22; D.8890_24->_M_del = __d; @@ -3840,7 +3845,7 @@ int test01() () goto <bb 10>; <bb 7>: - D.8895_29 ={v} &__tmp_27->_M_use_count; + D.8895_29 = &__tmp_27->_M_use_count; if (__gthrw_pthread_cancel != 0B) goto <bb 8>; else ... etc. I'm trying to reduce the testcase further based on such differences. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33199