mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-01 22:48:25 +00:00
DEBUG: mark ABORT_NOW() as unreachable
The purpose is to make the program die at this point, so let's help the compiler optimise the code (especially in sensitive areas) by telling it that ABORT_NOW() does not return. This reduces the overall code size by ~0.5%.
This commit is contained in:
parent
be0dbba6ec
commit
f19aab88d5
@ -47,7 +47,7 @@
|
||||
/* More efficient than abort() because it does not mangle the
|
||||
* stack and stops at the exact location we need.
|
||||
*/
|
||||
#define ABORT_NOW() do { DUMP_TRACE(); (*(volatile int*)1=0); } while (0)
|
||||
#define ABORT_NOW() do { DUMP_TRACE(); (*(volatile int*)1=0); my_unreachable(); } while (0)
|
||||
#endif
|
||||
|
||||
/* This is the generic low-level macro dealing with conditional warnings and
|
||||
|
Loading…
Reference in New Issue
Block a user