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]

Fix gcc.c-torture/compile/limits-caselabels.c for 16-bit targets


   The test fails on targets with 16-bit int with lots of "duplicate case
value" messages. This patch fixes that. Tested on m32c-unknown-elf,
i686-pc-linux-gnu and mipsisa64-unknown-elf.

2007-05-27  Rask Ingemann Lambertsen  <rask@sygehus.dk>

	* gcc.c-torture/compile/limits-caselabels.c: Fix for targets where
	int is 16 bits.

Index: gcc.c-torture/compile/limits-caselabels.c
===================================================================
--- gcc.c-torture/compile/limits-caselabels.c	(revision 125037)
+++ gcc.c-torture/compile/limits-caselabels.c	(working copy)
@@ -12,7 +12,7 @@
 #define LIM7(x) LIM6(x##0) LIM6(x##1) LIM6(x##2) LIM6(x##3) LIM6(x##4) \
 		LIM6(x##5) LIM6(x##6) LIM6(x##7) LIM6(x##8) LIM6(x##9)
 
-void q19_func (int i)
+void q19_func (long int i)
 {
   switch (i) {
     LIM5 (case 1)


-- 
Rask Ingemann Lambertsen


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