]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
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:29:45 +0000 (15:29 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 30 Aug 2014 15:29:45 +0000 (15:29 +0000)
* config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
prefix to function labels when generating fast indirect calls.

From-SVN: r214756

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

index 6236b68ef2a1fd26689a8605dcffe1710d54487b..92514dda99b906aeab9755075858ca91b39cf0dc 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-26  Joel Sherrill <joel.sherrill@oarcorp.com>
 
        * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
index 63c7b7d4bdc881bf0e5bad8b1700983cf88e2efd..bd358f9c3c52460e7e2997ad2dad2f8ba1826edd 100644 (file)
@@ -3237,7 +3237,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;