aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>2015-09-18 18:03:26 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2015-09-18 14:03:26 -0400
commit7e704eb4d6cc616a95ea8ac9a0d7be7cb157b2ef (patch)
tree6dda5c71c457ec1bf55efac918861f70fad3b279 /gcc
parentdcd7a7dfce175c00f4a0f58d7950c6c26e24dea5 (diff)
downloadgcc-7e704eb4d6cc616a95ea8ac9a0d7be7cb157b2ef.zip
gcc-7e704eb4d6cc616a95ea8ac9a0d7be7cb157b2ef.tar.gz
gcc-7e704eb4d6cc616a95ea8ac9a0d7be7cb157b2ef.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/dwarf2out.c6
2 files changed, 7 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4f712e3..fa015e0 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2015-09-18 David Edelsohn <dje.gcc@gmail.com>
+
+ * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
+ "back" parameter. Declare label in #if block.
+
2015-09-18 Uros Bizjak <ubizjak@gmail.com>
PR middle-end/67619
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 4a1c152..9ef2a8a 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));