From 4c4e4fd61b42c41ce8a25488d3d4678366a7d050 Mon Sep 17 00:00:00 2001 From: Benjamin Kosnik Date: Fri, 5 Feb 1999 11:46:14 +0000 Subject: [PATCH] c-common.c (decl_attributes): Fix reserved space for init_priority. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit � Fri Feb 5 11:49:49 1999 Benjamin Kosnik * c-common.c (decl_attributes): Fix reserved space for init_priority. * tree.h (MAX_RESERVED_INIT_PRIORITY): New macro. From-SVN: r25046 --- gcc/c-common.c | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/gcc/c-common.c b/gcc/c-common.c index ca7bb006c6c..f78d5240446 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -945,24 +945,18 @@ decl_attributes (node, attributes, prefix_attributes) continue; } - /* Check for init_priorities that are reserved for - implementation. Reserved for language and runtime - support implementations.*/ - if ((10 <= pri && pri <= 99) - /* Reserved for standard library implementations. */ - || (500 <= pri && pri <= 999) - /* Reserved for objects with no attributes. */ - || pri > (MAX_INIT_PRIORITY - 50)) + if (pri > MAX_INIT_PRIORITY || pri <= 0) { - warning - ("requested init_priority is reserved for internal use"); + error ("requested init_priority is out of range"); continue; } - if (pri > MAX_INIT_PRIORITY || pri <= 0) + /* Check for init_priorities that are reserved for + language and runtime support implementations.*/ + if (pri <= MAX_RESERVED_INIT_PRIORITY) { - error ("requested init_priority is out of range"); - continue; + warning + ("requested init_priority is reserved for internal use"); } static_aggregates_initp -- 2.30.2