Constify member function parameters that can be const.
Correct a couple of expressions in formerly uninstantiated templates.
The new code is 0.362% faster in bootstrap, with a 99.5% confidence of
being faster.
Tested on x86-64.
Index: gcc/java/ChangeLog
2012-10-01 Lawrence Crowl <crowl@google.com>
* Make-lang.in (JAVA_OBJS): Add dependence on hash-table.o.
(JCFDUMP_OBJS): Add dependence on hash-table.o.
(jcf-io.o): Add dependence on hash-table.h.
* jcf-io.c (memoized_class_lookups): Change to use type-safe hash table.
Index: gcc/c/ChangeLog
2012-10-09 Lawrence Crowl <crowl@google.com>
* Make-lang.in (c-decl.o): Add dependence on hash-table.h.
* c-decl.c (detect_field_duplicates_hash): Change to new type-safe
hash table.
Index: gcc/objc/ChangeLog
2012-10-01 Lawrence Crowl <crowl@google.com>
* Make-lang.in (OBJC_OBJS): Add dependence on hash-table.o.
(objc-act.o): Add dependence on hash-table.h.
* objc-act.c (objc_detect_field_duplicates): Change to new type-safe
hash table.
Index: gcc/ChangeLog
2012-10-09 Lawrence Crowl <crowl@google.com>
* Makefile.in (fold-const.o): Add depencence on hash-table.h.
(dse.o): Likewise.
(cfg.o): Likewise.
* fold-const.c (fold_checksum_tree): Change to new type-safe hash table.
* (print_fold_checksum): Likewise.
* cfg.c (var bb_original): Likewise.
* (var bb_copy): Likewise.
* (var loop_copy): Likewise.
* hash-table.h (template hash_table): Constify parameters for find...
and remove_elt... member functions.
(hash_table::empty) Correct size expression.
(hash_table::clear_slot) Correct deleted entry assignment.
* dse.c (var rtx_group_table): Change to new type-safe hash table.
Index: gcc/cp/ChangeLog
2012-10-09 Lawrence Crowl <crowl@google.com>
* Make-lang.in (class.o): Add dependence on hash-table.h.
(tree.o): Likewise.
(semantics.o): Likewise.
* class.c (fixed_type_or_null): Change to new type-safe hash table.
* tree.c (verify_stmt_tree): Likewise.
(verify_stmt_tree_r): Likewise.
* semantics.c (struct nrv_data): Likewise.
From-SVN: r192273
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| ChangeLog | Loading commit data... | |
| ChangeLog.ptr | Loading commit data... | |
| ChangeLog.tree-ssa | Loading commit data... | |
| Make-lang.in | Loading commit data... | |
| boehm.c | Loading commit data... | |
| builtins.c | Loading commit data... | |
| class.c | Loading commit data... | |
| config-lang.in | Loading commit data... | |
| constants.c | Loading commit data... | |
| decl.c | Loading commit data... | |
| except.c | Loading commit data... | |
| expr.c | Loading commit data... | |
| gcj.texi | Loading commit data... | |
| java-except.h | Loading commit data... | |
| java-gimplify.c | Loading commit data... | |
| java-opcodes.h | Loading commit data... | |
| java-tree.def | Loading commit data... | |
| java-tree.h | Loading commit data... | |
| javaop.def | Loading commit data... | |
| javaop.h | Loading commit data... | |
| jcf-depend.c | Loading commit data... | |
| jcf-dump.c | Loading commit data... | |
| jcf-io.c | Loading commit data... | |
| jcf-parse.c | Loading commit data... | |
| jcf-path.c | Loading commit data... | |
| jcf-reader.c | Loading commit data... | |
| jcf.h | Loading commit data... | |
| jvgenmain.c | Loading commit data... | |
| jvspec.c | Loading commit data... | |
| lang-specs.h | Loading commit data... | |
| lang.c | Loading commit data... | |
| lang.opt | Loading commit data... | |
| mangle.c | Loading commit data... | |
| mangle_name.c | Loading commit data... | |
| parse.h | Loading commit data... | |
| resource.c | Loading commit data... | |
| typeck.c | Loading commit data... | |
| verify-glue.c | Loading commit data... | |
| verify-impl.c | Loading commit data... | |
| verify.h | Loading commit data... | |
| win32-host.c | Loading commit data... | |
| zextract.c | Loading commit data... | |
| zipfile.h | Loading commit data... |