This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28656] duplicated null argument warning on memcpy()
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 20 Jul 2012 09:37:29 +0000
- Subject: [Bug c++/28656] duplicated null argument warning on memcpy()
- Auto-submitted: auto-generated
- References: <bug-28656-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28656
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-07-20 09:37:29 UTC ---
Author: jakub
Date: Fri Jul 20 09:37:25 2012
New Revision: 189707
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189707
Log:
PR c++/28656
* tree-vrp.c (nonnull_arg_p): Handle all nonnull attributes instead
of just the first one.
* c-common.c (check_function_nonnull): Handle multiple nonnull
attributes properly.
* c-c++-common/pr28656.c: New test.
Added:
trunk/gcc/testsuite/c-c++-common/pr28656.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-common.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-vrp.c