------- Comment #15 from developer at sandoe-acoustics dot co dot uk 2010-02-14 21:53 ------- (In reply to comment #14) > That doesn't make sense. The symbol is not TREE_READONLY. > > Was that dump from inside get_symbol_constant_value?
yes. that was from a clean bootstrap of trunk 156760. > As the extract only happens from CCP2 I suppose that ipa-reference might > be setting TREE_READONLY on the decl becaue it's static and not written to? > So, can you try with -fno-ipa-reference? (-fdump-ipa-reference should > show "read-only var OBJC_CLASS_REFERENCES_0" if that is the problem) -fdump-ipa-reference - is unrecognized on my build - do I need a config. option to enable? -fdump-ipa-all doesn't seem to give a file named as reference... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43061