Commit 308f360f authored by rth's avatar rth
Browse files

* final.c (current_insn_predicate): New.

        (final_scan_insn): Set it.
        * output.h (current_insn_predicate): Declare.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33790 138bc75d-0d04-0410-961f-82ee72b054a4
parent 5563be3d
......@@ -240,6 +240,11 @@ static int dialect_number;
static char *line_note_exists;
#ifdef HAVE_conditional_execution
/* Nonnull if the insn currently being emitted was a COND_EXEC pattern. */
rtx current_insn_predicate;
#endif
/* Linked list to hold line numbers for each basic block. */
struct bb_list {
......@@ -2877,6 +2882,13 @@ final_scan_insn (insn, file, optimize, prescan, nopeepholes)
FINAL_PRESCAN_INSN (insn, recog_data.operand, recog_data.n_operands);
#endif
#ifdef HAVE_conditional_execution
if (GET_CODE (PATTERN (insn)) == COND_EXEC)
current_insn_predicate = COND_EXEC_TEST (PATTERN (insn));
else
current_insn_predicate = NULL_RTX;
#endif
#ifdef HAVE_cc0
cc_prev_status = cc_status;
......
......@@ -433,6 +433,10 @@ extern int current_function_uses_only_leaf_regs;
extern FILE *rtl_dump_file;
#endif
/* Nonnull if the insn currently being emitted was a COND_EXEC pattern. */
extern struct rtx_def *current_insn_predicate;
/* Decide whether DECL needs to be in a writable section. RELOC is the same
as for SELECT_SECTION. */
......
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