Clean up declaration of __cxa_get_globals

At least Clang trunk towards 3.4 now rejects incompatible declarations of the
same extern "C" function in different namespaces, so that trick of getting at
the function that is exported by libstdc++ but only rudimentarily if at all
exposed in cxxabi.h no longer worked.

TODO: This change should be reflected in any other bridges where it is relevant,
too.

(cherry picked from commit 5ba3d1740b03efa394b2d2bf34fb8a8d3db2331d)

Signed-off-by: Luboš Luňák <l.lunak@centrum.cz>

Conflicts:
	configure.ac

Change-Id: Ie3ccbdb7d75cc98636d02c0435958532620724f2
Adapt gcc3_linux_intel to Clang 3.4

...same as 5ba3d1740b03efa394b2d2bf34fb8a8d3db2331d "Clean up declaration of
__cxa_get_globals" plus c17f01753ce94e9f57d6e4a2763152240fbcd50a "...and
similarly for __cxa_allocate_exception and __cxa_throw."

Change-Id: I02361cfca260577ce13fb634b5637938daf0283d
(cherry picked from commit 9dc337e9d073352cd9c9018d30b40bd4dcd5b1cb)

Signed-off-by: Luboš Luňák <l.lunak@centrum.cz>
...and similarly for __cxa_allocate_exception and __cxa_throw

(cherry picked from commit c17f01753ce94e9f57d6e4a2763152240fbcd50a)

Signed-off-by: Luboš Luňák <l.lunak@centrum.cz>

Conflicts:
	configure.ac

Change-Id: I87ae299aac97180f0587c553d85b051decca155c
fix 'error: comparison between pointer and integer'

Change-Id: I99df639d9df667c07f2756313bac6a78de607bee
error: comparison between pointer and integer (Clang trunk towards 3.4)

...the check in itga.cxx was useless anyway, as new[] does not return null.

Change-Id: I4de5a46e14a83ab134d0a098a62748e909dc9c00
(cherry picked from commit b63524d269a792e20777a91e4ed7e8ceae7ff55f)

Signed-off-by: Luboš Luňák <l.lunak@centrum.cz>
error: friend declaration specifying a default argument must be a definition

...(Clang trunk towards 3.4); this appears to be specific to C++11, which added at
the end of 8.3.6/4 [dcl.fct.default]:  "If a friend declaration specifies a default
argument expression, that declaration shall be a definition and shall be the only
declaration of the function or function template in the translation unit."

Change-Id: I750c60a2206d7af41322ebb31aa6deca2491067f
(cherry picked from commit 39f42b0b03489459540404dd218c38709853c021)

Signed-off-by: Luboš Luňák <l.lunak@centrum.cz>
check for return of -1 from getToken

as demonstrated by ooo91883-1.doc

Change-Id: I11a7f0747334f4cecbfd34c9353598d875be02c2
(cherry picked from commit 8f25d823a8d5488ae4880ae009a026f6fc07f611)

Signed-off-by: Luboš Luňák <l.lunak@centrum.cz>
rhbz#1057977 avoid use of invalidated pointers

(cherry picked from commit 6b127d40c7d57745bc602d9ff7914392f9d3b92b)

Signed-off-by: Luboš Luňák <l.lunak@centrum.cz>

Conflicts:
	vcl/source/gdi/outdev3.cxx

Change-Id: Ib81f79da696b5e8002f5a2ddcf160903231dc3f1