unix-history/.git
36 years agoutah rcsid 1.16 87/11/29 20:59:25: (1) Don't put temporary registers into
Donn Seeley [Fri, 11 Dec 1987 14:56:55 +0000 (06:56 -0800)]
utah rcsid 1.16 87/11/29 20:59:25: (1) Don't put temporary registers into
the entry mask in rname().  (2) Simplify ZM macro in zzzcode() for new ediv
templates.  (3) Tahoe has byte and word operands, so MNEGx is only shorter
for the 'literal' addressing mode, which is unsigned; sconv() changed
appropriately.  (4) Print decimal rather than hex masks in sconv().  (5)
Fix sconv() botch with rules for when to pun a source operand.  (6) Change

SCCS-vsn: old/pcc/ccom.tahoe/local2.c 1.25

36 years agoutah rcsid 1.15 87/07/19 22:46:18: First attack at integrating recent VAX
Donn Seeley [Fri, 11 Dec 1987 14:56:25 +0000 (06:56 -0800)]
utah rcsid 1.15 87/07/19 22:46:18: First attack at integrating recent VAX
fixes...  Too many to list at once.

SCCS-vsn: old/pcc/ccom.tahoe/local2.c 1.24

36 years agoutah rcsid 1.14 87/05/03 21:29:03: Add code from VAX compiler for detecting
Donn Seeley [Fri, 11 Dec 1987 14:56:06 +0000 (06:56 -0800)]
utah rcsid 1.14 87/05/03 21:29:03: Add code from VAX compiler for detecting
ridiculous comparisons between small variables and large constants.

SCCS-vsn: old/pcc/ccom.tahoe/local2.c 1.23

36 years agoutah rcsid 1.13 87/05/02 15:50:50: Add ZI feature -- generate result of
Donn Seeley [Fri, 11 Dec 1987 14:55:45 +0000 (06:55 -0800)]
utah rcsid 1.13 87/05/02 15:50:50: Add ZI feature -- generate result of
bitfield assignment without using a shift.

SCCS-vsn: old/pcc/ccom.tahoe/local2.c 1.22

36 years agoutah rcsid 1.12 87/05/02 13:58:32: Don't delete double => int conversions
Donn Seeley [Fri, 11 Dec 1987 14:55:25 +0000 (06:55 -0800)]
utah rcsid 1.12 87/05/02 13:58:32: Don't delete double => int conversions
on the rhs of assignments to bit fields; we don't want to write double =>
bitfield templates...

SCCS-vsn: old/pcc/ccom.tahoe/local2.c 1.21

36 years agoutah rcsid 1.11 87/05/01 18:43:57: 'mnegl $1,r0' is one byte shorter than
Donn Seeley [Fri, 11 Dec 1987 14:55:02 +0000 (06:55 -0800)]
utah rcsid 1.11 87/05/01 18:43:57: 'mnegl $1,r0' is one byte shorter than
'movl $-1,r0', so we make an effort to detect negative constant sources in
sconv().  Note that MNEGx is no slower than MOVx in the general case where
the source won't fit in a short literal operand.

SCCS-vsn: old/pcc/ccom.tahoe/local2.c 1.20

36 years agoutah rcsid 1.10 87/04/18 18:20:15: Another screwup -- must distinguish
Donn Seeley [Fri, 11 Dec 1987 14:54:40 +0000 (06:54 -0800)]
utah rcsid 1.10 87/04/18 18:20:15: Another screwup -- must distinguish
constant addresses from constant values in the conversion code.

SCCS-vsn: old/pcc/ccom.tahoe/local2.c 1.19

36 years agoutah rcsid 1.9 87/04/18 02:27:10: Fix a stupid mistake in the previous
Donn Seeley [Fri, 11 Dec 1987 14:54:20 +0000 (06:54 -0800)]
utah rcsid 1.9 87/04/18 02:27:10: Fix a stupid mistake in the previous
rev...

SCCS-vsn: old/pcc/ccom.tahoe/local2.c 1.18

36 years agoutah rcsid 1.8 87/04/18 01:42:25: Extensive hacking to weed out bugs in
Donn Seeley [Fri, 11 Dec 1987 14:53:56 +0000 (06:53 -0800)]
utah rcsid 1.8 87/04/18 01:42:25: Extensive hacking to weed out bugs in
unsigned/float and float/unsigned conversions.

SCCS-vsn: old/pcc/ccom.tahoe/local2.c 1.17

36 years agoutah rcsid 1.7 87/04/17 03:32:04: Don't zap conversions of function calls
Donn Seeley [Fri, 11 Dec 1987 14:53:35 +0000 (06:53 -0800)]
utah rcsid 1.7 87/04/17 03:32:04: Don't zap conversions of function calls
-- the result of a call isn't quite the type it appears to be.

SCCS-vsn: old/pcc/ccom.tahoe/local2.c 1.16

36 years agoutah rcsid 1.6 87/04/16 23:32:35: Replaced hardops() with VAX PCC version
Donn Seeley [Fri, 11 Dec 1987 14:53:13 +0000 (06:53 -0800)]
utah rcsid 1.6 87/04/16 23:32:35: Replaced hardops() with VAX PCC version
-- fix bugs with computing unsigned remainder when divisor is > 2**31,
multiple evaluation of lhs with asgops.

SCCS-vsn: old/pcc/ccom.tahoe/local2.c 1.15

36 years agoutah rcsid 1.5 87/03/23 04:40:10: Add 'G' zzzcode entry for int *= float
Donn Seeley [Fri, 11 Dec 1987 14:52:51 +0000 (06:52 -0800)]
utah rcsid 1.5 87/03/23 04:40:10: Add 'G' zzzcode entry for int *= float
operations.  Added 'W' and 'Y' entries and float_to_unsigned() and
unsigned_to_float() functions to deal with these conversions.  Deleted the
'A' entry since its function is now handled by the 'U' entry.

SCCS-vsn: old/pcc/ccom.tahoe/local2.c 1.14

36 years agoutah rcsid 1.4 87/03/20 05:10:31: More work on sconv(). For sign extension
Donn Seeley [Fri, 11 Dec 1987 14:52:30 +0000 (06:52 -0800)]
utah rcsid 1.4 87/03/20 05:10:31: More work on sconv().  For sign extension
in registers we use the stack code because shifts are too slow.  We are
less stupid about constants.  We get register source operand lengths right.
We distinguish between mova[bwl] in memory to register shrinking
conversions so that side effects are handled correctly.

SCCS-vsn: old/pcc/ccom.tahoe/local2.c 1.13

36 years agoutah rcsid 1.3 87/03/18 02:20:29: Delete the old sconv() routine (ifdef'ed
Donn Seeley [Fri, 11 Dec 1987 14:52:07 +0000 (06:52 -0800)]
utah rcsid 1.3 87/03/18 02:20:29: Delete the old sconv() routine (ifdef'ed
out in the previous rev); fix initial tabs (assume that the table provides
them).

SCCS-vsn: old/pcc/ccom.tahoe/local2.c 1.12

36 years agoutah rcsid 1.2 87/03/16 20:03:49: First crack at fixing integer
Donn Seeley [Fri, 11 Dec 1987 14:51:42 +0000 (06:51 -0800)]
utah rcsid 1.2 87/03/16 20:03:49: First crack at fixing integer
conversions.

SCCS-vsn: old/pcc/ccom.tahoe/local2.c 1.11

36 years agotahoe release
Keith Bostic [Fri, 11 Dec 1987 13:21:05 +0000 (05:21 -0800)]
tahoe release

SCCS-vsn: games/Makefile 5.9

36 years agotahoe beta release
Keith Bostic [Fri, 11 Dec 1987 13:20:08 +0000 (05:20 -0800)]
tahoe beta release

SCCS-vsn: games/Makefile 5.9

36 years agoutah rcsid 1.6 87/11/29 20:31:47: Remove isitfloat() -- this was broken,
Donn Seeley [Fri, 11 Dec 1987 12:44:01 +0000 (04:44 -0800)]
utah rcsid 1.6 87/11/29 20:31:47: Remove isitfloat() -- this was broken,
yylex() now handles this properly.  Also delete useless SPRECC ifdef.

SCCS-vsn: old/pcc/ccom.tahoe/local.c 1.10

36 years agoutah rcsid 1.5 87/07/17 19:21:48: (1) Replaced SCONV code in clocal() with
Donn Seeley [Fri, 11 Dec 1987 12:43:53 +0000 (04:43 -0800)]
utah rcsid 1.5 87/07/17 19:21:48: (1) Replaced SCONV code in clocal() with
VAX version.  (2) Deleted the 'float percolation' code in clocal() -- it's
simply wrong.  (3) Deleted the QUEST case in clocal() which hacks around
the funny trees created by the deleted 'float percolation'.  (4) Added 'if
(nerrors) return' to vfdzero().  (5) Changed %X to %lx in incode() and
vfdzero().  (6) Cleaned up some comments, to make this code more easily
diffable with the VAX version.

SCCS-vsn: old/pcc/ccom.tahoe/local.c 1.9

36 years agoutah rcsid 1.4 87/05/02 14:58:59: Stop generating code after errors; add
Donn Seeley [Fri, 11 Dec 1987 12:43:45 +0000 (04:43 -0800)]
utah rcsid 1.4 87/05/02 14:58:59: Stop generating code after errors; add
some lint tidbits.

SCCS-vsn: old/pcc/ccom.tahoe/local.c 1.8

36 years agoutah rcsid 1.3 87/04/17 21:32:02: Oops -- we still want to clobber constant
Donn Seeley [Fri, 11 Dec 1987 12:43:38 +0000 (04:43 -0800)]
utah rcsid 1.3 87/04/17 21:32:02: Oops -- we still want to clobber constant
conversions...

SCCS-vsn: old/pcc/ccom.tahoe/local.c 1.7

36 years agoutah rcsid 1.2 87/04/17 03:31:22: Let optim2() handle conversion
Donn Seeley [Fri, 11 Dec 1987 12:43:31 +0000 (04:43 -0800)]
utah rcsid 1.2 87/04/17 03:31:22: Let optim2() handle conversion
optimizations for variables.

SCCS-vsn: old/pcc/ccom.tahoe/local.c 1.6

36 years agoutah rcsid 1.2 87/05/02 14:44:07: Permit some tiny functions to be macros;
Donn Seeley [Fri, 11 Dec 1987 12:30:07 +0000 (04:30 -0800)]
utah rcsid 1.2 87/05/02 14:44:07: Permit some tiny functions to be macros;
change select() to selectheap() to avoid Unix problems; add 'if (nerrors)'
tests to avoid output after errors; some lint tidbits.
utah rcsid 1.4 87/07/17 19:09:35: Minor tweaking to bring format in line
with vax version.

SCCS-vsn: old/pcc/ccom.tahoe/code.c 1.5

36 years agoutah rcsid 1.2 87/05/02 14:41:45: Push CONFIG parameters into macdefs.h;
Donn Seeley [Fri, 11 Dec 1987 12:21:03 +0000 (04:21 -0800)]
utah rcsid 1.2 87/05/02 14:41:45: Push CONFIG parameters into macdefs.h;
fix lint action.
utah rcsid 1.3 87/12/10 20:26:31: The single-precision compiler is the
standard tahoe compiler; delete all the junk for two compilers.

SCCS-vsn: old/pcc/ccom.tahoe/Makefile 1.7

36 years agowatch out for bogus combinations of vax options with compat mode
Mike Karels [Fri, 11 Dec 1987 10:44:03 +0000 (02:44 -0800)]
watch out for bogus combinations of vax options with compat mode

SCCS-vsn: sys/kern/sys_process.c 7.4
SCCS-vsn: sys/vax/vax/machdep.c 7.10
SCCS-vsn: sys/vax/include/psl.h 7.2

36 years agoavoid SCCS key word expansion in odd places
Keith Bostic [Fri, 11 Dec 1987 09:01:40 +0000 (01:01 -0800)]
avoid SCCS key word expansion in odd places

SCCS-vsn: contrib/ansi/ansitape.c 1.6

36 years agoupdate for new version from Timothy Stoehr
Kirk McKusick [Fri, 11 Dec 1987 05:03:05 +0000 (21:03 -0800)]
update for new version from Timothy Stoehr

SCCS-vsn: games/rogue/USD.doc/rogue.me 6.3

36 years agoupdate for new version from Tim Stoehr
Kirk McKusick [Fri, 11 Dec 1987 05:01:25 +0000 (21:01 -0800)]
update for new version from Tim Stoehr

SCCS-vsn: games/rogue/rogue.6 6.3

36 years agoutah rcsid 1.30 87/07/06 13:19:17: Preserve LONG and ULONG through constant
Donn Seeley [Thu, 10 Dec 1987 16:53:00 +0000 (08:53 -0800)]
utah rcsid 1.30 87/07/06 13:19:17: Preserve LONG and ULONG through constant
expression folding.

SCCS-vsn: old/pcc/mip/trees.c 4.34

36 years agoutah rcsid 1.29 87/04/24 18:51:39: Changed tymatch() to force propagation
Donn Seeley [Thu, 10 Dec 1987 16:52:49 +0000 (08:52 -0800)]
utah rcsid 1.29 87/04/24 18:51:39: Changed tymatch() to force propagation
of unsigned type from one operand to another in an expression where only
one operand is unsigned.  This cuts down on the number of combinations of
types which need to be handled in the code table in the second pass, at a
cost of some flexibility.

SCCS-vsn: old/pcc/mip/trees.c 4.33

36 years agoutah rcsid 1.28 87/04/17 21:32:38: Simplify handling of integer promotions
Donn Seeley [Thu, 10 Dec 1987 16:52:38 +0000 (08:52 -0800)]
utah rcsid 1.28 87/04/17 21:32:38: Simplify handling of integer promotions
in conval().

SCCS-vsn: old/pcc/mip/trees.c 4.32

36 years agoutah rcsid 1.27 87/04/01 14:00:45: Remove TVOID case in moditype so that
Donn Seeley [Thu, 10 Dec 1987 16:52:26 +0000 (08:52 -0800)]
utah rcsid 1.27 87/04/01 14:00:45: Remove TVOID case in moditype so that
void functions can properly be converted to pointers to void functions when
used as operands.

SCCS-vsn: old/pcc/mip/trees.c 4.31

36 years agoutah rcsid 1.26 87/03/24 01:47:26: Remove tahoe ifdefs; the code table
Donn Seeley [Thu, 10 Dec 1987 16:52:14 +0000 (08:52 -0800)]
utah rcsid 1.26 87/03/24 01:47:26: Remove tahoe ifdefs; the code table
handles this correctly now.

SCCS-vsn: old/pcc/mip/trees.c 4.30

36 years agoutah rcsid 1.25 87/03/18 00:09:50: From Sam Kendall (sam@think.com): don't
Donn Seeley [Thu, 10 Dec 1987 16:52:02 +0000 (08:52 -0800)]
utah rcsid 1.25 87/03/18 00:09:50: From Sam Kendall (sam@think.com): don't
let structs, unions, floats, doubles or voids be cast into pointers.

SCCS-vsn: old/pcc/mip/trees.c 4.29

36 years agoutah rcsid 1.24 87/01/15 05:29:21: Fix brace balancing in ifdefs so that
Donn Seeley [Thu, 10 Dec 1987 16:51:50 +0000 (08:51 -0800)]
utah rcsid 1.24 87/01/15 05:29:21: Fix brace balancing in ifdefs so that
ctags works.

SCCS-vsn: old/pcc/mip/trees.c 4.28

36 years agoutah rcsid 1.23 87/01/15 02:12:21: Some minor lint fixes.
Donn Seeley [Thu, 10 Dec 1987 16:51:38 +0000 (08:51 -0800)]
utah rcsid 1.23 87/01/15 02:12:21: Some minor lint fixes.

SCCS-vsn: old/pcc/mip/trees.c 4.27

36 years agoutah rcsid 1.22 86/11/28 21:21:08: Fix test for type puns when comparing
Donn Seeley [Thu, 10 Dec 1987 16:51:25 +0000 (08:51 -0800)]
utah rcsid 1.22 86/11/28 21:21:08: Fix test for type puns when comparing
constant enum values.  Also moved counter declaration into an ifdef.  Lint
IS worth something!

SCCS-vsn: old/pcc/mip/trees.c 4.26

36 years agoutah rcsid 1.21 86/11/27 19:34:28: upgrade to ucb sid 4.11 -- 'take care
Donn Seeley [Thu, 10 Dec 1987 16:51:12 +0000 (08:51 -0800)]
utah rcsid 1.21 86/11/27 19:34:28: upgrade to ucb sid 4.11 --  'take care
with unsigned constant compression (for tahoe); put back PRTDCON
redefinition; ifdef asgop optimizations (tahoe can't handle them in code
generation)' (sam).

SCCS-vsn: old/pcc/mip/trees.c 4.25

36 years agoutah rcsid 1.20 86/11/21 22:22:26: Changed 'illegal lhs of assignment
Donn Seeley [Thu, 10 Dec 1987 16:50:57 +0000 (08:50 -0800)]
utah rcsid 1.20 86/11/21 22:22:26: Changed 'illegal lhs of assignment
operator' to 'illegal lvalue operand...' because there are unary assignment
operators like ++ and --.

SCCS-vsn: old/pcc/mip/trees.c 4.24

36 years agoutah rcsid 1.19 86/11/10 09:21:58: More of the same -- unsigned compares
Donn Seeley [Thu, 10 Dec 1987 16:50:42 +0000 (08:50 -0800)]
utah rcsid 1.19 86/11/10 09:21:58: More of the same -- unsigned compares
between constants weren't unsigned.

SCCS-vsn: old/pcc/mip/trees.c 4.23

36 years agoutah rcsid 1.18 86/11/08 20:51:18: Argh -- restore commented-out cast which
Donn Seeley [Thu, 10 Dec 1987 16:50:30 +0000 (08:50 -0800)]
utah rcsid 1.18 86/11/08 20:51:18: Argh -- restore commented-out cast which
bollixed unsigned -> double (and float) conversions for constants.

SCCS-vsn: old/pcc/mip/trees.c 4.22

36 years agoutah rcsid 1.17 86/08/11 09:27:37: Oops -- void type is now represented by
Donn Seeley [Thu, 10 Dec 1987 16:50:16 +0000 (08:50 -0800)]
utah rcsid 1.17 86/08/11 09:27:37: Oops -- void type is now represented by
MVOID, not 0, in opact()...

SCCS-vsn: old/pcc/mip/trees.c 4.21

36 years agoutah rcsid 1.16 86/08/05 19:59:17: Permit void expressions in the colon
Donn Seeley [Thu, 10 Dec 1987 16:50:02 +0000 (08:50 -0800)]
utah rcsid 1.16 86/08/05 19:59:17: Permit void expressions in the colon
part of a question mark operator (only, of course, if both subexpressions
are type void).

SCCS-vsn: old/pcc/mip/trees.c 4.20

36 years agoutah rcsid 1.15 86/07/11 13:19:14: More changes for enums. Did some tuning
Donn Seeley [Thu, 10 Dec 1987 16:49:42 +0000 (08:49 -0800)]
utah rcsid 1.15 86/07/11 13:19:14: More changes for enums.  Did some tuning
in opact() to remove clutter and handle unary operators.

SCCS-vsn: old/pcc/mip/trees.c 4.19

36 years agoutah rcsid 1.14 86/07/09 19:15:24: Guy Harris's fix for making chkpun()
Donn Seeley [Thu, 10 Dec 1987 16:49:27 +0000 (08:49 -0800)]
utah rcsid 1.14 86/07/09 19:15:24: Guy Harris's fix for making chkpun()
distinguish char **cpp and char c2a[10][20].

SCCS-vsn: old/pcc/mip/trees.c 4.18

36 years agoutah rcsid 1.13 86/07/08 16:05:37: Get more determined about 'usual type
Donn Seeley [Thu, 10 Dec 1987 16:49:12 +0000 (08:49 -0800)]
utah rcsid 1.13 86/07/08 16:05:37: Get more determined about 'usual type
conversions' in conval() -- if we don't have the usual simple case, do the
same type guessing that we would perform for non-constants.

SCCS-vsn: old/pcc/mip/trees.c 4.17

36 years agoutah rcsid 1.12 86/07/03 13:46:59: More tuning of enums hack. Remove
Donn Seeley [Thu, 10 Dec 1987 16:48:59 +0000 (08:48 -0800)]
utah rcsid 1.12 86/07/03 13:46:59: More tuning of enums hack.  Remove
warning about ordering in chkpun(), change enum types to int and fall
through to general case.

SCCS-vsn: old/pcc/mip/trees.c 4.16

36 years agoutah rcsid 1.11 86/07/02 22:40:02: First attack on enum bugs. Eliminates
Donn Seeley [Thu, 10 Dec 1987 16:48:41 +0000 (08:48 -0800)]
utah rcsid 1.11 86/07/02 22:40:02: First attack on enum bugs.  Eliminates
all errors due to enum type &'clashes' and drastically reduces warnings.
Only enum vs. enum clashes and enum comparisons are deemed worth a warning
now.

SCCS-vsn: old/pcc/mip/trees.c 4.15

36 years agoutah rcsid 1.14 87/11/26 16:30:10: Make all ordinary floating constants
Donn Seeley [Thu, 10 Dec 1987 16:42:57 +0000 (08:42 -0800)]
utah rcsid 1.14 87/11/26 16:30:10: Make all ordinary floating constants
have type double, like ANSI.  Also like ANSI, permit 'f' or 'F' suffix on
floating constants to indicate a float type constant.

SCCS-vsn: old/pcc/mip/scan.c 2.15

36 years agoutah rcsid 1.13 87/07/10 23:44:34: (1) Added lint warning about superfluous
Donn Seeley [Thu, 10 Dec 1987 16:42:47 +0000 (08:42 -0800)]
utah rcsid 1.13 87/07/10 23:44:34: (1) Added lint warning about superfluous
backslashes in char or string constants.  (2) Made '$' in identifiers
dependent on 'VMS'.  (3) Made gcos BCD constants completely dependent on
'gcos'.  (4) Caused yylex() to loop rather than punt when it sees a funny
character.

SCCS-vsn: old/pcc/mip/scan.c 2.14

36 years agoutah rcsid 1.12 87/07/06 15:49:59: Don't lose track of string boundaries
Donn Seeley [Thu, 10 Dec 1987 16:42:37 +0000 (08:42 -0800)]
utah rcsid 1.12 87/07/06 15:49:59: Don't lose track of string boundaries
after a syntax error -- yylex() checks for broken strings and eats them
with lxstr().

SCCS-vsn: old/pcc/mip/scan.c 2.13

36 years agoutah rcsid 1.11 87/01/15 02:11:51: Some minor lint fixes.
Donn Seeley [Thu, 10 Dec 1987 16:42:26 +0000 (08:42 -0800)]
utah rcsid 1.11 87/01/15 02:11:51: Some minor lint fixes.

SCCS-vsn: old/pcc/mip/scan.c 2.12

36 years agoutah rcsid 1.10 86/11/27 19:18:46: Update for ucb sid 2.2 -- 'move release
Donn Seeley [Thu, 10 Dec 1987 16:42:16 +0000 (08:42 -0800)]
utah rcsid 1.10 86/11/27 19:18:46: Update for ucb sid 2.2 -- 'move release
definition to external file' (sam).

SCCS-vsn: old/pcc/mip/scan.c 2.11

36 years agoutah rcsid 1.9 86/09/18 18:51:36: Be a little nicer about illegal character
Donn Seeley [Thu, 10 Dec 1987 16:42:06 +0000 (08:42 -0800)]
utah rcsid 1.9 86/09/18 18:51:36: Be a little nicer about illegal character
errors...

SCCS-vsn: old/pcc/mip/scan.c 2.10

36 years agoutah rcsid 1.8 86/08/14 21:59:59: Pick up #line control lines and convert
Donn Seeley [Thu, 10 Dec 1987 16:41:56 +0000 (08:41 -0800)]
utah rcsid 1.8 86/08/14 21:59:59: Pick up #line control lines and convert
them to ordinary # lines.

SCCS-vsn: old/pcc/mip/scan.c 2.9

36 years agoutah rcsid 1.7 86/08/14 21:13:58: Add support for #ident and #pragma.
Donn Seeley [Thu, 10 Dec 1987 16:41:46 +0000 (08:41 -0800)]
utah rcsid 1.7 86/08/14 21:13:58: Add support for #ident and #pragma.

SCCS-vsn: old/pcc/mip/scan.c 2.8

36 years agoutah rcsid 1.6 86/08/03 01:32:40: Eliminate silly 'unreachable code'
Donn Seeley [Thu, 10 Dec 1987 16:41:37 +0000 (08:41 -0800)]
utah rcsid 1.6 86/08/03 01:32:40: Eliminate silly 'unreachable code'
warning created by ifdeffing out the stuff for old-style assignment
operators...

SCCS-vsn: old/pcc/mip/scan.c 2.7

36 years agoutah rcsid 1.5 86/08/03 01:06:34: Don't emit line number symbols after
Donn Seeley [Thu, 10 Dec 1987 16:41:29 +0000 (08:41 -0800)]
utah rcsid 1.5 86/08/03 01:06:34: Don't emit line number symbols after
errors.

SCCS-vsn: old/pcc/mip/scan.c 2.6

36 years agoutah rcsid 1.4 86/07/11 14:02:11: Old-style (=+, =- etc.) assignment
Donn Seeley [Thu, 10 Dec 1987 16:41:17 +0000 (08:41 -0800)]
utah rcsid 1.4 86/07/11 14:02:11: Old-style (=+, =- etc.) assignment
operators are ifdef'ed out.  No more 'ambiguous assignment: assignment op
taken' messages!

SCCS-vsn: old/pcc/mip/scan.c 2.5

36 years agoutah rcsid 1.8 87/09/24 22:23:26: Follow tahoe lead, generate better code
Donn Seeley [Thu, 10 Dec 1987 16:38:35 +0000 (08:38 -0800)]
utah rcsid 1.8 87/09/24 22:23:26: Follow tahoe lead, generate better code
for unary ops.

SCCS-vsn: old/pcc/mip/reader.c 4.8

36 years agoutah rcsid 1.7 87/08/24 01:13:29: If order() is called on to rewrite a
Donn Seeley [Thu, 10 Dec 1987 16:38:23 +0000 (08:38 -0800)]
utah rcsid 1.7 87/08/24 01:13:29: If order() is called on to rewrite a
UNARY MUL node and that node has a usable index expression, we now try to
rewrite the base into a register so that oreg2() will produce a
doubly-indexed OREG.

SCCS-vsn: old/pcc/mip/reader.c 4.7

36 years agoutah rcsid 1.6 87/01/15 02:08:43: For some reason, mainp2() had TWO default
Donn Seeley [Thu, 10 Dec 1987 16:38:09 +0000 (08:38 -0800)]
utah rcsid 1.6 87/01/15 02:08:43: For some reason, mainp2() had TWO default
cases in its big switch statement.

SCCS-vsn: old/pcc/mip/reader.c 4.6

36 years agoutah rcsid 1.20 87/09/21 02:23:15: Code for the relook()/schain hack from
Donn Seeley [Thu, 10 Dec 1987 16:31:40 +0000 (08:31 -0800)]
utah rcsid 1.20 87/09/21 02:23:15: Code for the relook()/schain hack from
allegra!jpl which is quite a bit prettier than the old code and works the
same.

SCCS-vsn: old/pcc/mip/pftn.c 1.27

36 years agoutah rcsid 1.19 87/07/10 22:45:12: Arthur Olsen's hack to force lint to
Donn Seeley [Thu, 10 Dec 1987 16:31:20 +0000 (08:31 -0800)]
utah rcsid 1.19 87/07/10 22:45:12: Arthur Olsen's hack to force lint to
examine initializations.

SCCS-vsn: old/pcc/mip/pftn.c 1.26

36 years agoutah rcsid 1.18 87/05/18 22:30:36: Fix goof in previous revision which
Donn Seeley [Thu, 10 Dec 1987 16:31:05 +0000 (08:31 -0800)]
utah rcsid 1.18 87/05/18 22:30:36: Fix goof in previous revision which
screws up when a symbol returned by relook() is the first element in an
schain.

SCCS-vsn: old/pcc/mip/pftn.c 1.25

36 years agoutah rcsid 1.17 87/04/30 13:53:40: Prevent 'schain botch' -- if relook()
Donn Seeley [Thu, 10 Dec 1987 16:30:49 +0000 (08:30 -0800)]
utah rcsid 1.17 87/04/30 13:53:40: Prevent 'schain botch' -- if relook()
succeeds, fix up schain so that it passes through the copy instead of the
(mishashed) original.

SCCS-vsn: old/pcc/mip/pftn.c 1.24

36 years agoutah rcsid 1.16 87/02/25 00:16:05: Prevent confusion when introducing a new
Donn Seeley [Thu, 10 Dec 1987 16:30:33 +0000 (08:30 -0800)]
utah rcsid 1.16 87/02/25 00:16:05: Prevent confusion when introducing a new
definition of an identifier in an inner scope.  Previously an incomplete
definition of an external array could get 'adjusted' by the definition of
an auto array with the same name.

SCCS-vsn: old/pcc/mip/pftn.c 1.23

36 years agoutah rcsid 1.15 87/02/08 20:23:37: Add typedefs to the set of storage
Donn Seeley [Thu, 10 Dec 1987 16:30:17 +0000 (08:30 -0800)]
utah rcsid 1.15 87/02/08 20:23:37: Add typedefs to the set of storage
classes which may have null storage.

SCCS-vsn: old/pcc/mip/pftn.c 1.22

36 years agoutah rcsid 1.14 87/01/15 06:57:19: Changed the compiler error in tsize()
Donn Seeley [Thu, 10 Dec 1987 16:29:59 +0000 (08:29 -0800)]
utah rcsid 1.14 87/01/15 06:57:19: Changed the compiler error in tsize()
into a normal user error -- you can get this by trying to dereference a
function pointer in ordinary code.

SCCS-vsn: old/pcc/mip/pftn.c 1.21

36 years agoutah rcsid 1.13 87/01/15 05:50:53: Added fixinit() routine for recovering
Donn Seeley [Thu, 10 Dec 1987 16:29:42 +0000 (08:29 -0800)]
utah rcsid 1.13 87/01/15 05:50:53: Added fixinit() routine for recovering
the initial state after an error.

SCCS-vsn: old/pcc/mip/pftn.c 1.20

36 years agoutah rcsid 1.12 87/01/15 02:00:24: Made test for missing declared arguments
Donn Seeley [Thu, 10 Dec 1987 16:29:20 +0000 (08:29 -0800)]
utah rcsid 1.12 87/01/15 02:00:24: Made test for missing declared arguments
in defid() more stringent.  Made some minor lint fixes and touched up a
couple of comments.

SCCS-vsn: old/pcc/mip/pftn.c 1.19

36 years agoutah rcsid 1.11 86/11/12 23:17:23: A variation on a suggestion by Ray
Donn Seeley [Thu, 10 Dec 1987 16:29:03 +0000 (08:29 -0800)]
utah rcsid 1.11 86/11/12 23:17:23: A variation on a suggestion by Ray
Butterworth -- when an array is not initialized and not external, its
definition must allocate space.  I also cleaned up the corresponding 'null
dimension' error for empty dimensions in places other than the last.
Following Butterworth's suggestion, a lint error was added for an explicit
dimension which is converted to a pointer in the normal formal argument
conversion code (contingent on lint's -h flag).

SCCS-vsn: old/pcc/mip/pftn.c 1.18

36 years agoutah rcsid 1.10 86/08/16 00:01:25: Don't allow addresses (or unloadable
Donn Seeley [Thu, 10 Dec 1987 16:28:45 +0000 (08:28 -0800)]
utah rcsid 1.10 86/08/16 00:01:25: Don't allow addresses (or unloadable
things) to be placed in bit fields.

SCCS-vsn: old/pcc/mip/pftn.c 1.17

36 years agoutah rcsid 1.9 86/08/03 01:06:07: Don't generate code after errors.
Donn Seeley [Thu, 10 Dec 1987 16:28:18 +0000 (08:28 -0800)]
utah rcsid 1.9 86/08/03 01:06:07: Don't generate code after errors.

SCCS-vsn: old/pcc/mip/pftn.c 1.16

36 years agoutah rcsid 1.4 87/08/24 01:05:33: Added a PBUSY bit to mark the first
Donn Seeley [Thu, 10 Dec 1987 16:18:26 +0000 (08:18 -0800)]
utah rcsid 1.4 87/08/24 01:05:33: Added a PBUSY bit to mark the first
register in a register pair, so that sharing of register pairs works.  An
ISBUSY macro masks out PBUSY and performs the old test for > 1.

SCCS-vsn: old/pcc/mip/pass2.h 4.4

36 years agoutah rcsid 1.3 87/04/19 23:19:09: Add SMCON -- a SPECIAL shape which checks
Donn Seeley [Thu, 10 Dec 1987 16:18:20 +0000 (08:18 -0800)]
utah rcsid 1.3 87/04/19 23:19:09: Add SMCON -- a SPECIAL shape which checks
for 'negative' constants; useful in hacking unsigned arithmetic.

SCCS-vsn: old/pcc/mip/pass2.h 4.3

36 years agoutah rcsid 1.2 86/08/03 01:07:55: Permit deflab to be a macro, for
Donn Seeley [Thu, 10 Dec 1987 16:16:09 +0000 (08:16 -0800)]
utah rcsid 1.2 86/08/03 01:07:55: Permit deflab to be a macro, for
efficiency.

SCCS-vsn: old/pcc/mip/onepass.h 4.2

36 years agoutah rcsid 1.2 86/11/14 19:09:55: Fix dpn and fpn so that they conform to
Donn Seeley [Thu, 10 Dec 1987 16:14:57 +0000 (08:14 -0800)]
utah rcsid 1.2 86/11/14 19:09:55: Fix dpn and fpn so that they conform to
the member layout used elsewhere.

SCCS-vsn: old/pcc/mip/ndu.h 4.2

36 years agoutah rcsid 1.6 87/08/24 01:07:09: (1) Added MATCHSTATS code to help profile
Donn Seeley [Thu, 10 Dec 1987 16:14:07 +0000 (08:14 -0800)]
utah rcsid 1.6 87/08/24 01:07:09: (1) Added MATCHSTATS code to help profile
the match() routine.  This will probably be removed when I get around to
optimizing table lookups.  (2) Check ISBUSY instead of busy[] in tshape(),
to avoid PBUSY conflicts.

SCCS-vsn: old/pcc/mip/match.c 4.7

36 years agoutah rcsid 1.5 87/04/19 23:20:26: Add SMCON -- a SPECIAL shape which checks
Donn Seeley [Thu, 10 Dec 1987 16:13:59 +0000 (08:13 -0800)]
utah rcsid 1.5 87/04/19 23:20:26: Add SMCON -- a SPECIAL shape which checks
for 'negative' constants; useful in hacking unsigned arithmetic.  Cleaned
up the code in tshape() too.

SCCS-vsn: old/pcc/mip/match.c 4.6

36 years agoutah rcsid 1.2 87/04/30 13:51:05: Use 'pointer to enum member' as the
Donn Seeley [Thu, 10 Dec 1987 15:57:02 +0000 (07:57 -0800)]
utah rcsid 1.2 87/04/30 13:51:05: Use 'pointer to enum member' as the
reserved 'impossible' type that distinguishes unused symbols; thus 'pointer
to undef' becomes available to represent 'void *'.

SCCS-vsn: old/pcc/mip/manifest.h 4.2

36 years agoutah rcsid 1.6 87/04/17 21:33:14: Break up a couple lines with multiple
Donn Seeley [Thu, 10 Dec 1987 15:45:14 +0000 (07:45 -0800)]
utah rcsid 1.6 87/04/17 21:33:14: Break up a couple lines with multiple
statements for dbx's sake.

SCCS-vsn: old/pcc/mip/common.c 4.4

36 years agoutah rcsid 1.5 87/01/15 01:54:50: Minor lint fixes.
Donn Seeley [Thu, 10 Dec 1987 15:45:08 +0000 (07:45 -0800)]
utah rcsid 1.5 87/01/15 01:54:50: Minor lint fixes.

SCCS-vsn: old/pcc/mip/common.c 4.3

36 years agoutah rcsid 1.18 87/07/13 21:17:28: Oops -- that sizeof hack broke 'int i;
Donn Seeley [Thu, 10 Dec 1987 15:37:39 +0000 (07:37 -0800)]
utah rcsid 1.18 87/07/13 21:17:28: Oops -- that sizeof hack broke 'int i;
... sizeof (i) ...'.  Hope this works a little better.

SCCS-vsn: old/pcc/mip/cgram.y 4.22

36 years agoutah rcsid 1.17 87/07/10 22:45:50: A change to force lint (and cc?) to
Donn Seeley [Thu, 10 Dec 1987 15:37:30 +0000 (07:37 -0800)]
utah rcsid 1.17 87/07/10 22:45:50: A change to force lint (and cc?) to
notice that initializations of auto, register or static variables count as
uses of the variable.

SCCS-vsn: old/pcc/mip/cgram.y 4.21

36 years agoutah rcsid 1.16 87/07/10 20:42:14: Slightly cleaner version of ado's hack
Donn Seeley [Thu, 10 Dec 1987 15:37:20 +0000 (07:37 -0800)]
utah rcsid 1.16 87/07/10 20:42:14: Slightly cleaner version of ado's hack
for preventing 'sizeof' expressions from counting as a 'use' of a variable.

SCCS-vsn: old/pcc/mip/cgram.y 4.20

36 years agoutah rcsid 1.15 87/07/06 18:36:00: Cause 'lint -h' to flag constant switch
Donn Seeley [Thu, 10 Dec 1987 15:37:11 +0000 (07:37 -0800)]
utah rcsid 1.15 87/07/06 18:36:00: Cause 'lint -h' to flag constant switch
expressions.

SCCS-vsn: old/pcc/mip/cgram.y 4.19

36 years agoutah rcsid 1.14 87/03/18 00:17:48: Fix stupid goof using the wrong union
Donn Seeley [Thu, 10 Dec 1987 15:37:03 +0000 (07:37 -0800)]
utah rcsid 1.14 87/03/18 00:17:48: Fix stupid goof using the wrong union
member in earlier fix for switches...

SCCS-vsn: old/pcc/mip/cgram.y 4.18

36 years agoutah rcsid 1.13 87/02/26 18:53:50: Disallow case expressions which contain
Donn Seeley [Thu, 10 Dec 1987 15:36:53 +0000 (07:36 -0800)]
utah rcsid 1.13 87/02/26 18:53:50: Disallow case expressions which contain
addresses, following K&R.

SCCS-vsn: old/pcc/mip/cgram.y 4.17

36 years agoutah rcsid 1.12 87/01/15 05:51:41: Call fixinit() to recover from botched
Donn Seeley [Thu, 10 Dec 1987 15:36:44 +0000 (07:36 -0800)]
utah rcsid 1.12 87/01/15 05:51:41: Call fixinit() to recover from botched
initializations.  fixinit() is used in the same situation as endinit()
(from which it is derived).

SCCS-vsn: old/pcc/mip/cgram.y 4.16

36 years agoutah rcsid 1.11 87/01/15 02:12:54: Some minor lint fixes.
Donn Seeley [Thu, 10 Dec 1987 15:36:34 +0000 (07:36 -0800)]
utah rcsid 1.11 87/01/15 02:12:54: Some minor lint fixes.

SCCS-vsn: old/pcc/mip/cgram.y 4.15

36 years agoutah rcsid 1.10 86/08/12 14:01:51: No more old-fashioned initializations.
Donn Seeley [Thu, 10 Dec 1987 15:36:24 +0000 (07:36 -0800)]
utah rcsid 1.10 86/08/12 14:01:51: No more old-fashioned initializations.
Since YACC doesn't have conditional ^&'compilation' directives, I just
commented the rule out.

SCCS-vsn: old/pcc/mip/cgram.y 4.14

36 years agoutah rcsid 1.9 86/08/10 17:38:47: Make '(&(a = b))->c' illegal (previously
Donn Seeley [Thu, 10 Dec 1987 15:36:14 +0000 (07:36 -0800)]
utah rcsid 1.9 86/08/10 17:38:47: Make '(&(a = b))->c' illegal (previously
a synonym for '(a = b).c').  This and '(&(f())->c' now elicit the same
error message that ordinary use of & on an rvalue elicits.

SCCS-vsn: old/pcc/mip/cgram.y 4.13

36 years agoutah rcsid 1.8 86/08/10 16:49:55: Permit member references to the 'value'
Donn Seeley [Thu, 10 Dec 1987 15:36:04 +0000 (07:36 -0800)]
utah rcsid 1.8 86/08/10 16:49:55: Permit member references to the 'value'
of a structure assignment.

SCCS-vsn: old/pcc/mip/cgram.y 4.12

36 years agoutah rcsid 1.7 86/08/03 01:07:14: Don't emit stab information after errors.
Donn Seeley [Thu, 10 Dec 1987 15:35:53 +0000 (07:35 -0800)]
utah rcsid 1.7 86/08/03 01:07:14: Don't emit stab information after errors.

SCCS-vsn: old/pcc/mip/cgram.y 4.11

36 years agoutah rcsid 1.6 86/07/14 15:38:57: Close loophole with 'struct {int a, b;}
Donn Seeley [Thu, 10 Dec 1987 15:35:43 +0000 (07:35 -0800)]
utah rcsid 1.6 86/07/14 15:38:57: Close loophole with 'struct {int a, b;}
f(); ... (&f())->b ...'.

SCCS-vsn: old/pcc/mip/cgram.y 4.10

36 years agoutah rcsid 1.5 86/07/11 19:32:28: Permit member references to structures
Donn Seeley [Thu, 10 Dec 1987 15:35:33 +0000 (07:35 -0800)]
utah rcsid 1.5 86/07/11 19:32:28: Permit member references to structures
returned from functions.

SCCS-vsn: old/pcc/mip/cgram.y 4.9

36 years agoutah rcsid 1.6 87/08/24 00:44:32: Added a PBUSY bit to mark the first
Donn Seeley [Thu, 10 Dec 1987 15:32:59 +0000 (07:32 -0800)]
utah rcsid 1.6 87/08/24 00:44:32: Added a PBUSY bit to mark the first
register in a pair in the 'busy' array.  New code in usable() uses this bit
to identify sharable register pairs.  Other code that referred directly to
the contents of the array had to be modified slightly...

SCCS-vsn: old/pcc/mip/allo.c 4.10

36 years agouse Berkeley specific header
Keith Bostic [Tue, 8 Dec 1987 09:47:18 +0000 (01:47 -0800)]
use Berkeley specific header

SCCS-vsn: sys/netinet/icmp_var.h 7.3
SCCS-vsn: sys/netinet/if_ether.c 7.6
SCCS-vsn: sys/netinet/if_ether.h 7.2
SCCS-vsn: sys/netinet/in.c 7.6
SCCS-vsn: sys/netinet/in.h 7.4
SCCS-vsn: sys/netinet/in_pcb.c 7.6
SCCS-vsn: sys/netinet/in_pcb.h 7.2
SCCS-vsn: sys/netinet/in_proto.c 7.2
SCCS-vsn: sys/netinet/in_systm.h 7.2
SCCS-vsn: sys/netinet/in_var.h 7.2
SCCS-vsn: sys/netinet/ip.h 7.4
SCCS-vsn: sys/netinet/ip_icmp.c 7.7
SCCS-vsn: sys/netinet/ip_icmp.h 7.3
SCCS-vsn: sys/netinet/ip_input.c 7.8
SCCS-vsn: sys/netinet/ip_output.c 7.7
SCCS-vsn: sys/netinet/ip_var.h 7.3
SCCS-vsn: sys/netinet/raw_ip.c 7.3
SCCS-vsn: sys/netinet/tcp.h 7.3
SCCS-vsn: sys/netinet/tcp_debug.c 7.2
SCCS-vsn: sys/netinet/tcp_debug.h 7.2
SCCS-vsn: sys/netinet/tcp_fsm.h 7.2
SCCS-vsn: sys/netinet/tcp_input.c 7.14
SCCS-vsn: sys/netinet/tcp_output.c 7.12
SCCS-vsn: sys/netinet/tcp_seq.h 7.2
SCCS-vsn: sys/netinet/tcp_subr.c 7.13
SCCS-vsn: sys/netinet/tcp_timer.c 7.11
SCCS-vsn: sys/netinet/tcp_timer.h 7.4
SCCS-vsn: sys/netinet/tcp_usrreq.c 7.6
SCCS-vsn: sys/netinet/tcp_var.h 7.6
SCCS-vsn: sys/netinet/tcpip.h 7.2
SCCS-vsn: sys/netinet/udp.h 7.2
SCCS-vsn: sys/netinet/udp_usrreq.c 7.4
SCCS-vsn: sys/netinet/udp_var.h 7.3

36 years agofix error message
Kirk McKusick [Tue, 8 Dec 1987 09:06:08 +0000 (01:06 -0800)]
fix error message

SCCS-vsn: sbin/newfs/newfs.c 6.15