diff options
Diffstat (limited to 'gcc/cexp.y')
-rw-r--r-- | gcc/cexp.y | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gcc/cexp.y b/gcc/cexp.y index 1fb2f5d9f42..83f4cede637 100644 --- a/gcc/cexp.y +++ b/gcc/cexp.y @@ -1114,10 +1114,13 @@ initialize_random_junk () * refer to them. */ for (i = 'a'; i <= 'z'; i++) { - ++is_idchar[TOUPPER(i)]; - ++is_idchar[i]; - ++is_idstart[TOUPPER(i)]; - ++is_idstart[i]; + /* SKIP EBCIDIC holes, char must be a valid low case char */ + if (ISLOWER(i)) { + ++is_idchar[TOUPPER(i)]; + ++is_idchar[i]; + ++is_idstart[TOUPPER(i)]; + ++is_idstart[i]; + } } for (i = '0'; i <= '9'; i++) ++is_idchar[i]; |