Add C++ exceptions and RTTI support.

This enables C++ exceptions and RTTI support to the NDK
toolchain through a local patch.

C++ sources are still built with -fno-exceptions and -fno-rtti
by default for compatibility purpose, so use -fexceptions and/or
-frtti in your LOCAL_CPPFLAGS to enable these features.

You will also need to link against libsupc++.a directly with:

   LOCAL_LDLIBS := -lsupc++

+ Add two device tests to check that the features work properly.

Change-Id: I41956a04997336d8135aaef291a1579267e0ad2a
12 files changed