diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2008-06-29 05:36:20 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2008-06-29 05:36:20 +0000 |
commit | 572e5ae36a6e358c96e98638c4c361510bec90ac (patch) | |
tree | 4087c41736bddb46c32817dfe3abeba27c59d14b /gcc/optabs.c | |
parent | 4dc6c528c2b8e858ae65d91a82c6fae661894302 (diff) | |
download | gcc-572e5ae36a6e358c96e98638c4c361510bec90ac.zip gcc-572e5ae36a6e358c96e98638c4c361510bec90ac.tar.gz gcc-572e5ae36a6e358c96e98638c4c361510bec90ac.tar.bz2 |
optabs.c (libfunc_decl_hash, [...]): Fix -Wcast-qual warnings.
* optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
warnings.
* Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
(bitmap.o-warn, dominance.o-warn): New.
* configure.ac (cxx_compat_warn): Delete.
(loose_warn): Add -Wcast-qual and -Wc++-compat.
* system.h: Remove #pragma diagnostic for -Wcast-qual and
-Wc++-compat.
* configure: Regenerate.
cp:
* Make-lang.in (cp-warn): Delete $(CXX_COMPAT_WARN).
java:
* Make-lang.in (java/jcf-io.o-warn): New.
From-SVN: r137246
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r-- | gcc/optabs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c index c3377c8..32a6396 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -5992,13 +5992,13 @@ static GTY ((param_is (union tree_node))) htab_t libfunc_decls; static hashval_t libfunc_decl_hash (const void *entry) { - return htab_hash_string (IDENTIFIER_POINTER (DECL_NAME ((tree) entry))); + return htab_hash_string (IDENTIFIER_POINTER (DECL_NAME ((const_tree) entry))); } static int libfunc_decl_eq (const void *entry1, const void *entry2) { - return DECL_NAME ((tree) entry1) == (tree) entry2; + return DECL_NAME ((const_tree) entry1) == (const_tree) entry2; } rtx |