]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Sep 2015 18:03:26 +0000 (18:03 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Sep 2015 18:03:26 +0000 (18:03 +0000)
        "back" parameter. Declare label in #if block.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227911 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/dwarf2out.c

index 4f712e3fe7fae6c40fb72aec7b8ba99258d62b73..fa015e0be37ef8c36d5c557a7d0b67bdf98790d3 100644 (file)
@@ -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
index 4a1c15245dea69cee8cf6dcbbcb15408ee27e0df..9ef2a8a0e7fa365eacbd04eb0980c742e9d65be5 100644 (file)
@@ -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));