Remove Sun CC specific code.
Reviewed-by: Matt Turner <mattst88@gmail.com> Acked-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
parent
51564f04b7
commit
56aff6bb4e
|
@ -81,8 +81,6 @@
|
|||
/* Intel compiler supports inline keyword */
|
||||
# elif defined(__WATCOMC__) && (__WATCOMC__ >= 1100)
|
||||
# define inline __inline
|
||||
# elif defined(__SUNPRO_C) && defined(__C99FEATURES__)
|
||||
/* C99 supports inline keyword */
|
||||
# elif (__STDC_VERSION__ >= 199901L)
|
||||
/* C99 supports inline keyword */
|
||||
# else
|
||||
|
@ -100,8 +98,6 @@
|
|||
#ifndef restrict
|
||||
# if (__STDC_VERSION__ >= 199901L)
|
||||
/* C99 */
|
||||
# elif defined(__SUNPRO_C) && defined(__C99FEATURES__)
|
||||
/* C99 */
|
||||
# elif defined(__GNUC__)
|
||||
# define restrict __restrict__
|
||||
# elif defined(_MSC_VER)
|
||||
|
@ -118,8 +114,6 @@
|
|||
#ifndef __func__
|
||||
# if (__STDC_VERSION__ >= 199901L)
|
||||
/* C99 */
|
||||
# elif defined(__SUNPRO_C) && defined(__C99FEATURES__)
|
||||
/* C99 */
|
||||
# elif defined(__GNUC__)
|
||||
# define __func__ __FUNCTION__
|
||||
# elif defined(_MSC_VER)
|
||||
|
|
|
@ -182,7 +182,7 @@ static int has_cpuid(void)
|
|||
static inline void
|
||||
cpuid(uint32_t ax, uint32_t *p)
|
||||
{
|
||||
#if (defined(PIPE_CC_GCC) || defined(PIPE_CC_SUNPRO)) && defined(PIPE_ARCH_X86)
|
||||
#if defined(PIPE_CC_GCC) && defined(PIPE_ARCH_X86)
|
||||
__asm __volatile (
|
||||
"xchgl %%ebx, %1\n\t"
|
||||
"cpuid\n\t"
|
||||
|
@ -193,7 +193,7 @@ cpuid(uint32_t ax, uint32_t *p)
|
|||
"=d" (p[3])
|
||||
: "0" (ax)
|
||||
);
|
||||
#elif (defined(PIPE_CC_GCC) || defined(PIPE_CC_SUNPRO)) && defined(PIPE_ARCH_X86_64)
|
||||
#elif defined(PIPE_CC_GCC) && defined(PIPE_ARCH_X86_64)
|
||||
__asm __volatile (
|
||||
"cpuid\n\t"
|
||||
: "=a" (p[0]),
|
||||
|
@ -219,7 +219,7 @@ cpuid(uint32_t ax, uint32_t *p)
|
|||
static inline void
|
||||
cpuid_count(uint32_t ax, uint32_t cx, uint32_t *p)
|
||||
{
|
||||
#if (defined(PIPE_CC_GCC) || defined(PIPE_CC_SUNPRO)) && defined(PIPE_ARCH_X86)
|
||||
#if defined(PIPE_CC_GCC) && defined(PIPE_ARCH_X86)
|
||||
__asm __volatile (
|
||||
"xchgl %%ebx, %1\n\t"
|
||||
"cpuid\n\t"
|
||||
|
@ -230,7 +230,7 @@ cpuid_count(uint32_t ax, uint32_t cx, uint32_t *p)
|
|||
"=d" (p[3])
|
||||
: "0" (ax), "2" (cx)
|
||||
);
|
||||
#elif (defined(PIPE_CC_GCC) || defined(PIPE_CC_SUNPRO)) && defined(PIPE_ARCH_X86_64)
|
||||
#elif defined(PIPE_CC_GCC) && defined(PIPE_ARCH_X86_64)
|
||||
__asm __volatile (
|
||||
"cpuid\n\t"
|
||||
: "=a" (p[0]),
|
||||
|
@ -281,7 +281,7 @@ PIPE_ALIGN_STACK static inline boolean sse2_has_daz(void)
|
|||
} PIPE_ALIGN_VAR(16) fxarea;
|
||||
|
||||
fxarea.mxcsr_mask = 0;
|
||||
#if (defined(PIPE_CC_GCC) || defined(PIPE_CC_SUNPRO))
|
||||
#if defined(PIPE_CC_GCC)
|
||||
__asm __volatile ("fxsave %0" : "+m" (fxarea));
|
||||
#elif (defined(PIPE_CC_MSVC) && _MSC_VER >= 1700) || defined(PIPE_CC_ICL)
|
||||
/* 1700 = Visual Studio 2012 */
|
||||
|
|
|
@ -132,7 +132,7 @@ typedef unsigned char boolean;
|
|||
|
||||
|
||||
/* Macros for data alignment. */
|
||||
#if defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)) || defined(__SUNPRO_CC)
|
||||
#if defined(__GNUC__)
|
||||
|
||||
/* See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Type-Attributes.html */
|
||||
#define PIPE_ALIGN_TYPE(_alignment, _type) _type __attribute__((aligned(_alignment)))
|
||||
|
@ -178,10 +178,6 @@ void _ReadWriteBarrier(void);
|
|||
#pragma intrinsic(_ReadWriteBarrier)
|
||||
#define PIPE_READ_WRITE_BARRIER() _ReadWriteBarrier()
|
||||
|
||||
#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
|
||||
|
||||
#define PIPE_READ_WRITE_BARRIER() __machine_rw_barrier()
|
||||
|
||||
#else
|
||||
|
||||
#warning "Unsupported compiler"
|
||||
|
|
|
@ -77,10 +77,6 @@
|
|||
#define PIPE_CC_ICL
|
||||
#endif
|
||||
|
||||
#if defined(__SUNPRO_C) || defined(__SUNPRO_CC)
|
||||
#define PIPE_CC_SUNPRO
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Processor architecture
|
||||
|
|
|
@ -41,14 +41,6 @@
|
|||
#include "glsl_types.h"
|
||||
#include "program/hash_table.h"
|
||||
|
||||
#if defined(__SUNPRO_CC) && !defined(isnormal)
|
||||
#include <ieeefp.h>
|
||||
static int isnormal(double x)
|
||||
{
|
||||
return fpclass(x) == FP_NORMAL;
|
||||
}
|
||||
#endif
|
||||
|
||||
static float
|
||||
dot_f(ir_constant *op0, ir_constant *op1)
|
||||
{
|
||||
|
|
|
@ -32,14 +32,6 @@ template = """\
|
|||
#include "util/half_float.h"
|
||||
#include "nir_constant_expressions.h"
|
||||
|
||||
#if defined(__SUNPRO_CC)
|
||||
#include <ieeefp.h>
|
||||
static int isnormal(double x)
|
||||
{
|
||||
return fpclass(x) == FP_NORMAL;
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Evaluate one component of packSnorm4x8.
|
||||
*/
|
||||
|
|
|
@ -183,7 +183,7 @@ class gl_print_base(object):
|
|||
The name is also added to the file's undef_list.
|
||||
"""
|
||||
self.undef_list.append("PURE")
|
||||
print """# if defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
|
||||
print """# if defined(__GNUC__)
|
||||
# define PURE __attribute__((pure))
|
||||
# else
|
||||
# define PURE
|
||||
|
@ -223,7 +223,7 @@ class gl_print_base(object):
|
|||
"""
|
||||
|
||||
self.undef_list.append(S)
|
||||
print """# if (defined(__GNUC__) && !defined(__CYGWIN__) && !defined(__MINGW32__)) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590) && defined(__ELF__))
|
||||
print """# if defined(__GNUC__) && !defined(__CYGWIN__) && !defined(__MINGW32__)
|
||||
# define %s __attribute__((visibility("%s")))
|
||||
# else
|
||||
# define %s
|
||||
|
@ -243,7 +243,7 @@ class gl_print_base(object):
|
|||
"""
|
||||
|
||||
self.undef_list.append("NOINLINE")
|
||||
print """# if defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
|
||||
print """# if defined(__GNUC__)
|
||||
# define NOINLINE __attribute__((noinline))
|
||||
# else
|
||||
# define NOINLINE
|
||||
|
|
|
@ -61,7 +61,7 @@ extern "C" {
|
|||
# else
|
||||
# define _GLAPI_EXPORT __declspec(dllimport)
|
||||
# endif
|
||||
# elif defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
|
||||
# elif defined(__GNUC__)
|
||||
# define _GLAPI_EXPORT __attribute__((visibility("default")))
|
||||
# else
|
||||
# define _GLAPI_EXPORT
|
||||
|
|
|
@ -46,20 +46,6 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
|
||||
/**
|
||||
* Sun compilers define __i386 instead of the gcc-style __i386__
|
||||
*/
|
||||
#ifdef __SUNPRO_C
|
||||
# if !defined(__i386__) && defined(__i386)
|
||||
# define __i386__
|
||||
# elif !defined(__amd64__) && defined(__amd64)
|
||||
# define __amd64__
|
||||
# elif !defined(__sparc__) && defined(__sparc)
|
||||
# define __sparc__
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
/**
|
||||
* Either define MESA_BIG_ENDIAN or MESA_LITTLE_ENDIAN, and CPU_TO_LE32.
|
||||
* Do not use these unless absolutely necessary!
|
||||
|
|
|
@ -186,7 +186,7 @@ do { \
|
|||
* inline a static function that we later use in an alias. - ajax
|
||||
*/
|
||||
#ifndef PUBLIC
|
||||
# if defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
|
||||
# if defined(__GNUC__)
|
||||
# define PUBLIC __attribute__((visibility("default")))
|
||||
# define USED __attribute__((used))
|
||||
# elif defined(_MSC_VER)
|
||||
|
|
Loading…
Reference in New Issue