diff options
author | Trevor Saunders <tbsaunde@tbsaunde.org> | 2021-07-12 02:55:17 -0400 |
---|---|---|
committer | Trevor Saunders <tbsaunde@tbsaunde.org> | 2021-07-15 01:10:47 -0400 |
commit | 8d76ff99220c7aa428516e93998457dbe299f037 (patch) | |
tree | d45fe4868eed25ad00ab6be6167b613c84134ae4 /gcc/doc | |
parent | 329769b72001dcca18a120ab751f58de1b716ff8 (diff) | |
download | gcc-8d76ff99220c7aa428516e93998457dbe299f037.zip gcc-8d76ff99220c7aa428516e93998457dbe299f037.tar.gz gcc-8d76ff99220c7aa428516e93998457dbe299f037.tar.bz2 |
pass location to md_asm_adjust
So the hook can use it as the location of diagnostics.
gcc/ChangeLog:
* cfgexpand.c (expand_asm_loc): Adjust.
(expand_asm_stmt): Likewise.
* config/arm/aarch-common-protos.h (arm_md_asm_adjust): Likewise.
* config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
* config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
* config/avr/avr.c (avr_md_asm_adjust): Likewise.
* config/cris/cris.c (cris_md_asm_adjust): Likewise.
* config/i386/i386.c (ix86_md_asm_adjust): Likewise.
* config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
* config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
* config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
* config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
* config/s390/s390.c (s390_md_asm_adjust): Likewise.
* config/vax/vax.c (vax_md_asm_adjust): Likewise.
* config/visium/visium.c (visium_md_asm_adjust): Likewise.
* doc/tm.texi: Regenerate.
* target.def: Add location argument to md_asm_adjust.
Signed-off-by: Trevor Saunders <tbsaunde@tbsaunde.org>
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/tm.texi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 2a41ae5..3ad3944 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -11708,11 +11708,12 @@ from shared libraries (DLLs). You need not define this macro if it would always evaluate to zero. @end defmac -@deftypefn {Target Hook} {rtx_insn *} TARGET_MD_ASM_ADJUST (vec<rtx>& @var{outputs}, vec<rtx>& @var{inputs}, vec<machine_mode>& @var{input_modes}, vec<const char *>& @var{constraints}, vec<rtx>& @var{clobbers}, HARD_REG_SET& @var{clobbered_regs}) +@deftypefn {Target Hook} {rtx_insn *} TARGET_MD_ASM_ADJUST (vec<rtx>& @var{outputs}, vec<rtx>& @var{inputs}, vec<machine_mode>& @var{input_modes}, vec<const char *>& @var{constraints}, vec<rtx>& @var{clobbers}, HARD_REG_SET& @var{clobbered_regs}, location_t @var{loc}) This target hook may add @dfn{clobbers} to @var{clobbers} and @var{clobbered_regs} for any hard regs the port wishes to automatically clobber for an asm. The @var{outputs} and @var{inputs} may be inspected -to avoid clobbering a register that is already used by the asm. +to avoid clobbering a register that is already used by the asm. @var{loc} +is the source location of the asm. It may modify the @var{outputs}, @var{inputs}, @var{input_modes}, and @var{constraints} as necessary for other pre-processing. In this case the |