ICE in gimple_expand_builtin_pow with -O3 on ppc64el

Bug #1563134 reported by Steve Langasek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc
Unknown
Unknown
gcc-5 (Ubuntu)
Fix Released
Undecided
Unassigned

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.

Revision history for this message
Steve Langasek (vorlon) wrote :
Matthias Klose (doko)
Changed in gcc-5 (Ubuntu):
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gcc-5 - 5.3.1-13ubuntu4

---------------
gcc-5 (5.3.1-13ubuntu4) xenial; urgency=medium

  * Update to SVN 20160404 (r234723, 5.3.1) from the gcc-5-branch.
    - Fix PR c++/70393, PR target/70453, PR rtl-optimization/69307,
      PR rtl-optimization/69102, PR rtl-optimization/69032, PR target/66660,
      PR target/64411, PR rtl-optimization/70460, PR target/68973,
      PR middle-end/70457 (LP: #1563134), PR rtl-optimization/68236,
      PR target/67896 (AArch64), PR fortran/66911, PR fortran/65795,
      PR target/67172 (MingW), PR target/70525 (x86), PR libgfortran/70235.
  * Update the ibm branch to 20160324.

 -- Matthias Klose <email address hidden> Tue, 05 Apr 2016 13:43:35 +0200

Changed in gcc-5 (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.