aboutsummaryrefslogtreecommitdiff
path: root/gcc/integrate.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>1999-04-14 20:28:54 +0000
committerZack Weinberg <zack@gcc.gnu.org>1999-04-14 20:28:54 +0000
commita30d557c369edf926b0d1fa48e419dfdda86d523 (patch)
tree30c3f0597f0621506978887d289120c8b4def75a /gcc/integrate.c
parentd20a4159c39d75bb573a6d524f6f06b4a35eac2e (diff)
downloadgcc-a30d557c369edf926b0d1fa48e419dfdda86d523.zip
gcc-a30d557c369edf926b0d1fa48e419dfdda86d523.tar.gz
gcc-a30d557c369edf926b0d1fa48e419dfdda86d523.tar.bz2
graph.c (node_data): Return void.
1999-04-14 23:26 -0400 Zack Weinberg <zack@rabi.columbia.edu> * graph.c (node_data): Return void. Ignore result of print_rtl_single. Change caller to match. * integrate.c (subst_constants): Initialize op0_mode to an invalid mode, and abort before use if it's still invalid. (Can only happen if the RTX_CLASS, RTX_FORMAT tables are corrupted.) * objc/objc-act.c (get_objc_string_decl, build_selector_translation_table, generate_protocol_list, synth_id_with_class_suffix, build_keyword_selector, build_selector_expr, gen_declarator): Abort when the tree structure is corrupted. From-SVN: r26463
Diffstat (limited to 'gcc/integrate.c')
-rw-r--r--gcc/integrate.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/integrate.c b/gcc/integrate.c
index 07055f2..76f7144 100644
--- a/gcc/integrate.c
+++ b/gcc/integrate.c
@@ -2853,7 +2853,7 @@ subst_constants (loc, insn, map)
register char *format_ptr;
int num_changes = num_validated_changes ();
rtx new = 0;
- enum machine_mode op0_mode;
+ enum machine_mode op0_mode = MAX_MACHINE_MODE;
code = GET_CODE (x);
@@ -3067,6 +3067,8 @@ subst_constants (loc, insn, map)
switch (GET_RTX_CLASS (code))
{
case '1':
+ if (op0_mode == MAX_MACHINE_MODE)
+ abort ();
new = simplify_unary_operation (code, GET_MODE (x),
XEXP (x, 0), op0_mode);
break;
@@ -3095,6 +3097,8 @@ subst_constants (loc, insn, map)
case 'b':
case '3':
+ if (op0_mode == MAX_MACHINE_MODE)
+ abort ();
new = simplify_ternary_operation (code, GET_MODE (x), op0_mode,
XEXP (x, 0), XEXP (x, 1), XEXP (x, 2));
break;