re PR fortran/55395 (libgfortran bootstrap failure on powerpc-linux-gnu and arm-linux...
authorJakub Jelinek <jakub@redhat.com>
Fri, 7 Dec 2012 16:04:26 +0000 (17:04 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 7 Dec 2012 16:04:26 +0000 (17:04 +0100)
PR fortran/55395
* varpool.c (varpool_remove_node): Don't drop DECL_INITIAL
for -g for any kind of debug info.

From-SVN: r194304

gcc/ChangeLog
gcc/varpool.c

index 132112c2151bee774040ff46d3938c5b74e23019..b6b84c7fd07e8f2e244634eb16897b89dac1703f 100644 (file)
@@ -1,3 +1,9 @@
+2012-12-07  Jakub Jelinek  <jakub@redhat.com>
+
+       PR fortran/55395
+       * varpool.c (varpool_remove_node): Don't drop DECL_INITIAL
+       for -g for any kind of debug info.
+
 2012-12-07  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/54886
index 7f4cfe7b4591d16897a14fe69b8c5a9e426f8e19..56e23a73346dcd57da18f50b5c1d478467bd995d 100644 (file)
@@ -63,12 +63,8 @@ varpool_remove_node (struct varpool_node *node)
       && !DECL_IN_CONSTANT_POOL (node->symbol.decl)
       /* Keep vtables for BINFO folding.  */
       && !DECL_VIRTUAL_P (node->symbol.decl)
-      /* dbxout output constant initializers for readonly vars.  */
-      && (!host_integerp (DECL_INITIAL (node->symbol.decl), 0)
-         || !TREE_READONLY (node->symbol.decl))
-      /* dwarf2out can use most of the initializers.  */
-      && write_symbols != DWARF2_DEBUG
-      && write_symbols != VMS_AND_DWARF2_DEBUG)
+      /* FIXME: http://gcc.gnu.org/PR55395 */
+      && debug_info_level == DINFO_LEVEL_NONE)
     DECL_INITIAL (node->symbol.decl) = error_mark_node;
   ggc_free (node);
 }