[Bug c/39464] [4.6/4.7/4.8 Regression] Attribute may_alias causes invalid warning

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Dec 18 22:48:00 GMT 2012


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



More information about the Gcc-bugs mailing list