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]

Re: Thumb PIC


>: +(define_insn "pic_add_dot_plus_four"
>: +  [(set (match_operand 0 "register_operand" "+r")
>: +	(plus:SI (match_dup 0) (const (plus:SI (pc) (const_int 8)))))
>: +   (use (label_ref (match_operand 1 "" "")))]
>
>Shouldn' this be:
>
>: +(define_insn "pic_add_dot_plus_four"
>: +  [(set (match_operand 0 "register_operand" "+r")
>: +	(plus:SI (match_dup 0) (const (plus:SI (pc) (const_int 4)))))
>: +   (use (label_ref (match_operand 1 "" "")))]               ^

Yes, of course you're right.  Thanks.

p.



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