Hi, When I was debugging a modified GCC 4.3 I ran into an ICE which was fixed by http://gcc.gnu.org/ml/gcc-patches/2008-10/msg00217.html . The patch did not mention it was fixing an ICE, so I decided to add a testcase.
Committed the testcase as obvious. Thanks, Andrew Pinski * gcc.dg/torture/builtins-1.c: New testcase.
Index: gcc.dg/torture/builtins-1.c =================================================================== --- gcc.dg/torture/builtins-1.c (revision 0) +++ gcc.dg/torture/builtins-1.c (revision 0) @@ -0,0 +1,9 @@ +/* { dg-do compile } */ +/* { dg-options "-fdump-rtl-expand-all" */ +/* { dg-final { cleanup-rtl-dump "expand" } } */ +int isdigit(int c) +{ + return c >= 0; +} + + Index: ChangeLog =================================================================== --- ChangeLog (revision 189509) +++ ChangeLog (working copy) @@ -1,3 +1,7 @@ +2012-07-16 Andrew Pinski <apin...@cavium.com> + + * gcc.dg/torture/builtins-1.c: New testcase. + 2012-07-16 Hans-Peter Nilsson <h...@axis.com> * gcc.target/cris/sync-2i.c, gcc.target/cris/sync-2s.c,