BUILD: bug: refine HA_LINK_ERROR() to only be used on gcc and derivatives
authorWilly Tarreau <w@1wt.eu>
Tue, 9 Mar 2021 09:08:05 +0000 (10:08 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 9 Mar 2021 09:09:43 +0000 (10:09 +0100)
commit82a92743fcbaf1f88b05f31ab8d2f7093157aad1
tree5a5fcc7e368869b49f49d843504176520dcae4cd
parentb7e0c633e89fabf04966f4ac14d5902d96b8c7a6
BUILD: bug: refine HA_LINK_ERROR() to only be used on gcc and derivatives

TCC happens to define __OPTIMIZE__ at -O2 but doesn't proceed with dead
code elimination, resulting in ha_free() to always reference the link
error symbol. Let's condition this test on __GCC__ which others like
Clang also define.
include/haproxy/bug.h