From 7299e9f15ad2f66ae7f0f3ff2119948e366bf706 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 10 Feb 2015 10:10:07 +0000 Subject: [PATCH] rl78.c: Remove DIV attribute code accidentally included in previous rl78 commit. * config/rl78/rl78.c: Remove DIV attribute code accidentally included in previous rl78 commit. From-SVN: r220578 --- gcc/ChangeLog | 15 ++++++++---- gcc/config/rl78/rl78.c | 55 ------------------------------------------ 2 files changed, 10 insertions(+), 60 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index db3927e4411..6ee5216a170 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-02-10 Nick Clifton + + * config/rl78/rl78.c: Remove DIV attribute code accidentally + included in previous rl78 commit. + 2015-02-10 Richard Biener * tree-streamer.h (streamer_read_tree_bitfields): Adjust. @@ -65,7 +70,7 @@ 2015-02-08 Jan Hubicka - PR ipa/63566 + PR ipa/63566 * ipa-icf.c (set_local): New function. (sem_function::merge): Use it. @@ -125,13 +130,13 @@ 2015-02-08 Jan Hubicka - PR ipa/63566 + PR ipa/63566 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases. (cgraph_node::local_p): Remove thunk related FIXME. 2015-02-08 Jan Hubicka - PR ipa/63566 + PR ipa/63566 * i386.c (ix86_function_regparm): Look through aliases to see if callee is local and optimized. (ix86_function_sseregparm): Likewise; also use target's SSE math @@ -141,12 +146,12 @@ 2015-02-08 Jan Hubicka - PR ipa/63566 + PR ipa/63566 * ipa-split.c (execute_split_functions): Split if function has aliases. 2015-02-08 Jan Hubicka - PR ipa/63566 + PR ipa/63566 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is aliases before trying to expand it. (cgraph_node::expand_thunk): Fix formating. diff --git a/gcc/config/rl78/rl78.c b/gcc/config/rl78/rl78.c index 1ab483e01a3..38a99c230d4 100644 --- a/gcc/config/rl78/rl78.c +++ b/gcc/config/rl78/rl78.c @@ -3462,18 +3462,6 @@ rl78_alloc_physical_registers (void) record_content (BC, NULL_RTX); record_content (DE, NULL_RTX); } - else if (valloc_method == VALLOC_DIVHI) - { - record_content (AX, NULL_RTX); - record_content (BC, NULL_RTX); - } - else if (valloc_method == VALLOC_DIVSI) - { - record_content (AX, NULL_RTX); - record_content (BC, NULL_RTX); - record_content (DE, NULL_RTX); - record_content (HL, NULL_RTX); - } if (insn_ok_now (insn)) continue; @@ -3509,18 +3497,6 @@ rl78_alloc_physical_registers (void) record_content (BC, NULL_RTX); record_content (DE, NULL_RTX); break; - case VALLOC_DIVSI: - rl78_alloc_address_registers_div (insn); - record_content (AX, NULL_RTX); - record_content (BC, NULL_RTX); - record_content (DE, NULL_RTX); - record_content (HL, NULL_RTX); - break; - case VALLOC_DIVHI: - rl78_alloc_address_registers_div (insn); - record_content (AX, NULL_RTX); - record_content (BC, NULL_RTX); - break; default: gcc_unreachable (); } @@ -3835,37 +3811,6 @@ set_origin (rtx pat, rtx_insn * insn, int * origins, int * age) age[i] = 0; } } - else if (get_attr_valloc (insn) == VALLOC_DIVHI) - { - if (dump_file) - fprintf (dump_file, "Resetting origin of AX/DE for DIVHI pattern.\n"); - - for (i = 0; i < FIRST_PSEUDO_REGISTER; i++) - if (i == A_REG - || i == X_REG - || i == D_REG - || i == E_REG - || origins[i] == A_REG - || origins[i] == X_REG - || origins[i] == D_REG - || origins[i] == E_REG) - { - origins[i] = i; - age[i] = 0; - } - } - else if (get_attr_valloc (insn) == VALLOC_DIVSI) - { - if (dump_file) - fprintf (dump_file, "Resetting origin of AX/BC/DE/HL for DIVSI pattern.\n"); - - for (i = 0; i < FIRST_PSEUDO_REGISTER; i++) - if (i <= 7 || origins[i] <= 7) - { - origins[i] = i; - age[i] = 0; - } - } if (GET_CODE (src) == ASHIFT || GET_CODE (src) == ASHIFTRT -- 2.30.2