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 clang's optnone attribute.



details:   https://anonhg.NetBSD.org/src/rev/31724aed2cad
branches:  trunk
changeset: 1029195:31724aed2cad
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Dec 26 18:16:41 2021 +0000

description:
Add clang's optnone attribute.

diffstat:

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

diffs (61 lines):

diff -r 734db642aab8 -r 31724aed2cad usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y       Sun Dec 26 16:41:09 2021 +0000
+++ b/usr.bin/xlint/lint1/cgram.y       Sun Dec 26 18:16:41 2021 +0000
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: cgram.y,v 1.377 2021/12/20 19:34:01 rillig Exp $ */
+/* $NetBSD: cgram.y,v 1.378 2021/12/26 18:16:41 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.377 2021/12/20 19:34:01 rillig Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.378 2021/12/26 18:16:41 christos Exp $");
 #endif
 
 #include <limits.h>
@@ -251,6 +251,7 @@
 %token                 T_AT_NOTHROW
 %token                 T_AT_NO_INSTRUMENT_FUNCTION
 %token                 T_AT_OPTIMIZE
+%token                 T_AT_OPTNONE
 %token                 T_AT_PACKED
 %token                 T_AT_PCS
 %token                 T_AT_PURE
@@ -2107,6 +2108,7 @@
        | T_AT_NOTHROW
        | T_AT_NO_INSTRUMENT_FUNCTION
        | T_AT_OPTIMIZE T_LPAREN string T_RPAREN
+       | T_AT_OPTNONE
        | T_AT_PACKED {
                addpacked();
          }
diff -r 734db642aab8 -r 31724aed2cad usr.bin/xlint/lint1/lex.c
--- a/usr.bin/xlint/lint1/lex.c Sun Dec 26 16:41:09 2021 +0000
+++ b/usr.bin/xlint/lint1/lex.c Sun Dec 26 18:16:41 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lex.c,v 1.96 2021/12/25 13:51:42 rillig Exp $ */
+/* $NetBSD: lex.c,v 1.97 2021/12/26 18:16:41 christos Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: lex.c,v 1.96 2021/12/25 13:51:42 rillig Exp $");
+__RCSID("$NetBSD: lex.c,v 1.97 2021/12/26 18:16:41 christos Exp $");
 #endif
 
 #include <ctype.h>
@@ -197,6 +197,7 @@
        kwdef_gcc_attr( "noreturn",     T_AT_NORETURN),
        kwdef_gcc_attr( "nothrow",      T_AT_NOTHROW),
        kwdef_gcc_attr( "optimize",     T_AT_OPTIMIZE),
+       kwdef_gcc_attr( "optnone",      T_AT_OPTNONE),
        kwdef_gcc_attr( "packed",       T_AT_PACKED),
        kwdef_token(    "__packed",     T_PACKED,               0,0,0,0,1),
        kwdef_gcc_attr( "pcs",          T_AT_PCS),



Home | Main Index | Thread Index | Old Index