* gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
From-SVN: r172828
This commit is contained in:
parent
3b6e9676fe
commit
4d931f416b
@ -1,3 +1,7 @@
|
||||
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);
|
||||
|
@ -1,3 +1,8 @@
|
||||
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
|
||||
|
16
gcc/testsuite/gnat.dg/volatile5.adb
Normal file
16
gcc/testsuite/gnat.dg/volatile5.adb
Normal file
@ -0,0 +1,16 @@
|
||||
-- { dg-do compile }
|
||||
|
||||
with Volatile5_Pkg; use Volatile5_Pkg;
|
||||
|
||||
procedure Volatile5 is
|
||||
|
||||
A : Rec;
|
||||
|
||||
procedure Proc is
|
||||
begin
|
||||
A := F;
|
||||
end;
|
||||
|
||||
begin
|
||||
Proc;
|
||||
end;
|
11
gcc/testsuite/gnat.dg/volatile5_pkg.ads
Normal file
11
gcc/testsuite/gnat.dg/volatile5_pkg.ads
Normal file
@ -0,0 +1,11 @@
|
||||
package Volatile5_Pkg is
|
||||
|
||||
type Rec is record
|
||||
I : Integer;
|
||||
end record;
|
||||
pragma Volatile(Rec);
|
||||
|
||||
function F return Rec;
|
||||
|
||||
end Volatile5_Pkg;
|
||||
--
|
Loading…
Reference in New Issue
Block a user