Module Name: src
Committed By: christos
Date: Thu Dec 29 18:37:32 UTC 2016
Modified Files:
src/usr.bin/xlint/lint1: cgram.y scan.l
Log Message:
Add always_inline
To generate a diff of this commit:
cvs rdiff -u -r1.84 -r1.85 src/usr.bin/xlint/lint1/cgram.y
cvs rdiff -u -r1.69 -r1.70 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.84 src/usr.bin/xlint/lint1/cgram.y:1.85
--- src/usr.bin/xlint/lint1/cgram.y:1.84 Thu Dec 29 11:41:16 2016
+++ src/usr.bin/xlint/lint1/cgram.y Thu Dec 29 13:37:32 2016
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: cgram.y,v 1.84 2016/12/29 16:41:16 christos Exp $ */
+/* $NetBSD: cgram.y,v 1.85 2016/12/29 18:37:32 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.84 2016/12/29 16:41:16 christos Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.85 2016/12/29 18:37:32 christos Exp $");
#endif
#include <stdlib.h>
@@ -199,6 +199,7 @@ anonymize(sym_t *s)
/* Type Attributes */
%token <y_type> T_ATTRIBUTE
%token <y_type> T_AT_ALIGNED
+%token <y_type> T_AT_ALWAYS_INLINE
%token <y_type> T_AT_COLD
%token <y_type> T_AT_CONSTRUCTOR
%token <y_type> T_AT_DEPRECATED
@@ -526,6 +527,7 @@ type_attribute_spec:
| T_AT_PURE
| T_AT_TUNION
| T_AT_GNU_INLINE
+ | T_AT_ALWAYS_INLINE
| T_AT_FORMAT T_LPARN type_attribute_format_type T_COMMA
constant T_COMMA constant T_RPARN
| T_AT_USED {
Index: src/usr.bin/xlint/lint1/scan.l
diff -u src/usr.bin/xlint/lint1/scan.l:1.69 src/usr.bin/xlint/lint1/scan.l:1.70
--- src/usr.bin/xlint/lint1/scan.l:1.69 Thu Dec 29 11:41:16 2016
+++ src/usr.bin/xlint/lint1/scan.l Thu Dec 29 13:37:32 2016
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: scan.l,v 1.69 2016/12/29 16:41:16 christos Exp $ */
+/* $NetBSD: scan.l,v 1.70 2016/12/29 18:37:32 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.69 2016/12/29 16:41:16 christos Exp $");
+__RCSID("$NetBSD: scan.l,v 1.70 2016/12/29 18:37:32 christos Exp $");
#endif
#include <stdlib.h>
@@ -217,6 +217,10 @@ static struct kwtab {
{ "unused", T_AT_UNUSED, 0, 0, 0, 0, 0, 1, 1 },
{ "__used__", T_AT_USED, 0, 0, 0, 0, 0, 1, 1 },
{ "used", T_AT_USED, 0, 0, 0, 0, 0, 1, 1 },
+ { "__always_inline__", T_AT_ALWAYS_INLINE,
+ 0, 0, 0, 0, 0, 1, 1 },
+ { "always_inline", T_AT_ALWAYS_INLINE,
+ 0, 0, 0, 0, 0, 1, 1 },
{ "__gnu_inline__",T_AT_GNU_INLINE,0, 0, 0, 0, 0, 1, 1 },
{ "gnu_inline", T_AT_GNU_INLINE,0, 0, 0, 0, 0, 1, 1 },
{ "__constructor__",T_AT_CONSTRUCTOR,0, 0, 0, 0, 0, 1, 1 },