Re: [PATCH] Keep -ffp-contract=fast by default if we have -funsafe-math-optimizations

2014-03-10 Thread Joseph S. Myers
On Mon, 10 Mar 2014, Ian Bolton wrote: > OK for trunk or stage 1? OK for trunk with the ChangeLog entry fixed (it's in c-family/ChangeLog, so no gcc/c-family/ in the entry itself, and the date should be in -mm-dd format). -- Joseph S. Myers jos...@codesourcery.com

[PATCH] Keep -ffp-contract=fast by default if we have -funsafe-math-optimizations

2014-03-10 Thread Ian Bolton
Hi, In common.opt, -ffp-contract=fast is set as the default for GCC. But then it gets disabled in c-family/c-opts.c if you are using ISO C (e.g. with -std=c99). The reason for this patch is that if you have also specified -funsafe-math-optimizations (or -Ofast or -ffast-math) then it is likely y