pass location to md_asm_adjust
authorTrevor Saunders <tbsaunde@tbsaunde.org>
Mon, 12 Jul 2021 06:55:17 +0000 (02:55 -0400)
committerTrevor Saunders <tbsaunde@tbsaunde.org>
Thu, 15 Jul 2021 05:10:47 +0000 (01:10 -0400)
commit8d76ff99220c7aa428516e93998457dbe299f037
treed45fe4868eed25ad00ab6be6167b613c84134ae4
parent329769b72001dcca18a120ab751f58de1b716ff8
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>
16 files changed:
gcc/cfgexpand.c
gcc/config/arm/aarch-common-protos.h
gcc/config/arm/aarch-common.c
gcc/config/arm/arm.c
gcc/config/avr/avr.c
gcc/config/cris/cris.c
gcc/config/i386/i386.c
gcc/config/mn10300/mn10300.c
gcc/config/nds32/nds32.c
gcc/config/pdp11/pdp11.c
gcc/config/rs6000/rs6000.c
gcc/config/s390/s390.c
gcc/config/vax/vax.c
gcc/config/visium/visium.c
gcc/doc/tm.texi
gcc/target.def