Question on -fbounds-check
Geoff Keating
geoffk@cygnus.com
Sun Jun 11 18:50:00 GMT 2000
"Tim Prince" <tprince@computer.org> writes:
> Am I correct in believing that -fbounds-check disables certain other
> (possibly buggy) optimizations, including -funroll-loops? I notice that
> bugs associated with -funroll-loops (in gcc-2.96 snapshots) disappear
> when -fbounds-check is invoked.
Most likely this is just the loop optimizer deciding that unrolling
the loop is too hard with the extra bounds-checking code.
> As a slight digression, should it be possible to step code and examine
> loop counters under gdb, when code has been compiled
> with -funroll-loops? Does the answer differ between gcc and g77?
Step code, yes. Examine loop counters, probably not, since you may
have more than one of them.
--
- Geoffrey Keating <geoffk@cygnus.com>
More information about the Gcc
mailing list