Dalvik: Better compatibility with different compilers

This fixes building with clang, and possibly future versions of gcc:
- Don't error out on unused functions generated by gen-mterp.py
  even when we're using -Werror
- Eliminate some dead code (Word/kWordSize definition) clang warns about
- Add a return statement to a switch path causing a possible code path
  with uninitialized variables (if the compiler doesn't know what
  dvmAbort() is)
- Initialize a variable

Change-Id: I9a3c0a1ad4dce10445e2251e491f18511413ca50
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
vm: fix C++11 build after stdint update

If __STDINT_LIMITS is defined, SIZE_MAX
is defined twice.

Change-Id: I8d35157e3157ccd6fffc9c980557e0986859d20e
Signed-off-by: DHOMD <DHO@dho.im>

vm: fix extraneous parentheses warnings

Summary:
This warning is treated as an error with clang and -Werror.
Fixes the following:
  equality comparison with extraneous parentheses

Test Plan: verify

Reviewers: randall.rushing, synergy

Reviewed By: synergy

Differential Revision: http://review.codefirex.com/D598

Change-Id: I3ff97ad2e4c63abffdd921c7910ba94c50a33a34
Signed-off-by: DHOMD <DHO@dho.im>

vm: reduce logcat debug spam

this ought to prevent:
D/dalvikvm(12407): Trying to load lib libjavacore.so 0x0
D/dalvikvm(12407): Added shared lib libjavacore.so 0x0
D/dalvikvm(12407): No JNI_OnLoad found in libnativehelper.so 0x0, skipping init
D/dalvikvm(12407): Note: class Landroid/app/ActivityManagerNative; has 180 unimplemented (abstract) methods

Change-Id: I3e6017404e2ec4c85a502071db0d12fb40ff5a56

dalvik/libdex: Change to -O2 if we're building with -O3

This is a workaround for an apparent gcc bug.
https://bugs.launchpad.net/linaro-android/+bug/948255

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

dalvik/libdex: Don't reduce optimization level to -O2

Don't reduce optimization level to -O2: It's sufficient to disable
function inlining

Change-Id: Ie6d9978cf0bf0e49cfa296c09c4eba913f22c303
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

Use RETURN_PTR(NULL) instead of RETURN_VOID in newNonMovableArray.

RETURN_VOID doesn't set the return value. This means that we are
returning random garbage when the allocation doesn't succeed.

Bug: 11971220
Change-Id: I570562c7bb9dc573161294916f582709774b35fd

Dalvik :Increase the upper limit check for DexOpt Deps table

Increasing upper limit check for the Deps table as additonal
jars added causes the dalvik to crash while performing dexopt
on cached jar files. This is needed for passing cts test case
which is part of libcore.java.util.jar.DalvikExecTest class

Change-Id: I5431238839712499122eb35132599230d8610de8
CRs-Fixed:621955

Conflicts:
	vm/analysis/DexPrepare.cpp
Merge branch 'lin' into up