Commit eab47093 by David S. Miller Committed by David S. Miller

sparc: Fix warnings when using visintrin.h with VIS level lower than 3.

	* config/sparc/visintrin.h: Add appropriate __VIS__ cpp protection.

From-SVN: r182067
parent 806fc6aa
2011-12-06 David S. Miller <davem@davemloft.net>
* config/sparc/visintrin.h: Add appropriate __VIS__ cpp protection.
2011-12-06 Georg-Johann Lay <avr@gjlay.de> 2011-12-06 Georg-Johann Lay <avr@gjlay.de>
* config/avr/avr.c (avr_file_start): Fix missing , * config/avr/avr.c (avr_file_start): Fix missing ,
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
#ifndef _VISINTRIN_H_INCLUDED #ifndef _VISINTRIN_H_INCLUDED
#define _VISINTRIN_H_INCLUDED #define _VISINTRIN_H_INCLUDED
#ifdef __VIS__
typedef int __v2si __attribute__ ((__vector_size__ (8))); typedef int __v2si __attribute__ ((__vector_size__ (8)));
typedef int __v1si __attribute__ ((__vector_size__ (4))); typedef int __v1si __attribute__ ((__vector_size__ (4)));
typedef short __v4hi __attribute__ ((__vector_size__ (8))); typedef short __v4hi __attribute__ ((__vector_size__ (8)));
...@@ -32,6 +34,8 @@ typedef unsigned char __v8qi __attribute__ ((__vector_size__ (8))); ...@@ -32,6 +34,8 @@ typedef unsigned char __v8qi __attribute__ ((__vector_size__ (8)));
typedef unsigned char __v4qi __attribute__ ((__vector_size__ (4))); typedef unsigned char __v4qi __attribute__ ((__vector_size__ (4)));
typedef int __i64 __attribute__ ((__mode__ (DI))); typedef int __i64 __attribute__ ((__mode__ (DI)));
#if __VIS__ >= 0x200
extern __inline void extern __inline void
__attribute__ ((__gnu_inline__, __always_inline__, __artificial__)) __attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
__vis_write_gsr (__i64 __A) __vis_write_gsr (__i64 __A)
...@@ -46,6 +50,8 @@ __vis_read_gsr (void) ...@@ -46,6 +50,8 @@ __vis_read_gsr (void)
return __builtin_vis_read_gsr (); return __builtin_vis_read_gsr ();
} }
#endif /* __VIS__ >= 0x200 */
extern __inline void * extern __inline void *
__attribute__ ((__gnu_inline__, __always_inline__, __artificial__)) __attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
__vis_alignaddr (void *__A, long __B) __vis_alignaddr (void *__A, long __B)
...@@ -354,6 +360,8 @@ __vis_array32 (long __A, long __B) ...@@ -354,6 +360,8 @@ __vis_array32 (long __A, long __B)
return __builtin_vis_array32 (__A, __B); return __builtin_vis_array32 (__A, __B);
} }
#if __VIS__ >= 0x200
extern __inline long extern __inline long
__attribute__ ((__gnu_inline__, __always_inline__, __artificial__)) __attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
__vis_bmask (long __A, long __B) __vis_bmask (long __A, long __B)
...@@ -431,6 +439,10 @@ __vis_edge32ln (void *__A, void *__B) ...@@ -431,6 +439,10 @@ __vis_edge32ln (void *__A, void *__B)
return __builtin_vis_edge32ln (__A, __B); return __builtin_vis_edge32ln (__A, __B);
} }
#endif /* __VIS__ >= 0x200 */
#if __VIS__ >= 0x300
extern __inline void extern __inline void
__attribute__ ((__gnu_inline__, __always_inline__, __artificial__)) __attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
__vis_cmask8 (long __A) __vis_cmask8 (long __A)
...@@ -690,4 +702,8 @@ __vis_xmulxhi (__i64 __A, __i64 __B) ...@@ -690,4 +702,8 @@ __vis_xmulxhi (__i64 __A, __i64 __B)
return __builtin_vis_xmulxhi (__A, __B); return __builtin_vis_xmulxhi (__A, __B);
} }
#endif /* __VIS__ >= 0x300 */
#endif /* __VIS__ */
#endif /* _VISINTRIN_H_INCLUDED */ #endif /* _VISINTRIN_H_INCLUDED */
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