[ARC] Fix uncache attribute.
authorClaudiu Zissulescu <claziss@synopsys.com>
Wed, 25 Jul 2018 14:31:04 +0000 (16:31 +0200)
committerClaudiu Zissulescu <claziss@gcc.gnu.org>
Wed, 25 Jul 2018 14:31:04 +0000 (16:31 +0200)
commit3e4a5f5485c15381c67a940d5da449242ace9029
treede686ee247f43917dfce99fc46c5f2c266beff04
parent8f176ba232f6c0a452c059cceb1ce5fcdd8177e1
[ARC] Fix uncache attribute.

gcc/
2018-05-09  Claudiu Zissulescu  <claziss@synopsys.com>

* config/arc/arc.c (compact_memory_operand_p): Check for uncached
accesses as well.
(arc_is_uncached_mem_p): uncached applies to both the variable and
the pointer.

testsuite/
2018-05-09  Claudiu Zissulescu  <claziss@synopsys.com>

* gcc.target/arc/uncached-1.c: New test.
* gcc.target/arc/uncached-2.c: Likewise.

From-SVN: r262970
gcc/ChangeLog
gcc/config/arc/arc.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arc/uncached-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/arc/uncached-2.c [new file with mode: 0644]