Re: Fix nullptr access in true_regnum

2014-10-16 Thread Jeff Law
On 10/16/14 15:33, Oleg Endo wrote: Hi, While working on some SH builtins I ran into the issue that the function true_regnum in jump.c tries to access the reg_renumber array without checking for nullptr. The particular use case here is using true_regnum in a predicate that is invoked during bui

Fix nullptr access in true_regnum

2014-10-16 Thread Oleg Endo
Hi, While working on some SH builtins I ran into the issue that the function true_regnum in jump.c tries to access the reg_renumber array without checking for nullptr. The particular use case here is using true_regnum in a predicate that is invoked during builtin function expansion in the TARGET_