diff options
author | Florian Weimer <fweimer@redhat.com> | 2023-01-02 16:18:02 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2023-01-02 16:18:02 +0100 |
commit | 3b6cac2b44b384cd2091eaeaebeb3478c253a25d (patch) | |
tree | 0c7eaab6bb102eca8829b40fef1e9d531f10eb7d /gcc/target.def | |
parent | 8385088039f58a1d403cbb0792105236d240de85 (diff) | |
download | gcc-3b6cac2b44b384cd2091eaeaebeb3478c253a25d.zip gcc-3b6cac2b44b384cd2091eaeaebeb3478c253a25d.tar.gz gcc-3b6cac2b44b384cd2091eaeaebeb3478c253a25d.tar.bz2 |
Compute a table of DWARF register sizes at compile
The sizes are compile-time constants. Create a vector with them,
so that they can be inspected at compile time.
gcc/
* dwarf2cfi.cc (init_return_column_size): Remove.
(init_one_dwarf_reg_size): Adjust.
(generate_dwarf_reg_sizes): New function. Extracted
from expand_builtin_init_dwarf_reg_sizes.
(expand_builtin_init_dwarf_reg_sizes): Call
generate_dwarf_reg_sizes.
* target.def (init_dwarf_reg_sizes_extra): Adjust
hook signature.
* config/msp430/msp430.cc
(msp430_init_dwarf_reg_sizes_extra): Adjust.
* config/rs6000/rs6000.cc
(rs6000_init_dwarf_reg_sizes_extra): Likewise.
* doc/tm.texi: Update.
Diffstat (limited to 'gcc/target.def')
-rw-r--r-- | gcc/target.def | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/target.def b/gcc/target.def index db8af0c..da5dd31 100644 --- a/gcc/target.def +++ b/gcc/target.def @@ -4039,11 +4039,11 @@ DEFHOOK "If some registers are represented in Dwarf-2 unwind information in\n\ multiple pieces, define this hook to fill in information about the\n\ sizes of those pieces in the table used by the unwinder at runtime.\n\ -It will be called by @code{expand_builtin_init_dwarf_reg_sizes} after\n\ +It will be called by @code{generate_dwarf_reg_sizes} after\n\ filling in a single size corresponding to each hard register;\n\ -@var{address} is the address of the table.", - void, (tree address), - hook_void_tree) +@var{sizes} is the address of the table. It will contain\n\ +@code{DWARF_FRAME_REGISTERS} elements when this hook is called.", + void, (poly_uint16 *sizes), nullptr) /* Fetch the fixed register(s) which hold condition codes, for targets where it makes sense to look for duplicate assignments to |