diff options
author | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-02-05 11:46:14 +0000 |
---|---|---|
committer | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-02-05 11:46:14 +0000 |
commit | 513c6ee0524ca362fe20726508af67a128b31fc7 (patch) | |
tree | a27ede9232aa8f1571d87a87fbbffcb9c15a4adc /gcc/c-common.c | |
parent | 1315db23efb2ac613fcfe1b8288c9b6aad6d8841 (diff) | |
download | gcc-513c6ee0524ca362fe20726508af67a128b31fc7.tar.gz |
�
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25046 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 20 |
1 files 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 |