aboutsummaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2000-06-01 16:18:18 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2000-06-01 12:18:18 -0400
commitf824e5c36eea7d0a9a5b9a5147751278de4778c0 (patch)
tree9c9aade5f3fbb3ff2540e194718e4cecd3846365 /gcc/varasm.c
parent611a4b873e1fbd6fc2b4a28c05924660a0b5c2af (diff)
downloadgcc-f824e5c36eea7d0a9a5b9a5147751278de4778c0.zip
gcc-f824e5c36eea7d0a9a5b9a5147751278de4778c0.tar.gz
gcc-f824e5c36eea7d0a9a5b9a5147751278de4778c0.tar.bz2
alias.c (get_alias_set): Don't call language-specific routine more than is needed and clean up code a bit.
* 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. From-SVN: r34341
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.