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 optimize attribute
details: https://anonhg.NetBSD.org/src/rev/586518f61519
branches: trunk
changeset: 938888:586518f61519
user: christos <christos%NetBSD.org@localhost>
date: Fri Sep 18 14:19:08 2020 +0000
description:
add optimize 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 275662ddfdde -r 586518f61519 usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y Fri Sep 18 14:09:47 2020 +0000
+++ b/usr.bin/xlint/lint1/cgram.y Fri Sep 18 14:19:08 2020 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: cgram.y,v 1.104 2019/03/04 17:45:16 christos Exp $ */
+/* $NetBSD: cgram.y,v 1.105 2020/09/18 14:19:08 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.104 2019/03/04 17:45:16 christos Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.105 2020/09/18 14:19:08 christos Exp $");
#endif
#include <stdlib.h>
@@ -228,6 +228,7 @@
%token <y_type> T_AT_NORETURN
%token <y_type> T_AT_NOTHROW
%token <y_type> T_AT_NO_INSTRUMENT_FUNCTION
+%token <y_type> T_AT_OPTIMIZE
%token <y_type> T_AT_PACKED
%token <y_type> T_AT_PCS
%token <y_type> T_AT_PURE
@@ -546,6 +547,7 @@
| T_AT_NONNULL T_LPARN constant T_RPARN
| T_AT_MODE T_LPARN T_NAME T_RPARN
| T_AT_ALIAS T_LPARN string T_RPARN
+ | T_AT_OPTIMIZE T_LPARN string T_RPARN
| T_AT_PCS T_LPARN string T_RPARN
| T_AT_SECTION T_LPARN string T_RPARN
| T_AT_TLS_MODEL T_LPARN string T_RPARN
diff -r 275662ddfdde -r 586518f61519 usr.bin/xlint/lint1/scan.l
--- a/usr.bin/xlint/lint1/scan.l Fri Sep 18 14:09:47 2020 +0000
+++ b/usr.bin/xlint/lint1/scan.l Fri Sep 18 14:19:08 2020 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: scan.l,v 1.91 2019/11/09 19:54:09 christos Exp $ */
+/* $NetBSD: scan.l,v 1.92 2020/09/18 14:19:08 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.91 2019/11/09 19:54:09 christos Exp $");
+__RCSID("$NetBSD: scan.l,v 1.92 2020/09/18 14:19:08 christos Exp $");
#endif
#include <stdlib.h>
@@ -265,6 +265,7 @@
{ "noinline", T_AT_NOINLINE, 0, 0, 0, 0,0,1,1,5 },
{ "noreturn", T_AT_NORETURN, 0, 0, 0, 0,0,1,1,5 },
{ "nothrow", T_AT_NOTHROW, 0, 0, 0, 0,0,1,1,5 },
+ { "optimize", T_AT_OPTIMIZE, 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 },
{ "pcs", T_AT_PCS, 0, 0, 0, 0,0,0,0,5 },
Home |
Main Index |
Thread Index |
Old Index