diff options
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/alpha/alpha.h | 3 | ||||
-rw-r--r-- | gcc/config/darwin.c | 4 | ||||
-rw-r--r-- | gcc/config/dsp16xx/dsp16xx.h | 3 | ||||
-rw-r--r-- | gcc/config/m88k/m88k.c | 2 | ||||
-rw-r--r-- | gcc/config/m88k/m88k.h | 2 | ||||
-rw-r--r-- | gcc/config/mcore/mcore.h | 2 | ||||
-rw-r--r-- | gcc/config/ns32k/encore.h | 3 | ||||
-rw-r--r-- | gcc/config/sh/sh.h | 2 |
8 files changed, 9 insertions, 12 deletions
diff --git a/gcc/config/alpha/alpha.h b/gcc/config/alpha/alpha.h index d8e4b04a520..e15e2ae71c0 100644 --- a/gcc/config/alpha/alpha.h +++ b/gcc/config/alpha/alpha.h @@ -2010,8 +2010,7 @@ do { \ The VAX assembler fails to stop reading the escape \ after three digits, so this is the only way we \ can get it to parse the data properly. */ \ - if (i < thissize - 1 \ - && p[i + 1] >= '0' && p[i + 1] <= '9') \ + if (i < thissize - 1 && ISDIGIT (p[i + 1])) \ _size_so_far = 0, fprintf (asm_out_file, "\"\n\t.ascii \""); \ } \ } \ diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index 225a75761b8..fe0852813df 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -53,7 +53,7 @@ name_needs_quotes (name) { int c; while ((c = *name++) != '\0') - if (!isalnum (c) && c != '_') + if (! ISIDNUM (c)) return 1; return 0; } @@ -587,7 +587,7 @@ func_name_maybe_scoped (fname) while (*fname != 0) { if (fname[0] == '_' && fname[1] == '_' - && (fname[2] == 'F' || (fname[2] >= '0' && fname[2] <= '9'))) + && (fname[2] == 'F' || ISDIGIT (fname[2]))) return 0; ++fname; } diff --git a/gcc/config/dsp16xx/dsp16xx.h b/gcc/config/dsp16xx/dsp16xx.h index 4ad062ee89c..542c89b5e66 100644 --- a/gcc/config/dsp16xx/dsp16xx.h +++ b/gcc/config/dsp16xx/dsp16xx.h @@ -1699,8 +1699,7 @@ const_section () \ The Vax assembler fails to stop reading the escape \ after three digits, so this is the only way we \ can get it to parse the data properly. \ - if (i < thissize - 1 \ - && p[i + 1] >= '0' && p[i + 1] <= '9') \ + if (i < thissize - 1 && ISDIGIT (p[i + 1])) \ fprintf (asm_out_file, "\'\n\tint \'"); \ */ \ } \ diff --git a/gcc/config/m88k/m88k.c b/gcc/config/m88k/m88k.c index db5e069d594..4f596ad8b11 100644 --- a/gcc/config/m88k/m88k.c +++ b/gcc/config/m88k/m88k.c @@ -1662,7 +1662,7 @@ output_ascii (file, opcode, max, p, size) num += 2; in_escape = 0; } - else if (in_escape && c >= '0' && c <= '9') + else if (in_escape && ISDIGIT (c)) { /* If a digit follows an octal-escape, the VAX assembler fails to stop reading the escape after three digits. Continue to diff --git a/gcc/config/m88k/m88k.h b/gcc/config/m88k/m88k.h index abcc050288d..def27434ab1 100644 --- a/gcc/config/m88k/m88k.h +++ b/gcc/config/m88k/m88k.h @@ -292,7 +292,7 @@ extern int flag_pic; /* -fpic */ { \ const char *p = m88k_short_data; \ while (*p) \ - if (*p >= '0' && *p <= '9') \ + if (ISDIGIT (*p)) \ p++; \ else \ { \ diff --git a/gcc/config/mcore/mcore.h b/gcc/config/mcore/mcore.h index cd3cd3a1104..d7b611bcd21 100644 --- a/gcc/config/mcore/mcore.h +++ b/gcc/config/mcore/mcore.h @@ -547,7 +547,7 @@ extern int regno_reg_class[]; extern enum reg_class reg_class_from_letter[]; #define REG_CLASS_FROM_LETTER(C) \ - ( (C) >= 'a' && (C) <= 'z' ? reg_class_from_letter[(C) - 'a'] : NO_REGS ) + ( ISLOWER (C) ? reg_class_from_letter[(C) - 'a'] : NO_REGS ) /* The letters I, J, K, L, M, N, O, and P in a register constraint string can be used to stand for particular ranges of immediate operands. diff --git a/gcc/config/ns32k/encore.h b/gcc/config/ns32k/encore.h index c11b3fffffd..e1337df1d3f 100644 --- a/gcc/config/ns32k/encore.h +++ b/gcc/config/ns32k/encore.h @@ -144,8 +144,7 @@ do { \ else \ { \ fprintf ((file), "\\%o", c); \ - if (i < (size) - 1 \ - && (p)[i + 1] >= '0' && (p)[i + 1] <= '9')\ + if (i < (size) - 1 && ISDIGIT ((p)[i + 1])) \ fprintf ((file), "\"\n\t.ascii \""); \ } \ } \ diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h index 5ca89e0a71b..ddbc2a72648 100644 --- a/gcc/config/sh/sh.h +++ b/gcc/config/sh/sh.h @@ -832,7 +832,7 @@ extern int regno_reg_class[]; extern enum reg_class reg_class_from_letter[]; #define REG_CLASS_FROM_LETTER(C) \ - ( (C) >= 'a' && (C) <= 'z' ? reg_class_from_letter[(C)-'a'] : NO_REGS ) + ( ISLOWER (C) ? reg_class_from_letter[(C)-'a'] : NO_REGS ) /* The letters I, J, K, L and M in a register constraint string can be used to stand for particular ranges of immediate operands. |