Commit 2d4cc6a7 by Janis Johnson Committed by Janis Johnson

rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name, and use it in all…

rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name, and use it in all invocations of these macros.

	* rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
	and use it in all invocations of these macros.  Clean up comments.
	* rtl.c (rtl_check_failed_flag): Add an argument for the name
	of the flag access macro whose check failed.
	* doc/rtl.texi (Flags): Document additional flag uses.

From-SVN: r53306
parent ea45dbb8
2002-05-08 Janis Johnson <janis187@us.ibm.com>
* rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
and use it in all invocations of these macros. Clean up comments.
* rtl.c (rtl_check_failed_flag): Add an argument for the name
of the flag access macro whose check failed.
* doc/rtl.texi (Flags): Document additional flag uses.
2002-05-08 Robert Spier <rspier@pobox.com> 2002-05-08 Robert Spier <rspier@pobox.com>
Neil Booth <neil@daikokuya.demon.co.uk> Neil Booth <neil@daikokuya.demon.co.uk>
......
...@@ -396,9 +396,11 @@ Stored in the @code{unchanging} field and printed as @samp{/u}. ...@@ -396,9 +396,11 @@ Stored in the @code{unchanging} field and printed as @samp{/u}.
@findex INSN_ANNULLED_BRANCH_P @findex INSN_ANNULLED_BRANCH_P
@cindex @code{insn} and @samp{/u} @cindex @code{insn} and @samp{/u}
@cindex @code{unchanging}, in @code{insn} @cindex @code{jump_insn} and @samp{/u}
@cindex @code{unchanging}, in @code{insn} and @code{jump_insn}
@item INSN_ANNULLED_BRANCH_P (@var{x}) @item INSN_ANNULLED_BRANCH_P (@var{x})
In an @code{insn} in the delay slot of a branch insn, indicates that an In an @code{insn} or @code{jump_insn} in the delay slot of a branch insn,
indicates that an
annulling branch should be used. See the discussion under annulling branch should be used. See the discussion under
@code{sequence} below. Stored in the @code{unchanging} field and printed @code{sequence} below. Stored in the @code{unchanging} field and printed
as @samp{/u}. as @samp{/u}.
...@@ -427,9 +429,11 @@ nonzero if the insn has been deleted. Stored in the ...@@ -427,9 +429,11 @@ nonzero if the insn has been deleted. Stored in the
@findex INSN_FROM_TARGET_P @findex INSN_FROM_TARGET_P
@cindex @code{insn} and @samp{/s} @cindex @code{insn} and @samp{/s}
@cindex @code{in_struct}, in @code{insn} @cindex @code{jump_insn} and @samp{/s}
@cindex @code{in_struct}, in @code{insn} and @code{jump_insn}
@item INSN_FROM_TARGET_P (@var{x}) @item INSN_FROM_TARGET_P (@var{x})
In an @code{insn} in a delay slot of a branch, indicates that the insn In an @code{insn} or @code{jump_insn} in a delay slot of a branch,
indicates that the insn
is from the target of the branch. If the branch insn has is from the target of the branch. If the branch insn has
@code{INSN_ANNULLED_BRANCH_P} set, this insn will only be executed if @code{INSN_ANNULLED_BRANCH_P} set, this insn will only be executed if
the branch is taken. For annulled branches with the branch is taken. For annulled branches with
...@@ -499,11 +503,12 @@ Stored in the @code{frame_related} field and printed as @samp{/f}. ...@@ -499,11 +503,12 @@ Stored in the @code{frame_related} field and printed as @samp{/f}.
@findex MEM_VOLATILE_P @findex MEM_VOLATILE_P
@cindex @code{mem} and @samp{/v} @cindex @code{mem} and @samp{/v}
@cindex @code{asm_input} and @samp{/v}
@cindex @code{asm_operands} and @samp{/v} @cindex @code{asm_operands} and @samp{/v}
@cindex @code{volatil}, in @code{mem} and @code{asm_operands} @cindex @code{volatil}, in @code{mem}, @code{asm_operands}, and @code{asm_input}
@item MEM_VOLATILE_P (@var{x}) @item MEM_VOLATILE_P (@var{x})
In @code{mem} and @code{asm_operands} expressions, nonzero for volatile In @code{mem}, @code{asm_operands}, and @code{asm_input} expressions,
memory references. nonzero for volatile memory references.
Stored in the @code{volatil} field and printed as @samp{/v}. Stored in the @code{volatil} field and printed as @samp{/v}.
@findex REG_FUNCTION_VALUE_P @findex REG_FUNCTION_VALUE_P
...@@ -758,7 +763,8 @@ label that would have been deleted is replaced with a @code{note} of type ...@@ -758,7 +763,8 @@ label that would have been deleted is replaced with a @code{note} of type
In an @code{insn} during dead-code elimination, 1 means that the insn is In an @code{insn} during dead-code elimination, 1 means that the insn is
dead code. dead code.
In an @code{insn} during reorg for an insn in the delay slot of a branch, In an @code{insn} or @code{jump_insn} during reorg for an insn in the
delay slot of a branch,
1 means that this insn is from the target of the branch. 1 means that this insn is from the target of the branch.
In an @code{insn} during instruction scheduling, 1 means that this insn In an @code{insn} during instruction scheduling, 1 means that this insn
...@@ -803,8 +809,8 @@ that the value of the expression never changes. ...@@ -803,8 +809,8 @@ that the value of the expression never changes.
In @code{subreg} expressions, it is 1 if the @code{subreg} references an In @code{subreg} expressions, it is 1 if the @code{subreg} references an
unsigned object whose mode has been promoted to a wider mode. unsigned object whose mode has been promoted to a wider mode.
In an @code{insn} in the delay slot of a branch instruction, 1 means In an @code{insn} or @code{jump_insn} in the delay slot of a branch
an annulling branch should be used. instruction, 1 means an annulling branch should be used.
In a @code{symbol_ref} expression, 1 means that this symbol addresses In a @code{symbol_ref} expression, 1 means that this symbol addresses
something in the per-function constant pool. something in the per-function constant pool.
...@@ -832,7 +838,8 @@ the symbol has already been written. ...@@ -832,7 +838,8 @@ the symbol has already been written.
@cindex @samp{/v} in RTL dump @cindex @samp{/v} in RTL dump
@item volatil @item volatil
@cindex volatile memory references @cindex volatile memory references
In a @code{mem} or @code{asm_operands} expression, it is 1 if the memory In a @code{mem}, @code{asm_operands}, or @code{asm_input}
expression, it is 1 if the memory
reference is volatile. Volatile memory references may not be deleted, reference is volatile. Volatile memory references may not be deleted,
reordered or combined. reordered or combined.
......
...@@ -641,14 +641,15 @@ rtvec_check_failed_bounds (r, n, file, line, func) ...@@ -641,14 +641,15 @@ rtvec_check_failed_bounds (r, n, file, line, func)
#if defined ENABLE_RTL_FLAG_CHECKING #if defined ENABLE_RTL_FLAG_CHECKING
void void
rtl_check_failed_flag (r, file, line, func) rtl_check_failed_flag (name, r, file, line, func)
const char *name;
rtx r; rtx r;
const char *file; const char *file;
int line; int line;
const char *func; const char *func;
{ {
internal_error internal_error
("RTL flag check: access macro used with unexpected rtx code `%s' in %s, at %s:%d", ("RTL flag check: %s used with unexpected rtx code `%s' in %s, at %s:%d",
GET_RTX_NAME (GET_CODE (r)), func, trim_filename (file), line); name, GET_RTX_NAME (GET_CODE (r)), func, trim_filename (file), line);
} }
#endif /* ENABLE_RTL_FLAG_CHECKING */ #endif /* ENABLE_RTL_FLAG_CHECKING */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment