Module Name:    src
Committed By:   maya
Date:           Fri Oct  4 12:46:43 UTC 2019

Modified Files:
        src/external/gpl3/gcc/dist/gcc: ira-color.c

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

Fixes unlikely segfault on VAX.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gcc/dist/gcc/ira-color.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/gcc/ira-color.c
diff -u src/external/gpl3/gcc/dist/gcc/ira-color.c:1.6 src/external/gpl3/gcc/dist/gcc/ira-color.c:1.7
--- src/external/gpl3/gcc/dist/gcc/ira-color.c:1.6	Tue Oct  1 10:38:16 2019
+++ src/external/gpl3/gcc/dist/gcc/ira-color.c	Fri Oct  4 12:46:43 2019
@@ -1377,6 +1377,7 @@ update_costs_from_allocno (ira_allocno_t
 	     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]

Reply via email to