[ARC] Fix for PR89838
authorClaudiu Zissulescu <claziss@synopsys.com>
Tue, 25 Jun 2019 09:52:04 +0000 (11:52 +0200)
committerClaudiu Zissulescu <claziss@gcc.gnu.org>
Tue, 25 Jun 2019 09:52:04 +0000 (11:52 +0200)
commit673f01b856e7006194874fef2e70866ec3dd07d9
tree5c10b964c92873ffc153830a70290b2583d9e8dc
parent5e5803060c3d6db3ff73195db798ffd8e5588e78
[ARC] Fix for PR89838

gcc/
xxxx-xx-xx  Claudiu Zissulescu  <claziss@synopsys.com>

* config/arc/arc.c (arc_symbol_binds_local_p): New function.
(arc_legitimize_pic_address): Simplify and cleanup the function.
(SYMBOLIC_CONST): Remove.
(prepare_pic_move): Likewise.
(prepare_move_operands): Handle complex mov cases here.
(arc_legitimize_address_0): Remove call to
arc_legitimize_pic_address.
(arc_legitimize_address): Remove call to
arc_legitimize_tls_address.
* config/arc/arc.md (movqi_insn): Allow Cm3 match.
(movhi_insn): Likewise.

/gcc/testsuite
xxxx-xx-xx  Claudiu Zissulescu  <claziss@synopsys.com>

* gcc.target/arc/pr89838.c: New file.

From-SVN: r272643
gcc/ChangeLog
gcc/config/arc/arc.c
gcc/config/arc/arc.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arc/pr89838.c [new file with mode: 0644]