arm.c (arm_handle_notshared_attribute): Wrap declaration and use with #if TARGET_DLLI...
authorRichard Earnshaw <rearnsha@arm.com>
Mon, 8 Nov 2004 17:17:30 +0000 (17:17 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Mon, 8 Nov 2004 17:17:30 +0000 (17:17 +0000)
* arm.c (arm_handle_notshared_attribute): Wrap declaration and use
with #if TARGET_DLLIMPORT_DECL_ATTRIBUTES.

From-SVN: r90272

gcc/ChangeLog
gcc/config/arm/arm.c

index 94ab14ac90401436bf663d142bcc32ae4742be63..711afc566e88be8df681f54f5e1d758c0cde6721 100644 (file)
@@ -1,3 +1,8 @@
+2004-11-08  Richard Earnshaw  <rearnsha@arm.com>
+
+       * arm.c (arm_handle_notshared_attribute): Wrap declaration and use
+       with #if TARGET_DLLIMPORT_DECL_ATTRIBUTES.
+
 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
 
        * tree-if-conv.c (tree_if_convert_cond_expr): Remove two "if"
index 730877bdc2374086daec7354d4fec656b277d21e..dab5de5020a615400e2314342d60a2e137eeaa2d 100644 (file)
@@ -114,7 +114,9 @@ static unsigned long arm_isr_value (tree);
 static unsigned long arm_compute_func_type (void);
 static tree arm_handle_fndecl_attribute (tree *, tree, tree, int, bool *);
 static tree arm_handle_isr_attribute (tree *, tree, tree, int, bool *);
+#if TARGET_DLLIMPORT_DECL_ATTRIBUTES
 static tree arm_handle_notshared_attribute (tree *, tree, tree, int, bool *);
+#endif
 static void arm_output_function_epilogue (FILE *, HOST_WIDE_INT);
 static void arm_output_function_prologue (FILE *, HOST_WIDE_INT);
 static void thumb_output_function_prologue (FILE *, HOST_WIDE_INT);
@@ -2670,6 +2672,7 @@ arm_handle_isr_attribute (tree *node, tree name, tree args, int flags,
   return NULL_TREE;
 }
 
+#if TARGET_DLLIMPORT_DECL_ATTRIBUTES
 /* Handle the "notshared" attribute.  This attribute is another way of
    requesting hidden visibility.  ARM's compiler supports
    "__declspec(notshared)"; we support the same thing via an
@@ -2692,6 +2695,7 @@ arm_handle_notshared_attribute (tree *node,
     }
   return NULL_TREE;
 }
+#endif
 
 /* Return 0 if the attributes for two types are incompatible, 1 if they
    are compatible, and 2 if they are nearly compatible (which causes a