http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59845
--- Comment #1 from ArshaGCC <arshamidi at gmail dot com> --- I found that only when I use very high vales for input the problem persists. for example when using 123456 as input for profiling it generates incorrect code but when using 12345 as input the correct code will be generated. Input is an integer and I can specify very long values for input like: 123456789.