summaryrefslogtreecommitdiff
path: root/gcc/toplev.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/toplev.h
parent91ea4f8ddfb30a1274e951d43ac4d79eb5c63e9e (diff)
downloadgcc-03bf2c237c6288caef6e014895f989f963b9f711.tar.gz
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/toplev.h')
-rw-r--r--gcc/toplev.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/toplev.h b/gcc/toplev.h
index 72fa2fd640a..c9b60ee2c3e 100644
--- a/gcc/toplev.h
+++ b/gcc/toplev.h
@@ -166,6 +166,9 @@ struct lang_hooks
/* Called when all command line options have been processed. */
void (*post_options) PARAMS ((void));
+ /* Nonzero if TYPE_READONLY and TREE_READONLY should always be honored. */
+ int honor_readonly;
+
struct lang_hooks_for_tree_inlining tree_inlining;
/* Whenever you add entries here, make sure you adjust langhooks.h