arc-2016.09 is the most recent toolchain for ARC cores and it is based on top of upstream Binutils 2.27 and GCC 6.2.1. With updated major version of GCC we copied all GCC 6.x patches for ARC as well as Bintils 2.27 patches. Note that toochain sports ARCv4 ABI and so must be used with 4.8+ Linux kernels. Even though it will build v4.4 kernel perfectly fine on attempt to run user-space apps they won't work with older kernel. That said previuosly sent RFC patches with Linux kernel update are required: [1] https://patchwork.ozlabs.org/patch/726686/ [2] https://patchwork.ozlabs.org/patch/726687/ Signed-off-by: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
66 lines
2.4 KiB
Diff
66 lines
2.4 KiB
Diff
Revert of:
|
|
|
|
commit 275035b56823b26d5fb7e90fad945b998648edf2
|
|
Author: bergner <bergner@138bc75d-0d04-0410-961f-82ee72b054a4>
|
|
Date: Thu Sep 5 14:09:07 2013 +0000
|
|
|
|
PR target/58139
|
|
* reginfo.c (choose_hard_reg_mode): Scan through all mode classes
|
|
looking for widest mode.
|
|
|
|
|
|
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202286 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
|
|
|
|
--- a/gcc/reginfo.c
|
|
+++ b/gcc/reginfo.c
|
|
@@ -625,35 +625,40 @@ choose_hard_reg_mode (unsigned int regno
|
|
mode = GET_MODE_WIDER_MODE (mode))
|
|
if ((unsigned) hard_regno_nregs[regno][mode] == nregs
|
|
&& HARD_REGNO_MODE_OK (regno, mode)
|
|
- && (! call_saved || ! HARD_REGNO_CALL_PART_CLOBBERED (regno, mode))
|
|
- && GET_MODE_SIZE (mode) > GET_MODE_SIZE (found_mode))
|
|
+ && (! call_saved || ! HARD_REGNO_CALL_PART_CLOBBERED (regno, mode)))
|
|
found_mode = mode;
|
|
|
|
+ if (found_mode != VOIDmode)
|
|
+ return found_mode;
|
|
+
|
|
for (mode = GET_CLASS_NARROWEST_MODE (MODE_FLOAT);
|
|
mode != VOIDmode;
|
|
mode = GET_MODE_WIDER_MODE (mode))
|
|
if ((unsigned) hard_regno_nregs[regno][mode] == nregs
|
|
&& HARD_REGNO_MODE_OK (regno, mode)
|
|
- && (! call_saved || ! HARD_REGNO_CALL_PART_CLOBBERED (regno, mode))
|
|
- && GET_MODE_SIZE (mode) > GET_MODE_SIZE (found_mode))
|
|
+ && (! call_saved || ! HARD_REGNO_CALL_PART_CLOBBERED (regno, mode)))
|
|
found_mode = mode;
|
|
|
|
+ if (found_mode != VOIDmode)
|
|
+ return found_mode;
|
|
+
|
|
for (mode = GET_CLASS_NARROWEST_MODE (MODE_VECTOR_FLOAT);
|
|
mode != VOIDmode;
|
|
mode = GET_MODE_WIDER_MODE (mode))
|
|
if ((unsigned) hard_regno_nregs[regno][mode] == nregs
|
|
&& HARD_REGNO_MODE_OK (regno, mode)
|
|
- && (! call_saved || ! HARD_REGNO_CALL_PART_CLOBBERED (regno, mode))
|
|
- && GET_MODE_SIZE (mode) > GET_MODE_SIZE (found_mode))
|
|
+ && (! call_saved || ! HARD_REGNO_CALL_PART_CLOBBERED (regno, mode)))
|
|
found_mode = mode;
|
|
|
|
+ if (found_mode != VOIDmode)
|
|
+ return found_mode;
|
|
+
|
|
for (mode = GET_CLASS_NARROWEST_MODE (MODE_VECTOR_INT);
|
|
mode != VOIDmode;
|
|
mode = GET_MODE_WIDER_MODE (mode))
|
|
if ((unsigned) hard_regno_nregs[regno][mode] == nregs
|
|
&& HARD_REGNO_MODE_OK (regno, mode)
|
|
- && (! call_saved || ! HARD_REGNO_CALL_PART_CLOBBERED (regno, mode))
|
|
- && GET_MODE_SIZE (mode) > GET_MODE_SIZE (found_mode))
|
|
+ && (! call_saved || ! HARD_REGNO_CALL_PART_CLOBBERED (regno, mode)))
|
|
found_mode = mode;
|
|
|
|
if (found_mode != VOIDmode)
|