Commit 65bb4a49 by Jakub Jelinek Committed by Jakub Jelinek

com.c (ffecom_sym_transform_): Set tree type of offset to ssizetype.

	* com.c (ffecom_sym_transform_): Set tree type of offset
	to ssizetype.

From-SVN: r73127
parent 2c4902b9
2003-10-31 Jakub Jelinek <jakub@redhat.com>
* com.c (ffecom_sym_transform_): Set tree type of offset
to ssizetype.
2003-10-21 Kelley Cook <kcook@gcc.gnu.org> 2003-10-21 Kelley Cook <kcook@gcc.gnu.org>
* Make-lang.in (f/g77.1): Honor $(docobjdir). * Make-lang.in (f/g77.1): Honor $(docobjdir).
......
...@@ -7919,6 +7919,7 @@ ffecom_sym_transform_ (ffesymbol s) ...@@ -7919,6 +7919,7 @@ ffecom_sym_transform_ (ffesymbol s)
{ {
ffetargetOffset offset; ffetargetOffset offset;
ffestorag cst; ffestorag cst;
tree toffset;
cst = ffestorag_parent (st); cst = ffestorag_parent (st);
assert (cst == ffesymbol_storage (cs)); assert (cst == ffesymbol_storage (cs));
...@@ -7935,9 +7936,10 @@ ffecom_sym_transform_ (ffesymbol s) ...@@ -7935,9 +7936,10 @@ ffecom_sym_transform_ (ffesymbol s)
ffecom_1 (ADDR_EXPR, ffecom_1 (ADDR_EXPR,
build_pointer_type (TREE_TYPE (ct)), build_pointer_type (TREE_TYPE (ct)),
ct)); ct));
toffset = build_int_2 (offset, 0);
TREE_TYPE (toffset) = ssizetype;
t = ffecom_2 (PLUS_EXPR, TREE_TYPE (t), t = ffecom_2 (PLUS_EXPR, TREE_TYPE (t),
t, t, toffset);
build_int_2 (offset, 0));
t = convert (build_pointer_type (type), t = convert (build_pointer_type (type),
t); t);
TREE_CONSTANT (t) = 1; TREE_CONSTANT (t) = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment