Fixed problems with XMM1 use on Linux/x86-64.

All tests pass. I think I've caught all the cases assuming only XMM0 is
used. I expect that Win64 is horribly broken by this point though,
because I haven't altered it to cope with XMM1.
This commit is contained in:
James Lyon
2013-04-19 18:31:24 +01:00
parent 0e17671f72
commit 946afd2343
3 changed files with 121 additions and 113 deletions

4
tcc.h
View File

@ -1262,11 +1262,7 @@ ST_FUNC int handle_eob(void);
/* ------------ xxx-gen.c ------------ */
#ifdef TCC_TARGET_X86_64
ST_DATA const int reg_classes[NB_REGS+7];
#else
ST_DATA const int reg_classes[NB_REGS];
#endif
ST_FUNC void gsym_addr(int t, int a);
ST_FUNC void gsym(int t);