pa.c (pa_assemble_integer): Don't add PLABEL relocation prefix to function labels...
authorJohn David Anglin <danglin@gcc.gnu.org>
Sat, 30 Aug 2014 15:24:59 +0000 (15:24 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 30 Aug 2014 15:24:59 +0000 (15:24 +0000)
* config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
prefix to function labels when generating fast indirect calls.

From-SVN: r214754

gcc/ChangeLog
gcc/config/pa/pa.c

index ff5128745cb3ef3f40ac3ea94cc2f6e9abcf0ea5..6ae4b426dcb1592ecf0b295a51041dbfd11f9030 100644 (file)
@@ -1,3 +1,8 @@
+2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
+
+       * 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  <dmalcolm@redhat.com>
 
        PR bootstrap/62304
index 0ae6bd320331a1a81ae7c5e48409c240773cb2d9..c94e5780bef6adce68d6d2c4f2420d7b81439170 100644 (file)
@@ -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;