aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-if-conv.c
diff options
context:
space:
mode:
authorIlya Leoshkevich <iii@linux.ibm.com>2018-10-25 13:47:10 +0000
committerIlya Leoshkevich <iii@gcc.gnu.org>2018-10-25 13:47:10 +0000
commitcd747405e4cb332d639b248be140424b5e06b609 (patch)
tree92e7c35227a53ac41bb0459c440d67ebf18735d7 /gcc/tree-if-conv.c
parent0f317ef76269a989ae751a808f946d15b740baf9 (diff)
downloadgcc-cd747405e4cb332d639b248be140424b5e06b609.zip
gcc-cd747405e4cb332d639b248be140424b5e06b609.tar.gz
gcc-cd747405e4cb332d639b248be140424b5e06b609.tar.bz2
Fix rtx_code_size static initialization order fiasco
r264556 and r264537 changed the format of EQ_ATTR_ALT RTXs to "ww", which also required adjusting rtx_code_size initializer. In order to simplify things, the list of rtx_codes known to use HOST_WIDE_INTs was replaced by the format string check. However, unlike the old one, this new check cannot be always performed at compile time, in which case a static constructor is generated. This may lead to a static initialization order fiasco with respect to other static constructors in the compiler, in case of PR87747, cselib's pool_allocator. gcc/ChangeLog: 2018-10-25 Ilya Leoshkevich <iii@linux.ibm.com> PR bootstrap/87747 * rtl.c (RTX_CODE_HWINT_P_1): New helper macro. (RTX_CODE_HWINT_P): New macro. (rtx_code_size): Use RTX_CODE_HWINT_P (). From-SVN: r265488
Diffstat (limited to 'gcc/tree-if-conv.c')
0 files changed, 0 insertions, 0 deletions