]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
pa.c (pa_output_global_address): Handle LABEL_REF plus CONST_INT for goto.
authorJohn David Anglin <danglin@gcc.gnu.org>
Thu, 11 Jun 2015 23:26:24 +0000 (23:26 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Thu, 11 Jun 2015 23:26:24 +0000 (23:26 +0000)
* config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
CONST_INT for goto.

From-SVN: r224400

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

index 19f4fe346ff772a171305f530542ce0204871bf7..755103fa21b80205d08d4d23f831620e1b6dde7a 100644 (file)
@@ -1,3 +1,8 @@
+2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
+
+       * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
+       CONST_INT for goto.
+
 2015-06-11  Richard Biener  <rguenther@suse.de>
 
        Backport from mainline, guarded with in_lto_p
index 5aad9fdbc654ed7a96eef15c71dad2bbe047e4a2..7fdc9b679e5fc560cf91a1289d9ef4b722648e96 100644 (file)
@@ -5421,6 +5421,7 @@ pa_output_global_address (FILE *file, rtx x, int round_constant)
 
       switch (GET_CODE (XEXP (XEXP (x, 0), 0)))
        {
+       case LABEL_REF:
        case SYMBOL_REF:
          base = XEXP (XEXP (x, 0), 0);
          output_addr_const (file, base);
@@ -5434,6 +5435,7 @@ pa_output_global_address (FILE *file, rtx x, int round_constant)
 
       switch (GET_CODE (XEXP (XEXP (x, 0), 1)))
        {
+       case LABEL_REF:
        case SYMBOL_REF:
          base = XEXP (XEXP (x, 0), 1);
          output_addr_const (file, base);