summaryrefslogtreecommitdiff
path: root/usr.bin/pcc/nova/local.c
diff options
context:
space:
mode:
authorAnders Magnusson <ragge@cvs.openbsd.org>2007-11-18 17:39:56 +0000
committerAnders Magnusson <ragge@cvs.openbsd.org>2007-11-18 17:39:56 +0000
commitffbcd0d1cc4b8a79cd425a475380a55dc3d1b6e8 (patch)
tree3f2710e8c7df5eef44042f03eaf7ecb0918a7553 /usr.bin/pcc/nova/local.c
parent0002b12aff4753fec661ccc9e71178e0039ede32 (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/nova/local.c')
-rw-r--r--usr.bin/pcc/nova/local.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/pcc/nova/local.c b/usr.bin/pcc/nova/local.c
index cc820543051..3597402d4fa 100644
--- a/usr.bin/pcc/nova/local.c
+++ b/usr.bin/pcc/nova/local.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: local.c,v 1.1 2007/10/07 17:58:51 otto Exp $ */
+/* $OpenBSD: local.c,v 1.2 2007/11/18 17:39:55 ragge Exp $ */
/*
* Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se).
* All rights reserved.
@@ -243,8 +243,6 @@ clocal(NODE *p)
case UNSIGNED:
l->n_lval = val & 0xffffffff;
break;
- case ENUMTY:
- case MOETY:
case LONG:
case INT:
l->n_lval = (int)val;