Tue Jan 26 18:38:58 2021 UTC ()
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.


(rillig)
diff -r1.25 -r1.26 src/usr.bin/xlint/common/tyname.c

cvs diff -r1.25 -r1.26 src/usr.bin/xlint/common/tyname.c (expand / switch to context diff)
--- src/usr.bin/xlint/common/tyname.c 2021/01/24 11:55:57 1.25
+++ src/usr.bin/xlint/common/tyname.c 2021/01/26 18:38:57 1.26
@@ -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;