Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint/lint1 lint: clean up new_tnode
details: https://anonhg.NetBSD.org/src/rev/caeaeca9aee5
branches: trunk
changeset: 984356:caeaeca9aee5
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Jul 04 16:44:13 2021 +0000
description:
lint: clean up new_tnode
No functional change.
diffstat:
usr.bin/xlint/lint1/tree.c | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
diffs (45 lines):
diff -r 6daea054d9e7 -r caeaeca9aee5 usr.bin/xlint/lint1/tree.c
--- a/usr.bin/xlint/lint1/tree.c Sun Jul 04 16:18:50 2021 +0000
+++ b/usr.bin/xlint/lint1/tree.c Sun Jul 04 16:44:13 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tree.c,v 1.308 2021/07/04 13:14:54 rillig Exp $ */
+/* $NetBSD: tree.c,v 1.309 2021/07/04 16:44:13 rillig Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: tree.c,v 1.308 2021/07/04 13:14:54 rillig Exp $");
+__RCSID("$NetBSD: tree.c,v 1.309 2021/07/04 16:44:13 rillig Exp $");
#endif
#include <float.h>
@@ -1627,7 +1627,7 @@
{
tnode_t *ntn;
tspec_t t;
-#ifdef notyet
+#if 0 /* not yet */
size_t l;
uint64_t rnum;
#endif
@@ -1636,15 +1636,12 @@
ntn->tn_op = op;
ntn->tn_type = type;
- if (ln->tn_relaxed)
- ntn->tn_relaxed = true;
- if (rn != NULL && rn->tn_relaxed)
- ntn->tn_relaxed = true;
+ ntn->tn_relaxed = ln->tn_relaxed || (rn != NULL && rn->tn_relaxed);
ntn->tn_left = ln;
ntn->tn_right = rn;
switch (op) {
-#ifdef notyet
+#if 0 /* not yet */
case SHR:
if (rn->tn_op != CON)
break;
Home |
Main Index |
Thread Index |
Old Index