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 We might've switched modes, re-in...



details:   https://anonhg.NetBSD.org/src/rev/b6d161ac2adf
branches:  trunk
changeset: 460023:b6d161ac2adf
user:      maya <maya%NetBSD.org@localhost>
date:      Fri Oct 04 12:46:43 2019 +0000

description:
We might've switched modes, re-init the move cost table again if necessary.

Fixes unlikely segfault on VAX.

diffstat:

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

diffs (11 lines):

diff -r 640a0c2a5ddf -r b6d161ac2adf external/gpl3/gcc/dist/gcc/ira-color.c
--- a/external/gpl3/gcc/dist/gcc/ira-color.c    Fri Oct 04 12:34:40 2019 +0000
+++ b/external/gpl3/gcc/dist/gcc/ira-color.c    Fri Oct 04 12:46:43 2019 +0000
@@ -1377,6 +1377,7 @@
             e.g. DImode for AREG on x86.  For such cases the
             register move cost will be maximal.  */
          mode = narrower_subreg_mode (mode, ALLOCNO_MODE (cp->second));
+         ira_init_register_move_cost_if_necessary (mode);
          
          cost = (cp->second == allocno
                  ? ira_register_move_cost[mode][rclass][aclass]



Home | Main Index | Thread Index | Old Index