Module Name: src
Committed By: rillig
Date: Mon Jul 5 19:53:43 UTC 2021
Modified Files:
src/tests/usr.bin/xlint/lint1: msg_340.c msg_340.exp
src/usr.bin/xlint/lint1: cgram.y err.c
Log Message:
lint: rename message 340 to talk about "GCC extension", not "GNU"
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/xlint/lint1/msg_340.c
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/msg_340.exp
cvs rdiff -u -r1.250 -r1.251 src/usr.bin/xlint/lint1/cgram.y
cvs rdiff -u -r1.125 -r1.126 src/usr.bin/xlint/lint1/err.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/usr.bin/xlint/lint1/msg_340.c
diff -u src/tests/usr.bin/xlint/lint1/msg_340.c:1.1 src/tests/usr.bin/xlint/lint1/msg_340.c:1.2
--- src/tests/usr.bin/xlint/lint1/msg_340.c:1.1 Sun Mar 7 19:42:54 2021
+++ src/tests/usr.bin/xlint/lint1/msg_340.c Mon Jul 5 19:53:43 2021
@@ -1,10 +1,10 @@
-/* $NetBSD: msg_340.c,v 1.1 2021/03/07 19:42:54 rillig Exp $ */
+/* $NetBSD: msg_340.c,v 1.2 2021/07/05 19:53:43 rillig Exp $ */
# 3 "msg_340.c"
-// Test for message: initialization with '[a...b]' is a GNU extension [340]
+// Test for message: initialization with '[a...b]' is a GCC extension [340]
/*
- * In strict C mode, GNU extensions are flagged as such.
+ * In strict C mode, GCC extensions are flagged as such.
*/
/* lint1-flags: -Ssw */
Index: src/tests/usr.bin/xlint/lint1/msg_340.exp
diff -u src/tests/usr.bin/xlint/lint1/msg_340.exp:1.2 src/tests/usr.bin/xlint/lint1/msg_340.exp:1.3
--- src/tests/usr.bin/xlint/lint1/msg_340.exp:1.2 Sun Mar 21 20:45:00 2021
+++ src/tests/usr.bin/xlint/lint1/msg_340.exp Mon Jul 5 19:53:43 2021
@@ -1 +1 @@
-msg_340.c(16): error: initialization with '[a...b]' is a GNU extension [340]
+msg_340.c(16): error: initialization with '[a...b]' is a GCC extension [340]
Index: src/usr.bin/xlint/lint1/cgram.y
diff -u src/usr.bin/xlint/lint1/cgram.y:1.250 src/usr.bin/xlint/lint1/cgram.y:1.251
--- src/usr.bin/xlint/lint1/cgram.y:1.250 Mon Jul 5 19:48:32 2021
+++ src/usr.bin/xlint/lint1/cgram.y Mon Jul 5 19:53:43 2021
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: cgram.y,v 1.250 2021/07/05 19:48:32 rillig Exp $ */
+/* $NetBSD: cgram.y,v 1.251 2021/07/05 19:53:43 rillig 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.250 2021/07/05 19:48:32 rillig Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.251 2021/07/05 19:53:43 rillig Exp $");
#endif
#include <limits.h>
@@ -1405,7 +1405,7 @@ range:
| constant_expr T_ELLIPSIS constant_expr {
$$.lo = to_int_constant($1, true);
$$.hi = to_int_constant($3, true);
- /* initialization with '[a...b]' is a GNU extension */
+ /* initialization with '[a...b]' is a GCC extension */
gnuism(340);
}
;
Index: src/usr.bin/xlint/lint1/err.c
diff -u src/usr.bin/xlint/lint1/err.c:1.125 src/usr.bin/xlint/lint1/err.c:1.126
--- src/usr.bin/xlint/lint1/err.c:1.125 Sun Jul 4 17:01:58 2021
+++ src/usr.bin/xlint/lint1/err.c Mon Jul 5 19:53:43 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: err.c,v 1.125 2021/07/04 17:01:58 rillig Exp $ */
+/* $NetBSD: err.c,v 1.126 2021/07/05 19:53:43 rillig Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: err.c,v 1.125 2021/07/04 17:01:58 rillig Exp $");
+__RCSID("$NetBSD: err.c,v 1.126 2021/07/05 19:53:43 rillig Exp $");
#endif
#include <sys/types.h>
@@ -394,7 +394,7 @@ const char *const msgs[] = {
"right operand of '%s' must not be bool", /* 337 */
"option '%c' should be handled in the switch", /* 338 */
"option '%c' should be listed in the options string", /* 339 */
- "initialization with '[a...b]' is a GNU extension", /* 340 */
+ "initialization with '[a...b]' is a GCC extension", /* 340 */
"argument to '%s' must be 'unsigned char' or EOF, not '%s'", /* 341 */
"argument to '%s' must be cast to 'unsigned char', not to '%s'", /* 342 */
"static array size is a C11 extension", /* 343 */