Re: PR68146: Check for null SSA_NAME_DEF_STMTs in fold-const.c

2015-12-02 Thread Richard Biener
On Wed, Dec 2, 2015 at 9:33 AM, Richard Sandiford wrote: > The problem in the testcase was that tree-complex.c was trying > to fold ABS_EXPRs of SSA names that didn't yet have a definition > (because the SSA names were real and imaginary parts of a complex > SSA name whose definition hadn't yet be

PR68146: Check for null SSA_NAME_DEF_STMTs in fold-const.c

2015-12-02 Thread Richard Sandiford
The problem in the testcase was that tree-complex.c was trying to fold ABS_EXPRs of SSA names that didn't yet have a definition (because the SSA names were real and imaginary parts of a complex SSA name whose definition hadn't yet been visited by the pass). tree-complex.c uses a straightforward wal