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

--- Comment #9 from Gang Peng <gang.peng at aclsemi dot com> ---
Dear Andrew,

I have compiler the GNU Arm Embedded Toolchain 10.3-2021.10, the call stack is
as follow:

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.c:7852
  203 | } // namespace chip
      | ^
0x152ba73 diagnostic_impl
       
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/../libcpp/include/line-map.h:1309
0x152c5bc internal_error(char const*, ...)
       
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/../libcpp/include/line-map.h:1711
0x62f5db fancy_abort(char const*, int, char const*)
       
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/../libcpp/include/line-map.h:1778
0x622c16 require_pic_register
       
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/config/arm/thumb1.md:7852
0x622c16 legitimize_pic_address(rtx_def*, machine_mode, rtx_def*, rtx_def*,
bool)
       
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/config/arm/thumb1.md:7981
0x122373c gen_movsi(rtx_def*, rtx_def*)
       
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/poly-int.h:6428
0x97c5eb insn_gen_fn::operator()(rtx_def*, rtx_def*) const
       
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/poly-int.h:317
0x97c5eb emit_move_insn_1(rtx_def*, rtx_def*)
        /home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/expr.c:3759
0x97c993 emit_move_insn(rtx_def*, rtx_def*)
        /home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/expr.c:3855
0xf6efef arm32_output_mi_thunk
       
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/config/arm/thumb1.md:28546
0xf6efef arm_output_mi_thunk
       
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/config/arm/thumb1.md:28582
0x8a9bc0 cgraph_node::expand_thunk(bool, bool)
       
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/cgraphunit.c:1934
0x8aac76 cgraph_node::assemble_thunks_and_aliases()
       
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/cgraphunit.c:2226
0x8aad15 cgraph_node::assemble_thunks_and_aliases()
       
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/cgraphunit.c:2248
0x8aaf32 cgraph_node::expand()
       
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/cgraphunit.c:2369
0x8ac25f expand_all_functions
       
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/cgraphunit.c:2474
0x8ac25f symbol_table::compile()
       
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/cgraphunit.c:2837
0x8ae40c symbol_table::compile()
       
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/cgraphunit.c:2750
0x8ae40c symbol_table::finalize_compilation_unit()
       
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/cgraphunit.c:3017
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Could you kindly help to have a look, how can I fix this issue? Thank you very
mcuh!

BRs
Gang Peng

Reply via email to