]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: tools: work around an internal compiler bug in gcc-3.4
authorWilly Tarreau <w@1wt.eu>
Sun, 16 Jun 2019 16:16:33 +0000 (18:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 16 Jun 2019 16:16:33 +0000 (18:16 +0200)
commit8daa920ae446078b38371d5cfbfd22426ad30c32
treed8296bfd693f0a995a8ea14c3defdfce2d7d2f78
parentc31e5a51267ec15f65afa6d871b38796405a766d
BUILD: tools: work around an internal compiler bug in gcc-3.4

gcc-3.4 fails to compile standard.c :

src/standard.c: In function `str2sa_range':
src/standard.c:1034: error: unrecognizable insn:
(insn 582 581 583 37 src/standard.c:949 (set (reg/f:SI 262)
        (high:SI (const:SI (plus:SI (symbol_ref:SI ("*ss.4") [flags 0x22] <var_decl fe782e80 ss>)
                    (const_int 2 [0x2]))))) -1 (nil)
    (nil))
src/standard.c:1034: internal compiler error: in extract_insn, at recog.c:2083

The workaround is explained here :

    https://gcc.gnu.org/bugzilla/show_bug.cgi?id=21613

It only requires creating a local variable containing the result of the
cast, which is totally harmless, so let's do it.
src/standard.c