This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/18785] [4.0 Regression] isdigit builtin function fails with EBCDIC character sets
- From: "roger at eyesopen dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Dec 2004 03:44:12 -0000
- Subject: [Bug middle-end/18785] [4.0 Regression] isdigit builtin function fails with EBCDIC character sets
- References: <20041202142212.18785.darcypj@us.ibm.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From roger at eyesopen dot com 2004-12-04 03:44 -------
Hi P.J.,
Thanks for removing the i686 version of the attachment. But it looks like the
390x-ibm-tpf version of digit.i (attachment #1), also reveals that the isdigit
call is being expanded as a macro in native <ctype.h>.
Can you confirm that there's actually a problem with the GCC builtin, for
example, by showing that adding the command line option -fno-builtin-isdigit
resolves the
failure? If specifying -fno-builtin-isdigit doesn't correct the failure, then
obviously its not GCC's builtin implementation at fault.
You should be able to factor out problems with the system headers by using a
test case that doesn't include <ctype.h> at all. For example, just:
int foo(char ch)
{
return isdigit(ch);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18785