From 61c273538b0349c662b68ed92c8bd0387d737c51 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 14 May 2009 15:45:32 +0000 Subject: [PATCH] re PR middle-end/40147 (Memory leak in revision 147436) 2009-05-14 H.J. Lu PR middle-end/40147 * ipa-utils.h (memory_identifier_string): Moved to ... * tree.h (memory_identifier_string): Here. Add GTY(()). From-SVN: r147535 --- gcc/ChangeLog | 6 ++++++ gcc/ipa-utils.h | 3 --- gcc/tree.h | 3 +++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 36e48a223cc..4d1be8c4de3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2009-05-14 H.J. Lu + + PR middle-end/40147 + * ipa-utils.h (memory_identifier_string): Moved to ... + * tree.h (memory_identifier_string): Here. Add GTY(()). + 2009-05-14 Paolo Bonzini * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this diff --git a/gcc/ipa-utils.h b/gcc/ipa-utils.h index 31d78374ff6..e70a01688e2 100644 --- a/gcc/ipa-utils.h +++ b/gcc/ipa-utils.h @@ -23,9 +23,6 @@ along with GCC; see the file COPYING3. If not see #include "tree.h" #include "cgraph.h" -/* Used for parsing attributes of asm code. */ -extern tree memory_identifier_string; - struct ipa_dfs_info { int dfn_number; int low_link; diff --git a/gcc/tree.h b/gcc/tree.h index cb4b369cd63..eaa8e2ed8ff 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -5190,6 +5190,9 @@ extern unsigned HOST_WIDE_INT highest_pow2_factor (const_tree); void init_inline_once (void); +/* In ipa-reference.c. Used for parsing attributes of asm code. */ +extern GTY(()) tree memory_identifier_string; + /* Compute the number of operands in an expression node NODE. For tcc_vl_exp nodes like CALL_EXPRs, this is stored in the node itself, otherwise it is looked up from the node's code. */