https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110459
--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #9) > Created attachment 61598 [details] > includes the fix for libstdc++ +FAIL: g++.dg/lto/pr107467 cp_lto_pr107467_0.o-cp_lto_pr107467_0.o link, -O2 -fno-strict-aliasing -flto (internal compiler error: in int_mode_for_mode, at stor-layout.cc:408) /home/apinski/src/upstream-gcc-isel/gcc/gcc/testsuite/g++.dg/lto/pr107467_0.C: In function 'get_const.isra': /home/apinski/src/upstream-gcc-isel/gcc/gcc/testsuite/g++.dg/lto/pr107467_0.C:21:34: internal compiler error: in int_mode_for_mode, at stor-layout.cc:408 0x239a6cf internal_error(char const*, ...) /home/apinski/src/upstream-gcc-isel/gcc/gcc/diagnostic-global-context.cc:517 0x995a93 fancy_abort(char const*, int, char const*) /home/apinski/src/upstream-gcc-isel/gcc/gcc/diagnostic.cc:1803 0x81b74f int_mode_for_mode(machine_mode) /home/apinski/src/upstream-gcc-isel/gcc/gcc/stor-layout.cc:408 0xb624e7 extract_bit_field_1 /home/apinski/src/upstream-gcc-isel/gcc/gcc/expmed.cc:1823 0xb63419 extract_bit_field(rtx_def*, poly_int<1u, unsigned long>, poly_int<1u, unsigned long>, int, rtx_def*, machine_mode, machine_mode, bool, rtx_def**) /home/apinski/src/upstream-gcc-isel/gcc/gcc/expmed.cc:2174 0xb67562 store_integral_bit_field /home/apinski/src/upstream-gcc-isel/gcc/gcc/expmed.cc:1012 0xb67562 store_bit_field_1 /home/apinski/src/upstream-gcc-isel/gcc/gcc/expmed.cc:891 0xb67f70 store_bit_field(rtx_def*, poly_int<1u, unsigned long>, poly_int<1u, unsigned long>, poly_int<1u, unsigned long>, poly_int<1u, unsigned long>, machine_mode, rtx_def*, bool, bool) /home/apinski/src/upstream-gcc-isel/gcc/gcc/expmed.cc:1213 0xb947e2 store_field /home/apinski/src/upstream-gcc-isel/gcc/gcc/expr.cc:8336 0xb90293 expand_assignment(tree_node*, tree_node*, bool) /home/apinski/src/upstream-gcc-isel/gcc/gcc/expr.cc:6334 0xb90293 expand_assignment(tree_node*, tree_node*, bool) /home/apinski/src/upstream-gcc-isel/gcc/gcc/expr.cc:5971 0xa50e19 expand_gimple_stmt_1 /home/apinski/src/upstream-gcc-isel/gcc/gcc/cfgexpand.cc:4289 0xa50e19 expand_gimple_stmt /home/apinski/src/upstream-gcc-isel/gcc/gcc/cfgexpand.cc:4370 0xa522fe expand_gimple_basic_block /home/apinski/src/upstream-gcc-isel/gcc/gcc/cfgexpand.cc:6433 0xa54316 execute /home/apinski/src/upstream-gcc-isel/gcc/gcc/cfgexpand.cc:7181 Wait I think I see my mistake, confusing bytes and bits.