From: Kaveh R. Ghazi Date: Wed, 21 Nov 2001 02:28:45 +0000 (+0000) Subject: sh.md: Avoid uninitialized warnings. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=533f5e0fbeed88a6bcb90619f0641e7f1a9fb8a1;p=gcc.git sh.md: Avoid uninitialized warnings. * sh.md: Avoid uninitialized warnings. * vax.c (vax_rtx_cost): Likewise. From-SVN: r47231 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 59dae4e7276..538731989eb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-11-20 Kaveh R. Ghazi + + * sh.md: Avoid uninitialized warnings. + * vax.c (vax_rtx_cost): Likewise. + 2001-11-15 Aldy Hernandez * rs6000.c (direct_return): Check if we are saving altivec diff --git a/gcc/config/sh/sh.md b/gcc/config/sh/sh.md index fd6a7604813..0e6c152f4e7 100644 --- a/gcc/config/sh/sh.md +++ b/gcc/config/sh/sh.md @@ -2598,6 +2598,8 @@ regno = subreg_regno (operands[0]); else if (GET_CODE (operands[0]) == MEM) regno = -1; + else + abort (); if (regno == -1 || ! refers_to_regno_p (regno, regno + 1, operands[1], 0)) @@ -2970,6 +2972,8 @@ regno = subreg_regno (operands[0]); else if (GET_CODE (operands[0]) == MEM) regno = -1; + else + abort (); if (regno == -1 || ! refers_to_regno_p (regno, regno + 1, operands[1], 0)) diff --git a/gcc/config/vax/vax.c b/gcc/config/vax/vax.c index df14f9ef710..1e6820ae266 100644 --- a/gcc/config/vax/vax.c +++ b/gcc/config/vax/vax.c @@ -519,7 +519,7 @@ vax_rtx_cost (x) c = 10; /* 3-4 on VAX 9000, 20-28 on VAX 2 */ break; default: - break; + abort (); } break; case UDIV: