diff options
author | Claudiu Zissulescu <claziss@synopsys.com> | 2017-12-18 16:26:35 +0100 |
---|---|---|
committer | Claudiu Zissulescu <claziss@gcc.gnu.org> | 2017-12-18 16:26:35 +0100 |
commit | 2bd36ebab737f4bd3f5d306b269ffdff22eace4f (patch) | |
tree | 3e47e4584d2c2b27eb49acb0453840881ef15123 /gcc/config | |
parent | 4aeba1b7659603e49b8edfc0d64aa7790d2ef3fe (diff) | |
download | gcc-2bd36ebab737f4bd3f5d306b269ffdff22eace4f.zip gcc-2bd36ebab737f4bd3f5d306b269ffdff22eace4f.tar.gz gcc-2bd36ebab737f4bd3f5d306b269ffdff22eace4f.tar.bz2 |
[ARC] Update legitimate constant hook.
Make sure we check the constants in all cases.
gcc/
2017-10-14 Claudiu Zissulescu <claziss@synopsys.com>
* config/arc/arc.c (arc_legitimate_constant_p): Always check all
constants.
testsuite/
2017-10-14 Claudiu Zissulescu <claziss@synopsys.com>
* gcc.target/arc/tls-1.c: New test.
From-SVN: r255778
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/arc/arc.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c index d1d0d72..29c2a0f 100644 --- a/gcc/config/arc/arc.c +++ b/gcc/config/arc/arc.c @@ -5999,12 +5999,6 @@ arc_return_addr_rtx (int count, ATTRIBUTE_UNUSED rtx frame) bool arc_legitimate_constant_p (machine_mode mode, rtx x) { - if (GET_CODE (x) == SYMBOL_REF && SYMBOL_REF_TLS_MODEL (x)) - return false; - - if (!flag_pic && mode != Pmode) - return true; - switch (GET_CODE (x)) { case CONST: |