diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2016-08-16 17:48:44 +0200 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-09-19 16:31:08 -0400 |
| commit | 896af92e5b7f65de317b281acf469ccb9d713bb1 (patch) | |
| tree | 61a25ee462b1d29f47a641c37156795181c4b680 /lib/vector.h | |
| parent | af2d0efcac11723f9be52a3dae22dec31d157e24 (diff) | |
vtysh: work around gcc bug #69981
The memtypes changes break gcc -O0 build (none of the other optimisation
levels are affected, *any* of -Og, -Os, -O1, etc. make this go away).
Unfortunately, the option supposed to control this doesn't actually work
(-fno-keep-static-const; that not working is the actual gcc bug).
The workaround is to avoid DECLARE_MTYPE statements when their paired
DEFINE_MTYPE isn't linked in. Thankfully, that's only a problem in a
single place in vtysh where bgp_memory.h gets chain-included.
(vtysh.c -> bgp_vty.h -> bgpd.h -> bgp_memory.h)
So, this just breaks the chain at bgp_vty.h.
No other compiler (clang & icc tested) has exhibited this problem.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/vector.h')
0 files changed, 0 insertions, 0 deletions
