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

Added EBCDIC support to safe-ctype.h in include


Description: This patch adds EBCDIC support to safe-ctype.h
for the OS/390 port of GCC.

Testcases: Run the compiler.

ChangeLog: Attached.

Bootstrapping and testing: Compiled on OS/390 V2R10 (native) and
RedHat 7.2 Intel (cross-compile).

Patch: Attached.


--
Dave Pitts PULLMAN: Travel and sleep in safety and comfort.
dpitts@cozx.com My other RV IS a Pullman (Colorado Pine). http://www.cozx.com/~dpitts



Attachment: ChangeLog
Description: application/java-vm

diff -Naur gcc-3.1.orig/include/safe-ctype.h gcc-3.1/include/safe-ctype.h
--- gcc-3.1.orig/include/safe-ctype.h	Wed Oct 24 13:29:16 2001
+++ gcc-3.1/include/safe-ctype.h	Tue Jun 25 12:02:05 2002
@@ -99,5 +99,11 @@
 #define TOUPPER(c) _sch_toupper[(c) & 0xff]
 #define TOLOWER(c) _sch_tolower[(c) & 0xff]
 
+/* Character conversion.  */
+extern const unsigned char _sch_ebcasc[256];
+extern const unsigned char _sch_ascebc[256];
+#define TOASCII(c) _sch_ebcasc[(c) & 0xff]
+#define TOEBCDIC(c) _sch_ascebc[(c) & 0xff]
+
 #endif /* no ctype.h */
 #endif /* SAFE_CTYPE_H */

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