OSDN Git Service

PR target/46685
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Dec 2010 22:33:16 +0000 (22:33 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Dec 2010 22:33:16 +0000 (22:33 +0000)
commit47ee4671670e31483631748819b6c1b53e495313
tree778ab8a9ab235a0baa62f6a827ed3204d8e5fa5b
parent57a907894ef36156cfbabc6b19cd0537614527cd
PR target/46685
* config/sparc/sparc.c (can_use_mov_pic_label_ref): New predicate.
(sparc_expand_move): Call it to decide whether to emit the special
mov{si,di}_pic_label_ref patterns.
(sparc_legitimize_pic_address): Call it to decide whether to emit
the regular PIC sequence for labels.  Fix long line.
(sparc_file_end): Set is_thunk for the PIC helper.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167395 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/sparc/sparc.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr46685.c [new file with mode: 0644]