aboutsummaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 0493737..75af946 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -559,7 +559,6 @@ make_function_rtl (decl)
DECL_RTL (decl)
= gen_rtx_MEM (DECL_MODE (decl),
gen_rtx_SYMBOL_REF (Pmode, name));
- set_mem_attributes (DECL_RTL (decl), decl, 1);
/* Optionally set flags or add text to the name to record
information such as that it is a function name. If the name
@@ -812,7 +811,8 @@ make_decl_rtl (decl, asmspec, top_level)
= get_identifier (name[0] == '*' ? name + 1 : name);
DECL_RTL (decl) = gen_rtx_MEM (DECL_MODE (decl),
gen_rtx_SYMBOL_REF (Pmode, name));
- set_mem_attributes (DECL_RTL (decl), decl, 1);
+ if (TREE_CODE (decl) != FUNCTION_DECL)
+ set_mem_attributes (DECL_RTL (decl), decl, 1);
/* Optionally set flags or add text to the name to record information
such as that it is a function name.