aboutsummaryrefslogtreecommitdiff
path: root/gcc/langhooks.h
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2001-10-19 19:54:06 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2001-10-19 15:54:06 -0400
commit03bf2c237c6288caef6e014895f989f963b9f711 (patch)
treeeb97caf1841ebd1fecf7e7517af209b7ec0318b7 /gcc/langhooks.h
parent91ea4f8ddfb30a1274e951d43ac4d79eb5c63e9e (diff)
downloadgcc-03bf2c237c6288caef6e014895f989f963b9f711.zip
gcc-03bf2c237c6288caef6e014895f989f963b9f711.tar.gz
gcc-03bf2c237c6288caef6e014895f989f963b9f711.tar.bz2
langhooks.h (LANG_HOOKS_HONOR_READONLY): New macro.
* langhooks.h (LANG_HOOKS_HONOR_READONLY): New macro. * toplev.h (struct lang_hooks): New field HONOR_READONLY. * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGING_P from TREE_READONLY and TYPE_READONLY if lang_hooks.honor_readonly. Set alignment from type if INDIRECT_REF. (adjust_address_1, offset_address): Simplify alignment compuitation. * expr.c (expand_expr, case INDIRECT_REF): Don't set RTX_UNCHANGING_P here; done by set_mem_attributes. From-SVN: r46361
Diffstat (limited to 'gcc/langhooks.h')
-rw-r--r--gcc/langhooks.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/langhooks.h b/gcc/langhooks.h
index 43335fa..e3067fb 100644
--- a/gcc/langhooks.h
+++ b/gcc/langhooks.h
@@ -39,6 +39,9 @@ Boston, MA 02111-1307, USA. */
#ifndef LANG_HOOKS_POST_OPTIONS
#define LANG_HOOKS_POST_OPTIONS NULL
#endif
+#ifndef LANG_HOOKS_HONOR_READONLY
+#define LANG_HOOKS_HONOR_READONLY 0
+#endif
/* Declarations of default tree inlining hooks. */
tree tree_inlining_default_hook_walk_subtrees PARAMS ((tree*, int *,
@@ -108,6 +111,7 @@ int tree_inlining_default_hook_anon_aggr_type_p PARAMS ((tree));
LANG_HOOKS_INIT_OPTIONS, \
LANG_HOOKS_DECODE_OPTION, \
LANG_HOOKS_POST_OPTIONS, \
+ LANG_HOOKS_HONOR_READONLY, \
LANG_HOOKS_TREE_INLINING_INITIALIZER \
}