summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-01-05 19:05:46 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2007-01-05 19:05:46 +0000
commitb3c6d2ea006d4c688964c044a081ddea7884148a (patch)
tree5758b8cb24576b1e3eb71016f81cfeab25bbd494 /configure
parent97af925ba7b16e64c9f8b48cbfd5b4ccaa905f36 (diff)
downloadgcc-b3c6d2ea006d4c688964c044a081ddea7884148a.tar.gz
c-common.c (decl_with_nonnull_addr_p): New function.
./: * c-common.c (decl_with_nonnull_addr_p): New function. (c_common_truthvalue_conversion): Call it. * c-typeck.c (build_binary_op): Likewise. * c-common.h (decl_with_nonnull_addr_p): Declare. cp/: * typeck.c (build_binary_op): Warn about comparing a non-weak address to NULL. testsuite/: * gcc.dg/Walways-true-1.c: New test. * gcc.dg/Walways-true-2.c: New test. * g++.dg/warn/Walways-true-1.C: New test. * g++.dg/warn/Walways-true-2.C: New test. From-SVN: r120493
Diffstat (limited to 'configure')
0 files changed, 0 insertions, 0 deletions