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 target attribute
details: https://anonhg.NetBSD.org/src/rev/8419d82193d7
branches: trunk
changeset: 1026520:8419d82193d7
user: christos <christos%NetBSD.org@localhost>
date: Sat Nov 27 20:13:48 2021 +0000
description:
Add target 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 caac52ec6882 -r 8419d82193d7 usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y Sat Nov 27 19:55:20 2021 +0000
+++ b/usr.bin/xlint/lint1/cgram.y Sat Nov 27 20:13:48 2021 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: cgram.y,v 1.370 2021/11/16 21:01:05 rillig Exp $ */
+/* $NetBSD: cgram.y,v 1.371 2021/11/27 20:13:48 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.370 2021/11/16 21:01:05 rillig Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.371 2021/11/27 20:13:48 christos Exp $");
#endif
#include <limits.h>
@@ -257,6 +257,7 @@
%token T_AT_SECTION
%token T_AT_SENTINEL
%token T_AT_STRING
+%token T_AT_TARGET
%token T_AT_TLS_MODEL
%token T_AT_TUNION
%token T_AT_UNUSED
@@ -2098,6 +2099,7 @@
| T_AT_SECTION T_LPAREN string T_RPAREN
| T_AT_SENTINEL T_LPAREN constant_expr T_RPAREN
| T_AT_SENTINEL
+ | T_AT_TARGET T_LPAREN string T_RPAREN
| T_AT_TLS_MODEL T_LPAREN string T_RPAREN
| T_AT_TUNION
| T_AT_UNUSED {
diff -r caac52ec6882 -r 8419d82193d7 usr.bin/xlint/lint1/lex.c
--- a/usr.bin/xlint/lint1/lex.c Sat Nov 27 19:55:20 2021 +0000
+++ b/usr.bin/xlint/lint1/lex.c Sat Nov 27 20:13:48 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lex.c,v 1.87 2021/11/16 18:33:14 rillig Exp $ */
+/* $NetBSD: lex.c,v 1.88 2021/11/27 20:13:48 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.87 2021/11/16 18:33:14 rillig Exp $");
+__RCSID("$NetBSD: lex.c,v 1.88 2021/11/27 20:13:48 christos Exp $");
#endif
#include <ctype.h>
@@ -224,6 +224,7 @@
kwdef_keyword( "switch", T_SWITCH),
kwdef_token( "__symbolrename", T_SYMBOLRENAME, 0,0,0,0,1),
kwdef_gcc_attr( "syslog", T_AT_FORMAT_SYSLOG),
+ kwdef_gcc_attr( "target", T_AT_TARGET),
kwdef_tqual( "__thread", THREAD, 0,0,1,0,1),
kwdef_tqual( "_Thread_local", THREAD, 0,1,0,0,1),
kwdef_gcc_attr( "tls_model", T_AT_TLS_MODEL),
Home |
Main Index |
Thread Index |
Old Index