* pa.c (legitimize_pic_address): Force function labels into memory.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131096
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
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)));