This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/39983] ICE: type mismatch in address expression



------- Comment #4 from rguenth at gcc dot gnu dot org  2009-05-03 19:57 -------
Subject: Bug 39983

Author: rguenth
Date: Sun May  3 19:57:32 2009
New Revision: 147083

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147083
Log:
2009-05-03  Richard Guenther  <rguenther@suse.de>

        PR c/39983
        * c-typeck.c (array_to_pointer_conversion): Do not built
        ADDR_EXPRs of arrays of pointer-to-element type.
        * c-gimplify.c (c_gimplify_expr): Revert change fixing
        up wrong ADDR_EXPRs after-the-fact.
        * c-common.c (strict_aliasing_warning): Strip pointer
        conversions for obtaining the original type.
        * builtins.c (fold_builtin_memset): Handle array types.
        (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
        and array types

        * gcc.c-torture/compile/pr39983.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr39983.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/builtins.c
    trunk/gcc/c-common.c
    trunk/gcc/c-gimplify.c
    trunk/gcc/c-typeck.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39983


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]