diff options
| author | Michael Matz <matz@suse.de> | 2012-04-15 19:29:45 +0200 |
|---|---|---|
| committer | Michael Matz <matz@suse.de> | 2012-04-18 20:57:13 +0200 |
| commit | 1d0a5c251553d8d9199ad18d4780bf356f456298 (patch) | |
| tree | 1b15ed00535f7cbbff15a9e2ec5f3acbfa08654b /include/varargs.h | |
| parent | 86ac6b9beec1c142867b53350006c02e20e4a7ef (diff) | |
| download | tinycc-1d0a5c251553d8d9199ad18d4780bf356f456298.tar.gz tinycc-1d0a5c251553d8d9199ad18d4780bf356f456298.tar.bz2 | |
x86_64: Fix segfault for global data
When offsetted addresses of global non-static data are computed
multiple times in the same statement the x86_64 backend uses
gen_gotpcrel with offset, which implements an add insn on the
register given. load() uses the R member of the to-be-loaded
value, which doesn't yet have a reg assigned in all cases.
So use the register we're supposed to load the value into as
that register.
Diffstat (limited to 'include/varargs.h')
0 files changed, 0 insertions, 0 deletions
