aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/try_catch.cc
diff options
context:
space:
mode:
authorNelson Chu <nelson@rivosinc.com>2024-07-31 13:00:11 +0800
committerNelson Chu <nelson@rivosinc.com>2024-08-09 10:38:34 +0800
commit04c9cf0a8c5f03e5a1bb91a954cc42eb83a3e493 (patch)
treea7a78b232bf954d596c35ae53143553798e6025f /gdb/testsuite/gdb.cp/try_catch.cc
parent2fba6c8908c230a5ecd8096b5c9b331eaddb2a30 (diff)
downloadgdb-master.zip
gdb-master.tar.gz
gdb-master.tar.bz2
RISC-V: PR32014, .option directives shuoldn't affect elf attribute.HEADmaster
The .option arch/rvc/norvc/push/pop directives can only take effect for a small/large specific code region, so they are not file-level architecture setting. They should only affect the mapping symbols only rather than the file-level elf architecture attribute. Otherwise, the elf architecture attribute will appear to missing some extensions when -flto merges files with different .option architecture settings. gas/ PR 32014 * config/tc-riscv.c (file_arch_str): New const char *, rather than the arch_str in the riscv_rps_as.subset_list, it's file-level so only be affected by .attribute arch directive. (riscv_reset_subsets_list_arch_str): Renamed to riscv_set_arch_str, and also can handle both file_arch_str and arch_str in subset_list, just give the pointer address as the input. (riscv_set_arch): Called by -march and .attribute arch, so set both file_arch_str and arch_str in subset_list. (s_riscv_option): Updated .option arch/rvc/norvc/push/pop that only set the arch_str in subset_list. (riscv_write_out_attrs): Output elf architecture attribute according to file_arch_str. Freed file_arch_str. * doc/c-riscv.texi: Added destrbution that .option directives shouldn't affect the elf attribute settings. * testsuite/gas/riscv/option-arch.s: From option-arch-01/02/03 merged. * testsuite/gas/riscv/option-arch-dis.d: Likewise, for dis-assembler. * testsuite/gas/riscv/option-arch-attr.d: Likewise, to check readelf -A.
Diffstat (limited to 'gdb/testsuite/gdb.cp/try_catch.cc')
0 files changed, 0 insertions, 0 deletions