[Bug 1563134] [NEW] ICE in gimple_expand_builtin_pow with -O3 on ppc64el

Steve Langasek steve.langasek at canonical.com
Tue Mar 29 00:31:45 UTC 2016


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
Foundations Bugs, which is subscribed to gcc-5 in Ubuntu.
https://bugs.launchpad.net/bugs/1563134

Title:
  ICE in gimple_expand_builtin_pow with -O3 on ppc64el

Status in gcc-5 package in Ubuntu:
  New

Bug description:
  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.

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



More information about the foundations-bugs mailing list