This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/39464] [4.6/4.7/4.8 Regression] Attribute may_alias causes invalid warning
- 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: Tue, 18 Dec 2012 22:48:09 +0000
- Subject: [Bug c/39464] [4.6/4.7/4.8 Regression] Attribute may_alias causes invalid warning
- Auto-submitted: auto-generated
- References: <bug-39464-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39464
--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-12-18 22:48:09 UTC ---
Author: jakub
Date: Tue Dec 18 22:48:04 2012
New Revision: 194594
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=194594
Log:
PR c/39464
* c-typeck.c (convert_for_assignment): For -Wpointer-sign
warning require that both c_common_unsigned_type as well as
c_common_signed_type is the same for both mvl and mvr types.
* gcc.dg/pr39464.c: New test.
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-typeck.c
trunk/gcc/testsuite/ChangeLog