[Bug target/69827] [5 Regression] sincos not done

2016-02-16 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69827

--- Comment #3 from Richard Biener  ---
cygwin probably runs into the target hooks querying libc functionality

  switch (gimple_call_combined_fn (stmt))
{
CASE_CFN_COS:
CASE_CFN_SIN:
CASE_CFN_CEXPI:
  /* Make sure we have either sincos or cexp.  */
  if (!targetm.libc_has_function (function_c99_math_complex)
  && !targetm.libc_has_function (function_sincos))
break;

  arg = gimple_call_arg (stmt, 0);
  if (TREE_CODE (arg) == SSA_NAME)
cfg_changed |= execute_cse_sincos_1 (arg);

[Bug target/69827] [5 Regression] sincos not done

2016-02-15 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69827

Thomas Koenig  changed:

   What|Removed |Added

 Target||x86_64-unknown-cygwin
  Component|tree-optimization   |target

--- Comment #2 from Thomas Koenig  ---
Also works for me on Linux.

Hmm... what I find strange is that sincos is called from
__builtin_sincos anyway.

So, looks like a target issue.