]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix SPARC testsuite gnu11 fallout
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Thu, 23 Oct 2014 08:35:38 +0000 (08:35 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Thu, 23 Oct 2014 08:35:38 +0000 (08:35 +0000)
* 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
gcc/testsuite/gcc.target/sparc/20001013-1.c
gcc/testsuite/gcc.target/sparc/mnofpu.c
gcc/testsuite/gcc.target/sparc/sparc-ret.c
gcc/testsuite/gcc.target/sparc/ultrasp6.c
gcc/testsuite/gcc.target/sparc/ultrasp8.c

index 5762e8fa608c19432c29f8679f14a1731db19b1d..fe0c757c4bf56c47e7d312e341d7e1ce5879611b 100644 (file)
@@ -1,3 +1,12 @@
+2014-10-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * 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  <carrot@google.com>
 
        PR tree-optimization/63530
index 891ccab0a34be9819555d21793a4cabe7ce7ad69..d47c7ff17572644b813342ba2ee3e01deca9ea79 100644 (file)
@@ -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));
index 351585dd7106cdce8d5c873f8cde8ceff2e1b7fe..fbff4c40e2cf1578a062c2d4efb02c39ed5919c2 100644 (file)
@@ -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;
index f58b059e5aa4a529c4f3ab603fbea19c56e3672a..808e8a98f0e89efdc9eea6c77bf3251934acd8bf 100644 (file)
@@ -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;
index ad341dc16eb6182d03933525a9feffb49cbad615..0b6f46a83c44fa363e812ae6a97b1eba82c011bf 100644 (file)
@@ -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;
index a8bfefee57a697912b3ce1ab0fe8342cc45acd4f..295667603ea1f4da9baa48aa04cb314d9e249ea5 100644 (file)
@@ -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);