On 11/20/2017 04:04 AM, Claudiu Zissulescu wrote: > When a port is using hardware loops (like ARC) makes use of > reorg_loops to find and analyze loops that end in loop_end > instructions. The very same function can be set to reorder the cfg > such that the loop end occurs after the loop start. This task is > performed by reorder_loops function which at its turn calls > cfg_layout_finalize -> fixup_reoreder_chain -> > force_nonfallthru_and_redirect (cfgrtl.c:1476). However, the latter > is splitting a call and its corresponding CALL_ARG_LOCATION note, > leading to an assert in dwarf2out_var_location() at dwarf2out.c:26391. > > Original post: > https://gcc.gnu.org/ml/gcc/2017-11/msg00110.html > > Ok to apply? > Claudiu > > gcc/ > 2017-11-20 Claudiu Zissulescu <claz...@synopsys.com> > > * cfgrtl.c (force_nonfallthru_and_redirect): Don't split a call > and its corresponding call arg location note. OK, but please add the test from the original message you posted to gcc.target/arc with suitable dg-options.
jeff