diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-10 10:52:16 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-10 10:52:16 +0000 |
commit | 2787ab7648835f75b25d8b35408a6dee3f85b64c (patch) | |
tree | 02237630aab8f0a79b44862ae97416f33ca5f7a7 | |
parent | ac5968f302c53a9bcb927af2d46dffbf703de5ef (diff) | |
download | ppe42-gcc-2787ab7648835f75b25d8b35408a6dee3f85b64c.tar.gz ppe42-gcc-2787ab7648835f75b25d8b35408a6dee3f85b64c.zip |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164163 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/dwarf2out.c | 5 |
2 files changed, 10 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6b8bd3a76cd..3a5139997bd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 11707fbbe5b..d124f22b12e 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -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); |