[Committed] ipa-sra-19.c: Avoid unprototyped function

Message ID 20191024152858.3726-1-krebbel@linux.ibm.com
State New
Headers show
Series
  • [Committed] ipa-sra-19.c: Avoid unprototyped function
Related show

Commit Message

Andreas Krebbel Oct. 24, 2019, 3:28 p.m.
Power and IBM Z require a function prototype if a vector argument is
passed.  Complete the prototype of k to prevent errors from being
triggered on these platforms

Committed after the discussion here:
https://gcc.gnu.org/ml/gcc-patches/2019-10/msg01737.html

gcc/testsuite/ChangeLog:

2019-10-24  Andreas Krebbel  <krebbel@linux.ibm.com>

	* gcc.dg/ipa/ipa-sra-19.c: Remove dg-skip-if. Add argument type to
	prototype of k.
---
 gcc/testsuite/gcc.dg/ipa/ipa-sra-19.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

-- 
2.23.0

Patch

diff --git a/gcc/testsuite/gcc.dg/ipa/ipa-sra-19.c b/gcc/testsuite/gcc.dg/ipa/ipa-sra-19.c
index d219411d8ba..6186d891a29 100644
--- a/gcc/testsuite/gcc.dg/ipa/ipa-sra-19.c
+++ b/gcc/testsuite/gcc.dg/ipa/ipa-sra-19.c
@@ -1,11 +1,10 @@ 
 /* { dg-do compile } */
 /* { dg-options "-O2"  } */
-/* { dg-skip-if "" { powerpc*-*-* } } */
 
 typedef int __attribute__((__vector_size__(16))) vectype;
 
 vectype dk();
-vectype k();
+vectype k(vectype);
 
 int b;
 vectype *j;