Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with C99 VLA implementation #35671

Open
pogo59 opened this issue Feb 9, 2018 · 0 comments
Open

Issues with C99 VLA implementation #35671

pogo59 opened this issue Feb 9, 2018 · 0 comments
Labels
bugzilla Issues migrated from bugzilla clang:codegen

Comments

@pogo59
Copy link
Collaborator

pogo59 commented Feb 9, 2018

Bugzilla Link 36323
Version unspecified
OS Windows NT
CC @adrian-prantl,@dwblaikie,@hfinkel,@CarlosAlbertoEnciso,@sdesmalen-arm

Extended Description

I've spun this off from bug 36322 to track additional issues with
the current implementation of DWARF descriptions of C99 VLAs.

Initially I was curious what happened if a function with a VLA was
inlined into another function. Adrian Prantl pointed out the test
llvm/test/DebugInfo/X86/vla-dependencies.ll
which I started playing with.

Even without optimization, some curious things happen.
The subrange_type has a DW_AT_type which points to something called
"sizetype" which does not exist in the source. It also doesn't share
an abbrev with the other base types, because its attributes are in a
different order; this suggests some poor internal coding practice at least,
although it's not actually invalid DWARF.

With optimization, LLVM asserts, which is worth its own bug.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla clang:codegen
Projects
None yet
Development

No branches or pull requests

1 participant