compiler-gcc3.h 865 B

1234567891011121314151617181920212223242526272829303132
  1. /* Never include this file directly. Include <linux/compiler.h> instead. */
  2. /* These definitions are for GCC v3.x. */
  3. #include <linux/compiler-gcc.h>
  4. #if __GNUC_MINOR__ >= 1
  5. # define inline inline __attribute__((always_inline))
  6. # define __inline__ __inline__ __attribute__((always_inline))
  7. # define __inline __inline __attribute__((always_inline))
  8. #endif
  9. #if __GNUC_MINOR__ > 0
  10. # define __deprecated __attribute__((deprecated))
  11. #endif
  12. #if __GNUC_MINOR__ >= 3
  13. # define __attribute_used__ __attribute__((__used__))
  14. #else
  15. # define __attribute_used__ __attribute__((__unused__))
  16. #endif
  17. #define __attribute_pure__ __attribute__((pure))
  18. #define __attribute_const__ __attribute__((__const__))
  19. #if __GNUC_MINOR__ >= 1
  20. #define noinline __attribute__((noinline))
  21. #endif
  22. #if __GNUC_MINOR__ >= 4
  23. #define __must_check __attribute__((warn_unused_result))
  24. #endif