aboutsummaryrefslogtreecommitdiff
path: root/include/stdbool.h
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2012-10-25 18:07:13 +0200
committerThomas Preud'homme <robotux@celest.fr>2012-10-25 18:07:13 +0200
commit85f6fad3a6acbfa07a3dc45b673965fc26890d8e (patch)
tree07494b6050877da49c844a52a3e33df884f35be2 /include/stdbool.h
parent9966fd4eaea163439a63d63d044d0657df1908ea (diff)
downloadtinycc-85f6fad3a6acbfa07a3dc45b673965fc26890d8e.tar.gz
tinycc-85f6fad3a6acbfa07a3dc45b673965fc26890d8e.tar.bz2
Forbid VLA as static variables
Currently, VLA are not forbidden for static variable. This leads to problems even if for fixed-size array when the size expression uses the ternary operator (cond ? then-value : else-value) because it is parsed as a general expression which leads to code generated in this case. This commit solve the problem by forbidding VLA for static variables. Although not required for the fix, avoiding code generation when the expression is constant would be a nice addition though.
Diffstat (limited to 'include/stdbool.h')
0 files changed, 0 insertions, 0 deletions