This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/14019] New: fortran if statement with .and. causes optimizer to produce wrong code
- From: "mmrashid at ucdavis dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Feb 2004 19:12:22 -0000
- Subject: [Bug optimization/14019] New: fortran if statement with .and. causes optimizer to produce wrong code
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
A short fortran program compiled and loaded with g77 causes the following
problem: an if statement within a do-loop that contains two logical expressions
separated by .and. causes the code above the if statement, and inside the loop,
to not be executed (i.e. it is skipped over). This only occurs when invoking
g77 with any level of optimization.
--
Summary: fortran if statement with .and. causes optimizer to
produce wrong code
Product: gcc
Version: 2.96 (redhat)
Status: UNCONFIRMED
Severity: critical
Priority: P1
Component: optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mmrashid at ucdavis dot edu
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14019