[4.8, 4.9] Fix crash of omp loops that are not in the main thread.

Issue happens only when gcc is configured with "--disable-tls".
Backport from trunk for fixing PR42616

2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>

  * config.h.in: Regenerate.
  * configure: Regenerate.
  * configure.ac: Add GCC_CHECK_EMUTLS.
  * libgomp.h: Add check for USE_EMUTLS: this case
    is equal to HAVE_TLS.
  * team.c: Likewise.

Change-Id: Iee574d1a7888b3bcbd01718669eac34fdd116abb
Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com>
Merge remote-tracking branch 'aosp/master' into aosp-4.9

Signed-off-by: Paul Beeler <pbeeler80@gmail.com>

Conflicts:
	gcc-4.8/libgomp/config.h.in
	gcc-4.8/libgomp/configure
	gcc-4.8/libgomp/configure.ac
	gcc-4.8/libgomp/libgomp.h
	gcc-4.8/libgomp/team.c