aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/arm/arm.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/arm/arm.h')
-rw-r--r--gcc/config/arm/arm.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h
index 8f4c4a1..853db6d 100644
--- a/gcc/config/arm/arm.h
+++ b/gcc/config/arm/arm.h
@@ -1912,7 +1912,7 @@ typedef struct
/* This doesn't work with AOF syntax, since the string table may be in
a different AREA. */
#ifndef AOF_ASSEMBLER
-#define ENCODE_SECTION_INFO(decl) \
+#define ENCODE_SECTION_INFO(decl, first) \
{ \
if (optimize > 0 && TREE_CONSTANT (decl) \
&& (!flag_writable_strings || TREE_CODE (decl) != STRING_CST)) \
@@ -1921,12 +1921,14 @@ typedef struct
? TREE_CST_RTL (decl) : DECL_RTL (decl)); \
SYMBOL_REF_FLAG (XEXP (rtl, 0)) = 1; \
} \
- ARM_ENCODE_CALL_TYPE (decl) \
+ if (first) \
+ ARM_ENCODE_CALL_TYPE (decl) \
}
#else
-#define ENCODE_SECTION_INFO(decl) \
+#define ENCODE_SECTION_INFO(decl, first) \
{ \
- ARM_ENCODE_CALL_TYPE (decl) \
+ if (first) \
+ ARM_ENCODE_CALL_TYPE (decl) \
}
#endif