From 159bdec3f5c78bcb6cefae986a8e97b2b626fb8a Mon Sep 17 00:00:00 2001 From: ceriel Date: Thu, 12 Oct 1989 16:52:17 +0000 Subject: [PATCH] Added peephole optimizer library, code expander, and i386 --- first/em_path.h.src | 1 - first/first | 18 +++++++++++++++--- first/fixlexlib | 2 +- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/first/em_path.h.src b/first/em_path.h.src index d3497568f..4542b0ef2 100644 --- a/first/em_path.h.src +++ b/first/em_path.h.src @@ -8,5 +8,4 @@ /* Access to the ACK tree and parts thereof */ #define EM_DIR "/usr/em" /* The root directory for EM stuff */ -#define RTERR_PATH "etc/pc_rt_errors" #define ACK_PATH "lib/descr" diff --git a/first/first b/first/first index 15c3264c2..86fedb8c1 100755 --- a/first/first +++ b/first/first @@ -76,6 +76,7 @@ vax_bsd4_2 VAX11 with BSD4.2 vax_sysV_2 VAX11 with System V.2 pc_ix IBM PC with PC/IX xenix3 IBM AT running Microsoft Xenix V3.2 +i386 Intel 80386 system running Xenix System V m68_unisoft Motorola 68000 with Unisoft UNIX sun3 Sun 3 M68020 workstation sun2 Sun 2 M68000 workstation @@ -90,7 +91,7 @@ system type: " echo echo "$SYSNAME" >../bin/ack_sys chmod +x ../bin/ack_sys case `ack_sys` in - pdp_v7|vax_bsd4_1a|vax_bsd4_2|vax_sysV_2|pc_ix|m68_unisoft|sun3|sun2|m68_sysV_0|xenix3|m68020) ;; + pdp_v7|vax_bsd4_1a|vax_bsd4_2|vax_sysV_2|pc_ix|m68_unisoft|sun3|sun2|m68_sysV_0|xenix3|i386|m68020) ;; *) echo None of the software especially intended for the named systems will work ;; esac else @@ -175,6 +176,7 @@ vax_bsd4_2) ACM=vax4 ; SYS=BSD4_2 ;; vax_sysV_2) ACM=vax4 ; SYS=SYS_5 ;; pc_ix) ACM=i86 ; BM=0 ; SYS=SYS_5 ;; xenix3) ACM=xenix3 ; BM=0; SYS=SYS_5 ;; +i386) ACM=i386 ; SYS=SYS_5 ;; sun3) ACM=sun3 ; SYS=BSD4_2 ;; sun2) ACM=sun2 ; SYS=BSD4_2 ;; m68_unisoft) ACM=m68k2 ; SYS=V7 ;; @@ -243,6 +245,14 @@ vax_sysV_2) cp libsysV_2/* libsys ) ;; +i386) + ( cd ../lib/descr + ed - fe << ABC +1,$s/-D{NAME}/-D{NAME} -DNO_PROTOTYPE/ +w +q +ABC + ;; xenix3) echo "Xenix cannot handle our Makefiles; install our own make ..." if ( cd ../util/make; make install ) @@ -378,7 +388,7 @@ ABC ) ( cd ../mach : machines with word or pointer size not 2 - for i in em24 em44 m68020 m68k2 m68k4 mantra ns sun2 sun3 vax4 + for i in em24 em44 m68020 m68k2 m68k4 mantra ns sun2 sun3 vax4 i386 do if test -f $i/Action.orig then @@ -403,6 +413,8 @@ ABC fi cp Action.orig Action ed - Action <