summaryrefslogtreecommitdiff
path: root/gcc/genpeep.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>1999-09-08 06:51:23 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>1999-09-08 06:51:23 +0000
commit38330f30a2865c1f371c1399622686a9abefaa1d (patch)
treed3da13fb9f076103bbf7f7786f2153feff6380a3 /gcc/genpeep.c
parent39e7c74f778f32255a6dc7513ce84f3dc1b02cb1 (diff)
downloadlinaro-gcc-38330f30a2865c1f371c1399622686a9abefaa1d.tar.gz
linaro-gcc-38330f30a2865c1f371c1399622686a9abefaa1d.tar.bz2
linaro-gcc-38330f30a2865c1f371c1399622686a9abefaa1d.zip
Linas Vepstas <linas@linas.org>
* c-common.c: Use ISGRAPH, ISLOWER, toupper. * c-lex.c, cccp.c, cexp.c, cexp.y, cppexp.c, dwarf2out.c, genattr.c, genattrtab.c, genemit.c, genextract.c, genpeep.c, tree.c: Likewise. * system.h (IN_CTYPE_DOMAIN): Define to 1 if HOST_EBCDIC. * defaults.h (TARGET_ESC): Add default. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29192 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genpeep.c')
-rw-r--r--gcc/genpeep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/genpeep.c b/gcc/genpeep.c
index 0e6b0dbb1f8..b20c0365a3f 100644
--- a/gcc/genpeep.c
+++ b/gcc/genpeep.c
@@ -374,8 +374,8 @@ print_code (code)
register const char *p1;
for (p1 = GET_RTX_NAME (code); *p1; p1++)
{
- if (*p1 >= 'a' && *p1 <= 'z')
- putchar (*p1 + 'A' - 'a');
+ if (ISLOWER(*p1))
+ putchar (toupper(*p1));
else
putchar (*p1);
}