This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]