diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-16 22:20:44 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-16 22:20:44 +0000 |
commit | fa8da10b7787d6a0accd7ea735a570caffb0a314 (patch) | |
tree | 5e3393cc1483b31e95e58de4c913fd832b1ce906 /gcc/genattr.c | |
parent | 41e9055d809812e6b227a910add838f70503bc21 (diff) | |
download | gcc-fa8da10b7787d6a0accd7ea735a570caffb0a314.tar.gz |
* system.h (CTYPE_CONV, TOUPPER, TOLOWER): New macros. Use
CTYPE_CONV in all ctype macros.
* cccp.c (initialize_char_syntax): Use uppercase ctype macro
from system.h.
* cexp.y (initialize_random_junk): Likewise.
* c4x.c (c4x_interrupt_function_p, c4x_handle_pragma): Likewise.
* i370.c (handle_pragma): Likewise.
* i370.h (ASM_OUTPUT_LABELREF, ASM_OUTPUT_ASCII): Likewise.
* v850.c (override_options): Likewise.
* doprint.c (_doprnt): Likewise.
* fixinc/fixincl.c (main, quoted_file_exists, extract_quoted_files):
Likewise.
* fixinc/server.c (load_data): Likewise.
* fold-const.c (real_hex_to_f): Likewise.
* genattr.c (write_upcase, gen_attr): Likewise.
* genattrtab.c (convert_const_symbol_ref, evaluate_eq_attr,
write_upcase): Likewise.
* genemit.c (print_code): Likewise.
* genopinit.c (gen_insn): Likewise.
* genpeep.c (print_code): Likewise.
* genrecog.c (print_code): Likewise.
* optabs.c (init_libfuncs): Likewise.
ch:
* lex.c (maybe_downcase, getlc, handle_generic_pragma,
check_newline): Likewise.
f:
* bad.c (ffebad_finish): Likewise.
* fini.c (main): Likewise.
* intrin.c (ffeintrin_init_0): Likewise.
* lex.c (ffelex_hash_): Likewise.
* src.c (ffesrc_init_1): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29463 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genattr.c')
-rw-r--r-- | gcc/genattr.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/gcc/genattr.c b/gcc/genattr.c index 9a3357adb9a..4316c3540ba 100644 --- a/gcc/genattr.c +++ b/gcc/genattr.c @@ -56,7 +56,7 @@ struct function_unit static void extend_range PROTO((struct range *, int, int)); static void init_range PROTO((struct range *)); -static void write_upcase PROTO((char *)); +static void write_upcase PROTO((const char *)); static void gen_attr PROTO((rtx)); static void write_units PROTO((int, struct range *, struct range *, struct range *, struct range *, @@ -81,13 +81,10 @@ init_range (range) static void write_upcase (str) - char *str; + const char *str; { for (; *str; str++) - if (ISLOWER(*str)) - printf ("%c", toupper(*str)); - else - printf ("%c", *str); + putchar (TOUPPER(*str)); } static void @@ -117,10 +114,8 @@ gen_attr (attr) write_upcase (XSTR (attr, 0)); printf ("_"); } - else if (ISLOWER(*p)) - printf ("%c", toupper(*p)); else - printf ("%c", *p); + putchar (TOUPPER(*p)); } printf ("};\n"); |