From f038cd81d14f7b8400b12ea905d3f469a894232b Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Thu, 23 Oct 2014 08:35:38 +0000 Subject: [PATCH] Fix SPARC testsuite gnu11 fallout * gcc.target/sparc/20001013-1.c (main): Declare int return. * gcc.target/sparc/mnofpu.c (e1e_rphy): Declare. * gcc.target/sparc/sparc-ret.c (toto): Declare. * gcc.target/sparc/ultrasp6.c (__assert, HSRate): Declare. * gcc.target/sparc/ultrasp8.c (__malloc_lock, __malloc_unlock): Declare. From-SVN: r216576 --- gcc/testsuite/ChangeLog | 9 +++++++++ gcc/testsuite/gcc.target/sparc/20001013-1.c | 2 +- gcc/testsuite/gcc.target/sparc/mnofpu.c | 1 + gcc/testsuite/gcc.target/sparc/sparc-ret.c | 2 ++ gcc/testsuite/gcc.target/sparc/ultrasp6.c | 3 +++ gcc/testsuite/gcc.target/sparc/ultrasp8.c | 3 +++ 6 files changed, 19 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5762e8fa608..fe0c757c4bf 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2014-10-23 Rainer Orth + + * gcc.target/sparc/20001013-1.c (main): Declare int return. + * gcc.target/sparc/mnofpu.c (e1e_rphy): Declare. + * gcc.target/sparc/sparc-ret.c (toto): Declare. + * gcc.target/sparc/ultrasp6.c (__assert, HSRate): Declare. + * gcc.target/sparc/ultrasp8.c (__malloc_lock, __malloc_unlock): + Declare. + 2014-10-22 Guozhi Wei PR tree-optimization/63530 diff --git a/gcc/testsuite/gcc.target/sparc/20001013-1.c b/gcc/testsuite/gcc.target/sparc/20001013-1.c index 891ccab0a34..d47c7ff1757 100644 --- a/gcc/testsuite/gcc.target/sparc/20001013-1.c +++ b/gcc/testsuite/gcc.target/sparc/20001013-1.c @@ -31,7 +31,7 @@ union { long long l; } x = { l: 0x7ff8000000000000LL }, y; -main () +int main () { unsigned int fsr = 0; __asm __volatile ("ld %0, %%fsr" : : "m" (fsr)); diff --git a/gcc/testsuite/gcc.target/sparc/mnofpu.c b/gcc/testsuite/gcc.target/sparc/mnofpu.c index 351585dd710..fbff4c40e2c 100644 --- a/gcc/testsuite/gcc.target/sparc/mnofpu.c +++ b/gcc/testsuite/gcc.target/sparc/mnofpu.c @@ -69,6 +69,7 @@ static inline __attribute__((always_inline)) u32 __er32(struct e1000_hw *hw, uns { return __readl(hw->hw_addr + reg); } +int e1e_rphy(struct e1000_hw *, int, u16 *); void e1000e_update_stats(struct e1000_adapter *adapter) { struct e1000_hw *hw = &adapter->hw; diff --git a/gcc/testsuite/gcc.target/sparc/sparc-ret.c b/gcc/testsuite/gcc.target/sparc/sparc-ret.c index f58b059e5aa..808e8a98f0e 100644 --- a/gcc/testsuite/gcc.target/sparc/sparc-ret.c +++ b/gcc/testsuite/gcc.target/sparc/sparc-ret.c @@ -5,6 +5,8 @@ /* Make sure that Ultrasparc return insn do not read below the stack. */ +void toto (int *); + int bar (int a, int b, int c, int d, int e, int f, int g, int h) { int res; diff --git a/gcc/testsuite/gcc.target/sparc/ultrasp6.c b/gcc/testsuite/gcc.target/sparc/ultrasp6.c index ad341dc16eb..0b6f46a83c4 100644 --- a/gcc/testsuite/gcc.target/sparc/ultrasp6.c +++ b/gcc/testsuite/gcc.target/sparc/ultrasp6.c @@ -4,6 +4,9 @@ /* { dg-do compile } */ /* { dg-options "-O2 -mcpu=ultrasparc" } */ +void __assert (const char *, const char *, int); +double HSRate(long, long, long, double, double, int); + typedef struct { float EnergyErg; diff --git a/gcc/testsuite/gcc.target/sparc/ultrasp8.c b/gcc/testsuite/gcc.target/sparc/ultrasp8.c index a8bfefee57a..295667603ea 100644 --- a/gcc/testsuite/gcc.target/sparc/ultrasp8.c +++ b/gcc/testsuite/gcc.target/sparc/ultrasp8.c @@ -9,6 +9,9 @@ struct _reent; extern unsigned long __malloc_trim_threshold; extern unsigned long __malloc_top_pad; +void __malloc_lock (void *); +void __malloc_unlock (void *); + int _mallopt_r(struct _reent *reent_ptr, int param_number, int value) { __malloc_lock(reent_ptr); -- 2.30.2