aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Earnshaw <rearnsha@arm.com>2004-11-08 17:17:30 +0000
committerRichard Earnshaw <rearnsha@gcc.gnu.org>2004-11-08 17:17:30 +0000
commit7bff66a715c67c1c3206a08ecdd19bb04d2bd475 (patch)
treed6c747266529bb23a660174688aed7c3e1c424d9 /gcc
parentadb31ad60d29824ac9d3a699b937f31a8632798b (diff)
downloadgcc-7bff66a715c67c1c3206a08ecdd19bb04d2bd475.zip
gcc-7bff66a715c67c1c3206a08ecdd19bb04d2bd475.tar.gz
gcc-7bff66a715c67c1c3206a08ecdd19bb04d2bd475.tar.bz2
arm.c (arm_handle_notshared_attribute): Wrap declaration and use with #if TARGET_DLLIMPORT_DECL_ATTRIBUTES.
* arm.c (arm_handle_notshared_attribute): Wrap declaration and use with #if TARGET_DLLIMPORT_DECL_ATTRIBUTES. From-SVN: r90272
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/arm/arm.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 94ab14a..711afc5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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"
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index 730877b..dab5de5 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -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