On Tue, Nov 5, 2013 at 11:12 PM, Michael Goffioul <michael.goffioul@gmail.com> wrote:
On Tue, Nov 5, 2013 at 10:11 PM, Diego Casorran <dcasorran@gmail.com> wrote:
I can confirm the issue, but it only occurs when no optimization
options are used.

Thanks for checking it. However, I think the fact that it does not happen with -O2 is just an an artefact due to the fact that "x" variable is initialized with a constant value: I suppose the compiler than sees that it can precompute the result of cabsf(x) without needing to call cabsf. If you remove the initialization of "x" (e.g. only use "float complex x;"), then cabsf is used again, even with -O2 turned on.

For the record, the only solution at the moment is to downgrade to:
- mingw32-mingwrt=3.20-1
- mingw32-w32api=3.17-2

Hopefully, this bug will be fixed in future releases of MinGW.

Michael.