aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiong Wang <jiong.wang@arm.com>2014-10-22 08:51:16 +0000
committerJiong Wang <jiwang@gcc.gnu.org>2014-10-22 08:51:16 +0000
commitecad7681ac654a8813316bf01d537015c8604a34 (patch)
treed703dc00801429081eb42f70db1f161ca68c8173
parent188979acda77d083a006eb6589651fcf9aa70c18 (diff)
downloadgcc-ecad7681ac654a8813316bf01d537015c8604a34.zip
gcc-ecad7681ac654a8813316bf01d537015c8604a34.tar.gz
gcc-ecad7681ac654a8813316bf01d537015c8604a34.tar.bz2
[AArch64] Update target testcases for gnu11
gcc/testsuite/ * gcc.target/aarch64/pic-constantpool1.c: Add explicit declaration. * gcc.target/aarch64/pic-symrefplus.c: Likewise. * gcc.target/aarch64/reload-valid-spoff.c: Likewise. * gcc.target/aarch64/vect.x: Likewise. * gcc.target/aarch64/vect-ld1r.x: Add return type. * gcc.target/aarch64/vect-fmax-fmin.c: Likewise. * gcc.target/aarch64/vect-fp.c: Likewise. From-SVN: r216544
-rw-r--r--gcc/testsuite/ChangeLog10
-rw-r--r--gcc/testsuite/gcc.target/aarch64/pic-constantpool1.c5
-rw-r--r--gcc/testsuite/gcc.target/aarch64/pic-symrefplus.c8
-rw-r--r--gcc/testsuite/gcc.target/aarch64/reload-valid-spoff.c5
-rw-r--r--gcc/testsuite/gcc.target/aarch64/vect-fmax-fmin.c10
-rw-r--r--gcc/testsuite/gcc.target/aarch64/vect-fp.c10
-rw-r--r--gcc/testsuite/gcc.target/aarch64/vect-ld1r.x2
-rw-r--r--gcc/testsuite/gcc.target/aarch64/vect.x1
8 files changed, 39 insertions, 12 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index b11d3a9..559f29a 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,15 @@
2014-10-22 Jiong Wang <jiong.wang@arm.com>
+ * gcc.target/aarch64/pic-constantpool1.c: Add explicit declaration.
+ * gcc.target/aarch64/pic-symrefplus.c: Likewise.
+ * gcc.target/aarch64/reload-valid-spoff.c: Likewise.
+ * gcc.target/aarch64/vect.x: Likewise.
+ * gcc.target/aarch64/vect-ld1r.x: Add return type.
+ * gcc.target/aarch64/vect-fmax-fmin.c: Likewise.
+ * gcc.target/aarch64/vect-fp.c: Likewise.
+
+2014-10-22 Jiong Wang <jiong.wang@arm.com>
+
* lib/compat.exp (compat-run): Remove "unresolved".
* lib/gcc-defs.exp (${tools}_check_compile): Update code logic for
unsupported testcase.
diff --git a/gcc/testsuite/gcc.target/aarch64/pic-constantpool1.c b/gcc/testsuite/gcc.target/aarch64/pic-constantpool1.c
index 3109d9d..043f1ee 100644
--- a/gcc/testsuite/gcc.target/aarch64/pic-constantpool1.c
+++ b/gcc/testsuite/gcc.target/aarch64/pic-constantpool1.c
@@ -2,10 +2,13 @@
/* { dg-do compile } */
extern int __finite (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
+extern int __finitef (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
+extern int __signbit (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
+extern int __signbitf (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
int
__ecvt_r (value, ndigit, decpt, sign, buf, len)
double value;
- int ndigit, *decpt, *sign;
+ int ndigit, *decpt, *sign, len;
char *buf;
{
if ((sizeof (value) == sizeof (float) ? __finitef (value) : __finite (value)) && value != 0.0)
diff --git a/gcc/testsuite/gcc.target/aarch64/pic-symrefplus.c b/gcc/testsuite/gcc.target/aarch64/pic-symrefplus.c
index f277a52..406568c 100644
--- a/gcc/testsuite/gcc.target/aarch64/pic-symrefplus.c
+++ b/gcc/testsuite/gcc.target/aarch64/pic-symrefplus.c
@@ -34,12 +34,16 @@ struct locale_data
values [];
};
extern const struct locale_data _nl_C_LC_TIME __attribute__ ((visibility ("hidden")));
+extern void *memset (void *s, int c, size_t n);
+extern size_t strlen (const char *s);
+extern int __strncasecmp_l (const char *s1, const char *s2, size_t n, __locale_t locale);
char *
__strptime_internal (rp, fmt, tmp, statep , locale)
const char *rp;
const char *fmt;
__locale_t locale;
void *statep;
+ int tmp;
{
struct locale_data *const current = locale->__locales[__LC_TIME];
const char *rp_backup;
@@ -124,5 +128,9 @@ __strptime_internal (rp, fmt, tmp, statep , locale)
}
char *
__strptime_l (buf, format, tm , locale)
+ int buf;
+ int format;
+ int tm;
+ int locale;
{
}
diff --git a/gcc/testsuite/gcc.target/aarch64/reload-valid-spoff.c b/gcc/testsuite/gcc.target/aarch64/reload-valid-spoff.c
index b44e560..c2b5464 100644
--- a/gcc/testsuite/gcc.target/aarch64/reload-valid-spoff.c
+++ b/gcc/testsuite/gcc.target/aarch64/reload-valid-spoff.c
@@ -17,6 +17,11 @@ struct arpreq
};
typedef struct _IO_FILE FILE;
extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream);
+extern void *memset (void *s, int c, size_t n);
+extern void *memcpy (void *dest, const void *src, size_t n);
+extern int fprintf (FILE *stream, const char *format, ...);
+extern char * safe_strncpy (char *dst, const char *src, size_t size);
+extern size_t strlen (const char *s);
extern struct _IO_FILE *stderr;
extern int optind;
struct aftype {
diff --git a/gcc/testsuite/gcc.target/aarch64/vect-fmax-fmin.c b/gcc/testsuite/gcc.target/aarch64/vect-fmax-fmin.c
index 42600b7..33a9444 100644
--- a/gcc/testsuite/gcc.target/aarch64/vect-fmax-fmin.c
+++ b/gcc/testsuite/gcc.target/aarch64/vect-fmax-fmin.c
@@ -8,11 +8,11 @@ extern void abort (void);
#include "vect-fmaxv-fminv.x"
#define DEFN_SETV(type) \
- set_vector_##type (pR##type a, type n) \
- { \
- int i; \
- for (i=0; i<16; i++) \
- a[i] = n; \
+ void set_vector_##type (pR##type a, type n) \
+ { \
+ int i; \
+ for (i=0; i<16; i++) \
+ a[i] = n; \
}
#define DEFN_CHECKV(type) \
diff --git a/gcc/testsuite/gcc.target/aarch64/vect-fp.c b/gcc/testsuite/gcc.target/aarch64/vect-fp.c
index bcf9d9d..af0c524 100644
--- a/gcc/testsuite/gcc.target/aarch64/vect-fp.c
+++ b/gcc/testsuite/gcc.target/aarch64/vect-fp.c
@@ -8,11 +8,11 @@ extern void abort (void);
#define DEFN_SETV(type) \
- set_vector_##type (pR##type a, type n) \
- { \
- int i; \
- for (i=0; i<16; i++) \
- a[i] = n; \
+ void set_vector_##type (pR##type a, type n) \
+ { \
+ int i; \
+ for (i=0; i<16; i++) \
+ a[i] = n; \
}
#define DEFN_CHECKV(type) \
diff --git a/gcc/testsuite/gcc.target/aarch64/vect-ld1r.x b/gcc/testsuite/gcc.target/aarch64/vect-ld1r.x
index 680ce43..db83036 100644
--- a/gcc/testsuite/gcc.target/aarch64/vect-ld1r.x
+++ b/gcc/testsuite/gcc.target/aarch64/vect-ld1r.x
@@ -7,7 +7,7 @@
for (i = 0; i < 8 / sizeof (TYPE); i++) \
output[i] = *a; \
} \
- foo_ ## TYPE ## _q (TYPE *a, TYPE *output) \
+ void foo_ ## TYPE ## _q (TYPE *a, TYPE *output) \
{ \
int i; \
for (i = 0; i < 32 / sizeof (TYPE); i++) \
diff --git a/gcc/testsuite/gcc.target/aarch64/vect.x b/gcc/testsuite/gcc.target/aarch64/vect.x
index c0f79b5..a2b2c63 100644
--- a/gcc/testsuite/gcc.target/aarch64/vect.x
+++ b/gcc/testsuite/gcc.target/aarch64/vect.x
@@ -2,6 +2,7 @@ typedef int *__restrict__ pRINT;
typedef unsigned int *__restrict__ pRUINT;
typedef long long *__restrict__ pRINT64;
typedef unsigned long long *__restrict__ pRUINT64;
+extern int abs (int j);
void test_orn (pRUINT a, pRUINT b, pRUINT c)
{