aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2021-02-21 18:41:29 +0100
committerUros Bizjak <ubizjak@gmail.com>2021-02-21 18:41:29 +0100
commit3cc5f8620d3d72c51c79e456fc1c000b7d7e19a5 (patch)
tree76975e13ab26f2dce460c1e2eeb2057c25851462
parentb2a55cafa84cc49d3d7ee9fc95e7f6622666570d (diff)
downloadgcc-3cc5f8620d3d72c51c79e456fc1c000b7d7e19a5.zip
gcc-3cc5f8620d3d72c51c79e456fc1c000b7d7e19a5.tar.gz
gcc-3cc5f8620d3d72c51c79e456fc1c000b7d7e19a5.tar.bz2
Revert: "i386: Remove REG_ALLOC_ORDER definition"
This reverts commit 4c61e35f20fe2ffeb9421dbd6f26c767a234a4a0.
-rw-r--r--gcc/config/i386/i386.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h
index a34442e..69fddca 100644
--- a/gcc/config/i386/i386.h
+++ b/gcc/config/i386/i386.h
@@ -1163,6 +1163,22 @@ extern const char *host_detect_local_cpu (int argc, const char **argv);
/* k0, k1, k2, k3, k4, k5, k6, k7*/ \
1, 1, 1, 1, 1, 1, 1, 1 }
+/* Order in which to allocate registers. Each register must be
+ listed once, even those in FIXED_REGISTERS. List frame pointer
+ late and fixed registers last. Note that, in general, we prefer
+ registers listed in CALL_USED_REGISTERS, keeping the others
+ available for storage of persistent values.
+
+ The ADJUST_REG_ALLOC_ORDER actually overwrite the order,
+ so this is just empty initializer for array. */
+
+#define REG_ALLOC_ORDER \
+{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, \
+ 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, \
+ 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, \
+ 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, \
+ 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75 }
+
/* ADJUST_REG_ALLOC_ORDER is a macro which permits reg_alloc_order
to be rearranged based on a particular function. When using sse math,
we want to allocate SSE before x87 registers and vice versa. */