ipa-sra-19.c: Avoid unprototyped function

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

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.

From-SVN: r277409
This commit is contained in:
Andreas Krebbel 2019-10-24 15:26:05 +00:00 committed by Andreas Krebbel
parent 315d42482c
commit bf037872d3
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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.
2019-10-24 Richard Biener <rguenther@suse.de>
* gcc.dg/vect/slp-reduc-10a.c: New testcase.

View File

@ -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;