aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/sol2-c.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/sol2-c.c')
-rw-r--r--gcc/config/sol2-c.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/sol2-c.c b/gcc/config/sol2-c.c
index ee017ebbd46..17628a03ffa 100644
--- a/gcc/config/sol2-c.c
+++ b/gcc/config/sol2-c.c
@@ -113,7 +113,7 @@ solaris_pragma_align (cpp_reader *pfile ATTRIBUTE_UNUSED)
while (1)
{
tree decl = identifier_global_value (t);
- if (decl && TREE_CODE_CLASS (TREE_CODE (decl)) == 'd')
+ if (decl && DECL_P (decl))
warning ("%<#pragma align%> must appear before the declaration of "
"%D, ignoring", decl);
else
@@ -168,7 +168,7 @@ solaris_pragma_init (cpp_reader *pfile ATTRIBUTE_UNUSED)
while (1)
{
tree decl = identifier_global_value (t);
- if (decl && TREE_CODE_CLASS (TREE_CODE (decl)) == 'd')
+ if (decl && DECL_P (decl))
{
tree init_list = build_tree_list (get_identifier ("init"),
NULL);
@@ -226,7 +226,7 @@ solaris_pragma_fini (cpp_reader *pfile ATTRIBUTE_UNUSED)
while (1)
{
tree decl = identifier_global_value (t);
- if (decl && TREE_CODE_CLASS (TREE_CODE (decl)) == 'd')
+ if (decl && DECL_P (decl))
{
tree fini_list = build_tree_list (get_identifier ("fini"),
NULL);