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 middle-end/51077] [4.6/4.7 Regression] Endless recursion with __builtin_object_size


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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-11-10 19:04:05 UTC ---
Author: jakub
Date: Thu Nov 10 19:04:01 2011
New Revision: 181264

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=181264
Log:
    PR middle-end/51077
    * tree-object-size.c (addr_object_size): Check TREE_CODE of
    MEM_REF's operand rather than code of the MEM_REF itself.

    * gcc.c-torture/compile/pr51077.c: New test.

Added:
    branches/gcc-4_6-branch/gcc/testsuite/gcc.c-torture/compile/pr51077.c
Modified:
    branches/gcc-4_6-branch/gcc/ChangeLog
    branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_6-branch/gcc/tree-object-size.c


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