1 Upstream-Status: Inappropriate [Backport]
2 From 20a8b6ba99d25394d9d4b958a8ecc171fe3d263b Mon Sep 17 00:00:00 2001
3 From: ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
4 Date: Thu, 21 Apr 2011 14:18:54 +0000
5 Subject: [PATCH 161/200] * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
7 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@172829 138bc75d-0d04-0410-961f-82ee72b054a4
9 index e60dc92..9a94f06 100644
12 @@ -1405,7 +1405,8 @@ walk_gimple_op (gimple stmt, walk_tree_fn callback_op,
13 for (i = 0; i < gimple_call_num_args (stmt); i++)
16 - wi->val_only = is_gimple_reg_type (gimple_call_arg (stmt, i));
18 + = is_gimple_reg_type (TREE_TYPE (gimple_call_arg (stmt, i)));
19 ret = walk_tree (gimple_call_arg_ptr (stmt, i), callback_op, wi,
22 @@ -1417,7 +1418,8 @@ walk_gimple_op (gimple stmt, walk_tree_fn callback_op,
26 - wi->val_only = is_gimple_reg_type (gimple_call_lhs (stmt));
28 + = is_gimple_reg_type (TREE_TYPE (gimple_call_lhs (stmt)));
31 ret = walk_tree (gimple_call_lhs_ptr (stmt), callback_op, wi, pset);
33 index 0000000..24527a5
35 +++ b/gcc/testsuite/gnat.dg/volatile5.adb
39 +with Volatile5_Pkg; use Volatile5_Pkg;
41 +procedure Volatile5 is
53 diff --git a/gcc/testsuite/gnat.dg/volatile5_pkg.ads b/gcc/testsuite/gnat.dg/volatile5_pkg.ads
55 index 0000000..71a0c80
57 +++ b/gcc/testsuite/gnat.dg/volatile5_pkg.ads
59 +package Volatile5_Pkg is
64 + pragma Volatile(Rec);
66 + function F return Rec;
70 \ No newline at end of file