summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-02-24 20:24:06 -0500
committermidipix <writeonce@midipix.org>2019-02-24 21:07:15 -0500
commitdfcb46d1498404257baf62475bc7387e6352e909 (patch)
treebc953604f8f0afc78bc61cb3d7d74bf298c92f83 /gcc
parentd9e940e3516130cc23bfab1ee9d6003f35848ba0 (diff)
downloadcbb-gcc-4.6.4-dfcb46d1498404257baf62475bc7387e6352e909.tar.bz2
cbb-gcc-4.6.4-dfcb46d1498404257baf62475bc7387e6352e909.tar.xz
midipix targets: create .got entries for c++ virtual thunks.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/i386/midipix.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/config/i386/midipix.c b/gcc/config/i386/midipix.c
index 99616aed7..022f016a0 100644
--- a/gcc/config/i386/midipix.c
+++ b/gcc/config/i386/midipix.c
@@ -521,8 +521,10 @@ void midipix_i386_pe_start_function (FILE * gas_exhaled, const char *name, tree
void midipix_i386_pe_end_function (FILE * gas_exhaled, const char * name, tree decl)
{
- if (cfun->is_thunk)
+ if (cfun->is_thunk) {
+ midipix_asm_output_got_entry(gas_exhaled,name,decl,0);
return;
+ }
if (TARGET_SEH)
fputs ("\t.seh_endproc\n", gas_exhaled);