Module Name: src
Committed By: christos
Date: Sun Jul 8 17:48:42 UTC 2018
Modified Files:
src/usr.bin/xlint/lint1: cgram.y scan.l
Log Message:
recognize noinline attribute
To generate a diff of this commit:
cvs rdiff -u -r1.96 -r1.97 src/usr.bin/xlint/lint1/cgram.y
cvs rdiff -u -r1.81 -r1.82 src/usr.bin/xlint/lint1/scan.l
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/xlint/lint1/cgram.y
diff -u src/usr.bin/xlint/lint1/cgram.y:1.96 src/usr.bin/xlint/lint1/cgram.y:1.97
--- src/usr.bin/xlint/lint1/cgram.y:1.96 Fri Jun 29 16:18:36 2018
+++ src/usr.bin/xlint/lint1/cgram.y Sun Jul 8 13:48:42 2018
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: cgram.y,v 1.96 2018/06/29 20:18:36 christos Exp $ */
+/* $NetBSD: cgram.y,v 1.97 2018/07/08 17:48:42 christos Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -35,7 +35,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: cgram.y,v 1.96 2018/06/29 20:18:36 christos Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.97 2018/07/08 17:48:42 christos Exp $");
#endif
#include <stdlib.h>
@@ -219,6 +219,7 @@ anonymize(sym_t *s)
%token <y_type> T_AT_MAY_ALIAS
%token <y_type> T_AT_MINBYTES
%token <y_type> T_AT_MODE
+%token <y_type> T_AT_NOINLINE
%token <y_type> T_AT_NONNULL
%token <y_type> T_AT_NORETURN
%token <y_type> T_AT_NO_INSTRUMENT_FUNCTION
@@ -539,6 +540,7 @@ type_attribute_spec:
| T_AT_CONSTRUCTOR
| T_AT_MAY_ALIAS
| T_AT_NO_INSTRUMENT_FUNCTION
+ | T_AT_NOINLINE
| T_AT_NORETURN
| T_AT_COLD
| T_AT_RETURNS_TWICE
Index: src/usr.bin/xlint/lint1/scan.l
diff -u src/usr.bin/xlint/lint1/scan.l:1.81 src/usr.bin/xlint/lint1/scan.l:1.82
--- src/usr.bin/xlint/lint1/scan.l:1.81 Fri Jun 29 16:18:36 2018
+++ src/usr.bin/xlint/lint1/scan.l Sun Jul 8 13:48:42 2018
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: scan.l,v 1.81 2018/06/29 20:18:36 christos Exp $ */
+/* $NetBSD: scan.l,v 1.82 2018/07/08 17:48:42 christos Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -35,7 +35,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: scan.l,v 1.81 2018/06/29 20:18:36 christos Exp $");
+__RCSID("$NetBSD: scan.l,v 1.82 2018/07/08 17:48:42 christos Exp $");
#endif
#include <stdlib.h>
@@ -251,6 +251,7 @@ static struct kwtab {
{ "no_instrument_function", T_AT_NO_INSTRUMENT_FUNCTION,
0, 0, 0, 0,0,1,1,5 },
{ "nonnull", T_AT_NONNULL, 0, 0, 0, 0,0,1,1,5 },
+ { "noinline", T_AT_NOINLINE, 0, 0, 0, 0,0,1,1,5 },
{ "noreturn", T_AT_NORETURN, 0, 0, 0, 0,0,1,1,5 },
{ "packed", T_AT_PACKED, 0, 0, 0, 0,0,1,1,5 },
{ "packed", T_PACKED, 0, 0, 0, 0,0,0,0,2 },