Implement SAFE_BUFFERS as __attribute__((no_stack_protector))

It was doing nothing outside of MSVC. Still seems doing nothing.
This commit is contained in:
Nekotekina 2020-03-24 21:12:54 +03:00
parent 471db3219d
commit b33648fd14

View file

@ -46,7 +46,7 @@
#define ASSUME(...) do { if (!(__VA_ARGS__)) __builtin_unreachable(); } while (0) // note: the compiler will generate code to evaluate "cond" if the expression is opaque
#endif
#define SAFE_BUFFERS
#define SAFE_BUFFERS __attribute__((no_stack_protector))
#define NEVER_INLINE __attribute__((noinline))
#define FORCE_INLINE __attribute__((always_inline)) inline
#define RESTRICT __restrict__