pr41616-1.c: Use -fgnu89-inline.

* gcc.dg/guality/pr41616-1.c: Use -fgnu89-inline.
	* gcc.dg/iftrap-1.c: Fix implicit declarations.
	* gcc.target/powerpc/pr26350.c: Likewise.
	* gcc.target/powerpc/altivec-consts.c: Likewise.
	* gcc.target/powerpc/altivec-varargs-1.c: Likewise.
	* gcc.target/powerpc/le-altivec-consts.c: Likewise.
	* gcc.target/powerpc/ppc-vector-memcpy.c: Likewise.
	* gcc.target/powerpc/ppc-vector-memset.c: Likewise.
	* gcc.target/powerpc/pr47862.c: Likewise.
	* gcc.target/powerpc/pr48053-1.c: Likewise.
	* gcc.target/powerpc/pr53487.c: Likewise.
	* gcc.dg/vect/pr48765.c: Fix implicit declarations and defaulting
	to int.
	* gcc.target/powerpc/20050603-1.c: Fix defaulting to int.
	* gcc.target/powerpc/altivec-2.c: Likewise.
	* gcc.target/powerpc/pr47755-2.c: Likewise.

From-SVN: r215978
This commit is contained in:
Marek Polacek 2014-10-07 17:32:23 +00:00 committed by Marek Polacek
parent fe1090c16e
commit 12e99c3838
16 changed files with 42 additions and 6 deletions

View File

@ -1,3 +1,22 @@
2014-10-07 Marek Polacek <polacek@redhat.com>
* gcc.dg/guality/pr41616-1.c: Use -fgnu89-inline.
* gcc.dg/iftrap-1.c: Fix implicit declarations.
* gcc.target/powerpc/pr26350.c: Likewise.
* gcc.target/powerpc/altivec-consts.c: Likewise.
* gcc.target/powerpc/altivec-varargs-1.c: Likewise.
* gcc.target/powerpc/le-altivec-consts.c: Likewise.
* gcc.target/powerpc/ppc-vector-memcpy.c: Likewise.
* gcc.target/powerpc/ppc-vector-memset.c: Likewise.
* gcc.target/powerpc/pr47862.c: Likewise.
* gcc.target/powerpc/pr48053-1.c: Likewise.
* gcc.target/powerpc/pr53487.c: Likewise.
* gcc.dg/vect/pr48765.c: Fix implicit declarations and defaulting
to int.
* gcc.target/powerpc/20050603-1.c: Fix defaulting to int.
* gcc.target/powerpc/altivec-2.c: Likewise.
* gcc.target/powerpc/pr47755-2.c: Likewise.
2014-10-07 Martin Liska <mliska@suse.cz>
* g++.dg/lto/pr63270.h: New test.

View File

@ -1,5 +1,5 @@
/* { dg-do run { xfail *-*-* } } */
/* { dg-options "-g" } */
/* { dg-options "-g -fgnu89-inline" } */
#include "guality.h"

View File

@ -3,6 +3,8 @@
/* { dg-do compile { target rs6000-*-* powerpc*-*-* sparc*-*-* ia64-*-* } } */
/* { dg-final { scan-assembler-not "^\t(trap|ta|break)\[ \t\]" } } */
void bar (void);
void f1(int p)
{
if (p)

View File

@ -33,8 +33,10 @@ static char *regs_change_size;
static HARD_REG_SET *after_insn_hard_regs;
static int stupid_find_reg (int, enum reg_class, enum machine_mode, int, int,
int);
enum reg_class reg_preferred_class (int);
void
stupid_life_analysis (f, nregs, file)
int nregs, file;
rtx f;
{
register int i;
@ -52,7 +54,7 @@ stupid_life_analysis (f, nregs, file)
static int
stupid_find_reg (call_preserved, class, mode, born_insn, dead_insn,
changes_size)
int call_preserved;
int call_preserved, born_insn, dead_insn, changes_size;
enum reg_class class;
enum machine_mode mode;
{

View File

@ -15,6 +15,7 @@ test_reg_save_restore (int *p)
setlocale (LC_ALL, "C");
testreg = ext_func(p);
}
int
main() {
testreg = &x;
test_reg_save_restore (&y);

View File

@ -23,6 +23,7 @@ int xxx[sizeof(foobar) == 16 ? 69 : -1];
int nc17[sizeof(shoe) == sizeof (char *) ? 69 : -1];
void
code ()
{
*shoe = polish;

View File

@ -6,6 +6,7 @@
/* Check that "easy" AltiVec constants are correctly synthesized. */
extern void abort (void);
extern int memcmp (const void *, const void *, __SIZE_TYPE__);
typedef __attribute__ ((vector_size (16))) unsigned char v16qi;
typedef __attribute__ ((vector_size (16))) unsigned short v8hi;

View File

@ -7,6 +7,7 @@
extern void exit (int);
extern void abort (void);
extern int memcmp (const void *, const void *, __SIZE_TYPE__);
#define vector __attribute__((vector_size (16)))

View File

@ -6,6 +6,7 @@
/* Check that "easy" AltiVec constants are correctly synthesized. */
extern void abort (void);
extern int memcmp (const void *, const void *, __SIZE_TYPE__);
typedef __attribute__ ((vector_size (16))) unsigned char v16qi;
typedef __attribute__ ((vector_size (16))) unsigned short v8hi;

View File

@ -5,6 +5,8 @@
#include <string.h>
void bar (int *);
void foo(void)
{
extern int x[8] __attribute__((aligned(128)));

View File

@ -5,6 +5,8 @@
#include <string.h>
void bar (int *);
void foo(void)
{
int x[8] __attribute__((aligned(128)));

View File

@ -17,6 +17,7 @@ struct REGS {
struct ebfp {
long double v;
};
void put_ebfp (struct ebfp *);
void s390_convert_fix32_to_bfp_ext_reg (REGS *regs)
{

View File

@ -22,9 +22,9 @@ extern void abort (void) __attribute__((__noreturn__));
#define FAIL_I(A, B, C, D) abort ()
#endif
static test_ll (vector long long, long long, long long) __attribute__((__noinline__));
static void test_ll (vector long long, long long, long long) __attribute__((__noinline__));
static
static void
test_ll (vector long long v, long long a, long long b)
{
union {
@ -39,9 +39,9 @@ test_ll (vector long long v, long long a, long long b)
#define TEST_LL(A,B) test_ll ((vector long long){ (A), (B) }, (A), (B))
static test_i (vector int, int, int, int, int) __attribute__((__noinline__));
static void test_i (vector int, int, int, int, int) __attribute__((__noinline__));
static
static void
test_i (vector int v, int a, int b, int c, int d)
{
union {

View File

@ -7,6 +7,7 @@
/* PR 47862: Verify caller-save spill of vectors in FP regs do not use
legacy FP insns, which spill only half the vector. */
extern vector double dd[15];
void bar (void);
vector double foo() {
vector double a,b,c,d,e,f,g,h,i,j,k,l,m,n;

View File

@ -6,6 +6,7 @@
int sourcenode;
int ARCHelems;
int *source_elms;
void vv12x12 (double *, double *, double *);
void
foo (int argc, char **argv)
{

View File

@ -6,6 +6,7 @@
struct phylo_s {
int left;
};
void Free2DArray (void **, int);
int Cluster(float **dmx, int N, struct phylo_s *tree)
{