https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108002
--- Comment #4 from Grant Li <pefy19950714 at gmail dot com> --- (In reply to Andrew Pinski from comment #3) > # pragma GCC optimize("-O2") > > The bugs that related to this pragma were fixed in GCC 4.8.0 (a few were > fixed before). > There were many changes that helped fix it. > You could always build a newer GCC yourself but with an over 10 year release > is not going to be really supported. > There is nothing GCC bug report can do to help you. > > RHEL5 is just not supported. Thanks! I will discuss it with my team, appreciate your prompt reply.