aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.cc
diff options
context:
space:
mode:
authorVladimir N. Makarov <vmakarov@redhat.com>2023-11-22 09:01:02 -0500
committerVladimir N. Makarov <vmakarov@redhat.com>2023-11-22 09:04:28 -0500
commit95f61de95bbcc2e4fb7020e27698140abea23788 (patch)
tree5ec23fa1e5bbe6cd696dcd59ba2889c997efd0d1 /gcc/expr.cc
parent08ba7e8b98e71d72c2bb3860f8d3642ce380afdf (diff)
downloadgcc-95f61de95bbcc2e4fb7020e27698140abea23788.zip
gcc-95f61de95bbcc2e4fb7020e27698140abea23788.tar.gz
gcc-95f61de95bbcc2e4fb7020e27698140abea23788.tar.bz2
[IRA]: Fix using undefined dump file in IRA code during insn scheduling
Part of IRA code is used for register pressure sensitive insn scheduling and live range shrinkage. Numerous changes of IRA resulted in that this IRA code uses dump file passed by the scheduler and internal ira dump file (in called functions) which can be undefined or freed by the scheduler during compiling previous functions. The patch fixes this problem. To reproduce the error valgrind should be used and GCC should be compiled with valgrind annotations. Therefor the patch does not contain the test case. gcc/ChangeLog: PR rtl-optimization/112610 * ira-costs.cc: (find_costs_and_classes): Remove arg. Use ira_dump_file for printing. (print_allocno_costs, print_pseudo_costs): Ditto. (ira_costs): Adjust call of find_costs_and_classes. (ira_set_pseudo_classes): Set up and restore ira_dump_file.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions