diff options
author | Jason Merrill <jason@gcc.gnu.org> | 2000-03-09 15:34:52 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2000-03-09 15:34:52 -0500 |
commit | 12a22e76d64eca6e3b54949121b5c5820e189ee1 (patch) | |
tree | d6b66c9ef5d6a7003c13b1e76cfe2cc51c1fe8f3 /gcc/tree.c | |
parent | 217ab4b7e745db9ff5d1fd4ec8ad364f7060a388 (diff) | |
download | gcc-12a22e76d64eca6e3b54949121b5c5820e189ee1.zip gcc-12a22e76d64eca6e3b54949121b5c5820e189ee1.tar.gz gcc-12a22e76d64eca6e3b54949121b5c5820e189ee1.tar.bz2 |
tree.h (struct tree_common): Rename raises_flag to nothrow_flag.
* tree.h (struct tree_common): Rename raises_flag to nothrow_flag.
(TREE_NOTHROW): Rename from TREE_RAISES.
* toplev.c (rest_of_compilation): Set it.
* print-tree.c (print_node): Adjust.
* tree.c (stabilize_reference, build, build1): Don't set TREE_RAISES.
(stabilize_reference_1, get_unwidened, get_narrower): Likewise.
* calls.c (emit_call_1): Add 'nothrow' parm. Add
REG_EH_REGION note as appropriate.
(libfunc_nothrow): New fn.
(emit_library_call, emit_library_call_value): Use it.
(expand_call): Check TREE_NOTHROW.
cp:
* call.c (build_call): Set TREE_NOTHROW on the CALL_EXPR as
appropriate.
* decl.c (define_function): Set TREE_NOTHROW on the FUNCTION_DECL.
* except.c (call_eh_info, alloc_eh_object, expand_throw): Set
TREE_NOTHROW or TREE_THIS_VOLATILE on the function as appropriate.
* rtti.c (build_runtime_decl, get_tinfo_decl, build_dynamic_cast_1,
expand_si_desc, expand_class_desc, expand_ptr_desc, expand_attr_desc,
expand_generic_desc): Likewise.
From-SVN: r32453
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -3025,7 +3025,6 @@ stabilize_reference (ref) TREE_READONLY (result) = TREE_READONLY (ref); TREE_SIDE_EFFECTS (result) = TREE_SIDE_EFFECTS (ref); TREE_THIS_VOLATILE (result) = TREE_THIS_VOLATILE (ref); - TREE_RAISES (result) = TREE_RAISES (ref); return result; } @@ -3108,7 +3107,6 @@ stabilize_reference_1 (e) TREE_READONLY (result) = TREE_READONLY (e); TREE_SIDE_EFFECTS (result) = TREE_SIDE_EFFECTS (e); TREE_THIS_VOLATILE (result) = TREE_THIS_VOLATILE (e); - TREE_RAISES (result) = TREE_RAISES (e); return result; } @@ -3161,15 +3159,11 @@ build VPARAMS ((enum tree_code code, tree tt, ...)) { if (TREE_SIDE_EFFECTS (arg0)) TREE_SIDE_EFFECTS (t) = 1; - if (TREE_RAISES (arg0)) - TREE_RAISES (t) = 1; } if (arg1 && fro > 1) { if (TREE_SIDE_EFFECTS (arg1)) TREE_SIDE_EFFECTS (t) = 1; - if (TREE_RAISES (arg1)) - TREE_RAISES (t) = 1; } } else if (length == 1) @@ -3184,7 +3178,6 @@ build VPARAMS ((enum tree_code code, tree tt, ...)) { if (arg0 && TREE_SIDE_EFFECTS (arg0)) TREE_SIDE_EFFECTS (t) = 1; - TREE_RAISES (t) = (arg0 && TREE_RAISES (arg0)); } } else @@ -3197,8 +3190,6 @@ build VPARAMS ((enum tree_code code, tree tt, ...)) { if (TREE_SIDE_EFFECTS (operand)) TREE_SIDE_EFFECTS (t) = 1; - if (TREE_RAISES (operand)) - TREE_RAISES (t) = 1; } } } @@ -3254,8 +3245,6 @@ build1 (code, type, node) { if (TREE_SIDE_EFFECTS (node)) TREE_SIDE_EFFECTS (t) = 1; - if (TREE_RAISES (node)) - TREE_RAISES (t) = 1; } switch (code) @@ -4827,7 +4816,6 @@ get_unwidened (op, for_type) TREE_OPERAND (op, 1)); TREE_SIDE_EFFECTS (win) = TREE_SIDE_EFFECTS (op); TREE_THIS_VOLATILE (win) = TREE_THIS_VOLATILE (op); - TREE_RAISES (win) = TREE_RAISES (op); } } return win; @@ -4914,7 +4902,6 @@ get_narrower (op, unsignedp_ptr) TREE_OPERAND (op, 1)); TREE_SIDE_EFFECTS (win) = TREE_SIDE_EFFECTS (op); TREE_THIS_VOLATILE (win) = TREE_THIS_VOLATILE (op); - TREE_RAISES (win) = TREE_RAISES (op); } } *unsignedp_ptr = uns; |