diff options
author | Anders Magnusson <ragge@cvs.openbsd.org> | 2007-11-18 17:39:56 +0000 |
---|---|---|
committer | Anders Magnusson <ragge@cvs.openbsd.org> | 2007-11-18 17:39:56 +0000 |
commit | ffbcd0d1cc4b8a79cd425a475380a55dc3d1b6e8 (patch) | |
tree | 3f2710e8c7df5eef44042f03eaf7ecb0918a7553 /usr.bin/pcc/pdp10 | |
parent | 0002b12aff4753fec661ccc9e71178e0039ede32 (diff) |
(Large) update from master repo:
> Use structure assignment instead of calling memcpy directly in struct return.
> Rewrite enum handling.
> In C99 enums are treated like INTs so convert them early to int.
> Move the enum tag handling out of defid(), tags are in their own namespace.
> This will be done with struct/union tags also.
> Comment out enum types.
> Remove ENUMTY/MOETY from target code.
Diffstat (limited to 'usr.bin/pcc/pdp10')
-rw-r--r-- | usr.bin/pcc/pdp10/local.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/pcc/pdp10/local.c b/usr.bin/pcc/pdp10/local.c index c9bfa0a83c0..cf95e0f7a8d 100644 --- a/usr.bin/pcc/pdp10/local.c +++ b/usr.bin/pcc/pdp10/local.c @@ -1,4 +1,4 @@ -/* $OpenBSD: local.c,v 1.2 2007/11/16 09:00:13 otto Exp $ */ +/* $OpenBSD: local.c,v 1.3 2007/11/18 17:39:55 ragge Exp $ */ /* * Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se). * All rights reserved. @@ -262,8 +262,6 @@ rmpc: l->n_type = p->n_type; case UNSIGNED: l->n_lval = val & 0777777777777LL; break; - case ENUMTY: - case MOETY: case INT: l->n_lval = val & 0777777777777LL; if (val & 0400000000000LL) |