T.R | Title | User | Personal Name | Date | Lines |
---|
1153.1 | | TLE::EKLUND | Always smiling on the inside! | Wed Jan 29 1997 16:05 | 16 |
| If I were in a mean mood, I would suggest that what you are
seeing is NOT a "run-time error". It's a compile-time error.
Drop the optimization level (to -O0) to see what I mean.
This looks like a bug. When the compiler cannot figure out
what's going on (when the values of R1 and R2 are truly not
known at compile time), the correct things happen. If the
compiler figures out that everything in sight is a constant,
it seems to create the value (1.0) at compile time whether or
not -check nopower is specified. We will take a look at this.
Thanks for the simple example!
Cheers!
Dave Eklund
|
1153.2 | | QUARK::LIONEL | Free advice is worth every cent | Wed Jan 29 1997 16:29 | 4 |
| I have it as an open issue for F90 that we don't do the right thing for
-check nopower for compile-time arithmetic.
Steve
|
1153.3 | Thanks! | PEACHS::DALEY | Maybe I should drink more coffee...or less! | Wed Jan 29 1997 18:03 | 3 |
| Should I QAR this?
JD
|
1153.4 | Whoops! reply collision... | PEACHS::DALEY | Maybe I should drink more coffee...or less! | Wed Jan 29 1997 20:51 | 5 |
| Sorry, hadn't seen .2 when I entered .3
BTW, f77 has the same problem.
JD
|
1153.5 | | QUARK::LIONEL | Free advice is worth every cent | Thu Jan 30 1997 09:43 | 3 |
| No need to do anything else. We'll handle it.
Steve
|
1153.6 | Fixed | TLE::EKLUND | Always smiling on the inside! | Fri Jan 31 1997 14:47 | 11 |
| I've fixed this for f77 with edit 4-113. I tried quite
a number of cases using -check nopower, and got the answers
which one would "expect". It looks like most of the cases
which were not working were the ones where the compiler was
clever enough to do the computation at compile time (possibly
after constant propagation or other optimizations), but then
failed to use the -check option properly.
Cheers!
Dave Eklund
|