~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to include/linux/compiler-gcc4.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#define __used                  __attribute__((__used__))
13
13
#define __must_check            __attribute__((warn_unused_result))
14
14
#define __compiler_offsetof(a,b) __builtin_offsetof(a,b)
15
 
#define __always_inline         inline __attribute__((always_inline))
16
 
 
17
 
/*
18
 
 * A trick to suppress uninitialized variable warning without generating any
19
 
 * code
20
 
 */
21
 
#define uninitialized_var(x) x = x
22
15
 
23
16
#if __GNUC_MINOR__ >= 3
24
17
/* Mark functions as cold. gcc will assume any path leading to a call
53
46
#define __noclone       __attribute__((__noclone__))
54
47
 
55
48
#endif
56
 
 
57
49
#endif
58
50
 
59
51
#if __GNUC_MINOR__ > 0
60
52
#define __compiletime_object_size(obj) __builtin_object_size(obj, 0)
61
53
#endif
62
 
#if __GNUC_MINOR__ >= 4
 
54
#if __GNUC_MINOR__ >= 4 && !defined(__CHECKER__)
63
55
#define __compiletime_warning(message) __attribute__((warning(message)))
64
56
#define __compiletime_error(message) __attribute__((error(message)))
65
57
#endif