summaryrefslogtreecommitdiff
path: root/gcc/config/v850/v850.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/v850/v850.h')
-rw-r--r--gcc/config/v850/v850.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/v850/v850.h b/gcc/config/v850/v850.h
index b20c1f48b4d..1cf58da1290 100644
--- a/gcc/config/v850/v850.h
+++ b/gcc/config/v850/v850.h
@@ -1505,10 +1505,10 @@ extern union tree_node * GHS_current_section_names [(int) COUNT_OF_GHS_SECTION_K
#define EP_REGNUM 30 /* ep register number */
-#define ENCODE_SECTION_INFO(DECL) \
+#define ENCODE_SECTION_INFO(DECL, FIRST) \
do \
{ \
- if (TREE_CODE (DECL) == VAR_DECL \
+ if ((FIRST) && TREE_CODE (DECL) == VAR_DECL \
&& (TREE_STATIC (DECL) || DECL_EXTERNAL (DECL))) \
v850_encode_data_area (DECL); \
} \