diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-08 06:51:23 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-08 06:51:23 +0000 |
commit | 38330f30a2865c1f371c1399622686a9abefaa1d (patch) | |
tree | d3da13fb9f076103bbf7f7786f2153feff6380a3 /gcc/tree.c | |
parent | 39e7c74f778f32255a6dc7513ce84f3dc1b02cb1 (diff) | |
download | gcc-38330f30a2865c1f371c1399622686a9abefaa1d.tar.gz |
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/tree.c')
-rw-r--r-- | gcc/tree.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree.c b/gcc/tree.c index f79512311fe..809426a75e2 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 = '_'; } |