Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist/gcc Initialize the mode before access...



details:   https://anonhg.NetBSD.org/src/rev/db40a81757c8
branches:  trunk
changeset: 454353:db40a81757c8
user:      maya <maya%NetBSD.org@localhost>
date:      Sat Sep 14 15:02:47 2019 +0000

description:
Initialize the mode before accessing the move costs.
This matches the code of the rest of the file, and might be acceptable
by upstream.

PR toolchain/53176.

diffstat:

 external/gpl3/gcc/dist/gcc/ira-color.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r e8af958bb86f -r db40a81757c8 external/gpl3/gcc/dist/gcc/ira-color.c
--- a/external/gpl3/gcc/dist/gcc/ira-color.c    Sat Sep 14 15:00:04 2019 +0000
+++ b/external/gpl3/gcc/dist/gcc/ira-color.c    Sat Sep 14 15:02:47 2019 +0000
@@ -2771,6 +2771,7 @@
        }
       else
        gcc_unreachable ();
+      ira_init_register_move_cost_if_necessary(allocno_mode);
       cost += cp->freq * ira_register_move_cost[allocno_mode][rclass][rclass];
     }
   return cost;



Home | Main Index | Thread Index | Old Index