From: Jan Hubicka Date: Wed, 9 May 2001 10:06:20 +0000 (+0200) Subject: genrecog.c (write_switch): Avoid outputting of switch for types wider than int. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4ea7a307cf53a8be78fb0ef4c8031fa40746f768;p=gcc.git genrecog.c (write_switch): Avoid outputting of switch for types wider than int. * genrecog.c (write_switch): Avoid outputting of switch for types wider than int. From-SVN: r41922 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a5e6fd2a132..8e72bd4a1f6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Wed May 9 12:05:39 CEST 2001 Jan Hubicka + + * genrecog.c (write_switch): Avoid outputting of switch for + types wider than int. + 2001-05-03 Andrew Haley * reload1.c (copy_eh_notes): New function. diff --git a/gcc/genrecog.c b/gcc/genrecog.c index 5d64378efd2..ba4043797d2 100644 --- a/gcc/genrecog.c +++ b/gcc/genrecog.c @@ -1860,6 +1860,10 @@ write_switch (start, depth) || type == DT_elt_one_int || type == DT_elt_zero_wide) { + /* The argument is casted to int. In case HOST_WIDE_INT is more exact, + we can't safely construct switch statement over it. */ + if (type == DT_elt_zero_wide && HOST_BITS_PER_WIDE_INT > sizeof (int) * CHAR_BIT) + return p; printf (" switch ("); switch (type) {