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 pcs
details: https://anonhg.NetBSD.org/src/rev/488121ebb3f5
branches: trunk
changeset: 350204:488121ebb3f5
user: christos <christos%NetBSD.org@localhost>
date: Sat Jan 07 18:28:49 2017 +0000
description:
add pcs
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 a5fb47553185 -r 488121ebb3f5 usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y Sat Jan 07 17:29:24 2017 +0000
+++ b/usr.bin/xlint/lint1/cgram.y Sat Jan 07 18:28:49 2017 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: cgram.y,v 1.91 2016/12/30 19:53:08 christos Exp $ */
+/* $NetBSD: cgram.y,v 1.92 2017/01/07 18:28:49 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.91 2016/12/30 19:53:08 christos Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.92 2017/01/07 18:28:49 christos Exp $");
#endif
#include <stdlib.h>
@@ -220,6 +220,7 @@
%token <y_type> T_AT_NORETURN
%token <y_type> T_AT_NO_INSTRUMENT_FUNCTION
%token <y_type> T_AT_PACKED
+%token <y_type> T_AT_PCS
%token <y_type> T_AT_PURE
%token <y_type> T_AT_RETURNS_TWICE
%token <y_type> T_AT_SECTION
@@ -528,6 +529,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_PCS T_LPARN string T_RPARN
| T_AT_SECTION T_LPARN string T_RPARN
| T_AT_ALIGNED
| T_AT_CONSTRUCTOR
diff -r a5fb47553185 -r 488121ebb3f5 usr.bin/xlint/lint1/scan.l
--- a/usr.bin/xlint/lint1/scan.l Sat Jan 07 17:29:24 2017 +0000
+++ b/usr.bin/xlint/lint1/scan.l Sat Jan 07 18:28:49 2017 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: scan.l,v 1.76 2016/12/30 19:53:08 christos Exp $ */
+/* $NetBSD: scan.l,v 1.77 2017/01/07 18:28:49 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.76 2016/12/30 19:53:08 christos Exp $");
+__RCSID("$NetBSD: scan.l,v 1.77 2017/01/07 18:28:49 christos Exp $");
#endif
#include <stdlib.h>
@@ -252,6 +252,7 @@
{ "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 },
+ { "pcs", T_AT_PCS, 0, 0, 0, 0,0,0,0,5 },
{ "printf", T_AT_FORMAT_PRINTF,0, 0, 0, 0,0,1,1,5 },
{ "pure", T_AT_PURE, 0, 0, 0, 0,0,1,1,5 },
{ "real", T_REAL, 0, 0, 0, 0,1,0,0,4 },
Home |
Main Index |
Thread Index |
Old Index