From 7bff66a715c67c1c3206a08ecdd19bb04d2bd475 Mon Sep 17 00:00:00 2001 From: Richard Earnshaw Date: Mon, 8 Nov 2004 17:17:30 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/arm/arm.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 94ab14ac904..711afc566e8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-11-08 Richard Earnshaw + + * arm.c (arm_handle_notshared_attribute): Wrap declaration and use + with #if TARGET_DLLIMPORT_DECL_ATTRIBUTES. + 2004-11-08 Kazu Hirata * 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 730877bdc23..dab5de5020a 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 -- 2.30.2