From 1c0165c81ccfbe4fbadd96ac8b85c59a0002cab6 Mon Sep 17 00:00:00 2001 From: danglin Date: Sat, 30 Aug 2014 15:24:59 +0000 Subject: [PATCH] * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation prefix to function labels when generating fast indirect calls. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214754 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/config/pa/pa.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ff5128745cb3..6ae4b426dcb1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-08-30 John David Anglin + + * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation + prefix to function labels when generating fast indirect calls. + 2014-08-30 David Malcolm PR bootstrap/62304 diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index 0ae6bd320331..c94e5780bef6 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -3217,7 +3217,12 @@ pa_assemble_integer (rtx x, unsigned int size, int aligned_p) && aligned_p && function_label_operand (x, VOIDmode)) { - fputs (size == 8? "\t.dword\tP%" : "\t.word\tP%", asm_out_file); + fputs (size == 8? "\t.dword\t" : "\t.word\t", asm_out_file); + + /* We don't want an OPD when generating fast indirect calls. */ + if (!TARGET_FAST_INDIRECT_CALLS) + fputs ("P%", asm_out_file); + output_addr_const (asm_out_file, x); fputc ('\n', asm_out_file); return true; -- 2.47.2