]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: re PR middle-end/40147 (Memory leak in revision 147436)
authorH.J. Lu <hongjiu.lu@intel.com>
Thu, 14 May 2009 15:54:19 +0000 (15:54 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Thu, 14 May 2009 15:54:19 +0000 (08:54 -0700)
2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>

Backport from mainline:
2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>

PR middle-end/40147
* ipa-utils.h (memory_identifier_string): Moved to ...
* tree.h (memory_identifier_string): Here.  Add GTY(()).

From-SVN: r147537

gcc/ChangeLog
gcc/ipa-utils.h
gcc/tree.h

index 5363c2866eed4d9953f26ccb3fbbe3d513642513..10f4dd1cb8c74da370a8c58aa888cd1260e43cbe 100644 (file)
@@ -1,3 +1,12 @@
+2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+       Backport from mainline:
+       2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR middle-end/40147
+       * ipa-utils.h (memory_identifier_string): Moved to ...
+       * tree.h (memory_identifier_string): Here.  Add GTY(()).
+
 2009-05-14  Uros Bizjak  <ubizjak@gmail.com>
 
        PR target/37179
index 3ccdbafe90935b1c70ba542fb9e7ec76f0294240..ee6417dfcdd395f4e96d718b5362d201b4bc341f 100644 (file)
@@ -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;
index 147741180df93ae40a8729872a357e23dfd67c24..886b0e76b3db7ed02aebcaef5c8fc677c7779c8d 100644 (file)
@@ -5265,6 +5265,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.  */