OSDN Git Service

Remove -Wno-unused-parameter and -Wno-sign-promo from base cflags.
authorIan Rogers <irogers@google.com>
Fri, 31 Oct 2014 07:33:20 +0000 (00:33 -0700)
committerIan Rogers <irogers@google.com>
Tue, 4 Nov 2014 04:01:04 +0000 (20:01 -0800)
commit6a3c1fcb4ba42ad4d5d142c17a3712a6ddd3866f
tree9df58b57af13240a93a6da4eefcf03f70cce9ad9
parentc6e0955737e15f7c0c3575d4e13789b3411f4993
Remove -Wno-unused-parameter and -Wno-sign-promo from base cflags.

Fix associated errors about unused paramenters and implict sign conversions.
For sign conversion this was largely in the area of enums, so add ostream
operators for the effected enums and fix tools/generate-operator-out.py.
Tidy arena allocation code and arena allocated data types, rather than fixing
new and delete operators.
Remove dead code.

Change-Id: I5b433e722d2f75baacfacae4d32aef4a828bfe1b
192 files changed:
build/Android.common_build.mk
build/Android.gtest.mk
compiler/Android.mk
compiler/common_compiler_test.cc
compiler/compiler.cc
compiler/compiler.h
compiler/dex/backend.h
compiler/dex/compiler_enums.h
compiler/dex/dex_to_dex_compiler.cc
compiler/dex/global_value_numbering.h
compiler/dex/local_value_numbering.cc
compiler/dex/local_value_numbering.h
compiler/dex/mir_dataflow.cc
compiler/dex/mir_graph.cc
compiler/dex/mir_graph.h
compiler/dex/mir_optimization.cc
compiler/dex/pass.h
compiler/dex/pass_me.h
compiler/dex/portable/mir_to_gbc.h
compiler/dex/quick/arm/arm_lir.h
compiler/dex/quick/arm/call_arm.cc
compiler/dex/quick/arm/codegen_arm.h
compiler/dex/quick/arm/int_arm.cc
compiler/dex/quick/arm/target_arm.cc
compiler/dex/quick/arm/utility_arm.cc
compiler/dex/quick/arm64/arm64_lir.h
compiler/dex/quick/arm64/call_arm64.cc
compiler/dex/quick/arm64/codegen_arm64.h
compiler/dex/quick/arm64/int_arm64.cc
compiler/dex/quick/arm64/target_arm64.cc
compiler/dex/quick/arm64/utility_arm64.cc
compiler/dex/quick/codegen_util.cc
compiler/dex/quick/dex_file_method_inliner.cc
compiler/dex/quick/dex_file_method_inliner.h
compiler/dex/quick/gen_common.cc
compiler/dex/quick/gen_invoke.cc
compiler/dex/quick/mips/assemble_mips.cc
compiler/dex/quick/mips/call_mips.cc
compiler/dex/quick/mips/codegen_mips.h
compiler/dex/quick/mips/fp_mips.cc
compiler/dex/quick/mips/int_mips.cc
compiler/dex/quick/mips/mips_lir.h
compiler/dex/quick/mips/target_mips.cc
compiler/dex/quick/mips/utility_mips.cc
compiler/dex/quick/mir_to_lir.cc
compiler/dex/quick/mir_to_lir.h
compiler/dex/quick/quick_compiler.cc
compiler/dex/quick/ralloc_util.cc
compiler/dex/quick/resource_mask.h
compiler/dex/quick/x86/assemble_x86.cc
compiler/dex/quick/x86/call_x86.cc
compiler/dex/quick/x86/codegen_x86.h
compiler/dex/quick/x86/fp_x86.cc
compiler/dex/quick/x86/int_x86.cc
compiler/dex/quick/x86/target_x86.cc
compiler/dex/quick/x86/utility_x86.cc
compiler/dex/quick/x86/x86_lir.h
compiler/dex/reg_storage.h
compiler/dex/verification_results.cc
compiler/driver/compiler_driver.h
compiler/driver/compiler_options.h
compiler/elf_builder.h
compiler/elf_writer_quick.cc
compiler/image_writer.cc
compiler/jni/jni_compiler_test.cc
compiler/jni/quick/x86_64/calling_convention_x86_64.cc
compiler/llvm/llvm_compiler.cc
compiler/oat_writer.cc
compiler/optimizing/code_generator.h
compiler/optimizing/code_generator_arm.cc
compiler/optimizing/code_generator_arm64.cc
compiler/optimizing/code_generator_arm64.h
compiler/optimizing/code_generator_x86.cc
compiler/optimizing/code_generator_x86_64.cc
compiler/optimizing/gvn.h
compiler/optimizing/locations.h
compiler/optimizing/nodes.cc
compiler/optimizing/nodes.h
compiler/optimizing/optimizing_compiler.cc
compiler/optimizing/parallel_move_test.cc
compiler/optimizing/ssa_liveness_analysis.h
compiler/output_stream.cc [new file with mode: 0644]
compiler/output_stream.h
compiler/utils/arena_allocator.h
compiler/utils/arena_bit_vector.cc
compiler/utils/arena_bit_vector.h
compiler/utils/arena_containers.h
compiler/utils/arena_object.h
compiler/utils/arm/assembler_arm.h
compiler/utils/arm/assembler_arm32.cc
compiler/utils/arm/assembler_arm32.h
compiler/utils/arm/assembler_thumb2.cc
compiler/utils/arm/assembler_thumb2.h
compiler/utils/arm/constants_arm.h
compiler/utils/arm64/assembler_arm64.cc
compiler/utils/array_ref.h
compiler/utils/assembler.cc
compiler/utils/assembler.h
compiler/utils/growable_array.h
compiler/utils/scoped_arena_containers.h
compiler/utils/stack_checks.h
dex2oat/dex2oat.cc
oatdump/oatdump.cc
patchoat/patchoat.cc
runtime/Android.mk
runtime/arch/arch_test.cc
runtime/arch/stub_test.cc
runtime/arch/x86/context_x86.cc
runtime/arch/x86/context_x86.h
runtime/arch/x86/fault_handler_x86.cc
runtime/base/allocator.cc
runtime/base/allocator.h
runtime/base/macros.h
runtime/base/unix_file/mapped_file.cc [deleted file]
runtime/base/unix_file/mapped_file.h [deleted file]
runtime/base/unix_file/mapped_file_test.cc [deleted file]
runtime/base/unix_file/null_file.cc
runtime/check_jni.cc
runtime/class_linker-inl.h
runtime/class_linker.cc
runtime/class_linker.h
runtime/common_runtime_test.h
runtime/debugger.cc
runtime/debugger.h
runtime/dex_file.h
runtime/dex_instruction.h
runtime/entrypoints/entrypoint_utils-inl.h
runtime/entrypoints/entrypoint_utils.h
runtime/entrypoints/portable/portable_fillarray_entrypoints.cc
runtime/entrypoints/portable/portable_trampoline_entrypoints.cc
runtime/entrypoints/quick/quick_alloc_entrypoints.cc
runtime/entrypoints/quick/quick_trampoline_entrypoints.cc
runtime/entrypoints/quick/quick_trampoline_entrypoints_test.cc
runtime/exception_test.cc
runtime/fault_handler.cc
runtime/gc/accounting/mod_union_table.cc
runtime/gc/accounting/remembered_set.cc
runtime/gc/accounting/space_bitmap_test.cc
runtime/gc/allocator/dlmalloc.cc
runtime/gc/allocator/rosalloc.cc
runtime/gc/allocator/rosalloc.h
runtime/gc/allocator_type.h
runtime/gc/collector/concurrent_copying.h
runtime/gc/collector/mark_sweep.cc
runtime/gc/collector/sticky_mark_sweep.cc
runtime/gc/heap.cc
runtime/gc/heap.h
runtime/gc/space/dlmalloc_space.cc
runtime/gc/space/large_object_space.cc
runtime/gc/space/valgrind_malloc_space.h
runtime/gc/space/zygote_space.cc
runtime/handle_scope.h
runtime/instruction_set.cc
runtime/instrumentation.cc
runtime/instrumentation.h
runtime/intern_table.cc
runtime/interpreter/interpreter.cc
runtime/jdwp/jdwp_handler.cc
runtime/jdwp/object_registry.cc
runtime/jni_internal.cc
runtime/lock_word.h
runtime/mem_map.cc
runtime/mirror/array-inl.h
runtime/mirror/class.h
runtime/mirror/object-inl.h
runtime/monitor_pool.h
runtime/native/dalvik_system_VMRuntime.cc
runtime/native/dalvik_system_ZygoteHooks.cc
runtime/native/java_lang_reflect_Field.cc
runtime/noop_compiler_callbacks.h
runtime/parsed_options.cc
runtime/profiler_options.h
runtime/quick_exception_handler.cc
runtime/read_barrier-inl.h
runtime/reflection.cc
runtime/runtime.cc
runtime/runtime.h
runtime/stack.h
runtime/thread_list.cc
runtime/thread_pool.cc
runtime/thread_pool.h
runtime/thread_state.h
runtime/trace.cc
runtime/transaction.cc
runtime/transaction.h
runtime/utils.h
test/004-JniTest/jni_test.cc
test/004-SignalTest/signaltest.cc
test/115-native-bridge/nativebridge.cc
test/116-nodex2oat/nodex2oat.cc
test/118-noimage-dex2oat/noimage-dex2oat.cc
tools/generate-operator-out.py