Fix gcc.c-torture/compile/limits-caselabels.c for 16-bit targets
Rask Ingemann Lambertsen
rask@sygehus.dk
Mon May 28 08:53:00 GMT 2007
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
More information about the Gcc-patches
mailing list