summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/lhs-1.c
diff options
context:
space:
mode:
authorpthaugen <pthaugen@138bc75d-0d04-0410-961f-82ee72b054a4>2012-06-05 19:06:57 +0000
committerpthaugen <pthaugen@138bc75d-0d04-0410-961f-82ee72b054a4>2012-06-05 19:06:57 +0000
commit1877c426a910d11e8af637ffdd30f34906658749 (patch)
treedf4f636fb48ce01f327152332cee9fdf675e6a5d /gcc/testsuite/gcc.target/powerpc/lhs-1.c
parente7ae865c817255e624327598746474d4ae58f321 (diff)
downloadgcc-1877c426a910d11e8af637ffdd30f34906658749.tar.gz
* gcc.target/powerpc/lhs-1.c: Use parm instead of stack space.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@188247 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.target/powerpc/lhs-1.c')
-rw-r--r--gcc/testsuite/gcc.target/powerpc/lhs-1.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/testsuite/gcc.target/powerpc/lhs-1.c b/gcc/testsuite/gcc.target/powerpc/lhs-1.c
index 3b606e685a9..000ebcadfbe 100644
--- a/gcc/testsuite/gcc.target/powerpc/lhs-1.c
+++ b/gcc/testsuite/gcc.target/powerpc/lhs-1.c
@@ -13,10 +13,9 @@ typedef union {
};
} words;
-unsigned int f (double d)
+unsigned int f (double d, words *u)
{
- words u;
- u.val = d;
- return u.w2;
+ u->val = d;
+ return u->w2;
}