]> gcc.gnu.org Git - gcc.git/commit
Add target hook for asm operand validation.
authorMichael Meissner <meissner@linux.ibm.com>
Sat, 31 Jul 2021 03:59:29 +0000 (23:59 -0400)
committerMichael Meissner <meissner@linux.ibm.com>
Sat, 31 Jul 2021 03:59:29 +0000 (23:59 -0400)
commite03b6c270d73f2c90bb7b97a6cc26d89cbe608f6
tree9c3387a9daa8da84a4329f5abedd35f2de678600
parentea49c2b488aa704d0d46176a94d0dbbb77dc93a6
Add target hook for asm operand validation.

The PowerPC has noraml loads and stores and then it has prefixed loads and
stores.  The prefixed loads and stores have different names and format
than the normal loads and stores.  This patch adds a new hook that is run
in the passes before reload to ensure that no prefixed memory is generated
by optimizations.

This patch is all of the machine independent changes to to add a hook to
prevent asm from generating prefixed loads/stores with the '%m' constraint
on the PowerPC.  The next patch will contain the PowerPC specific patches.

2021-07-31  Michael Meissner  <meissner@linux.ibm.com>
gcc/
PR target/98519
* doc/tm.texi (TARGET_MD_ASM_OPERAND_P): Document.
* doc/tm.texi.in (TARGET_MD_ASM_OPERAND_P): Document.
* target.def (md_asm_operand_p): New target hook.
* targhooks.c (default_md_asm_operand_p): New default target
hook.
* targhooks.h (default_md_asm_operand_p): New declaration.
gcc/doc/tm.texi
gcc/doc/tm.texi.in
gcc/recog.c
gcc/target.def
gcc/targhooks.c
gcc/targhooks.h
This page took 0.066836 seconds and 6 git commands to generate.