aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2005-03-20 21:23:24 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2005-03-20 21:23:24 +0000
commit749053f5e22e146b0fa53134a1d3bff912ca5840 (patch)
tree95b7d417111fdf6402aa8eeb4b39462b59992b6a
parent82b3eb42941c7a037182cec37b014a7574e46340 (diff)
downloadgcc-749053f5e22e146b0fa53134a1d3bff912ca5840.zip
gcc-749053f5e22e146b0fa53134a1d3bff912ca5840.tar.gz
gcc-749053f5e22e146b0fa53134a1d3bff912ca5840.tar.bz2
varasm.c (do_assemble_alias): Restore comment describing function.
* varasm.c (do_assemble_alias): Restore comment describing function. Annotate the target parameter as potentially unused. Co-Authored-By: Joseph Myers <joseph@codesourcery.com> From-SVN: r96768
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/varasm.c6
2 files changed, 11 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e2d494c..dae1e90 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2005-03-20 Roger Sayle <roger@eyesopen.com>
+ Joseph S. Myers <joseph@codesourcery.com>
+
+ * varasm.c (do_assemble_alias): Restore comment describing function.
+ Annotate the target parameter as potentially unused.
+
2005-03-20 Marek Michalkiewicz <marekm@amelek.gda.pl>
PR target/18551
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 5392dae..67b8141 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -4392,8 +4392,12 @@ find_decl_and_mark_needed (tree decl, tree target)
return NULL_TREE;
}
+/* Output the assembler code for a define (equate) using ASM_OUTPUT_DEF
+ or ASM_OUTPUT_DEF_FROM_DECLS. The function defines the symbol whose
+ tree node is DECL to have the value of the tree node TARGET. */
+
static void
-do_assemble_alias (tree decl, tree target)
+do_assemble_alias (tree decl, tree target ATTRIBUTE_UNUSED)
{
TREE_ASM_WRITTEN (decl) = 1;
TREE_ASM_WRITTEN (DECL_ASSEMBLER_NAME (decl)) = 1;