aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorLinas Vepstas <linas@linas.org>1999-09-08 06:51:23 +0000
committerRichard Henderson <rth@gcc.gnu.org>1999-09-07 23:51:23 -0700
commitf3ad1f9c0d8f61ccd729b0b9687944856dd9cf07 (patch)
treed3da13fb9f076103bbf7f7786f2153feff6380a3 /gcc/tree.c
parenta2b368b6e91a83e3b8d48d86fcd55614b54f40aa (diff)
downloadgcc-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/tree.c')
-rw-r--r--gcc/tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index f795123..809426a 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -4878,7 +4878,7 @@ get_file_function_name_long (type)
if (p != first_global_object_name)
{
for (p = buf+11; *p; p++)
- if (! ((*p >= '0' && *p <= '9')
+ if (! ( ISDIGIT(*p)
#if 0 /* we always want labels, which are valid C++ identifiers (+ `$') */
#ifndef ASM_IDENTIFY_GCC /* this is required if `.' is invalid -- k. raeburn */
|| *p == '.'
@@ -4890,8 +4890,8 @@ get_file_function_name_long (type)
#ifndef NO_DOT_IN_LABEL /* this for `.'; unlikely, but... */
|| *p == '.'
#endif
- || (*p >= 'A' && *p <= 'Z')
- || (*p >= 'a' && *p <= 'z')))
+ || ISUPPER(*p)
+ || ISLOWER(*p)))
*p = '_';
}