x86_64: Add -mno-sse option

This disables generation of any SSE instructions (in particular
in stdarg function prologues).  Necessary for kernel compiles.
This commit is contained in:
Michael Matz
2016-10-03 05:20:21 +02:00
parent b5669a952b
commit ad723a419f
3 changed files with 29 additions and 4 deletions

3
tcc.h
View File

@ -643,6 +643,9 @@ struct TCCState {
#ifdef TCC_TARGET_I386
int seg_size; /* 32. Can be 16 with i386 assembler (.code16) */
#endif
#ifdef TCC_TARGET_X86_64
int nosse; /* For -mno-sse support. */
#endif
/* array of all loaded dlls (including those referenced by loaded dlls) */
DLLReference **loaded_dlls;