This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC loop iterations and wrapping


I would prefer having the check whether the conversion is valid
split to a separate function, so that it can be used without code
duplication; something like the following patch, bootstrapped &
regtested on ia64.

It would be good if the check triggered a warning for -Wunsafe-loop-optimizations.


A possible design is to add a bool unsafe_opt to struct loop, and set it to avoid duplicated warning.

Paolo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]