Module Name:    src
Committed By:   christos
Date:           Mon Jan 15 21:58:55 UTC 2018

Modified Files:
        src/usr.bin/xlint/lint1: cgram.y scan.l

Log Message:
Add a _Noreturn token


To generate a diff of this commit:
cvs rdiff -u -r1.94 -r1.95 src/usr.bin/xlint/lint1/cgram.y
cvs rdiff -u -r1.79 -r1.80 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.94 src/usr.bin/xlint/lint1/cgram.y:1.95
--- src/usr.bin/xlint/lint1/cgram.y:1.94	Mon Mar  6 16:01:39 2017
+++ src/usr.bin/xlint/lint1/cgram.y	Mon Jan 15 16:58:54 2018
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: cgram.y,v 1.94 2017/03/06 21:01:39 christos Exp $ */
+/* $NetBSD: cgram.y,v 1.95 2018/01/15 21:58:54 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.94 2017/03/06 21:01:39 christos Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.95 2018/01/15 21:58:54 christos Exp $");
 #endif
 
 #include <stdlib.h>
@@ -117,7 +117,7 @@ anonymize(sym_t *s)
 }
 %}
 
-%expect 107
+%expect 138
 
 %union {
 	int	y_int;
@@ -165,6 +165,7 @@ anonymize(sym_t *s)
 %token			T_REAL
 %token			T_IMAG
 %token			T_GENERIC
+%token			T_NORETURN
 
 /* storage classes (extern, static, auto, register and typedef) */
 %token	<y_scl>		T_SCLASS
@@ -576,6 +577,8 @@ type_attribute:
 	| T_PACKED {
 		addpacked();
 	}
+	| T_NORETURN {
+	}
 	;
 
 type_attribute_list:

Index: src/usr.bin/xlint/lint1/scan.l
diff -u src/usr.bin/xlint/lint1/scan.l:1.79 src/usr.bin/xlint/lint1/scan.l:1.80
--- src/usr.bin/xlint/lint1/scan.l:1.79	Mon Mar  6 16:01:39 2017
+++ src/usr.bin/xlint/lint1/scan.l	Mon Jan 15 16:58:54 2018
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: scan.l,v 1.79 2017/03/06 21:01:39 christos Exp $ */
+/* $NetBSD: scan.l,v 1.80 2018/01/15 21:58:54 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.79 2017/03/06 21:01:39 christos Exp $");
+__RCSID("$NetBSD: scan.l,v 1.80 2018/01/15 21:58:54 christos Exp $");
 #endif
 
 #include <stdlib.h>
@@ -208,6 +208,7 @@ static	struct	kwtab {
 	{ "_Bool",	T_TYPE,		0,	BOOL,	0,	  0,1,0,0,1 },
 	{ "_Complex",	T_TYPE,		0,	COMPLEX,0,	  0,1,0,0,1 },
 	{ "_Generic",	T_GENERIC,	0,	0,	0,	  0,1,0,0,1 },
+	{ "_Noreturn",	T_NORETURN,	0,	0,	0,	  0,1,0,0,1 },
 	{ "alias",	T_AT_ALIAS,	0,	0,	0,	  0,0,1,1,5 },
 	{ "aligned",	T_AT_ALIGNED,	0,	0,	0,	  0,0,1,1,5 },
 	{ "alignof",	T_ALIGNOF,	0,	0,	0,	  0,0,0,0,4 },

Reply via email to