Commit 91c82473 by Nick Clifton Committed by Nick Clifton

symbian.c: Replace uses of DECL_INLINE with DECL_DECLARED_INLINE_P.

        * config/sh/symbian.c: Replace uses of DECL_INLINE with
        DECL_DECLARED_INLINE_P.

From-SVN: r143205
parent 0a49e5c2
2009-01-09 Nick Clifton <nickc@redhat.com>
* config/sh/symbian.c: Replace uses of DECL_INLINE with
DECL_DECLARED_INLINE_P.
2009-01-09 Jakub Jelinek <jakub@redhat.com> 2009-01-09 Jakub Jelinek <jakub@redhat.com>
PR middle-end/38347 PR middle-end/38347
......
...@@ -139,7 +139,7 @@ sh_symbian_dllimport_p (tree decl) ...@@ -139,7 +139,7 @@ sh_symbian_dllimport_p (tree decl)
earlier declaration. */ earlier declaration. */
if (TREE_CODE (decl) == FUNCTION_DECL if (TREE_CODE (decl) == FUNCTION_DECL
&& DECL_INITIAL (decl) && DECL_INITIAL (decl)
&& !DECL_INLINE (decl)) && ! DECL_DECLARED_INLINE_P (decl))
{ {
/* Don't warn about artificial methods. */ /* Don't warn about artificial methods. */
if (!DECL_ARTIFICIAL (decl)) if (!DECL_ARTIFICIAL (decl))
...@@ -152,7 +152,7 @@ sh_symbian_dllimport_p (tree decl) ...@@ -152,7 +152,7 @@ sh_symbian_dllimport_p (tree decl)
/* We ignore the dllimport attribute for inline member functions. /* We ignore the dllimport attribute for inline member functions.
This differs from MSVC behavior which treats it like GNUC This differs from MSVC behavior which treats it like GNUC
'extern inline' extension. */ 'extern inline' extension. */
else if (TREE_CODE (decl) == FUNCTION_DECL && DECL_INLINE (decl)) else if (TREE_CODE (decl) == FUNCTION_DECL && DECL_DECLARED_INLINE_P (decl))
{ {
if (extra_warnings) if (extra_warnings)
warning (OPT_Wattributes, "inline function %q+D is declared as " warning (OPT_Wattributes, "inline function %q+D is declared as "
...@@ -580,7 +580,7 @@ symbian_possibly_export_base_class (tree base_class) ...@@ -580,7 +580,7 @@ symbian_possibly_export_base_class (tree base_class)
if (DECL_PURE_VIRTUAL_P (member)) if (DECL_PURE_VIRTUAL_P (member))
continue; continue;
if (DECL_INLINE (member)) if (DECL_DECLARED_INLINE_P (member))
continue; continue;
break; break;
...@@ -671,7 +671,7 @@ symbian_export_vtable_and_rtti_p (tree ctype) ...@@ -671,7 +671,7 @@ symbian_export_vtable_and_rtti_p (tree ctype)
if (DECL_CONSTRUCTOR_P (member) || DECL_DESTRUCTOR_P (member)) if (DECL_CONSTRUCTOR_P (member) || DECL_DESTRUCTOR_P (member))
{ {
if (DECL_INLINE (member) if (DECL_DECLARED_INLINE_P (member)
/* Ignore C++ backend created inline ctors/dtors. */ /* Ignore C++ backend created inline ctors/dtors. */
&& ( DECL_MAYBE_IN_CHARGE_CONSTRUCTOR_P (member) && ( DECL_MAYBE_IN_CHARGE_CONSTRUCTOR_P (member)
|| DECL_MAYBE_IN_CHARGE_DESTRUCTOR_P (member))) || DECL_MAYBE_IN_CHARGE_DESTRUCTOR_P (member)))
...@@ -688,7 +688,7 @@ symbian_export_vtable_and_rtti_p (tree ctype) ...@@ -688,7 +688,7 @@ symbian_export_vtable_and_rtti_p (tree ctype)
if (! DECL_VIRTUAL_P (member)) if (! DECL_VIRTUAL_P (member))
continue; continue;
if (DECL_INLINE (member)) if (DECL_DECLARED_INLINE_P (member))
continue; continue;
if (lookup_attribute ("dllimport", DECL_ATTRIBUTES (member))) if (lookup_attribute ("dllimport", DECL_ATTRIBUTES (member)))
......
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