diff options
author | LIU Hao <lh_mouse@126.com> | 2024-07-15 16:55:52 +0800 |
---|---|---|
committer | Jonathan Yong <10walls@gmail.com> | 2024-07-19 09:49:36 +0000 |
commit | 953bf37690d22de956d75c6aef7a9690ad55b9a7 (patch) | |
tree | 6836e82555f101b14961220ef98b0b9b0b96fcee /gnattools/ChangeLog | |
parent | b17ac5e747f8df2d47855344375d1e86465b70bf (diff) |
Do not use caller-saved registers for COMDAT functionsreleases/gcc-13
A reference to a COMDAT function may be resolved to another definition
outside the current translation unit, so it's not eligible for `-fipa-ra`.
In `decl_binds_to_current_def_p()` there is already a check for weak
symbols. This commit checks for COMDAT functions that are not implemented
as weak symbols, for example, on *-*-mingw32.
gcc/ChangeLog:
PR rtl-optimization/115049
* varasm.cc (decl_binds_to_current_def_p): Add a check for COMDAT
declarations too, like weak ones.
(cherry picked from commit 5080840d8fbf25a321dd27543a1462d393d338bc)
Diffstat (limited to 'gnattools/ChangeLog')
0 files changed, 0 insertions, 0 deletions