This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
fix to tree profiling branch.
- From: Kenneth Zadeck <zadeck at naturalbridge dot com>
- To: gcc-patches at gcc dot gnu dot org, Jan Hubicka <hubicka at ucw dot cz>,"Berlin, Daniel" <dberlin at dberlin dot org>
- Date: Sun, 06 Mar 2005 17:01:07 -0500
- Subject: fix to tree profiling branch.
Fixed missing case in scanning tree code. This only seems to have shown
up in fortran, but is very common there.
Tested on i686.
2005-03-06 Kenneth Zadeck <zadeck@naturalbridge.com>
* tree-promote-statics.c (try-replace): Fixed missing CONST_DECL case.
Index: tree-promote-statics.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-promote-statics.c,v
retrieving revision 1.1.4.2
diff -c -3 -p -r1.1.4.2 tree-promote-statics.c
*** tree-promote-statics.c 1 Mar 2005 23:08:11 -0000 1.1.4.2
--- tree-promote-statics.c 6 Mar 2005 16:48:19 -0000
*************** try_replace (tree *tptr)
*** 296,301 ****
--- 296,302 ----
while (!SSA_VAR_P (t)
&& (!CONSTANT_CLASS_P (t))
&& TREE_CODE (t) != LABEL_DECL
+ && TREE_CODE (t) != CONST_DECL
&& TREE_CODE (t) != FUNCTION_DECL)
{
if (TREE_CODE (t) == ARRAY_REF)