I have submitted 26844 into the llvm bugzilla for clang 3.8.0 powerpc/powerpc64 C++ exception ABI scratch-register handling problems

Mark Millard markmi at dsl-only.net
Fri Mar 4 22:18:39 UTC 2016


I have submitted 26844 into the llvm bugzilla for TARGET_ARCH=powerpc (or powerpc64) via clang3.8.0 not getting the 4 scratch registers (or mfcr/mtcr) handling for the C++ exceptions ABI. This leads to getting a SEGV in the code:


> 678	  /* For targets with pointers smaller than the word size, we must extend the
> 679	     pointer, and this extension is target dependent.  */
> 680	  _Unwind_SetGR (context, __builtin_eh_return_data_regno (0),
> 681			 __builtin_extend_pointer (ue_header));
> 682	  _Unwind_SetGR (context, __builtin_eh_return_data_regno (1),
> 683			 handler_switch_value);
> 684	  _Unwind_SetIP (context, landing_pad);



===
Mark Millard
markmi at dsl-only.net



More information about the freebsd-toolchain mailing list