Module Name: src Committed By: maya Date: Sat Sep 14 15:02:47 UTC 2019
Modified Files: src/external/gpl3/gcc/dist/gcc: ira-color.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 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.4 src/external/gpl3/gcc/dist/gcc/ira-color.c:1.5 --- src/external/gpl3/gcc/dist/gcc/ira-color.c:1.4 Sat Sep 14 15:00:04 2019 +++ src/external/gpl3/gcc/dist/gcc/ira-color.c Sat Sep 14 15:02:47 2019 @@ -2771,6 +2771,7 @@ allocno_copy_cost_saving (ira_allocno_t } 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;