This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch for vax warning nit
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: dave dot anglin at nrc dot ca
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 20 Nov 2001 13:29:35 -0500 (EST)
- Subject: Patch for vax warning nit
This patch fixes a warning on a cross-compile to vax-unknown-vms.
> config/vax/vax.c:494: warning: `c' might be used uninitialized in this f
However I wasn't 100% sure abort() was the right thing to do here
given that I only tested via compiling cc1.
Okay to install?
--Kaveh
2001-11-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* vax.c (vax_rtx_cost): Avoid uninitialized warning.
diff -rup orig/egcs-CVS20011118/gcc/config/vax/vax.c egcs-CVS20011118/gcc/config/vax/vax.c
--- orig/egcs-CVS20011118/gcc/config/vax/vax.c Fri Nov 16 18:16:57 2001
+++ egcs-CVS20011118/gcc/config/vax/vax.c Mon Nov 19 15:26:20 2001
@@ -519,6 +519,7 @@ vax_rtx_cost (x)
c = 10; /* 3-4 on VAX 9000, 20-28 on VAX 2 */
break;
default:
+ abort ();
break;
}
break;