Enable x86/arm gcc defaults; Remove march/mtune/mfpmath hardcoded values

See c779c1ff50bde450eb49b3998353804602c4d963
  Used to be local NDK patch at $NDK/build/tools/toolchain-patches/
  gcc/0004-Enable-x86-gcc-defaults.patch
Also see 5578813961a205a7c5d3e9da8a1b5ec00d4dac3c
  They should be passed in configure to work correctly.
  See https://android-review.googlesource.com/50815

Change-Id: I0be1f1111870070f25d92d390d2738b52315865d
Port MIPS Android support to GCC-4.8

Used to be local NDK patch at $NDK/build/tools/toolchain-patches/
gcc/0008-Port-MIPS-Android-support-to-GCC-4.6.patch

See ec1a2a51fa75883e4bdf9f4f03e8fd16a261c275

Change-Id: I7526fc1f1c3304c14b8f6f6d5a0b26ddc1c7e4a0
Simplify GCC 4.7 BASE-VER

Change 4.8.0 -> 4.8

In NDK gnu-libstdc++ is built seperately and copied over to
standalone.  This change simplifies script doing that and make
it less sensitive to future minor version upgrade

See 4b8d41c82a2da3c7b7d9a19e254eba11e05f53fa

Change-Id: I2656771699a188060403b4c2094134d77191566b
Handle NULL return value of setlocale() in libstdc++

Bionic setlocale() always returns NULL.  $NDK/tests/device/test-gnustl-2
(as well as others using iostream, etc) segfault w/o this change

See d3029b5a1a770d75806370618f7311a991107119,
20ffc596a2771a96ac9b4a4838edc7779a48f0af and
https://code.google.com/p/android/issues/detail?id=46718

Change-Id: I4808ebaedc5495cbc074999b22e3ffea5ba2947c
Add -mstack-protector-guard= to x86 compilers

To choose between "global" (default) and "tls" (new)
for -fstack-protector, -fstack-protector-all, and
-fstack-protector-strong (GCC 4.6+).

Note that this alone doesn't enable any -fstack-protector*

For NDK: The default "global" generates code backward
compatible with older bionic

For AOSP: build may add "-mstack-protector-guard=tls" to
build platform code with new bionic (*1)

Related CL:
  ad88a0863110798cef5169dcf917e18b967a7cf6 (*1)
  e804643b6dfcfb5842dea4b714601c6dd89f4944

Change-Id: I341c9022530b37ca289d94e1174dfa86a8eaa1bf