Joseph Myers 84c426b85d Ignore -Wmaybe-uninitialized in stdlib/bug-getcontext.c.
Doing all-ABIs compile testing produces a compiler warning in
stdlib/bug-getcontext.c on nios2 and tilepro (with GCC 5 branch):

bug-getcontext.c: In function 'do_test':
bug-getcontext.c:53:6: error: 'except_mask' may be used uninitialized in this function [-Werror=maybe-uninitialized]
   if (mask != except_mask)
      ^

This warning appears nonsensical; except_mask is initialized where
it's declared.  I think what must be happening here is that the
compiler is confused by the returns-twice nature of getcontext: if
there were a call to setcontext, local variables could indeed have
lost their values on the second return from getcontext.  This patch
duly uses the DIAG_* macros to disable the warning here.

Tested for nios2 and tilepro (compilation only; after this patch all
the tests compile, though there are other failures) and x86_64 (full
testsuite run).

	* stdlib/bug-getcontext.c: Include <libc-internal.h>.
	(do_test): Disable -Wmaybe-uninitialized around uses of
	except_mask.
2016-11-11 21:05:51 +00:00
..
2012-01-16 09:03:20 -05:00
2016-10-25 17:05:47 -02:00
2016-10-25 17:05:47 -02:00
2016-01-07 17:29:17 -05:00
2016-10-25 17:11:53 -02:00
2016-01-15 11:07:41 -07:00
2014-12-29 23:14:38 -05:00
2016-10-25 17:11:53 -02:00
2016-10-25 17:11:53 -02:00
2016-10-25 17:05:47 -02:00
2016-08-19 11:17:07 -05:00
2016-10-25 17:05:47 -02:00