This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch x86/darwin] fix PR51784 'PIC register not correctly preserved...'


On Fri, Jul 19, 2013 at 02:47:51PM +0100, Iain Sandoe wrote:
> +      /* Get a new pic base.  */
> +      emit_insn (gen_set_got_labelled (pic_offset_table_rtx, label_rtx));
> +      /* Correct this with the offset from the new to the old.  */
> +      xops[0] = xops[1] = pic_offset_table_rtx;
> +      label_rtx = gen_rtx_LABEL_REF (SImode, label_rtx);
> +      tmp = gen_rtx_UNSPEC (Pmode, gen_rtvec (1, label_rtx), UNSPEC_MACHOPIC_OFFSET);

Too long line, please wrap it.

> +      xops[2] = gen_rtx_CONST (Pmode, tmp);
> +      ix86_expand_binary_operator (MINUS, SImode, xops);
> +    }
> +  DONE;
> +})
> +
>  ;; Avoid redundant prefixes by splitting HImode arithmetic to SImode.
>  
>  (define_split


	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]