[llvm-bugs] [Bug 37306] New: [fuzzDI] -O1 + `-g` cause the generated code to change.

via llvm-bugs llvm-bugs at lists.llvm.org
Tue May 1 08:12:21 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=37306

            Bug ID: 37306
           Summary: [fuzzDI] -O1 + `-g` cause the generated code to
                    change.
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: DebugInfo
          Assignee: unassignedbugs at nondot.org
          Reporter: davide at freebsd.org
                CC: llvm-bugs at lists.llvm.org

I'll update the bug title once this is triaged/analyzed.

/Users/dcci/work/llvm/build/bin/clang -Wno-everything try.c -O1 -o try-nodebug

$ cat red.c
b, a, c;
d() { return b; }
f(g) {
  int e = d();
  c && (a = e + g);
}
main() {}

Difference between text sections (with and without -g)

$ diff text-nodebug text-debug
3,4c3,4
<  100000f70 488d0591 00000083 3800741e 554889e5  H.......8.t.UH..
<  100000f80 535089fb e8d7ffff ff01d848 8d0d6e00  SP.........H..n.
---
>  100000f70 554889e5 535089fb 488d0589 00000083  UH..SP..H.......
>  100000f80 38007410 e8d7ffff ff01d848 8d0d6e00  8.t........H..n.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180501/334cfecc/attachment.html>


More information about the llvm-bugs mailing list