From 3cc5f8620d3d72c51c79e456fc1c000b7d7e19a5 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Sun, 21 Feb 2021 18:41:29 +0100 Subject: [PATCH] Revert: "i386: Remove REG_ALLOC_ORDER definition" This reverts commit 4c61e35f20fe2ffeb9421dbd6f26c767a234a4a0. --- gcc/config/i386/i386.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h index a34442e6b7e4..69fddcafd314 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. */ -- 2.47.3