Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

dragonegg does not emit debug info for VLA #3948

Open Quuxplusone opened 15 years ago

Quuxplusone commented 15 years ago
Bugzilla Link PR3559
Status REOPENED
Importance P normal
Reported by Chris Lattner (clattner@nondot.org)
Reported on 2009-02-12 01:44:03 -0800
Last modified on 2010-12-02 14:24:44 -0800
Version trunk
Hardware PC All
CC baldrick@free.fr, evan.cheng@apple.com, llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also
I see an llvm.declare for A.5 in the output of:

$ llvm-gcc t.c -emit-llvm -g -o - -S

on this testcase:

void foo(int X) {
  int A[X];
}

Also, I do not see an llvm.declare of "a" itself, the VLA.
Quuxplusone commented 15 years ago

Note that the reason for caring about excess debug info is -O0 -g compile time.

Quuxplusone commented 15 years ago

Devang pointed out to me that this apparently only happens in VLA cases, not in general.

Quuxplusone commented 13 years ago

"fixed in clang" :)

Quuxplusone commented 13 years ago
Moving to dragonegg since there is no declare for A there either (on the other
hand the wrong declare for the gimple temporary isn't present in dragonegg).
Quuxplusone commented 13 years ago

I'm fine with you repurposing old llvm-gcc bugzillas that are still relevant, but please fix the title :)