[Bug bootstrap/62300] [5 Regression] internal compiler error: in as_a, at is-a.h:192

2014-08-29 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62300

Richard Biener rguenth at gcc dot gnu.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #7 from Richard Biener rguenth at gcc dot gnu.org ---
Fixed.


[Bug bootstrap/62300] [5 Regression] internal compiler error: in as_a, at is-a.h:192

2014-08-28 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62300

--- Comment #1 from H.J. Lu hjl.tools at gmail dot com ---
Created attachment 33413
  -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33413action=edit
A testcase

[x32@gnu-35 gcc]$ ./xgcc -B./ -S -fPIC -O2 /tmp/x.i  -mx32
../../../../src-trunk/libgcc/config/libbid/bid128_fma.c: In function
‘rounding_correction.constprop’:
../../../../src-trunk/libgcc/config/libbid/bid128_fma.c:33:1: internal compiler
error: in as_a, at is-a.h:192
0x781642 rtx_insn* as_artx_insn*, rtx_def(rtx_def*)
../../src-trunk/gcc/is-a.h:192
0x90b93c assign_parm_setup_reg
../../src-trunk/gcc/function.c:3044
0x90d763 assign_parms
../../src-trunk/gcc/function.c:3453
0x9117cf expand_function_start(tree_node*)
../../src-trunk/gcc/function.c:4809
0x760cd9 execute
../../src-trunk/gcc/cfgexpand.c:5715
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See http://gcc.gnu.org/bugs.html for instructions.

[Bug bootstrap/62300] [5 Regression] internal compiler error: in as_a, at is-a.h:192

2014-08-28 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62300

H.J. Lu hjl.tools at gmail dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2014-08-29
   Target Milestone|--- |5.0
 Ever confirmed|0   |1

--- Comment #2 from H.J. Lu hjl.tools at gmail dot com ---
r214689 is OK.


[Bug bootstrap/62300] [5 Regression] internal compiler error: in as_a, at is-a.h:192

2014-08-28 Thread dmalcolm at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62300

--- Comment #3 from Dave Malcolm dmalcolm at redhat dot com ---
Created attachment 33414
  -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33414action=edit
Candidate fix, only lightly tested so far


[Bug bootstrap/62300] [5 Regression] internal compiler error: in as_a, at is-a.h:192

2014-08-28 Thread dmalcolm at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62300

--- Comment #4 from Dave Malcolm dmalcolm at redhat dot com ---
Sorry about this.

The issue is here:

  3042insn = as_a rtx_insn * (
  3043 gen_extend_insn (op0, t, promoted_nominal_mode,
  3044  data-passed_mode, unsignedp));

which I mistakenly introduced in r214698.

The result of the gen_extend_insn is a SET, not an insn:

(set (reg/v:DI 151 [ ptrres ])
(zero_extend:DI (mem/f/c:SI (reg/f:SI 77 virtual-incoming-args) [8 ptrres+0
S4 A64])))

hence the as_a rtx_insn * fails.

Am attaching a patch which appears to fix it.


[Bug bootstrap/62300] [5 Regression] internal compiler error: in as_a, at is-a.h:192

2014-08-28 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62300

--- Comment #5 from dmalcolm at gcc dot gnu.org ---
Author: dmalcolm
Date: Fri Aug 29 03:12:01 2014
New Revision: 214714

URL: https://gcc.gnu.org/viewcvs?rev=214714root=gccview=rev
Log:
PR bootstrap/62300
* function.c (assign_parm_setup_reg): Remove erroneous checked
cast to rtx_insn * on result of gen_extend_insn in favor of
introducing a new local rtx pat.


Modified:
trunk/gcc/ChangeLog
trunk/gcc/function.c


[Bug bootstrap/62300] [5 Regression] internal compiler error: in as_a, at is-a.h:192

2014-08-28 Thread dmalcolm at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62300

--- Comment #6 from Dave Malcolm dmalcolm at redhat dot com ---
Fix committed as r214714.