diff options
| author | Suraj Das <surajdazz@gmail.com> | 2017-07-28 10:05:23 +0000 |
|---|---|---|
| committer | Suraj Das <surajdazz@gmail.com> | 2017-07-28 10:05:23 +0000 |
| commit | 94a2c2973f641c53174e4bc78f3e0caff87af798 (patch) | |
| tree | 4da4b71ccd5ea8556f92c79ff430707f20af5750 /include/linux/compiler-gcc.h | |
| parent | 57a6500a6977ecceed32332652cc3d60032f742d (diff) | |
| parent | 435cbe0725bdd6e41cf9df93f1e98ba1e38a5cb6 (diff) | |
Merge branch 'LA.BF64.1.2.3_rb1.14' of https://github.com/upstream-caf-kernels/msm-3.10 into n7.1n7.1
Diffstat (limited to 'include/linux/compiler-gcc.h')
| -rw-r--r-- | include/linux/compiler-gcc.h | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h index 2ad0896dd62..953cd12175c 100644 --- a/include/linux/compiler-gcc.h +++ b/include/linux/compiler-gcc.h @@ -183,31 +183,11 @@ #if GCC_VERSION >= 40600 /* - * When used with Link Time Optimization, gcc can optimize away C functions or - * variables which are referenced only from assembly code. __visible tells the - * optimizer that something else uses this function or variable, thus preventing - * this. + * Tell the optimizer that something else uses this function or variable. */ #define __visible __attribute__((externally_visible)) #endif - -#if GCC_VERSION >= 40900 && !defined(__CHECKER__) -/* - * __assume_aligned(n, k): Tell the optimizer that the returned - * pointer can be assumed to be k modulo n. The second argument is - * optional (default 0), so we use a variadic macro to make the - * shorthand. - * - * Beware: Do not apply this to functions which may return - * ERR_PTRs. Also, it is probably unwise to apply it to functions - * returning extra information in the low bits (but in that case the - * compiler should see some alignment anyway, when the return value is - * massaged by 'flags = ptr & 3; ptr &= ~3;'). - */ -#define __assume_aligned(a, ...) __attribute__((__assume_aligned__(a, ## __VA_ARGS__))) -#endif - /* * GCC 'asm goto' miscompiles certain code sequences: * |
