aboutsummaryrefslogtreecommitdiff
path: root/gdb/opencl-lang.c
diff options
context:
space:
mode:
authorTsukasa OI <research_trasio@irq.a4lg.com>2022-09-21 06:23:55 +0000
committerTsukasa OI <research_trasio@irq.a4lg.com>2022-09-21 08:09:38 +0000
commitacab2a6872db8e6ebab3e91bc22a4df384d1c8ed (patch)
tree67a61c4d8b133706278357b331cd9ec2c0c812e9 /gdb/opencl-lang.c
parent3094c89e9ce3ae656ac56147ee34bf1f65e63d04 (diff)
downloadbinutils-acab2a6872db8e6ebab3e91bc22a4df384d1c8ed.zip
binutils-acab2a6872db8e6ebab3e91bc22a4df384d1c8ed.tar.gz
binutils-acab2a6872db8e6ebab3e91bc22a4df384d1c8ed.tar.bz2
RISC-V: Set EF_RISCV_TSO also on .option arch
This is a minor fix to commit 96462b012988d35ebb1137a2ad9fd0a96547d79a ("RISC-V: Implement Ztso extension"). Currently, it sets EF_RISCV_TSO ELF flag when initial ISA string contains the 'Ztso' extension. However, GAS has a way to update the ISA string: ".option arch". When the architecture is updated by ".option arch", EF_RISCV_RVC ELF flag is set when the 'C' extension is detected. Analogously, this commit sets the EF_RISCV_TSO when the 'Ztso' extension is detected. gas/ChangeLog: * config/tc-riscv.c (s_riscv_option): Set TSO ELF flag if the 'Ztso' extension is specified via ".option arch" directive.
Diffstat (limited to 'gdb/opencl-lang.c')
0 files changed, 0 insertions, 0 deletions