diff options
author | Joern Rennecke <amylaar@spamcop.net> | 2010-11-06 15:04:52 +0000 |
---|---|---|
committer | Joern Rennecke <amylaar@gcc.gnu.org> | 2010-11-06 15:04:52 +0000 |
commit | 4ee3b0139f8dd732d6f0cf9571e86cd0ce3740a0 (patch) | |
tree | b56460ca5534a7fdbf2c285dcfdd238b028c3201 /gcc/cp | |
parent | a9625a91d2cd2ef2cc6d82f6ace9be5199745fdf (diff) | |
download | gcc-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/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cp/method.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index cab1040..bfa4af4 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2010-11-06 Joern Rennecke <amylaar@spamcop.net> + + PR middle-end/46314 + * method.c (make_alias_for_thunk): + Use targetm.asm_out.generate_internal_label. + 2010-11-05 Jason Merrill <jason@redhat.com> PR c++/45473 diff --git a/gcc/cp/method.c b/gcc/cp/method.c index c1d30d4..d0ed0f4 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -252,7 +252,7 @@ make_alias_for_thunk (tree function) tree alias; char buf[256]; - ASM_GENERATE_INTERNAL_LABEL (buf, "LTHUNK", thunk_labelno); + targetm.asm_out.generate_internal_label (buf, "LTHUNK", thunk_labelno); thunk_labelno++; alias = make_alias_for (function, get_identifier (buf)); |