Commit 4d931f41 by Eric Botcazou Committed by Eric Botcazou

* gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.

From-SVN: r172828
parent 3b6e9676
2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
* gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2011-04-21 Richard Guenther <rguenther@suse.de>
* Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
......
......@@ -1464,7 +1464,8 @@ walk_gimple_op (gimple stmt, walk_tree_fn callback_op,
for (i = 0; i < gimple_call_num_args (stmt); i++)
{
if (wi)
wi->val_only = is_gimple_reg_type (gimple_call_arg (stmt, i));
wi->val_only
= is_gimple_reg_type (TREE_TYPE (gimple_call_arg (stmt, i)));
ret = walk_tree (gimple_call_arg_ptr (stmt, i), callback_op, wi,
pset);
if (ret)
......@@ -1476,7 +1477,8 @@ walk_gimple_op (gimple stmt, walk_tree_fn callback_op,
if (wi)
{
wi->is_lhs = true;
wi->val_only = is_gimple_reg_type (gimple_call_lhs (stmt));
wi->val_only
= is_gimple_reg_type (TREE_TYPE (gimple_call_lhs (stmt)));
}
ret = walk_tree (gimple_call_lhs_ptr (stmt), callback_op, wi, pset);
......
2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/volatile5.adb: New test.
* gnat.dg/volatile5_pkg.ads: New helper.
2011-04-21 Uros Bizjak <ubizjak@gmail.com>
PR target/48708
......
-- { dg-do compile }
with Volatile5_Pkg; use Volatile5_Pkg;
procedure Volatile5 is
A : Rec;
procedure Proc is
begin
A := F;
end;
begin
Proc;
end;
package Volatile5_Pkg is
type Rec is record
I : Integer;
end record;
pragma Volatile(Rec);
function F return Rec;
end Volatile5_Pkg;
--
\ No newline at end of file
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