From 0c61f5414d8f8df2d10e7d7898b715796fad5684 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Sun, 15 Aug 1999 20:08:12 +0000 Subject: Fix misuses of MAX_MACHINE_MODE that can result in an infinite loop. * explow.c (hard_function_value): Use VOIDmode instead of MAX_MACHINE_MODE. * stmt.c (expand_return): Likewise. * stor-layout.c (get_best_mode): Likewise. From-SVN: r28717 --- gcc/stmt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/stmt.c') diff --git a/gcc/stmt.c b/gcc/stmt.c index 8c08997..9cfc700 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -2817,7 +2817,7 @@ expand_return (retval) on the USE insn for the return register. */ bytes = int_size_in_bytes (TREE_TYPE (retval_rhs)); for (tmpmode = GET_CLASS_NARROWEST_MODE (MODE_INT); - tmpmode != MAX_MACHINE_MODE; + tmpmode != VOIDmode; tmpmode = GET_MODE_WIDER_MODE (tmpmode)) { /* Have we found a large enough mode? */ @@ -2826,7 +2826,7 @@ expand_return (retval) } /* No suitable mode found. */ - if (tmpmode == MAX_MACHINE_MODE) + if (tmpmode == VOIDmode) abort (); PUT_MODE (DECL_RTL (DECL_RESULT (current_function_decl)), tmpmode); -- cgit v1.1