[Bug middle-end/53084] [4.7/4.8 Regression] GCC cannot handle array initialization of string constant with point arithmetic properly

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 24 06:15:00 GMT 2012


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

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-04-24 06:14:43 UTC ---
Author: jakub
Date: Tue Apr 24 06:14:37 2012
New Revision: 186746

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186746
Log:
    PR middle-end/53084
    * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR
    of MEM_REF.
    (output_addressed_constants): Likewise.

    * gcc.c-torture/execute/pr53084.c: New test.

Added:
    branches/gcc-4_6-branch/gcc/testsuite/gcc.c-torture/execute/pr53084.c
Modified:
    branches/gcc-4_6-branch/gcc/ChangeLog
    branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_6-branch/gcc/varasm.c



More information about the Gcc-bugs mailing list