The attached change adds support for LABEL_REF plus CONST_INT in pa_output_global_address and fixes ICE compiling gcc.dg/torture/pr66123.c.
Tested on hppa2.0w-hp-hpux11.11, hppa64-hp-hpux11.11 and hppa-unknown-linux-gnu. Committed to active branches. Dave -- John David Anglin dave.ang...@bell.net
2015-06-11 John David Anglin <dang...@gcc.gnu.org> * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus CONST_INT for goto. Index: config/pa/pa.c =================================================================== --- config/pa/pa.c (revision 224135) +++ config/pa/pa.c (working copy) @@ -5427,6 +5427,7 @@ 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); @@ -5440,6 +5441,7 @@ 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);