summaryrefslogtreecommitdiff
path: root/gcc/config/i386/midipix.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/i386/midipix.c')
-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);