aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-structalias.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2007-07-25 19:19:42 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2007-07-25 19:19:42 +0000
commite5cfc29f59efc9a8b8bc29c35ab160ae4d76c2b6 (patch)
tree25657045a0e1f680a00555098079cb87bb9d1384 /gcc/tree-ssa-structalias.c
parent741ac903839251f16d331f4d1c11f444eaec684f (diff)
downloadgcc-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/tree-ssa-structalias.c')
-rw-r--r--gcc/tree-ssa-structalias.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c
index ddd7de3..efd39f0 100644
--- a/gcc/tree-ssa-structalias.c
+++ b/gcc/tree-ssa-structalias.c
@@ -4266,6 +4266,7 @@ typedef struct shared_bitmap_info
bitmap pt_vars;
hashval_t hashcode;
} *shared_bitmap_info_t;
+typedef const struct shared_bitmap_info *const_shared_bitmap_info_t;
static htab_t shared_bitmap_table;
@@ -4274,7 +4275,7 @@ static htab_t shared_bitmap_table;
static hashval_t
shared_bitmap_hash (const void *p)
{
- const shared_bitmap_info_t bi = (shared_bitmap_info_t) p;
+ const_shared_bitmap_info_t const bi = (const_shared_bitmap_info_t) p;
return bi->hashcode;
}
@@ -4283,8 +4284,8 @@ shared_bitmap_hash (const void *p)
static int
shared_bitmap_eq (const void *p1, const void *p2)
{
- const shared_bitmap_info_t sbi1 = (shared_bitmap_info_t) p1;
- const shared_bitmap_info_t sbi2 = (shared_bitmap_info_t) p2;
+ const_shared_bitmap_info_t const sbi1 = (const_shared_bitmap_info_t) p1;
+ const_shared_bitmap_info_t const sbi2 = (const_shared_bitmap_info_t) p2;
return bitmap_equal_p (sbi1->pt_vars, sbi2->pt_vars);
}