diff options
author | Indu Bhagat <indu.bhagat@oracle.com> | 2024-08-06 09:46:06 -0700 |
---|---|---|
committer | Indu Bhagat <indu.bhagat@oracle.com> | 2024-08-06 09:46:06 -0700 |
commit | bb07e97d25b33d8cdcce5238bc0e292308bf570d (patch) | |
tree | fd02efb1566fdd960de23f85198dd96ba024d497 /gas/ChangeLog-2013 | |
parent | 87e720ad359ece678b37b036a61e0adcc60304f4 (diff) | |
download | gdb-bb07e97d25b33d8cdcce5238bc0e292308bf570d.zip gdb-bb07e97d25b33d8cdcce5238bc0e292308bf570d.tar.gz gdb-bb07e97d25b33d8cdcce5238bc0e292308bf570d.tar.bz2 |
gas: scfi: replace verbose expressions with local vars
Replace the scattered and repeated uses of verbose expressions with
variables. E.g.,
ginsn_get_src_reg (src1) -> src1_reg
ginsn_get_src_type (src1) -> src1_type
etc.
This hopefully makes the logic bit more maintainable. While at it,
include minor adjustments to make few checks in gen_scfi_ops () more
precise:
- When getting imm value from src operand, ensure the src type is
GINSN_SRC_IMM,
- When getting reg from src operand, ensure the src type is checked
too (GINSN_SRC_REG or GINSN_SRC_INDIRECT as appropriate).
On the other hand, the changes in verify_heuristic_traceable_reg_fp ()
and verify_heuristic_traceable_stack_manipulation () are purely
mechanical.
gas/
* scfi.c (verify_heuristic_traceable_reg_fp): Add new local
vars and reuse them.
(verify_heuristic_traceable_stack_manipulation): Likewise.
(gen_scfi_ops): Likewise. Additionally, make some conditionals
more precise.
Diffstat (limited to 'gas/ChangeLog-2013')
0 files changed, 0 insertions, 0 deletions