Revert libdex changes

This reverts commit ff3989a9c0d2403eb3bbac3fa89a9ea001730725.

Revert "Unbreak building host modules"

This reverts commit 5531b23c1546fdf896db25f7412291bada6e723c.

Conflicts:
	vm/alloc/Heap.cpp

Revert "libdex: Skip the dexroot-on-cache stuff for user builds"

This reverts commit 3518b1a7dfc54c6db5078ac8f695dd9d6a60860d.

Revert "dvm: Bring back the ANDROID_DATA override"

This reverts commit 01ad455c149af55d34762c11ada603f61515d6bf.

Revert "DexOpt anything in /system on /cache"

This reverts commit 210ad4902c02500e55ec7e2e8b10f7079da442e2.
Remove dx/tests/120-disable-extend-ops

Support for the target-api flag was removed in 2011.

Change-Id: Id50c53f759d4e3a59f550dbeb6e733b68df58dd3
Add -Wno-unused-but-set-variable to the Dalvik project.

This is to meet long term goal that we don't suppress any warnings in
the global makefile.

BUG: 10495043
Change-Id: I1eece42a9f2c43b614cfbeb1397c8071fb3db04a
(cherry picked from commit 0c4625a4e1464544625723b013b3febb1cc9359e)
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>
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>
We use gcc 4.8 for the host not 4.7
dalvik: Fix for broswer-crashing bug

This applies the fix proposed by Olivier Cozette in
https://code.google.com/p/android/issues/detail?id=37561
and fixes our bug:
https://bugs.launchpad.net/linaro-android/+bug/978060

An alternative fix has been applied since, leaving this one in
as a comment for reference

Change-Id: I54336c83650c1628fd1bb689148bc1dd8843d7c6
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Cleanup