This is the mail archive of the gcc-bugs@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]

[Bug middle-end/18785] [4.0 Regression] isdigit builtin function fails with EBCDIC character sets


------- 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


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