source: GPL/trunk/include/linux/compiler-gcc3.h@ 598

Last change on this file since 598 was 598, checked in by David Azarewicz, 8 years ago

Merged/reintegrated v2 branch into trunk. Trunk is now v2

File size: 869 bytes
Line 
1/* Never include this file directly. Include <linux/compiler.h> instead. */
2
3/* These definitions are for GCC v3.x. */
4#include <linux/compiler-gcc.h>
5
6#define inline __inline
7#define INLINE inline
8#define __attribute__
9
10#if __GNUC_MINOR__ >= 1 && __GNUC_MINOR__ < 4
11# define inline __inline__ __attribute__((always_inline))
12# define __inline__ __inline__ __attribute__((always_inline))
13# define __inline __inline__ __attribute__((always_inline))
14#endif
15
16#if __GNUC_MINOR__ > 0
17# define __deprecated __attribute__((deprecated))
18#endif
19
20#if __GNUC_MINOR__ >= 3
21# define __attribute_used__ __attribute__((__used__))
22#else
23# define __attribute_used__ __attribute__((__unused__))
24#endif
25
26#define __attribute_pure__ __attribute__((pure))
27#define __attribute_const__ __attribute__((__const__))
28
29#if __GNUC_MINOR__ >= 1
30#define noinline __attribute__((noinline))
31#endif
Note: See TracBrowser for help on using the repository browser.