This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/36881] [4.4 Regression] Creating runtime relocations for code which does not need it
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Sep 2008 09:21:53 -0000
- Subject: [Bug tree-optimization/36881] [4.4 Regression] Creating runtime relocations for code which does not need it
- References: <bug-36881-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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