summaryrefslogtreecommitdiff
path: root/gcc/tree-sra.c
diff options
context:
space:
mode:
authorjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>2010-04-07 11:43:38 +0000
committerjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>2010-04-07 11:43:38 +0000
commitf086d5d699de69490287f3fb23a5281eb8252067 (patch)
tree3c9ab7fe0af1fd169870d72fbb01467d4ce75524 /gcc/tree-sra.c
parent02433bf7f097de2d710298811b1626a969f61060 (diff)
downloadgcc-f086d5d699de69490287f3fb23a5281eb8252067.tar.gz
2010-04-07 Martin Jambor <mjambor@suse.cz>
* tree-sra.c (find_param_candidates): Allow scalar va_list types. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158057 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-sra.c')
-rw-r--r--gcc/tree-sra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c
index e1dd0d777e3..d4adb61ae6a 100644
--- a/gcc/tree-sra.c
+++ b/gcc/tree-sra.c
@@ -2991,7 +2991,7 @@ find_param_candidates (void)
if (TREE_THIS_VOLATILE (parm)
|| TREE_ADDRESSABLE (parm)
- || is_va_list_type (type))
+ || (!is_gimple_reg_type (type) && is_va_list_type (type)))
continue;
if (is_unused_scalar_param (parm))