]> git.kaiwu.me - haproxy.git/commit
[BUG] definitely fix regparm issues between haproxy core and ebtree
authorWilly Tarreau <w@1wt.eu>
Tue, 27 Oct 2009 20:40:18 +0000 (21:40 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 27 Oct 2009 20:53:58 +0000 (21:53 +0100)
commitcc05fba6135aa7f6145128f8262691a7d5eab83c
tree2c701c87c018663b637061f3429aa3cc4df85034
parent3e79479348290d032f468aafe2664fc35e2c283a
[BUG] definitely fix regparm issues between haproxy core and ebtree

It's a pain to enable regparm because ebtree is built in its corner
and does not depend on the rest of the config. This causes no problem
except that if the regparm settings are not exactly similar, then we
can get inconsistent function interfaces and crashes.

One solution realized in this patch consists in externalizing all
compiler settings and changing CONFIG_XXX_REGPARM into CONFIG_REGPARM
so that we ensure that any sub-component uses the same setting. Since
ebtree used a value here and not a boolean, haproxy's config has been
set to use a number too. Both haproxy's core and ebtree currently use
the same copy of the compiler.h file. That way we don't have any issue
anymore when one setting changes somewhere.
Makefile
ebtree/compiler.h [new file with mode: 0644]
ebtree/ebtree.h
include/common/compat.h
include/common/compiler.h [new file with mode: 0644]
include/common/config.h
include/common/standard.h