Commit b333d8b6 by Segher Boessenkool Committed by Segher Boessenkool

rs6000: Handle print_operand_address for unexpected RTL (PR87598)

As the PR shows, the user can force this to be called on at least some
RTL that is not a valid address.  Most targets treat this as if the
user knows best; let's do the same.


	PR target/87598
	* config/rs6000/rs6000.c (print_operand_address): For unexpected RTL
	call output_addr_const and hope for the best.

From-SVN: r265392
parent e86087ee
2018-10-22 Segher Boessenkool <segher@kernel.crashing.org>
PR target/87598
* config/rs6000/rs6000.c (print_operand_address): For unexpected RTL
call output_addr_const and hope for the best.
2018-10-22 Richard Biener <rguenther@suse.de> 2018-10-22 Richard Biener <rguenther@suse.de>
* gimple-ssa-evrp-analyze.c * gimple-ssa-evrp-analyze.c
...@@ -21273,7 +21273,7 @@ print_operand_address (FILE *file, rtx x) ...@@ -21273,7 +21273,7 @@ print_operand_address (FILE *file, rtx x)
fprintf (file, "(%s)", reg_names[REGNO (XVECEXP (tocrel_base_oac, 0, 1))]); fprintf (file, "(%s)", reg_names[REGNO (XVECEXP (tocrel_base_oac, 0, 1))]);
} }
else else
gcc_unreachable (); output_addr_const (file, x);
} }
/* Implement TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA. */ /* Implement TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA. */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment