Commit 3db684fb by Tristan Gingold Committed by Tristan Gingold

c-typeck.c (composite_type): Keep mode for pointers.

2012-02-01  Tristan Gingold  <gingold@adacore.com>

	* c-typeck.c (composite_type): Keep mode for pointers.

From-SVN: r183791
parent 488b3e65
2012-02-01 Tristan Gingold <gingold@adacore.com>
* c-typeck.c (composite_type): Keep mode for pointers.
2012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
* function.h (regno_reg_rtx): Adjust comment.
......
......@@ -394,7 +394,7 @@ composite_type (tree t1, tree t2)
tree pointed_to_1 = TREE_TYPE (t1);
tree pointed_to_2 = TREE_TYPE (t2);
tree target = composite_type (pointed_to_1, pointed_to_2);
t1 = build_pointer_type (target);
t1 = build_pointer_type_for_mode (target, TYPE_MODE (t1), false);
t1 = build_type_attribute_variant (t1, attributes);
return qualify_type (t1, t2);
}
......
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