[Bug tree-optimization/41898] GCC ignores restrict on array

2021-03-25 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41898 --- Comment #5 from Richard Biener --- Possibly related (implementation-wise) are ideas to handle array element contents field-sensitive but not elements, thus have for T p[10]; fields for members of 'T' but re-use the appropriate member for ea

[Bug tree-optimization/41898] GCC ignores restrict on array

2020-03-02 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41898 Richard Biener changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug tree-optimization/41898] GCC ignores restrict on array

2020-02-28 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41898 Martin Sebor changed: What|Removed |Added Last reconfirmed|2009-11-01 20:59:25 |2020-2-28 CC|

[Bug tree-optimization/41898] GCC ignores restrict on array

2009-11-01 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2009-11-01 21:00 --- It works with int * __restrict__ a; int * __restrict__ b; extern void link_error (void); int main() { a[0] = 0; b[0] = 1; if (a[0] != 0) link_error (); return 0; } -- rguenth at gcc dot gnu dot org

[Bug tree-optimization/41898] GCC ignores restrict on array

2009-11-01 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-11-01 20:59 --- Without __restrict__ we don't optimize the call to link_error either. Because the stores may alias - they are only redundant because of the identical RHS. See PR23094 for that missed optimization. But restrict ind