http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51267
Bug #: 51267
Summary: loop optimization error using LOC function
Classification: Unclassified
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Severity: normal
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51267
--- Comment #2 from Mathieu priv123 at hotmail dot fr 2011-11-22 20:22:15 UTC
---
Sure, and we are especially fans of -fbound-checks but we can not use it on
half of the code because of this usage.
For the story :
{
I reproduced here
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51267
--- Comment #5 from Mathieu priv123 at hotmail dot fr 2011-11-23 09:33:37 UTC
---
-fno-tree-ds seems to do the trick: from the C manual
with -fno-tree-dse it works as I expect. Thanks.
Because reading the manual I didn't see this option
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51267
--- Comment #7 from Mathieu priv123 at hotmail dot fr 2011-11-25 09:37:15 UTC
---
(In reply to comment #6)
This does not fix the problem. (Note, I initialized
tab=42 and ius=1; otherwise, you reference an undefined
variables.)
Steve, I can't
Assignee: unassigned at gcc dot gnu.org
Reporter: priv123 at hotmail dot fr
Target Milestone: ---
Created attachment 50657
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50657=edit
example code
The code in attachment runs properly with gfortran 6.3.0 with -O1 and with
gfortran 8.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100227
Mathieu changed:
What|Removed |Added
Known to work||6.3.0
Known to fail|