Re: Robustify REAL_MODE_FORMAT

2015-10-30 Thread Richard Biener
On Thu, Oct 29, 2015 at 5:32 PM, Richard Sandiford wrote: > Richard Biener writes: >> On October 29, 2015 4:33:17 PM GMT+01:00, Bernd Schmidt >> wrote: >>>On 10/29/2015 04:30 PM, Richard Sandiford wrote: Make sure that REAL_MODE_FORMAT aborts if it is passed an invalid >>>mode, rather

Re: Robustify REAL_MODE_FORMAT

2015-10-29 Thread Richard Sandiford
Richard Biener writes: > On October 29, 2015 4:33:17 PM GMT+01:00, Bernd Schmidt > wrote: >>On 10/29/2015 04:30 PM, Richard Sandiford wrote: >>> Make sure that REAL_MODE_FORMAT aborts if it is passed an invalid >>mode, >>> rather than stepping beyond the bounds of an array. It turned out >>that

Re: Robustify REAL_MODE_FORMAT

2015-10-29 Thread Richard Biener
On October 29, 2015 4:33:17 PM GMT+01:00, Bernd Schmidt wrote: >On 10/29/2015 04:30 PM, Richard Sandiford wrote: >> Make sure that REAL_MODE_FORMAT aborts if it is passed an invalid >mode, >> rather than stepping beyond the bounds of an array. It turned out >that >> some code was passing non-flo

Re: Robustify REAL_MODE_FORMAT

2015-10-29 Thread Bernd Schmidt
On 10/29/2015 04:30 PM, Richard Sandiford wrote: Make sure that REAL_MODE_FORMAT aborts if it is passed an invalid mode, rather than stepping beyond the bounds of an array. It turned out that some code was passing non-float modes to the real.h routines. gcc/ * real.h (REAL_MODE_FORMAT