aboutsummaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorJoern Rennecke <amylaar@spamcop.net>2010-11-06 15:04:52 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>2010-11-06 15:04:52 +0000
commit4ee3b0139f8dd732d6f0cf9571e86cd0ce3740a0 (patch)
treeb56460ca5534a7fdbf2c285dcfdd238b028c3201 /gcc/varasm.c
parenta9625a91d2cd2ef2cc6d82f6ace9be5199745fdf (diff)
downloadgcc-4ee3b0139f8dd732d6f0cf9571e86cd0ce3740a0.zip
gcc-4ee3b0139f8dd732d6f0cf9571e86cd0ce3740a0.tar.gz
gcc-4ee3b0139f8dd732d6f0cf9571e86cd0ce3740a0.tar.bz2
re PR middle-end/46314 (frontends use ASM_GENERATE_INTERNAL_LABEL)
PR middle-end/46314 gcc: * target.def (generate_internal_label): New asm_out hook. * output.h (default_generate_internal_label): Declare. * varasm.c (default_generate_internal_label): Define. gcc/cp: * method.c (make_alias_for_thunk): Use targetm.asm_out.generate_internal_label. gcc/java: * class.c: Include target.h. (make_local_function_alias): Use targetm.asm_out.generate_internal_label. * expr.c (lookup_label, generate_name): Likewise. From-SVN: r166404
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 4739410..fe60bb2 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -6611,6 +6611,16 @@ default_emit_except_table_label (FILE * stream ATTRIBUTE_UNUSED)
the class of label and LABELNO is the number within the class. */
void
+default_generate_internal_label (char *buf, const char *prefix,
+ unsigned long labelno)
+{
+ ASM_GENERATE_INTERNAL_LABEL (buf, prefix, labelno);
+}
+
+/* This is how to output an internal numbered label where PREFIX is
+ the class of label and LABELNO is the number within the class. */
+
+void
default_internal_label (FILE *stream, const char *prefix,
unsigned long labelno)
{