Commit 4c4e4fd6 by Benjamin Kosnik

c-common.c (decl_attributes): Fix reserved space for init_priority.

�
Fri Feb  5 11:49:49 1999  Benjamin Kosnik  <bkoz@loony.cygnus.com>
	* c-common.c (decl_attributes): Fix reserved space for init_priority.
	* tree.h (MAX_RESERVED_INIT_PRIORITY): New macro.

From-SVN: r25046
parent aa33de95
...@@ -945,24 +945,18 @@ decl_attributes (node, attributes, prefix_attributes) ...@@ -945,24 +945,18 @@ decl_attributes (node, attributes, prefix_attributes)
continue; continue;
} }
/* Check for init_priorities that are reserved for if (pri > MAX_INIT_PRIORITY || pri <= 0)
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))
{ {
warning error ("requested init_priority is out of range");
("requested init_priority is reserved for internal use");
continue; 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"); warning
continue; ("requested init_priority is reserved for internal use");
} }
static_aggregates_initp static_aggregates_initp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment