diff options
| author | grischka <grischka> | 2013-12-16 15:38:10 +0100 |
|---|---|---|
| committer | grischka <grischka> | 2013-12-16 15:38:10 +0100 |
| commit | fbc8810334e6a087bed6de4dd84635cb6037b4dc (patch) | |
| tree | 93abd52bd922433a1b8fced60ac0fef97967a3cc /i386-gen.c | |
| parent | 46dd2971abfe9fd289a8b0f6265e1f5fccf584f3 (diff) | |
| download | tinycc-fbc8810334e6a087bed6de4dd84635cb6037b4dc.tar.gz tinycc-fbc8810334e6a087bed6de4dd84635cb6037b4dc.tar.bz2 | |
Fix "Add support for struct > 4B returned via registers"
- avoid assumption "ret_align == register_size" which is
false for non-arm targets
- rename symbol "sret" to more descriptive "ret_nregs"
This fixes commit dcec8673f21da86ae3dcf1ca3e9498127715b795
Also:
- remove multiple definitions in win32/include/math.h
Diffstat (limited to 'i386-gen.c')
| -rw-r--r-- | i386-gen.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -392,7 +392,7 @@ ST_FUNC int gfunc_sret(CType *vt, CType *ret, int *ret_align) } else { ret->ref = NULL; ret->t = VT_INT; - return 0; + return 1; } #else *ret_align = 1; // Never have to re-align return values for x86 |
