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.
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.