Module Name: src
Committed By: christos
Date: Sat Jan 7 18:28:49 UTC 2017
Modified Files:
src/usr.bin/xlint/lint1: cgram.y scan.l
Log Message:
add pcs
To generate a diff of this commit:
cvs rdiff -u -r1.91 -r1.92 src/usr.bin/xlint/lint1/cgram.y
cvs rdiff -u -r1.76 -r1.77 src/usr.bin/xlint/lint1/scan.l
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/xlint/lint1/cgram.y
diff -u src/usr.bin/xlint/lint1/cgram.y:1.91 src/usr.bin/xlint/lint1/cgram.y:1.92
--- src/usr.bin/xlint/lint1/cgram.y:1.91 Fri Dec 30 14:53:08 2016
+++ src/usr.bin/xlint/lint1/cgram.y Sat Jan 7 13:28:49 2017
@@ -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 @@ anonymize(sym_t *s)
%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 @@ type_attribute_spec:
| 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
Index: src/usr.bin/xlint/lint1/scan.l
diff -u src/usr.bin/xlint/lint1/scan.l:1.76 src/usr.bin/xlint/lint1/scan.l:1.77
--- src/usr.bin/xlint/lint1/scan.l:1.76 Fri Dec 30 14:53:08 2016
+++ src/usr.bin/xlint/lint1/scan.l Sat Jan 7 13:28:49 2017
@@ -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 @@ static struct kwtab {
{ "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 },