Module Name: src
Committed By: christos
Date: Thu Apr 29 17:11:30 UTC 2021
Modified Files:
src/usr.bin/xlint/lint1: cgram.y
Log Message:
Add constructor and destructor attribute priorities
To generate a diff of this commit:
cvs rdiff -u -r1.221 -r1.222 src/usr.bin/xlint/lint1/cgram.y
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.221 src/usr.bin/xlint/lint1/cgram.y:1.222
--- src/usr.bin/xlint/lint1/cgram.y:1.221 Fri Apr 23 16:26:43 2021
+++ src/usr.bin/xlint/lint1/cgram.y Thu Apr 29 13:11:30 2021
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: cgram.y,v 1.221 2021/04/23 20:26:43 rillig Exp $ */
+/* $NetBSD: cgram.y,v 1.222 2021/04/29 17:11:30 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.221 2021/04/23 20:26:43 rillig Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.222 2021/04/29 17:11:30 christos Exp $");
#endif
#include <limits.h>
@@ -570,7 +570,9 @@ type_attribute_spec:
| T_AT_SECTION T_LPAREN string T_RPAREN
| T_AT_TLS_MODEL T_LPAREN string T_RPAREN
| T_AT_ALIGNED
+ | T_AT_CONSTRUCTOR T_LPAREN constant_expr T_RPAREN
| T_AT_CONSTRUCTOR
+ | T_AT_DESTRUCTOR T_LPAREN constant_expr T_RPAREN
| T_AT_DESTRUCTOR
| T_AT_MALLOC
| T_AT_MAY_ALIAS