aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/src/filesystem/ops.cc
diff options
context:
space:
mode:
authorYang Yujie <yangyujie@loongson.cn>2024-01-11 09:07:10 +0800
committerLulu Cheng <chenglulu@loongson.cn>2024-01-11 19:03:08 +0800
commitea2a9c76a1dcffbbec6e53655bef9236d3a8e691 (patch)
tree27b9fd96ad2069ad8f56478f1be1f290b9948158 /libstdc++-v3/src/filesystem/ops.cc
parentb89ef3d40afc4604c279e8802bf279f6e4060f67 (diff)
downloadgcc-ea2a9c76a1dcffbbec6e53655bef9236d3a8e691.zip
gcc-ea2a9c76a1dcffbbec6e53655bef9236d3a8e691.tar.gz
gcc-ea2a9c76a1dcffbbec6e53655bef9236d3a8e691.tar.bz2
LoongArch: Implement option save/restore
LTO option streaming and target attributes both require per-function target configuration, which is achieved via option save/restore. We implement TARGET_OPTION_{SAVE,RESTORE} to switch the la_target context in addition to other automatically maintained option states (via the "Save" option property in the .opt files). Tested on loongarch64-linux-gnu without regression. PR target/113233 gcc/ChangeLog: * config/loongarch/genopts/loongarch.opt.in: Mark options with the "Save" property. * config/loongarch/loongarch.opt: Same. * config/loongarch/loongarch-opts.cc: Refresh -mcmodel= state according to la_target. * config/loongarch/loongarch.cc: Implement TARGET_OPTION_{SAVE, RESTORE} for the la_target structure; Rename option conditions to have the same "la_" prefix. * config/loongarch/loongarch.h: Same.
Diffstat (limited to 'libstdc++-v3/src/filesystem/ops.cc')
0 files changed, 0 insertions, 0 deletions