diff options
author | Linas Vepstas <linas@linas.org> | 1999-09-08 06:51:23 +0000 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 1999-09-07 23:51:23 -0700 |
commit | f3ad1f9c0d8f61ccd729b0b9687944856dd9cf07 (patch) | |
tree | d3da13fb9f076103bbf7f7786f2153feff6380a3 /gcc/genattrtab.c | |
parent | a2b368b6e91a83e3b8d48d86fcd55614b54f40aa (diff) | |
download | gcc-f3ad1f9c0d8f61ccd729b0b9687944856dd9cf07.zip gcc-f3ad1f9c0d8f61ccd729b0b9687944856dd9cf07.tar.gz gcc-f3ad1f9c0d8f61ccd729b0b9687944856dd9cf07.tar.bz2 |
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.
From-SVN: r29192
Diffstat (limited to 'gcc/genattrtab.c')
-rw-r--r-- | gcc/genattrtab.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/genattrtab.c b/gcc/genattrtab.c index 254f78c..dd16a13 100644 --- a/gcc/genattrtab.c +++ b/gcc/genattrtab.c @@ -1357,8 +1357,8 @@ convert_const_symbol_ref (exp, attr) strcat (p, "_"); strcat (p, XSTR (av->value, 0)); for (; *p != '\0'; p++) - if (*p >= 'a' && *p <= 'z') - *p -= 'a' - 'A'; + if (ISLOWER(*p)) + *p = toupper (*p); value = attr_rtx (SYMBOL_REF, string); RTX_UNCHANGING_P (value) = 1; @@ -2841,8 +2841,8 @@ evaluate_eq_attr (exp, value, insn_code, insn_index) strcat (string, "_"); strcat (string, XSTR (exp, 1)); for (p = string; *p ; p++) - if (*p >= 'a' && *p <= 'z') - *p -= 'a' - 'A'; + if (ISLOWER(*p)) + *p = toupper (*p); newexp = attr_rtx (EQ, value, attr_rtx (SYMBOL_REF, @@ -5357,10 +5357,10 @@ write_upcase (str) char *str; { while (*str) - if (*str < 'a' || *str > 'z') - printf ("%c", *str++); + if (ISLOWER(*str)) + printf ("%c", toupper(*str++)); else - printf ("%c", *str++ - 'a' + 'A'); + printf ("%c", *str++); } static void |