Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint/common lint: remove __noinline attribute from ...
details: https://anonhg.NetBSD.org/src/rev/da137d831124
branches: trunk
changeset: 980193:da137d831124
user: rillig <rillig%NetBSD.org@localhost>
date: Tue Jan 26 18:38:57 2021 +0000
description:
lint: remove __noinline attribute from string interning function
I had committed this accidentally while ensuring that the generated code
is still efficient even though the source code looks heavy with the
double pointer indirection.
diffstat:
usr.bin/xlint/common/tyname.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r d64df09ea36b -r da137d831124 usr.bin/xlint/common/tyname.c
--- a/usr.bin/xlint/common/tyname.c Tue Jan 26 18:08:33 2021 +0000
+++ b/usr.bin/xlint/common/tyname.c Tue Jan 26 18:38:57 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tyname.c,v 1.25 2021/01/24 11:55:57 rillig Exp $ */
+/* $NetBSD: tyname.c,v 1.26 2021/01/26 18:38:57 rillig Exp $ */
/*-
* Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: tyname.c,v 1.25 2021/01/24 11:55:57 rillig Exp $");
+__RCSID("$NetBSD: tyname.c,v 1.26 2021/01/26 18:38:57 rillig Exp $");
#endif
#include <limits.h>
@@ -82,7 +82,7 @@
}
/* Return the canonical instance of the string, with unlimited life time. */
-static const char * __noinline
+static const char *
intern(const char *name)
{
name_tree_node *n = type_names, **next;
Home |
Main Index |
Thread Index |
Old Index