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 middle-end/60546] New: [4.8 and 4.9] O2 & asan enable generates wrong insns


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60546

            Bug ID: 60546
           Summary: [4.8 and 4.9] O2 & asan enable generates wrong insns
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: manjian2006 at gmail dot com

Created attachment 32366
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32366&action=edit
source that causes bug

My attachment gives a testcase to this bug.
To compile,modify the first argument of 1.sh to the path of your GCC (>=
4.8.1).
Then run 1.sh to compile.
As you can see the differences between line #1 and #2 is just -O2 or -Os.
And ./1 reports an error,but ./2 don't.
So I am sure currently asan with -O2 will generates wrong insn in middle end.I
have not located where goes wrong, please help.


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