Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint/xlint lint: C99 has been released, so refer to...
details: https://anonhg.NetBSD.org/src/rev/a6a77f1b80d6
branches: trunk
changeset: 362052:a6a77f1b80d6
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Feb 27 11:40:29 2022 +0000
description:
lint: C99 has been released, so refer to it by its proper name
diffstat:
tests/usr.bin/xlint/lint1/d_c9x_recursive_init.c | 4 ++--
tests/usr.bin/xlint/lint1/decl_struct_c90.c | 4 ++--
tests/usr.bin/xlint/lint1/decl_struct_c90.exp | 2 +-
tests/usr.bin/xlint/lint1/init_c90.c | 10 +++++-----
tests/usr.bin/xlint/lint1/init_c90.exp | 8 ++++----
tests/usr.bin/xlint/lint1/msg_047.c | 4 ++--
tests/usr.bin/xlint/lint1/msg_049.c | 6 +++---
tests/usr.bin/xlint/lint1/msg_049.exp | 2 +-
tests/usr.bin/xlint/lint1/msg_313.c | 4 ++--
tests/usr.bin/xlint/lint1/msg_317.c | 4 ++--
tests/usr.bin/xlint/lint1/msg_319.c | 4 ++--
tests/usr.bin/xlint/lint1/msg_321.c | 4 ++--
usr.bin/xlint/lint1/cgram.y | 10 +++++-----
usr.bin/xlint/lint1/decl.c | 6 +++---
usr.bin/xlint/lint1/err.c | 16 ++++++++--------
usr.bin/xlint/lint1/main1.c | 6 +++---
usr.bin/xlint/lint1/tree.c | 6 +++---
usr.bin/xlint/xlint/lint.1 | 4 ++--
18 files changed, 52 insertions(+), 52 deletions(-)
diffs (truncated from 368 to 300 lines):
diff -r 68434ba874c3 -r a6a77f1b80d6 tests/usr.bin/xlint/lint1/d_c9x_recursive_init.c
--- a/tests/usr.bin/xlint/lint1/d_c9x_recursive_init.c Sun Feb 27 11:14:42 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c9x_recursive_init.c Sun Feb 27 11:40:29 2022 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: d_c9x_recursive_init.c,v 1.3 2021/02/20 22:31:20 rillig Exp $ */
+/* $NetBSD: d_c9x_recursive_init.c,v 1.4 2022/02/27 11:40:30 rillig Exp $ */
# 3 "d_c9x_recursive_init.c"
-/* C9X struct/union member init, with nested union and trailing member */
+/* C99 struct/union member init, with nested union and trailing member */
union node {
void *next;
char *data;
diff -r 68434ba874c3 -r a6a77f1b80d6 tests/usr.bin/xlint/lint1/decl_struct_c90.c
--- a/tests/usr.bin/xlint/lint1/decl_struct_c90.c Sun Feb 27 11:14:42 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/decl_struct_c90.c Sun Feb 27 11:40:29 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: decl_struct_c90.c,v 1.3 2021/07/15 21:00:05 rillig Exp $ */
+/* $NetBSD: decl_struct_c90.c,v 1.4 2022/02/27 11:40:30 rillig Exp $ */
# 3 "decl_struct_c90.c"
/*
@@ -14,7 +14,7 @@
void *b_value;
void (*c_value)(void);
};
- /* expect-1: warning: anonymous struct/union members is a C9X feature [49] */
+ /* expect-1: warning: anonymous struct/union members is a C11 feature [49] */
};
/*
diff -r 68434ba874c3 -r a6a77f1b80d6 tests/usr.bin/xlint/lint1/decl_struct_c90.exp
--- a/tests/usr.bin/xlint/lint1/decl_struct_c90.exp Sun Feb 27 11:14:42 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/decl_struct_c90.exp Sun Feb 27 11:40:29 2022 +0000
@@ -1,3 +1,3 @@
-decl_struct_c90.c(16): warning: anonymous struct/union members is a C9X feature [49]
+decl_struct_c90.c(16): warning: anonymous struct/union members is a C11 feature [49]
decl_struct_c90.c(29): error: syntax error '}' [249]
decl_struct_c90.c(32): error: cannot recover from previous errors [224]
diff -r 68434ba874c3 -r a6a77f1b80d6 tests/usr.bin/xlint/lint1/init_c90.c
--- a/tests/usr.bin/xlint/lint1/init_c90.c Sun Feb 27 11:14:42 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/init_c90.c Sun Feb 27 11:40:29 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: init_c90.c,v 1.2 2021/07/14 20:39:13 rillig Exp $ */
+/* $NetBSD: init_c90.c,v 1.3 2022/02/27 11:40:30 rillig Exp $ */
# 3 "init_c90.c"
/*
@@ -14,17 +14,17 @@
};
struct point point_c90 = { 0, 0 };
-/* expect+2: warning: struct or union member name in initializer is a C9X feature [313] */
-/* expect+1: warning: struct or union member name in initializer is a C9X feature [313] */
+/* expect+2: warning: struct or union member name in initializer is a C99 feature [313] */
+/* expect+1: warning: struct or union member name in initializer is a C99 feature [313] */
struct point point_c99 = { .x = 0, .y = 0 };
struct point points_c90[] = {{ 0, 0 }};
-/* expect+1: warning: array initializer with designators is a C9X feature [321] */
+/* expect+1: warning: array initializer with designators is a C99 feature [321] */
struct point points_c99[] = {[3] = { 0, 0 }};
struct point
compound_literal(void) {
- /* expect+1: compound literals are a C9X/GCC extension [319] */
+ /* expect+1: compound literals are a C99/GCC extension [319] */
return (struct point){ 0, 0 };
}
diff -r 68434ba874c3 -r a6a77f1b80d6 tests/usr.bin/xlint/lint1/init_c90.exp
--- a/tests/usr.bin/xlint/lint1/init_c90.exp Sun Feb 27 11:14:42 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/init_c90.exp Sun Feb 27 11:40:29 2022 +0000
@@ -1,4 +1,4 @@
-init_c90.c(19): warning: struct or union member name in initializer is a C9X feature [313]
-init_c90.c(19): warning: struct or union member name in initializer is a C9X feature [313]
-init_c90.c(23): warning: array initializer with designators is a C9X feature [321]
-init_c90.c(29): error: compound literals are a C9X/GCC extension [319]
+init_c90.c(19): warning: struct or union member name in initializer is a C99 feature [313]
+init_c90.c(19): warning: struct or union member name in initializer is a C99 feature [313]
+init_c90.c(23): warning: array initializer with designators is a C99 feature [321]
+init_c90.c(29): error: compound literals are a C99/GCC extension [319]
diff -r 68434ba874c3 -r a6a77f1b80d6 tests/usr.bin/xlint/lint1/msg_047.c
--- a/tests/usr.bin/xlint/lint1/msg_047.c Sun Feb 27 11:14:42 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_047.c Sun Feb 27 11:40:29 2022 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: msg_047.c,v 1.2 2021/02/21 09:07:58 rillig Exp $ */
+/* $NetBSD: msg_047.c,v 1.3 2022/02/27 11:40:30 rillig Exp $ */
# 3 "msg_047.c"
-// Test for message: zero sized %s is a C9X feature [47]
+// Test for message: zero sized %s is a C99 feature [47]
TODO: "Add example code that triggers the above message." /* expect: 249 */
TODO: "Add example code that almost triggers the above message."
diff -r 68434ba874c3 -r a6a77f1b80d6 tests/usr.bin/xlint/lint1/msg_049.c
--- a/tests/usr.bin/xlint/lint1/msg_049.c Sun Feb 27 11:14:42 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_049.c Sun Feb 27 11:40:29 2022 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: msg_049.c,v 1.3 2021/08/27 20:16:50 rillig Exp $ */
+/* $NetBSD: msg_049.c,v 1.4 2022/02/27 11:40:30 rillig Exp $ */
# 3 "msg_049.c"
-/* Test for message: anonymous struct/union members is a C9X feature [49] */
+/* Test for message: anonymous struct/union members is a C11 feature [49] */
/* lint1-flags: -sw */
@@ -23,5 +23,5 @@
int int_value;
void *pointer_value;
};
- /* expect-1: warning: anonymous struct/union members is a C9X feature [49] */
+ /* expect-1: warning: anonymous struct/union members is a C11 feature [49] */
} s;
diff -r 68434ba874c3 -r a6a77f1b80d6 tests/usr.bin/xlint/lint1/msg_049.exp
--- a/tests/usr.bin/xlint/lint1/msg_049.exp Sun Feb 27 11:14:42 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_049.exp Sun Feb 27 11:40:29 2022 +0000
@@ -1,1 +1,1 @@
-msg_049.c(25): warning: anonymous struct/union members is a C9X feature [49]
+msg_049.c(25): warning: anonymous struct/union members is a C11 feature [49]
diff -r 68434ba874c3 -r a6a77f1b80d6 tests/usr.bin/xlint/lint1/msg_313.c
--- a/tests/usr.bin/xlint/lint1/msg_313.c Sun Feb 27 11:14:42 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_313.c Sun Feb 27 11:40:29 2022 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: msg_313.c,v 1.2 2021/02/21 09:07:58 rillig Exp $ */
+/* $NetBSD: msg_313.c,v 1.3 2022/02/27 11:40:30 rillig Exp $ */
# 3 "msg_313.c"
-// Test for message: struct or union member name in initializer is a C9X feature [313]
+// Test for message: struct or union member name in initializer is a C99 feature [313]
TODO: "Add example code that triggers the above message." /* expect: 249 */
TODO: "Add example code that almost triggers the above message."
diff -r 68434ba874c3 -r a6a77f1b80d6 tests/usr.bin/xlint/lint1/msg_317.c
--- a/tests/usr.bin/xlint/lint1/msg_317.c Sun Feb 27 11:14:42 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_317.c Sun Feb 27 11:40:29 2022 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: msg_317.c,v 1.2 2021/02/21 09:07:58 rillig Exp $ */
+/* $NetBSD: msg_317.c,v 1.3 2022/02/27 11:40:30 rillig Exp $ */
# 3 "msg_317.c"
-// Test for message: __func__ is a C9X feature [317]
+// Test for message: __func__ is a C99 feature [317]
TODO: "Add example code that triggers the above message." /* expect: 249 */
TODO: "Add example code that almost triggers the above message."
diff -r 68434ba874c3 -r a6a77f1b80d6 tests/usr.bin/xlint/lint1/msg_319.c
--- a/tests/usr.bin/xlint/lint1/msg_319.c Sun Feb 27 11:14:42 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_319.c Sun Feb 27 11:40:29 2022 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: msg_319.c,v 1.2 2021/02/21 09:07:58 rillig Exp $ */
+/* $NetBSD: msg_319.c,v 1.3 2022/02/27 11:40:30 rillig Exp $ */
# 3 "msg_319.c"
-// Test for message: compound literals are a C9X/GCC extension [319]
+// Test for message: compound literals are a C99/GCC extension [319]
TODO: "Add example code that triggers the above message." /* expect: 249 */
TODO: "Add example code that almost triggers the above message."
diff -r 68434ba874c3 -r a6a77f1b80d6 tests/usr.bin/xlint/lint1/msg_321.c
--- a/tests/usr.bin/xlint/lint1/msg_321.c Sun Feb 27 11:14:42 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_321.c Sun Feb 27 11:40:29 2022 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: msg_321.c,v 1.2 2021/02/21 09:07:58 rillig Exp $ */
+/* $NetBSD: msg_321.c,v 1.3 2022/02/27 11:40:30 rillig Exp $ */
# 3 "msg_321.c"
-// Test for message: array initializer with designators is a C9X feature [321]
+// Test for message: array initializer with designators is a C99 feature [321]
TODO: "Add example code that triggers the above message." /* expect: 249 */
TODO: "Add example code that almost triggers the above message."
diff -r 68434ba874c3 -r a6a77f1b80d6 usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y Sun Feb 27 11:14:42 2022 +0000
+++ b/usr.bin/xlint/lint1/cgram.y Sun Feb 27 11:40:29 2022 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: cgram.y,v 1.384 2022/02/27 11:14:42 rillig Exp $ */
+/* $NetBSD: cgram.y,v 1.385 2022/02/27 11:40:29 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.384 2022/02/27 11:14:42 rillig Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.385 2022/02/27 11:40:29 rillig Exp $");
#endif
#include <limits.h>
@@ -512,7 +512,7 @@
cgram_declare(tmp, true, NULL);
} init_lbrace initializer_list comma_opt init_rbrace {
if (!Sflag)
- /* compound literals are a C9X/GCC extension */
+ /* compound literals are a C99/GCC extension */
gnuism(319);
$$ = build_name(*current_initsym(), false);
end_initialization();
@@ -990,7 +990,7 @@
T_SEMI {
symtyp = FVFT;
if (!Sflag)
- /* anonymous struct/union members is a C9X feature */
+ /* anonymous struct/union members is a C11 feature */
warning(49);
if (is_struct_or_union(dcs->d_type->t_tspec)) {
$$ = dcs->d_type->t_str->sou_first_member;
@@ -1581,7 +1581,7 @@
T_LBRACK range T_RBRACK {
add_designator_subscript($2);
if (!Sflag)
- /* array initializer with designators is a C9X ... */
+ /* array initializer with designators is a C99 ... */
warning(321);
}
| T_POINT identifier {
diff -r 68434ba874c3 -r a6a77f1b80d6 usr.bin/xlint/lint1/decl.c
--- a/usr.bin/xlint/lint1/decl.c Sun Feb 27 11:14:42 2022 +0000
+++ b/usr.bin/xlint/lint1/decl.c Sun Feb 27 11:40:29 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: decl.c,v 1.249 2022/02/27 11:14:42 rillig Exp $ */
+/* $NetBSD: decl.c,v 1.250 2022/02/27 11:40:29 rillig 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: decl.c,v 1.249 2022/02/27 11:14:42 rillig Exp $");
+__RCSID("$NetBSD: decl.c,v 1.250 2022/02/27 11:40:29 rillig Exp $");
#endif
#include <sys/param.h>
@@ -1803,7 +1803,7 @@
sp->sou_size_in_bits = dcs->d_offset;
if (sp->sou_size_in_bits == 0) {
- /* zero sized %s is a C9X feature */
+ /* zero sized %s is a C99 feature */
c99ism(47, ttab[t].tt_name);
}
diff -r 68434ba874c3 -r a6a77f1b80d6 usr.bin/xlint/lint1/err.c
--- a/usr.bin/xlint/lint1/err.c Sun Feb 27 11:14:42 2022 +0000
+++ b/usr.bin/xlint/lint1/err.c Sun Feb 27 11:40:29 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: err.c,v 1.152 2022/02/07 02:44:49 rillig Exp $ */
+/* $NetBSD: err.c,v 1.153 2022/02/27 11:40:29 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.152 2022/02/07 02:44:49 rillig Exp $");
+__RCSID("$NetBSD: err.c,v 1.153 2022/02/27 11:40:29 rillig Exp $");
#endif
#include <sys/types.h>
@@ -101,9 +101,9 @@
"declaration introduces new type in ANSI C: %s %s", /* 44 */
"base type is really '%s %s'", /* 45 */
"%s tag '%s' redeclared as %s", /* 46 */
- "zero sized %s is a C9X feature", /* 47 */
+ "zero sized %s is a C99 feature", /* 47 */
"overflow in enumeration values: %s", /* 48 */
- "anonymous struct/union members is a C9X feature", /* 49 */
+ "anonymous struct/union members is a C11 feature", /* 49 */
"a function is declared as an argument: %s", /* 50 */
"parameter mismatch: %d declared, %d defined", /* 51 */
"cannot initialize parameter: %s", /* 52 */
@@ -367,15 +367,15 @@
"symbol renaming can't be used on function arguments", /* 310 */
"symbol renaming can't be used on automatic variables", /* 311 */
"%s does not support // comments", /* 312 */
- "struct or union member name in initializer is a C9X feature",/* 313 */
+ "struct or union member name in initializer is a C99 feature",/* 313 */
"%s is not a structure or a union", /* 314 */
"GCC style struct or union member name in initializer", /* 315 */
"__FUNCTION__/__PRETTY_FUNCTION__ is a GCC extension", /* 316 */
- "__func__ is a C9X feature", /* 317 */
+ "__func__ is a C99 feature", /* 317 */
"variable array dimension is a C99/GCC extension", /* 318 */
- "compound literals are a C9X/GCC extension", /* 319 */
+ "compound literals are a C99/GCC extension", /* 319 */
"({ }) is a GCC extension", /* 320 */
- "array initializer with designators is a C9X feature", /* 321 */
+ "array initializer with designators is a C99 feature", /* 321 */
"zero sized array is a C99 extension", /* 322 */
"continue in 'do ... while (0)' loop", /* 323 */
"suggest cast from '%s' to '%s' on op %s to avoid overflow", /* 324 */
diff -r 68434ba874c3 -r a6a77f1b80d6 usr.bin/xlint/lint1/main1.c
--- a/usr.bin/xlint/lint1/main1.c Sun Feb 27 11:14:42 2022 +0000
+++ b/usr.bin/xlint/lint1/main1.c Sun Feb 27 11:40:29 2022 +0000
@@ -1,4 +1,4 @@
Home |
Main Index |
Thread Index |
Old Index