diff options
author | Claudiu Zissulescu <claziss@synopsys.com> | 2019-03-06 11:45:51 +0100 |
---|---|---|
committer | Claudiu Zissulescu <claziss@gcc.gnu.org> | 2019-03-06 11:45:51 +0100 |
commit | 9f54ba8f7dfb00d834893a746db141a409778ad9 (patch) | |
tree | 6014d029848146d70216ca5462aea848b1881345 /gcc/config/arc/arc-c.def | |
parent | 3050b357660bf0425e0ac63c22960d2ec3af4572 (diff) | |
download | gcc-9f54ba8f7dfb00d834893a746db141a409778ad9.zip gcc-9f54ba8f7dfb00d834893a746db141a409778ad9.tar.gz gcc-9f54ba8f7dfb00d834893a746db141a409778ad9.tar.bz2 |
[ARC] Fix logic set UNALIGNED_ACCESS
gcc/
xxxx-xx-xx Claudiu Zissulescu <claziss@synopsys.com>
* config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
unaligned_access variable.
* config/arc/arc.c (arc_override_options): Set unaligned access
default on for HS CPUs.
* config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
From-SVN: r269417
Diffstat (limited to 'gcc/config/arc/arc-c.def')
-rw-r--r-- | gcc/config/arc/arc-c.def | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/arc/arc-c.def b/gcc/config/arc/arc-c.def index 9c0ba2c..9472b48 100644 --- a/gcc/config/arc/arc-c.def +++ b/gcc/config/arc/arc-c.def @@ -29,7 +29,7 @@ ARC_C_DEF ("__ARC_MUL64__", TARGET_MUL64_SET) ARC_C_DEF ("__ARC_MUL32BY16__", TARGET_MULMAC_32BY16_SET) ARC_C_DEF ("__ARC_SIMD__", TARGET_SIMD_SET) ARC_C_DEF ("__ARC_RF16__", TARGET_RF16) -ARC_C_DEF ("__ARC_UNALIGNED__", !STRICT_ALIGNMENT) +ARC_C_DEF ("__ARC_UNALIGNED__", unaligned_access) ARC_C_DEF ("__ARC_BARREL_SHIFTER__", TARGET_BARREL_SHIFTER) |