summaryrefslogtreecommitdiff
path: root/gcc/toplev.h
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-19 19:54:06 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-19 19:54:06 +0000
commitb8098e5bd2a1d976cefe08018c1f7a3185ffcabd (patch)
treeeb97caf1841ebd1fecf7e7517af209b7ec0318b7 /gcc/toplev.h
parent77ec0c645c58e14bcb959141e8022da40dcc9c7d (diff)
downloadgcc-b8098e5bd2a1d976cefe08018c1f7a3185ffcabd.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46361 138bc75d-0d04-0410-961f-82ee72b054a4
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