This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RFA: Fix uses of DECL_INLINE in symbian.c
- From: Nick Clifton <nickc at redhat dot com>
- To: aoliva at redhat dot com, kkojima at gcc dot gnu dot org
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 08 Jan 2009 14:05:49 +0000
- Subject: RFA: Fix uses of DECL_INLINE in symbian.c
Hi Alex, Hi Kaz,
This is a simple patch to get the sh-symbian port building again.
It replaces the uses of the deleted DECL_INLINE macro with
DECL_DECLARED_INLINE_P.
OK to apply ?
Cheers
Nick
gcc/ChangeLog
2009-01-08 Nick Clifton <nickc@redhat.com>
* config/sh/symbian.c: Replace uses of DECL_INLINE with
DECL_DECLARED_INLINE_P.
Index: gcc/config/sh/symbian.c
===================================================================
--- gcc/config/sh/symbian.c (revision 143116)
+++ gcc/config/sh/symbian.c (working copy)
@@ -139,7 +139,7 @@
earlier declaration. */
if (TREE_CODE (decl) == FUNCTION_DECL
&& DECL_INITIAL (decl)
- && !DECL_INLINE (decl))
+ && ! DECL_DECLARED_INLINE_P (decl))
{
/* Don't warn about artificial methods. */
if (!DECL_ARTIFICIAL (decl))
@@ -152,7 +152,7 @@
/* We ignore the dllimport attribute for inline member functions.
This differs from MSVC behavior which treats it like GNUC
'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)
warning (OPT_Wattributes, "inline function %q+D is declared as "
@@ -580,7 +580,7 @@
if (DECL_PURE_VIRTUAL_P (member))
continue;
- if (DECL_INLINE (member))
+ if (DECL_DECLARED_INLINE_P (member))
continue;
break;
@@ -671,7 +671,7 @@
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. */
&& ( DECL_MAYBE_IN_CHARGE_CONSTRUCTOR_P (member)
|| DECL_MAYBE_IN_CHARGE_DESTRUCTOR_P (member)))
@@ -688,7 +688,7 @@
if (! DECL_VIRTUAL_P (member))
continue;
- if (DECL_INLINE (member))
+ if (DECL_DECLARED_INLINE_P (member))
continue;
if (lookup_attribute ("dllimport", DECL_ATTRIBUTES (member)))