Re: avoid null ptr deref in cselib_record_sets

2018-12-05 Thread Jakub Jelinek
On Wed, Dec 05, 2018 at 04:50:19AM -0200, Alexandre Oliva wrote: > Jeff tested this with a cross compiler to h8300-elf, and several other > native and cross toolchains IIUC. I'm regstrapping it myself on i686- > and x86_64-linux-gnu. Ok to install? > > > for gcc/ChangeLog > > *

avoid null ptr deref in cselib_record_sets

2018-12-04 Thread Alexandre Oliva
Jeff Law tells me h8300-elf fails gcc.c-torture/compile/pr49029.c with -O2 -g -mint32 -mh. This patch fixes it. The problem is that strict low part handling in cselib_record_sets assumes src_elt is not NULL. That src_elt is taken from a strict low part set, but it won't always have a src_elt to