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 Add always_inline
details: https://anonhg.NetBSD.org/src/rev/dcf031dd32dc
branches: trunk
changeset: 349954:dcf031dd32dc
user: christos <christos%NetBSD.org@localhost>
date: Thu Dec 29 18:37:32 2016 +0000
description:
Add always_inline
diffstat:
usr.bin/xlint/lint1/cgram.y | 6 ++++--
usr.bin/xlint/lint1/scan.l | 8 ++++++--
2 files changed, 10 insertions(+), 4 deletions(-)
diffs (65 lines):
diff -r 2f91fc6361fe -r dcf031dd32dc usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y Thu Dec 29 18:30:55 2016 +0000
+++ b/usr.bin/xlint/lint1/cgram.y Thu Dec 29 18:37:32 2016 +0000
@@ -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 @@
/* 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 @@
| 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 {
diff -r 2f91fc6361fe -r dcf031dd32dc usr.bin/xlint/lint1/scan.l
--- a/usr.bin/xlint/lint1/scan.l Thu Dec 29 18:30:55 2016 +0000
+++ b/usr.bin/xlint/lint1/scan.l Thu Dec 29 18:37:32 2016 +0000
@@ -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 @@
{ "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 },
Home |
Main Index |
Thread Index |
Old Index