re PR target/34525 (ICE in extract_insn, at recog.c:1990 on hppa)

PR target/34525
	* pa.c (legitimize_pic_address): Force function labels into memory.

From-SVN: r131096
This commit is contained in:
John David Anglin 2007-12-20 01:17:57 +00:00 committed by John David Anglin
parent ec871836a4
commit f946206c0e
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-12-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR target/34525
* pa.c (legitimize_pic_address): Force function labels into memory.
2007-12-19 Zdenek Dvorak <ook@ucw.cz>
* omp-low.c (build_omp_regions_1): Recognition of combined parallels

View File

@ -694,6 +694,10 @@ legitimize_pic_address (rtx orig, enum machine_mode mode, rtx reg)
tmp_reg = ((reload_in_progress || reload_completed)
? reg : gen_reg_rtx (Pmode));
/* Force function labels into memory. */
if (function_label_operand (orig, mode))
orig = force_const_mem (mode, orig);
emit_move_insn (tmp_reg,
gen_rtx_PLUS (word_mode, pic_offset_table_rtx,
gen_rtx_HIGH (word_mode, orig)));