diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2007-07-25 19:19:42 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2007-07-25 19:19:42 +0000 |
commit | e5cfc29f59efc9a8b8bc29c35ab160ae4d76c2b6 (patch) | |
tree | 25657045a0e1f680a00555098079cb87bb9d1384 /gcc/see.c | |
parent | 741ac903839251f16d331f4d1c11f444eaec684f (diff) | |
download | gcc-e5cfc29f59efc9a8b8bc29c35ab160ae4d76c2b6.zip gcc-e5cfc29f59efc9a8b8bc29c35ab160ae4d76c2b6.tar.gz gcc-e5cfc29f59efc9a8b8bc29c35ab160ae4d76c2b6.tar.bz2 |
cselib.c (entry_and_rtx_equal_p): Constify.
* cselib.c (entry_and_rtx_equal_p): Constify.
* gengtype.c (output_mangled_typename, write_types, write_local):
Likewise.
* gengtype.h (const_type_p): New.
* see.c (eq_descriptor_extension, hash_descriptor_extension):
Constify.
* tlink.c (scan_linker_output): De-constify.
* tree-ssa-loop-im.c (memref_eq): Constify.
* tree-ssa-structalias.c (const_shared_bitmap_info_t): New.
(shared_bitmap_hash, shared_bitmap_eq): Constify.
cp:
* parser.c (cp_parser_string_literal, cp_parser_sizeof_operand):
Constify.
From-SVN: r126926
Diffstat (limited to 'gcc/see.c')
-rw-r--r-- | gcc/see.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -933,12 +933,12 @@ hash_del_properties (void *p) static int eq_descriptor_extension (const void *p1, const void *p2) { - const rtx insn = (rtx) p1; - const rtx element = (rtx) p2; + const_rtx const insn = (const_rtx) p1; + const_rtx const element = (const_rtx) p2; rtx set1 = single_set (insn); rtx dest_reg1; rtx set2 = NULL; - rtx dest_reg2 = NULL; + const_rtx dest_reg2 = NULL; gcc_assert (set1 && element && (REG_P (element) || INSN_P (element))); @@ -962,7 +962,7 @@ eq_descriptor_extension (const void *p1, const void *p2) static hashval_t hash_descriptor_extension (const void *p) { - const rtx r = (rtx) p; + const_rtx const r = (const_rtx) p; rtx set, lhs; if (r && REG_P (r)) |