diff options
author | jfc <jfc@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-06-17 16:14:09 +0000 |
---|---|---|
committer | jfc <jfc@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-06-17 16:14:09 +0000 |
commit | 9e5192edc9f9b2d30b69ebbf775e59139d59a196 (patch) | |
tree | bc08309af18e3e3b81d9dde6d23a1abd41673ffe /gcc/reorg.c | |
parent | 3e82d236f23959133707525ad1176390394c56f4 (diff) | |
download | gcc-9e5192edc9f9b2d30b69ebbf775e59139d59a196.tar.gz |
* haifa-sched.c (haifa_classify_insn): TRAP_IF is risky.
(sched_analyze_2): Allow scheduling TRAP_IF.
* reorg.c (mark_referenced_resources): Examine operands of TRAP_IF.
* rtl.h (TRAP_CODE): New macro.
* rtl.def (TRAP_IF): Change second operand type to rtx.
* optabs.c (gen_cond_trap): New function.
(init_traps): New function.
(init_optabs): Call init_traps.
* expr.h: Declare gen_cond_trap.
* jump.c (jump_optimize): Optimize jumps to and around traps.
* sparc.md: Define trap instructions.
* rs6000.md: Define trap instructions.
* rs6000.c (print_operand): New code 'V' for trap condition.
(trap_comparison_operator): New function.
* m88k.md: Update use of TRAP_IF.
* tree.h (enum built_in_function): New function code BUILT_IN_TRAP.
* c-decl.c (init_decl_processing): New builtin __builtin_trap.
* expr.c (expand_builtin): Handle BUILT_IN_TRAP.
* expr.c (expand_builtin): Error if __builtin_longjmp second argument
is not 1.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20543 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reorg.c')
-rw-r--r-- | gcc/reorg.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/reorg.c b/gcc/reorg.c index f2ee5b8884b..7370a356dc4 100644 --- a/gcc/reorg.c +++ b/gcc/reorg.c @@ -340,11 +340,14 @@ mark_referenced_resources (x, res, include_delayed_effects) case UNSPEC_VOLATILE: case ASM_INPUT: - case TRAP_IF: /* Traditional asm's are always volatile. */ res->volatil = 1; return; + case TRAP_IF: + res->volatil = 1; + break; + case ASM_OPERANDS: res->volatil = MEM_VOLATILE_P (x); |