Skip to content

Commit 0880b2f

Browse files
Remove UNSAFE flag. (#134)
This flag was for SunOS 3 and 4 on sun3 hardware (68k). It enabled some unsafe optimizations via assembler. This hasn't actually been built since the DOS port (since the header for this was renamed, but the code in `xc.c` wasn't updated). The optimizations here made assumptions that were specific to the 68k hardware and register allocation. They aren't likely to be of much use moving forward, and we've got plenty of safe performance improvements from the last 30 years of hardware advances.
1 parent e295a34 commit 0880b2f

13 files changed

+9
-227
lines changed

bin/compile-flags

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ sparc True if we're compiling on a SPARC machine.
2727
mc68020 True if we're compiling on a Motorola 680x0 machine.
2828
sun3 We're compiling for a Sun-3.
2929

30-
UNSAFE If true, enables the "fast" version of 68020 opcodes.
3130
NOASM If true, suppress any attempt to include assembler
3231
versions of things in the emulator. In 'lispemul.c',
3332
if this is true, disables:
@@ -36,7 +35,6 @@ NOASM If true, suppress any attempt to include assembler
3635
SUN4_OS4_IL
3736
OPDISP
3837
NATIVETRAN
39-
UNSAFE
4038
PROFILE
4139
and enables NOASMFNCALL
4240
C_ONLY

bin/makefile-sunos3.mc68020

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ OEXT = .o
66
OPTFLAGS = -O2
77
DISPOPTFLAGS = -O
88
FPFLAGS = -f68881
9-
DFLAGS = -DKBINT -DNEW_STORAGE -DOPDISP -DUNSAFE -DSUN3_OS3_IL -DNEWBITBLT -DLOGINT -DSUNDISPLAY -DFORKCOMM -DBIGATOMS
9+
DFLAGS = -DKBINT -DNEW_STORAGE -DOPDISP -DSUN3_OS3_IL -DNEWBITBLT -DLOGINT -DSUNDISPLAY -DFORKCOMM -DBIGATOMS
1010
LDFLAGS = -lsuntool -lsunwindow -lpixrect -lc -lm
1111
INLINE = $(SRCDIR)disp68K.il
1212
BITBLTFILE = $(OBJECTDIR)bitblt68K.o

bin/makefile-sunos3.mc68020-multi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ DISPOPTFLAGS = -O
1111
FPFLAGS = -f68881
1212
# DISPLAYBUFFER for Color Sparcstation code testing
1313
# NEWBITBLT for assembler version of bitblt.
14-
DFLAGS = -DKBINT -DOPDISP -DUNSAFE -DSUN3_OS3_IL -DDISPLAYBUFFER -DNEWBITBLT -DLOGINT -DSUNDISPLAY -DFORKCOMM -DBIGATOMS
14+
DFLAGS = -DKBINT -DOPDISP -DSUN3_OS3_IL -DDISPLAYBUFFER -DNEWBITBLT -DLOGINT -DSUNDISPLAY -DFORKCOMM -DBIGATOMS
1515
LDFLAGS = -lsuntool -lsunwindow -lpixrect -lc -lm
1616

1717
INLINE = $(SRCDIR)disp68K.il

bin/makefile-sunos3.mc68020-x

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ OEXT = .o
3333
OPTFLAGS = -O2
3434
DISPOPTFLAGS = -O
3535
FPFLAGS = -f68881
36-
DFLAGS = -DNEW_STORAGE -DOPDISP -DUNSAFE -DSUN3_OS3_IL -DNEWBITBLT -DLOGINT $(XFLAGS) -DFORKCOMM -DBIGATOMS
36+
DFLAGS = -DNEW_STORAGE -DOPDISP -DSUN3_OS3_IL -DNEWBITBLT -DLOGINT $(XFLAGS) -DFORKCOMM -DBIGATOMS
3737
LDFLAGS = -lX11 -lpixrect -lc -lm
3838
INLINE = $(SRCDIR)disp68K.il
3939
BITBLTFILE = $(OBJECTDIR)bitblt68K.o

bin/makefile-sunos4.1.mc68020

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ FPFLAGS = -f68881
1010
# [I remove DISPLAYBUFFER option .
1111
# You may run 'makeright multi'. -osamu '90/02/07]
1212
# NEWBITBLT for assembler version of bitblt.
13-
DFLAGS = -DKBINT -DNEW_STORAGE -DOPDISP -DUNSAFE -DOS4 -DSUN3_OS4_IL -DOS4_TYPE4BUG -DNEWBITBLT -DLOGINT -DSUNDISPLAY -DFORKCOMM -DBIGATOMS
13+
DFLAGS = -DKBINT -DNEW_STORAGE -DOPDISP -DOS4 -DSUN3_OS4_IL -DOS4_TYPE4BUG -DNEWBITBLT -DLOGINT -DSUNDISPLAY -DFORKCOMM -DBIGATOMS
1414
LDFLAGS = -lsuntool -lsunwindow -lpixrect -lc -lm
1515

1616
INLINE = $(SRCDIR)disp68K.il

bin/makefile-sunos4.1.mc68020-multi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ DISPOPTFLAGS = -O
1111
FPFLAGS = -f68881
1212
# DISPLAYBUFFER for Color Sparcstation code testing
1313
# NEWBITBLT for assembler version of bitblt.
14-
DFLAGS = -DKBINT -DNEW_STORAGE -DOPDISP -DUNSAFE -DOS4 -DSUN3_OS4_IL -DOS4_TYPE4BUG -DDISPLAYBUFFER -DNEWBITBLT -DLOGINT -DSUNDISPLAY -DDISPLAYBUFFER -DFORKCOMM -DBIGATOMS
14+
DFLAGS = -DKBINT -DNEW_STORAGE -DOPDISP -DOS4 -DSUN3_OS4_IL -DOS4_TYPE4BUG -DDISPLAYBUFFER -DNEWBITBLT -DLOGINT -DSUNDISPLAY -DDISPLAYBUFFER -DFORKCOMM -DBIGATOMS
1515
LDFLAGS = -lsuntool -lsunwindow -lpixrect -lc -lm
1616

1717
INLINE = $(SRCDIR)disp68K.il

bin/makefile-sunos4.1.mc68020-x

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ FPFLAGS = -f68881
3737
# [I remove DISPLAYBUFFER option .
3838
# You may run 'makeright x'. -osamu '90/02/27]
3939
# NEWBITBLT for assembler version of bitblt.
40-
DFLAGS = -DNEW_STORAGE -DOPDISP -DUNSAFE -DOS4 -DSUN3_OS4_IL -DOS4_TYPE4BUG -DNEWBITBLT -DLOGINT $(XFLAGS) -DFORKCOMM -DBIGATOMS
40+
DFLAGS = -DNEW_STORAGE -DOPDISP -DOS4 -DSUN3_OS4_IL -DOS4_TYPE4BUG -DNEWBITBLT -DLOGINT $(XFLAGS) -DFORKCOMM -DBIGATOMS
4141
LDFLAGS = -lX11 -lpixrect -lc -lm
4242

4343
INLINE = $(SRCDIR)disp68K.il

bin/makefile-sunos4.mc68020

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ FPFLAGS = -f68881
1010
# [I remove DISPLAYBUFFER option .
1111
# You may run 'makeright multi'. -osamu '90/02/07]
1212
# NEWBITBLT for assembler version of bitblt.
13-
DFLAGS = -DKBINT -DNEW_STORAGE -DOPDISP -DUNSAFE -DOS4 -DSUN3_OS4_IL -DOS4_TYPE4BUG -DNEWBITBLT -DLOGINT -DSUNDISPLAY -DFORKCOMM -DBIGATOMS
13+
DFLAGS = -DKBINT -DNEW_STORAGE -DOPDISP -DOS4 -DSUN3_OS4_IL -DOS4_TYPE4BUG -DNEWBITBLT -DLOGINT -DSUNDISPLAY -DFORKCOMM -DBIGATOMS
1414
LDFLAGS = -lsuntool -lsunwindow -lpixrect -lc -lm
1515

1616
INLINE = $(SRCDIR)disp68K.il

bin/makefile-sunos4.mc68020-multi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ DISPOPTFLAGS = -O
1111
FPFLAGS = -f68881
1212
# DISPLAYBUFFER for Color Sparcstation code testing
1313
# NEWBITBLT for assembler version of bitblt.
14-
DFLAGS = -DKBINT -DNEW_STORAGE -DOPDISP -DUNSAFE -DOS4 -DSUN3_OS4_IL -DOS4_TYPE4BUG -DDISPLAYBUFFER -DNEWBITBLT -DLOGINT -DSUNDISPLAY -DDISPLAYBUFFER -DFORKCOMM -DBIGATOMS
14+
DFLAGS = -DKBINT -DNEW_STORAGE -DOPDISP -DOS4 -DSUN3_OS4_IL -DOS4_TYPE4BUG -DDISPLAYBUFFER -DNEWBITBLT -DLOGINT -DSUNDISPLAY -DDISPLAYBUFFER -DFORKCOMM -DBIGATOMS
1515
LDFLAGS = -lsuntool -lsunwindow -lpixrect -lc -lm
1616

1717
INLINE = $(SRCDIR)disp68K.il

bin/makefile-sunos4.mc68020-x

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ FPFLAGS = -f68881
3737
# [I remove DISPLAYBUFFER option .
3838
# You may run 'makeright x'. -osamu '90/02/27]
3939
# NEWBITBLT for assembler version of bitblt.
40-
DFLAGS = -DNEW_STORAGE -DOPDISP -DUNSAFE -DOS4 -DSUN3_OS4_IL -DOS4_TYPE4BUG -DNEWBITBLT -DLOGINT $(XFLAGS) -DFORKCOMM -DBIGATOMS
40+
DFLAGS = -DNEW_STORAGE -DOPDISP -DOS4 -DSUN3_OS4_IL -DOS4_TYPE4BUG -DNEWBITBLT -DLOGINT $(XFLAGS) -DFORKCOMM -DBIGATOMS
4141
LDFLAGS = -lX11 -lpixrect -lc -lm
4242
LDELDFLAGS = -Bstatic -lX11 -lpixrect -Bdynamic -lc -lm
4343

0 commit comments

Comments
 (0)