aboutsummaryrefslogtreecommitdiff
path: root/tcclib.h
diff options
context:
space:
mode:
authorDaniel Glöckner <daniel-gl@gmx.net>2008-09-11 19:17:40 +0200
committergrischka <grischka>2008-09-12 22:23:00 +0200
commit43a34d354a6a3b0df07ed065adb050c0dda9abaa (patch)
treea37e67f91653f2abae7c477893b0d4535b6659f7 /tcclib.h
parent5a92536cea206c06a334b0162ca00af5f1356f43 (diff)
downloadtinycc-43a34d354a6a3b0df07ed065adb050c0dda9abaa.tar.gz
tinycc-43a34d354a6a3b0df07ed065adb050c0dda9abaa.tar.bz2
Force null pointer exception for code outside of a function
TinyCC sometimes has problems to evaluate constant expressions at compile time. This leads to code being generated outside of functions. Without this patch some of these bugs are not caught, because cur_text_section still points to the section of the last function. Before the first function cur_text_section is uninitialized. Setting cur_text_section to a null pointer should make TinyCC die in all cases.
Diffstat (limited to 'tcclib.h')
0 files changed, 0 insertions, 0 deletions