Enable optimization by size (-Os) by default for all user binaries.

This commit is contained in:
Serge Vakulenko
2015-11-03 22:03:52 -08:00
parent a673c028f8
commit c46bd3c1e9
2 changed files with 8 additions and 5 deletions

View File

@@ -91,6 +91,7 @@ exform(fcount, ifp, itype, ptype)
struct { struct {
long sa; long sa;
int sb, sc; int sb, sc;
double sd; /* assume double = float = 32 bits */
} fw; } fw;
while (fcount > 0) { while (fcount > 0) {
@@ -225,18 +226,20 @@ exform(fcount, ifp, itype, ptype)
break; break;
case 'f': case 'f':
*(double *)&fw = 0.0; case 'F':
fw.sd = 0.0;
fw.sa = wx; fw.sa = wx;
print("%-16.9f", *(double *)&fw); print("%-16.9f", fw.sd);
dotinc = 4; dotinc = 4;
break; break;
#if 0
/* 64-bit double not supported */
case 'F': case 'F':
fw.sa = wx; fw.sa = wx;
print("%-32.18F", *(double *)&fw); print("%-32.18F", *(double *)&fw);
dotinc = 8; dotinc = 8;
break; break;
#endif
case 'n': case 'N': case 'n': case 'N':
printc('\n'); printc('\n');
dotinc = 0; dotinc = 0;

View File

@@ -80,7 +80,7 @@ TAGSFILE = tags
MANROFF = nroff -man -h -Tascii MANROFF = nroff -man -h -Tascii
ELF2AOUT = $(TOPSRC)/tools/elf2aout/elf2aout ELF2AOUT = $(TOPSRC)/tools/elf2aout/elf2aout
CFLAGS = -O CFLAGS = -Os
LDFLAGS += -N -nostartfiles -fno-dwarf2-cfi-asm -T$(TOPSRC)/src/elf32-mips.ld \ LDFLAGS += -N -nostartfiles -fno-dwarf2-cfi-asm -T$(TOPSRC)/src/elf32-mips.ld \
$(TOPSRC)/src/crt0.o -L$(TOPSRC)/src $(TOPSRC)/src/crt0.o -L$(TOPSRC)/src