Skip to content

[fuzzDI] -O1 + -g cause the generated code to change. #36654

@llvmbot

Description

@llvmbot
Bugzilla Link 37306
Resolution FIXED
Resolved on Sep 18, 2019 08:27
Version trunk
OS All
Blocks #37076
Reporter LLVM Bugzilla Contributor
CC @adrian-prantl,@chengniansun,@dwblaikie,@JDevlieghere,@pogo59,@zhendongsu,@vedantk

Extended Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions