diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2014-04-15 13:29:30 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2014-04-15 13:29:30 -0700 |
commit | 6eb77ce795189d39fc0f7bc12eb8d7be11e46718 (patch) | |
tree | 19b418e54081aa40c1e5e4ccf478dabdeb7e9b61 | |
parent | 06e395cd75dc79289ae789c146795189c32babd8 (diff) | |
download | klibc-6eb77ce795189d39fc0f7bc12eb8d7be11e46718.tar.gz |
[klibc] x86-64: disable the use of SSE
Disable the use of SSE registers. This reduces the size of the code
because it means the varadic functions don't need to marshall
parameters in the SSE registers. Since klibc doesn't support floating
point, this is a significant size win.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r-- | usr/klibc/arch/x86_64/MCONFIG | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/klibc/arch/x86_64/MCONFIG b/usr/klibc/arch/x86_64/MCONFIG index d4ff5ea5186c53..4b1a33ad9f376b 100644 --- a/usr/klibc/arch/x86_64/MCONFIG +++ b/usr/klibc/arch/x86_64/MCONFIG @@ -15,12 +15,12 @@ # debugging using gdb. # KLIBCARCHREQFLAGS = -m64 -ifeq ($(DEBUG),y) -KLIBCOPTFLAGS += -g -Os -fomit-frame-pointer \ +KLIBCOPTFLAGS += -Os -fomit-frame-pointer -mno-sse \ -falign-functions=1 -falign-jumps=1 -falign-loops=1 +ifeq ($(DEBUG),y) +KLIBCOPTFLAGS += -g else -KLIBCOPTFLAGS += -Os -fno-asynchronous-unwind-tables -fomit-frame-pointer \ - -falign-functions=1 -falign-jumps=1 -falign-loops=1 +KLIBCOPTFLAGS += -fno-asynchronous-unwind-tables endif KLIBCBITSIZE = 64 KLIBCLDFLAGS = -m elf_x86_64 |