diff options
| author | Robin Dapp <rdapp@ventanamicro.com> | 2025-12-05 10:55:18 +0100 |
|---|---|---|
| committer | Robin Dapp <rdapp@ventanamicro.com> | 2025-12-09 09:36:03 +0100 |
| commit | c139a4c91829373e77dedf8bb62f9e4361fc56ab (patch) | |
| tree | 119fb2ab9272618530a13fc47710a18a5c5bd6e0 /libjava/classpath/java/sql | |
| parent | 0b129b8b368635b3170aa276809d644dc99e3256 (diff) | |
| download | gcc-c139a4c91829373e77dedf8bb62f9e4361fc56ab.zip gcc-c139a4c91829373e77dedf8bb62f9e4361fc56ab.tar.gz gcc-c139a4c91829373e77dedf8bb62f9e4361fc56ab.tar.bz2 | |
RISC-V: Pragma target [PR115325].
This implements #pragma GCC target () for riscv.
All the functionality was already there so we only need to wrap existing
functions.
PR target/115325
gcc/ChangeLog:
* config/riscv/riscv-c.cc (riscv_pragma_target_parse): New
function.
(riscv_register_pragmas): Register riscv_pragma_target_parse.
* config/riscv/riscv-protos.h (riscv_process_target_attr_for_pragma):
Declare.
(riscv_reset_previous_fndecl): Ditto.
* config/riscv/riscv-target-attr.cc (riscv_process_target_attr_for_pragma):
New function.
* config/riscv/riscv.cc (riscv_reset_previous_fndecl): Reset.
(riscv_option_save): New function.
(riscv_option_print): Ditto.
(riscv_get_interrupt_type): Adjust docs.
(TARGET_OPTION_SAVE): Implement.
(TARGET_OPTION_PRINT): Ditto.
* doc/extend.texi: Document that riscv can do target pragams.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/pragma-target-1.c: New test.
* gcc.target/riscv/pragma-target-2.c: New test.
Diffstat (limited to 'libjava/classpath/java/sql')
0 files changed, 0 insertions, 0 deletions
