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

--- Comment #13 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Can reproduce on the trunk too:
```
[apinski@xeond2 gcc]$ ./cc1plus CASEServer.ii -quiet  -fPIE -msingle-pic-base
-mpic-register=r9 -fomit-frame-pointer -mno-pic-data-is-text-relative -mthumb
-mlong-calls -mcpu=cortex-m33+nodsp -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mcmse
-Os -g -fno-use-cxa-atexit -fno-builtin-printf -fno-builtin-sprintf
-fno-builtin-snprintf -fno-common -ffunction-sections -fdata-sections
-fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
CASEServer.cpp: In member function ‘virtual CHIP_ERROR
chip::CASEServer::_ZThn4_N4chip10CASEServer28OnUnsolicitedMessageReceivedERKNS_13PayloadHeaderERPNS_9Messaging16ExchangeDelegateE(const
chip::PayloadHeader&, chip::Messaging::ExchangeDelegate*&)’:
CASEServer.cpp:203:1: internal compiler error: in require_pic_register, at
config/arm/arm.cc:8103
  203 | } // namespace chip
      | ^
0x1ef29a4 require_pic_register
        ../../gcc/config/arm/arm.cc:8103
0x1ef304f legitimize_pic_address(rtx_def*, machine_mode, rtx_def*, rtx_def*,
bool)
        ../../gcc/config/arm/arm.cc:8232
0x289d5ba gen_movsi(rtx_def*, rtx_def*)
        ../../gcc/config/arm/arm.md:6532
0x12ced5e rtx_insn* insn_gen_fn::operator()<rtx_def*, rtx_def*>(rtx_def*,
rtx_def*) const
        ../../gcc/recog.h:441
0x1490ab7 emit_move_insn_1(rtx_def*, rtx_def*)
        ../../gcc/expr.cc:4556
0x149155e emit_move_insn(rtx_def*, rtx_def*)
        ../../gcc/expr.cc:4726
0x1f30a44 arm32_output_mi_thunk
        ../../gcc/config/arm/arm.cc:29405
0x1f30bf1 arm_output_mi_thunk
        ../../gcc/config/arm/arm.cc:29443
0x1347dd8 expand_thunk(cgraph_node*, bool, bool)
        ../../gcc/symtab-thunks.cc:388
0x1363ddb cgraph_node::assemble_thunks_and_aliases()
        ../../gcc/cgraphunit.cc:1767
0x1363ec4 cgraph_node::assemble_thunks_and_aliases()
        ../../gcc/cgraphunit.cc:1789
0x1364518 cgraph_node::expand()
        ../../gcc/cgraphunit.cc:1918
0x1364922 expand_all_functions
        ../../gcc/cgraphunit.cc:2028
0x1365573 symbol_table::compile()
        ../../gcc/cgraphunit.cc:2404
0x13659fd symbol_table::finalize_compilation_unit()
        ../../gcc/cgraphunit.cc:2589
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

```

Reducing ...

Reply via email to