]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR bootstrap/45630 (Revision 164050 breaks bootstrap on powerpc-apple-darwin9)
authorJakub Jelinek <jakub@redhat.com>
Fri, 10 Sep 2010 10:52:16 +0000 (12:52 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 10 Sep 2010 10:52:16 +0000 (12:52 +0200)
PR bootstrap/45630
* dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
(implicit_ptr_descriptor): Return NULL if dwarf_strict.

From-SVN: r164163

gcc/ChangeLog
gcc/dwarf2out.c

index 6b8bd3a76cd3be1df608546947c6d82acabaaa1e..3a5139997bd7f2579aa7db15b333356099446939 100644 (file)
@@ -1,3 +1,10 @@
+2010-09-10  Jakub Jelinek  <jakub@redhat.com>
+
+       PR bootstrap/45630
+       * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
+       HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
+       (implicit_ptr_descriptor): Return NULL if dwarf_strict.
+
 2010-09-10  Martin Jambor  <mjambor@suse.cz>
 
        PR tree-optimization/44972
index 11707fbbe5b863811757bb9afa8c2610dd06e8dc..d124f22b12e2d13d1b7a2758416255f27102da55 100644 (file)
@@ -6545,8 +6545,7 @@ is_tagged_type (const_tree type)
 static void
 get_ref_die_offset_label (char *label, dw_die_ref ref)
 {
-  sprintf (label, "%s+" HOST_WIDE_INT_PRINT_DEC,
-          debug_info_section_label, ref->die_offset);
+  sprintf (label, "%s+%ld", debug_info_section_label, ref->die_offset);
 }
 
 /* Convert a DIE tag into its string name.  */
@@ -14285,6 +14284,8 @@ implicit_ptr_descriptor (rtx rtl, HOST_WIDE_INT offset)
   dw_loc_descr_ref ret;
   dw_die_ref ref;
 
+  if (dwarf_strict)
+    return NULL;
   gcc_assert (TREE_CODE (DEBUG_IMPLICIT_PTR_DECL (rtl)) == VAR_DECL
              || TREE_CODE (DEBUG_IMPLICIT_PTR_DECL (rtl)) == PARM_DECL
              || TREE_CODE (DEBUG_IMPLICIT_PTR_DECL (rtl)) == RESULT_DECL);