aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/m32r
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/m32r')
-rw-r--r--gcc/config/m32r/m32r-protos.h2
-rw-r--r--gcc/config/m32r/m32r.c6
-rw-r--r--gcc/config/m32r/m32r.h2
3 files changed, 7 insertions, 3 deletions
diff --git a/gcc/config/m32r/m32r-protos.h b/gcc/config/m32r/m32r-protos.h
index f76e6b9..86adde0 100644
--- a/gcc/config/m32r/m32r-protos.h
+++ b/gcc/config/m32r/m32r-protos.h
@@ -34,7 +34,7 @@ extern void m32r_asm_file_start PARAMS ((FILE *));
extern int direct_return PARAMS ((void));
#ifdef TREE_CODE
extern void m32r_select_section PARAMS ((tree, int));
-extern void m32r_encode_section_info PARAMS ((tree));
+extern void m32r_encode_section_info PARAMS ((tree, int));
extern enum m32r_function_type m32r_compute_function_type PARAMS ((tree));
extern void m32r_select_section PARAMS ((tree, int));
diff --git a/gcc/config/m32r/m32r.c b/gcc/config/m32r/m32r.c
index edf5fa4..0a98559 100644
--- a/gcc/config/m32r/m32r.c
+++ b/gcc/config/m32r/m32r.c
@@ -366,12 +366,16 @@ m32r_select_section (decl, reloc)
*/
void
-m32r_encode_section_info (decl)
+m32r_encode_section_info (decl, first)
tree decl;
+ int first;
{
char prefix = 0;
tree model = 0;
+ if (!first)
+ return;
+
switch (TREE_CODE (decl))
{
case VAR_DECL :
diff --git a/gcc/config/m32r/m32r.h b/gcc/config/m32r/m32r.h
index 44510a0..dcbcfd5 100644
--- a/gcc/config/m32r/m32r.h
+++ b/gcc/config/m32r/m32r.h
@@ -1644,7 +1644,7 @@ sbss_section () \
|| MEDIUM_NAME_P (SYMBOL_NAME) \
|| LARGE_NAME_P (SYMBOL_NAME))
-#define ENCODE_SECTION_INFO(DECL) m32r_encode_section_info (DECL)
+#define ENCODE_SECTION_INFO(DECL, FIRST) m32r_encode_section_info (DECL, FIRST)
/* Decode SYM_NAME and store the real name part in VAR, sans
the characters that encode section info. Define this macro if