[Bug fortran/46166] optimization and/or removing an if(.false.) statement leads to bad results

2010-10-26 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46166

janus at gcc dot gnu.org changed:

   What|Removed |Added

 CC||janus at gcc dot gnu.org

--- Comment #3 from janus at gcc dot gnu.org 2010-10-26 15:00:51 UTC ---
I think it would be helpful if you could reduce your test case (which is a
total mess right now) to something more reasonable. Otherwise it's very hard to
decide whether it is a compiler problem or a user problem and to pin down where
the differences at -O0/-O1 come from.


[Bug fortran/46166] optimization and/or removing an if(.false.) statement leads to bad results

2010-10-26 Thread sgk at troutmask dot apl.washington.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46166

--- Comment #4 from Steve Kargl sgk at troutmask dot apl.washington.edu 
2010-10-26 15:09:37 UTC ---
Janus,

See comment #2.  The problem is tauc is used
before it is initialized.  This is a bogus
bug report.


[Bug fortran/46166] optimization and/or removing an if(.false.) statement leads to bad results

2010-10-26 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46166

janus at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||INVALID

--- Comment #5 from janus at gcc dot gnu.org 2010-10-26 15:13:14 UTC ---
(In reply to comment #4)
 The problem is tauc is used
 before it is initialized.  This is a bogus
 bug report.

Why don't we just close it then?


[Bug fortran/46166] optimization and/or removing an if(.false.) statement leads to bad results

2010-10-25 Thread dominiq at lps dot ens.fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46166

--- Comment #1 from Dominique d'Humieres dominiq at lps dot ens.fr 2010-10-25 
18:45:18 UTC ---
1) Remove the Tabs from your source.
(2) Compile with  -O2 -Wall -Wuninitialized -fcheck=all.


[Bug fortran/46166] optimization and/or removing an if(.false.) statement leads to bad results

2010-10-25 Thread kargl at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46166

kargl at gcc dot gnu.org changed:

   What|Removed |Added

 CC||kargl at gcc dot gnu.org

--- Comment #2 from kargl at gcc dot gnu.org 2010-10-25 18:50:56 UTC ---
Have you thought about using -Wall and fixing
the issue with tauc?