diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2021-06-19 14:32:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-19 14:32:43 +0200 |
| commit | ca4849b3742b6bdfc2695e691d5fd39163bfc854 (patch) | |
| tree | 3712944104b1a5520ad8cbf222d748180ed42026 /lib/compiler.h | |
| parent | 7c215da68a90171bafddece9c3d101ac078728fa (diff) | |
| parent | 4f08c715db6893ff439d0a39bf4506cd26256d13 (diff) | |
Merge pull request #8876 from idryzhov/remove-pure
lib: remove pure attribute from functions that modify memory
Diffstat (limited to 'lib/compiler.h')
| -rw-r--r-- | lib/compiler.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/compiler.h b/lib/compiler.h index bbfe01b569..e805eb8be4 100644 --- a/lib/compiler.h +++ b/lib/compiler.h @@ -123,15 +123,6 @@ extern "C" { #define assume(x) #endif -/* pure = function does not modify memory & return value is the same if - * memory hasn't changed (=> allows compiler to optimize) - * - * Mostly autodetected by the compiler if function body is available (i.e. - * static inline functions in headers). Since that implies it should only be - * used in headers for non-inline functions, the "extern" is included here. - */ -#define ext_pure extern __attribute__((pure)) - /* for helper functions defined inside macros */ #define macro_inline static inline __attribute__((unused)) #define macro_pure static inline __attribute__((unused, pure)) |
