This is the mail archive of the gcc@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: Empty loop elimination in 4.0 ?


Michael Veksler wrote:

Your claim that "Any warning can be triggered by... macro..." should
not apply to a standard (as in ISO/ANSI) macro like assert. My example
is a reasonable use of assert. You don't want to uglify this code by an
"#ifndef NDEBUG" block, do you?

Also, most macros can be written in a way that does not produce
warnings. Not with this warning message.

Not necessarily, it would often be possible to just put the whole loop under control of a conditional that would make it disappear at the level of deleting unreachable code.



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