Public bug reported:

elk FTBFS in Ubuntu on ppc64el because ppc64el is using -O3, and elk
internally uses a so-called "Generic_Function" that wraps calls to
function pointers that might take either 1 or 2 args.

The code in question will never actually try to call pow() with a single
arg, but enforcement of this is several layers away, stymying the
optimizer.

Will attach a reduced test case to reproduce this issue.  Problem can be
reproduced by calling:

  gcc-5 -O3 -c math2.i -o libelk_la-math.o

It is also reproducible with gcc-6.

It is reproducible cross-architecture, ppc64el is just the only
architecture using -O3 by default.

** Affects: gcc-5 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1563134

Title:
  ICE in gimple_expand_builtin_pow with -O3 on ppc64el

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1563134/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to