FAIL: gcc.dg/20031012-1.c (test for warnings, line 13) FAIL: gcc.dg/weak/weak-3.c (test for warnings, line 57) FAIL: g++.old-deja/g++.mike/warn8.C (test for warnings, line 14) FAIL: g++.old-deja/g++.mike/warn8.C (test for warnings, line 16) Those all fail because the tests were forgot to be updated for the new option -Walways-true.
Caused by: 2005-12-14 Ben Elliston <bje@au.ibm.com> * c-common.c (c_common_truthvalue_conversion): Generalise warning for addresses converted to booleans; not just function addresses. * c-typeck.c (build_binary_op): Warn for address comparisons which can never be NULL (eg. func == NULL or &var == NULL). * common.opt (Walways-true): New option. * c-opts.c (c_common_handle_option): Set it with -Wall. * doc/invoke.texi: Document it.
Subject: Bug 25422 Author: bje Date: Fri Dec 16 22:12:55 2005 New Revision: 108689 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108689 Log: PR testsuite/25422 * gcc.dg/20031012-1.c: Add -Walways-true option. * gcc.dg/weak/weak-3.c: Likewise. * g++.old-deja/g++.mike/warn8.C: Likewise. Modified: trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.old-deja/g++.mike/warn8.C trunk/gcc/testsuite/gcc.dg/20031012-1.c trunk/gcc/testsuite/gcc.dg/weak/weak-3.c
Fixed.