OSDN Git Service

* config/arm/arm.h (ARM_EABI_CTORS_SECTION_OP): Do not define if a
[pf3gnuchains/gcc-fork.git] / gcc / config / sh / symbian.c
index cb04c8c..9bf6d82 100644 (file)
@@ -1,5 +1,5 @@
 /* Routines for GCC for a Symbian OS targeted SH backend.
-   Copyright (C) 2004 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2005 Free Software Foundation, Inc.
    Contributed by RedHat.
    Most of this code is stolen from i386/winnt.c.
 
@@ -144,7 +144,7 @@ sh_symbian_dllimport_p (tree decl)
     {
       /* Don't warn about artificial methods.  */
       if (!DECL_ARTIFICIAL (decl))
-       warning ("%H function '%D' is defined after prior declaration as dllimport: attribute ignored",
+       warning (0, "%H function '%D' is defined after prior declaration as dllimport: attribute ignored",
                 & DECL_SOURCE_LOCATION (decl), decl);
       return false;
     }
@@ -155,7 +155,7 @@ sh_symbian_dllimport_p (tree decl)
   else if (TREE_CODE (decl) == FUNCTION_DECL && DECL_INLINE (decl))
     {
       if (extra_warnings)
-       warning ("%Hinline function '%D' is declared as dllimport: attribute ignored.",
+       warning (0, "%Hinline function '%D' is declared as dllimport: attribute ignored.",
                 & DECL_SOURCE_LOCATION (decl), decl);
       return false;
     }
@@ -329,7 +329,7 @@ sh_symbian_encode_section_info (tree decl, rtx rtl, int first)
       tree idp = get_identifier (oldname + strlen (DLL_IMPORT_PREFIX));
       rtx newrtl = gen_rtx_SYMBOL_REF (Pmode, IDENTIFIER_POINTER (idp));
 
-      warning ("%H%s '%D' %s after being referenced with dllimport linkage.",
+      warning (0, "%H%s '%D' %s after being referenced with dllimport linkage.",
               & DECL_SOURCE_LOCATION (decl),
               TREE_CODE (decl) == VAR_DECL ? "variable" : "function",
               decl, (DECL_INITIAL (decl) || !DECL_EXTERNAL (decl))
@@ -411,14 +411,14 @@ sh_symbian_handle_dll_attribute (tree *pnode, tree name, tree args,
                   | (int) ATTR_FLAG_FUNCTION_NEXT
                   | (int) ATTR_FLAG_ARRAY_NEXT))
        {
-         warning ("%qs attribute ignored", attr);
+         warning (0, "%qs attribute ignored", attr);
          *no_add_attrs = true;
          return tree_cons (name, args, NULL_TREE);
        }
 
       if (TREE_CODE (node) != RECORD_TYPE && TREE_CODE (node) != UNION_TYPE)
        {
-         warning ("%qs attribute ignored", attr);
+         warning (0, "%qs attribute ignored", attr);
          *no_add_attrs = true;
        }