[Bug c/71567] Incorrect loop optimization

2016-06-27 Thread tyoma.ariv at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71567 Artem changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID

[Bug c/71567] Incorrect loop optimization

2016-06-23 Thread tyoma.ariv at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71567 --- Comment #8 from Artem --- (In reply to Manuel López-Ibáñez from comment #7) > See https://gcc.gnu.org/wiki/FAQ#misoptimization > > and https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#Warning-Options Thank you for the links. However

[Bug c/71567] Incorrect loop optimization

2016-06-22 Thread tyoma.ariv at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71567 --- Comment #6 from Artem --- (In reply to Manuel López-Ibáñez from comment #5) > > Your code is still broken and it may get miscompiled with a different > version of GCC or a different compiler or due to any changes to the > surrounding code.

[Bug c/71567] Incorrect loop optimization

2016-06-21 Thread tyoma.ariv at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71567 --- Comment #4 from Artem --- Thank you very much. This help

[Bug c/71567] Incorrect loop optimization

2016-06-20 Thread tyoma.ariv at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71567 --- Comment #2 from Artem --- Thank you for help. Could you please also advise which kind of optimization performed here. Could it be switched off by using some compiler options? (because there are a lot of such places in the source code) Also I

[Bug c/71567] New: Incorrect loop optimization

2016-06-17 Thread tyoma.ariv at gmail dot com
: unassigned at gcc dot gnu.org Reporter: tyoma.ariv at gmail dot com Target Milestone: --- #define NIN 2 struct struct1 { char ggint[NIN][6]; char dummy; }; /*--*/ int get_struct1cnt(struct struct1 *gr