re PR middle-end/52314 (gimplifier produces volatile)
2012-02-21 Richard Guenther <rguenther@suse.de> PR middle-end/52314 * gimplify.c (create_tmp_from_val): Use the main variant type for the type of the temporary we create. From-SVN: r184436
This commit is contained in:
parent
01718e96e7
commit
0c2ad2033d
|
@ -1,3 +1,9 @@
|
||||||
|
2012-02-21 Richard Guenther <rguenther@suse.de>
|
||||||
|
|
||||||
|
PR middle-end/52314
|
||||||
|
* gimplify.c (create_tmp_from_val): Use the main variant type
|
||||||
|
for the type of the temporary we create.
|
||||||
|
|
||||||
2012-02-21 Richard Guenther <rguenther@suse.de>
|
2012-02-21 Richard Guenther <rguenther@suse.de>
|
||||||
|
|
||||||
PR tree-optimization/52324
|
PR tree-optimization/52324
|
||||||
|
|
|
@ -504,7 +504,8 @@ create_tmp_reg (tree type, const char *prefix)
|
||||||
static inline tree
|
static inline tree
|
||||||
create_tmp_from_val (tree val)
|
create_tmp_from_val (tree val)
|
||||||
{
|
{
|
||||||
return create_tmp_var (TREE_TYPE (val), get_name (val));
|
/* Drop all qualifiers and address-space information from the value type. */
|
||||||
|
return create_tmp_var (TYPE_MAIN_VARIANT (TREE_TYPE (val)), get_name (val));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Create a temporary to hold the value of VAL. If IS_FORMAL, try to reuse
|
/* Create a temporary to hold the value of VAL. If IS_FORMAL, try to reuse
|
||||||
|
|
Loading…
Reference in New Issue