re PR bootstrap/34144 (Revision 130005 causes bootstrap failure with --disable-checking)

2007-12-13  Andrew Pinski  <pinskia@gmail.com>
	    David Daney  <ddaney@avtrex.com>

	PR bootstrap/34144
	* system.h: Make -Wuninitialized non-fatal if ASSERT_CHECKING
	is disabled.

Co-Authored-By: David Daney <ddaney@avtrex.com>

From-SVN: r130908
This commit is contained in:
Andrew Pinski 2007-12-13 11:19:17 -08:00 committed by David Daney
parent bff98546fb
commit 76ce039e60
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2007-12-13 Andrew Pinski <pinskia@gmail.com>
David Daney <ddaney@avtrex.com>
PR bootstrap/34144
* system.h: Make -Wuninitialized non-fatal if ASSERT_CHECKING
is disabled.
2007-12-13 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/32636

View File

@ -797,6 +797,11 @@ extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN;
/* Activate -Wcast-qual as a warning (not an error/-Werror). */
#if GCC_VERSION >= 4003
#pragma GCC diagnostic warning "-Wcast-qual"
/* If asserts are disabled, activate -Wuninitialized as a warning (not
an error/-Werror). */
#ifndef ASSERT_CHECKING
#pragma GCC diagnostic warning "-Wuninitialized"
#endif
#endif
#endif /* ! GCC_SYSTEM_H */