From 7e704eb4d6cc616a95ea8ac9a0d7be7cb157b2ef Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Fri, 18 Sep 2015 18:03:26 +0000 Subject: [PATCH] dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to "back" parameter. * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to "back" parameter. Declare label in #if block. From-SVN: r227911 --- gcc/ChangeLog | 5 +++++ gcc/dwarf2out.c | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4f712e3fe7f..fa015e0be37 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-09-18 David Edelsohn + + * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to + "back" parameter. Declare label in #if block. + 2015-09-18 Uros Bizjak PR middle-end/67619 diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 4a1c15245de..9ef2a8a0e7f 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -434,10 +434,8 @@ stripattributes (const char *s) for collect2 the first time around. */ static void -switch_to_eh_frame_section (bool back) +switch_to_eh_frame_section (bool back ATTRIBUTE_UNUSED) { - tree label; - if (eh_frame_section == 0) { int flags; @@ -481,7 +479,7 @@ switch_to_eh_frame_section (bool back) collect2. */ if (!back) { - label = get_file_function_name ("F"); + tree label = get_file_function_name ("F"); ASM_OUTPUT_ALIGN (asm_out_file, floor_log2 (PTR_SIZE)); targetm.asm_out.globalize_label (asm_out_file, IDENTIFIER_POINTER (label)); -- 2.30.2