This is the mail archive of the gcc-bugs@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]

[Bug c/71567] Incorrect loop optimization


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71567

--- Comment #8 from Artem <tyoma.ariv at gmail dot com> ---
(In reply to Manuel LÃpez-IbÃÃez from comment #7)
> See https://gcc.gnu.org/wiki/FAQ#misoptimization
> 
> and https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#Warning-Options

Thank you for the links.

However I am not able to find compilation keys to indicate initial problem.
Could you please provide an example when -Waggressive-loop-optimizations
returns warning?
You say that solution with using -fno-aggressive-loop-optimizations does not
guaranty correct compilation.
Maybe switch off optimization at all could help to avoid problems related to
"undefined behavior" during optimization. Could you please, advise. I
understand that source code will be broken but it have already worked correctly
for many years with xlC compiler.

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