diff options
author | Andrew Pinski <pinskia@gmail.com> | 2007-12-13 11:19:17 -0800 |
---|---|---|
committer | David Daney <daney@gcc.gnu.org> | 2007-12-13 19:19:17 +0000 |
commit | 76ce039e605be1a9be17d3bf4f6513f0ecea63c6 (patch) | |
tree | 708102fc1413990539d6457f5d42a23d618d64a2 /gcc/system.h | |
parent | bff98546fbd1c180408ece566a68b6d1e3a90bc6 (diff) | |
download | gcc-76ce039e605be1a9be17d3bf4f6513f0ecea63c6.tar.gz |
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
Diffstat (limited to 'gcc/system.h')
-rw-r--r-- | gcc/system.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/system.h b/gcc/system.h index 65f27379ad1..92b045c1a5e 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -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 */ |