[4.8] 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

Author: Andrew Hsieh <andrewhsieh@google.com>
Date:   Tue Apr 2 19:10:16 2013 +0800
[4.8] 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

Author: Andrew Hsieh <andrewhsieh@google.com>
Date:   Tue Apr 2 19:13:16 2013 +0800
[4.8] 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

Author: Andrew Hsieh <andrewhsieh@google.com>
Date:   Tue Apr 2 19:26:45 2013 +0800
[4.8] Enable armv7/thumb2 multilib for arm-eabi.

Configured multilib:

> arm-eabi-gcc -print-multi-lib
.;
thumb;@mthumb
thumb/thumb2;@mthumb@march=armv7

See 978fb74a5c086cc5572dc2e3f37d207acad969d7

Change-Id: Ia04c9e23cb5abb924702639c6c0f3afc9c485ff0

Author: Ben Cheng <bccheng@android.com>
Date:   Tue Apr 2 19:31:03 2013 +0800