diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2024-08-28 16:37:53 +0100 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2024-08-28 16:37:53 +0100 |
commit | 3c9338b532fd609f5cc1c50d6a4e77e0e1ab3bc5 (patch) | |
tree | 0d69bd1e50fa8d3383617013da76b5500ce86c57 | |
parent | bdcd30e4711943cae70a1b47f8a63e96a94c02a0 (diff) | |
download | gcc-3c9338b532fd609f5cc1c50d6a4e77e0e1ab3bc5.zip gcc-3c9338b532fd609f5cc1c50d6a4e77e0e1ab3bc5.tar.gz gcc-3c9338b532fd609f5cc1c50d6a4e77e0e1ab3bc5.tar.bz2 |
Tweak documentation of ASM_INPUT_P
The documentation of ASM_INPUT_P implied that the flag has no
effect on ASM_EXPRs that have operands (and which therefore must be
extended asms). In fact we require ASM_INPUT_P to be false for all
extended asms.
gcc/
* tree.h (ASM_INPUT_P): Fix documentation.
-rw-r--r-- | gcc/tree.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1428,8 +1428,9 @@ class auto_suppress_location_wrappers #define ASM_INPUTS(NODE) TREE_OPERAND (ASM_EXPR_CHECK (NODE), 2) #define ASM_CLOBBERS(NODE) TREE_OPERAND (ASM_EXPR_CHECK (NODE), 3) #define ASM_LABELS(NODE) TREE_OPERAND (ASM_EXPR_CHECK (NODE), 4) -/* Nonzero if we want to create an ASM_INPUT instead of an - ASM_OPERAND with no operands. */ +/* Nonzero if the asm is a basic asm, zero if it is an extended asm. + Basic asms use a plain ASM_INPUT insn pattern whereas extended asms + use an ASM_OPERANDS insn pattern. */ #define ASM_INPUT_P(NODE) (ASM_EXPR_CHECK (NODE)->base.static_flag) #define ASM_VOLATILE_P(NODE) (ASM_EXPR_CHECK (NODE)->base.public_flag) /* Nonzero if we want to consider this asm as minimum length and cost |