[Bug middle-end/58941] [4.7 Regression] value modification on zero-length array optimized away
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58941 Richard Biener changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #9 from Richard Biener --- Fixed.
[Bug middle-end/58941] [4.7 Regression] value modification on zero-length array optimized away
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58941 --- Comment #8 from Richard Biener --- Author: rguenth Date: Tue Mar 18 10:58:22 2014 New Revision: 208640 URL: http://gcc.gnu.org/viewcvs?rev=208640&root=gcc&view=rev Log: 2014-03-18 Richard Biener Backport from mainline 2013-11-05 Richard Biener PR middle-end/58941 * tree-dfa.c (get_ref_base_and_extent): Merge common code in MEM_REF and TARGET_MEM_REF handling. Make sure to process trailing array detection before diving into the view-converted object (and possibly apply some extra offset). * gcc.dg/torture/pr58941.c: New testcase. 2012-05-07 Eric Botcazou * tree-dfa.c (get_ref_base_and_extent) : Do the offset computation using the precision of the index type. 2012-05-31 Eric Botcazou * tree-dfa.c (get_ref_base_and_extent): Compute the offset using double ints throughout. Added: branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/torture/pr58941.c Modified: branches/gcc-4_7-branch/gcc/ChangeLog branches/gcc-4_7-branch/gcc/testsuite/ChangeLog branches/gcc-4_7-branch/gcc/tree-dfa.c
[Bug middle-end/58941] [4.7 Regression] value modification on zero-length array optimized away
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58941 --- Comment #7 from rguenther at suse dot de --- On Wed, 27 Nov 2013, thomas.moschcau at web dot de wrote: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58941 > > --- Comment #6 from Thomas Moschcau --- > (In reply to Richard Biener from comment #5) > > And 4.8.3. > > Hello Richard, > will there also be a fix for gcc 4.6.x? No, gcc 4.6 is no longer maintained.
[Bug middle-end/58941] [4.7 Regression] value modification on zero-length array optimized away
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58941 --- Comment #6 from Thomas Moschcau --- (In reply to Richard Biener from comment #5) > And 4.8.3. Hello Richard, will there also be a fix for gcc 4.6.x? Kind Regards Thomas
[Bug middle-end/58941] [4.7 Regression] value modification on zero-length array optimized away
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58941 Richard Biener changed: What|Removed |Added Known to work||4.8.3 Summary|[4.7/4.8 Regression] value |[4.7 Regression] value |modification on zero-length |modification on zero-length |array optimized away|array optimized away --- Comment #5 from Richard Biener --- And 4.8.3.