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 recognize noinline attribute



details:   https://anonhg.NetBSD.org/src/rev/9a902c224bea
branches:  trunk
changeset: 324501:9a902c224bea
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jul 08 17:48:42 2018 +0000

description:
recognize noinline attribute

diffstat:

 usr.bin/xlint/lint1/cgram.y |  6 ++++--
 usr.bin/xlint/lint1/scan.l  |  5 +++--
 2 files changed, 7 insertions(+), 4 deletions(-)

diffs (62 lines):

diff -r f5c104985db0 -r 9a902c224bea usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y       Sun Jul 08 17:01:02 2018 +0000
+++ b/usr.bin/xlint/lint1/cgram.y       Sun Jul 08 17:48:42 2018 +0000
@@ -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 @@
 %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 @@
        | 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
diff -r f5c104985db0 -r 9a902c224bea usr.bin/xlint/lint1/scan.l
--- a/usr.bin/xlint/lint1/scan.l        Sun Jul 08 17:01:02 2018 +0000
+++ b/usr.bin/xlint/lint1/scan.l        Sun Jul 08 17:48:42 2018 +0000
@@ -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 @@
        { "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 },



Home | Main Index | Thread Index | Old Index