ICE in gimple_expand_builtin_pow with -O3 on ppc64el
Bug #1563134 reported by
Steve Langasek
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.
Changed in gcc-5 (Ubuntu): | |
status: | New → Confirmed |
To post a comment you must log in.
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. n/69307, n/69102, PR rtl-optimizatio n/69032, PR target/66660, n/70460, PR target/68973, n/68236,
- Fix PR c++/70393, PR target/70453, PR rtl-optimizatio
PR rtl-optimizatio
PR target/64411, PR rtl-optimizatio
PR middle-end/70457 (LP: #1563134), PR rtl-optimizatio
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