summaryrefslogtreecommitdiff
path: root/gcc/final.c
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2008-11-28 13:58:29 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2008-11-28 13:58:29 +0000
commitc1987637b2b9d22c60cb265174f7198a4ef202dc (patch)
treedfb3c578630060fe190ec6899796ad170063f1cc /gcc/final.c
parentb56b2d84b37572ac5a764a6c4f98fa0c9acd7d6b (diff)
downloadgcc-c1987637b2b9d22c60cb265174f7198a4ef202dc.tar.gz
2008-11-28 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk r142527 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@142258 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/final.c')
-rw-r--r--gcc/final.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/gcc/final.c b/gcc/final.c
index d00790797dd..aceeb7cfb13 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -3349,8 +3349,9 @@ output_asm_label (rtx x)
assemble_name (asm_out_file, buf);
}
-/* Helper rtx-iteration-function for output_operand. Marks
- SYMBOL_REFs as referenced through use of assemble_external. */
+/* Helper rtx-iteration-function for mark_symbol_refs_as_used and
+ output_operand. Marks SYMBOL_REFs as referenced through use of
+ assemble_external. */
static int
mark_symbol_ref_as_used (rtx *xp, void *dummy ATTRIBUTE_UNUSED)
@@ -3374,6 +3375,14 @@ mark_symbol_ref_as_used (rtx *xp, void *dummy ATTRIBUTE_UNUSED)
return 0;
}
+/* Marks SYMBOL_REFs in x as referenced through use of assemble_external. */
+
+void
+mark_symbol_refs_as_used (rtx x)
+{
+ for_each_rtx (&x, mark_symbol_ref_as_used, NULL);
+}
+
/* Print operand X using machine-dependent assembler syntax.
The macro PRINT_OPERAND is defined just to control this function.
CODE is a non-digit that preceded the operand-number in the % spec,