[ARC] Rework delegitimate_address hook
authorClaudiu Zissulescu <claziss@synopsys.com>
Fri, 26 Jan 2018 11:34:16 +0000 (12:34 +0100)
committerClaudiu Zissulescu <claziss@gcc.gnu.org>
Fri, 26 Jan 2018 11:34:16 +0000 (12:34 +0100)
commit20565692f0d31da53aab96fc0a8a4eaab2c2b142
tree81ec1408844e868a63e5e368970752a97ae03c64
parent048c6a9adcbe3dbf58cac405ebc39d94ea6c025b
[ARC] Rework delegitimate_address hook

Delegitimize address is used to undo the obfuscating effect of PIC
addresses, returning the address in a way which is understood by the
compiler.  The old version of the hook was outdated, not beeing able
to recognize the current addresses generated by the ARC backend.

gcc/
2018-01-26  Claudiu Zissulescu  <claziss@synopsys.com>

* config/arc/arc.c (arc_delegitimize_address_0): Refactored to
recognize new pic like addresses.
(arc_delegitimize_address): Clean up.

testsuite/
2018-01-26  Claudiu Zissulescu  <claziss@synopsys.com>

* testsuite/gcc.target/arc/tdelegitimize_addr.c: New test.

From-SVN: r257084
gcc/ChangeLog
gcc/config/arc/arc.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arc/tdelegitimize_addr.c [new file with mode: 0755]