diff mbox

[committed] Fix ICE compiling gcc.dg/torture/pr66123.c on hppa

Message ID BLU437-SMTP6B32F3E15BA10405A5F4E97BC0@phx.gbl
State New
Headers show

Commit Message

John David Anglin June 11, 2015, 11:34 p.m. UTC
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.anglin@bell.net
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.
diff mbox

Patch

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);