summaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2000-06-01 16:18:18 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2000-06-01 16:18:18 +0000
commit1607663fe4d3867f63cade7d5ea9f6f7586da2f5 (patch)
tree9c9aade5f3fbb3ff2540e194718e4cecd3846365 /gcc/varasm.c
parentea1e82271bbe568eb5b9c9964f6e108934b9ad8f (diff)
downloadgcc-1607663fe4d3867f63cade7d5ea9f6f7586da2f5.tar.gz
* alias.c (get_alias_set): Don't call language-specific routine more
than is needed and clean up code a bit. * c-common.c (c_get_alias_set): All references whose type is char get alias set 0, but character types need not. * varasm.c (make_function_rtl): Don't call set_mem_attributes. (make_decl_rtl): Don't call it for FUNCTION_DECL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34341 138bc75d-0d04-0410-961f-82ee72b054a4
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 04937370c90..75af9466530 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.