------- Comment #6 from jakub at gcc dot gnu dot org 2008-09-15 09:21 ------- I'd prefer it just to call initializer_constant_valid_p (val, TREE_TYPE (val)) == null_pointer_node for flag_pic (and != NULL_TREE for !flag_pic). What is in #c4 would need at least some write after write barriers, would enlarge code too much and might be worthwhile just in very hot basic blocks.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36881