diff options
author | Chris Lattner <sabre@nondot.org> | 2011-06-14 06:38:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-06-14 06:38:10 +0000 |
commit | f35de48c905803359f1a5454d6024806db8ca989 (patch) | |
tree | b60912ce4a2f88448f1c27859ea3757c97e84d4f /llvm/lib/CodeGen | |
parent | b5f19d9f6f842473627561a03ca76aa4be765ccc (diff) | |
download | bcm5719-llvm-f35de48c905803359f1a5454d6024806db8ca989.tar.gz bcm5719-llvm-f35de48c905803359f1a5454d6024806db8ca989.zip |
when compiling in a GNU mode (e.g. gnu99) treat VLAs with a size that can be folded to a constant
as constant size arrays. This has slightly different semantics in some insane cases, but allows
us to accept some constructs that GCC does. Continue to be pedantic in -std=c99 and other
modes. This addressed rdar://8733881 - error "variable-sized object may not be initialized"; g++ accepts same code
llvm-svn: 132983
Diffstat (limited to 'llvm/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions