Commit f038cd81 by Rainer Orth Committed by Rainer Orth

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
parent 4d885a63
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> 2014-10-22 Guozhi Wei <carrot@google.com>
PR tree-optimization/63530 PR tree-optimization/63530
......
...@@ -31,7 +31,7 @@ union { ...@@ -31,7 +31,7 @@ union {
long long l; long long l;
} x = { l: 0x7ff8000000000000LL }, y; } x = { l: 0x7ff8000000000000LL }, y;
main () int main ()
{ {
unsigned int fsr = 0; unsigned int fsr = 0;
__asm __volatile ("ld %0, %%fsr" : : "m" (fsr)); __asm __volatile ("ld %0, %%fsr" : : "m" (fsr));
......
...@@ -69,6 +69,7 @@ static inline __attribute__((always_inline)) u32 __er32(struct e1000_hw *hw, uns ...@@ -69,6 +69,7 @@ static inline __attribute__((always_inline)) u32 __er32(struct e1000_hw *hw, uns
{ {
return __readl(hw->hw_addr + reg); return __readl(hw->hw_addr + reg);
} }
int e1e_rphy(struct e1000_hw *, int, u16 *);
void e1000e_update_stats(struct e1000_adapter *adapter) void e1000e_update_stats(struct e1000_adapter *adapter)
{ {
struct e1000_hw *hw = &adapter->hw; struct e1000_hw *hw = &adapter->hw;
......
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
/* Make sure that Ultrasparc return insn do not read below the stack. */ /* 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 bar (int a, int b, int c, int d, int e, int f, int g, int h)
{ {
int res; int res;
......
...@@ -4,6 +4,9 @@ ...@@ -4,6 +4,9 @@
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -mcpu=ultrasparc" } */ /* { dg-options "-O2 -mcpu=ultrasparc" } */
void __assert (const char *, const char *, int);
double HSRate(long, long, long, double, double, int);
typedef struct typedef struct
{ {
float EnergyErg; float EnergyErg;
......
...@@ -9,6 +9,9 @@ struct _reent; ...@@ -9,6 +9,9 @@ struct _reent;
extern unsigned long __malloc_trim_threshold; extern unsigned long __malloc_trim_threshold;
extern unsigned long __malloc_top_pad; 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) int _mallopt_r(struct _reent *reent_ptr, int param_number, int value)
{ {
__malloc_lock(reent_ptr); __malloc_lock(reent_ptr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment