This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/77719] New: [7 Regression] ICE in pp_string, at pretty-print.c:955
- From: "Joost.VandeVondele at mat dot ethz.ch" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 24 Sep 2016 07:32:18 +0000
- Subject: [Bug tree-optimization/77719] New: [7 Regression] ICE in pp_string, at pretty-print.c:955
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77719
Bug ID: 77719
Summary: [7 Regression] ICE in pp_string, at pretty-print.c:955
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: Joost.VandeVondele at mat dot ethz.ch
Target Milestone: ---
recent trunk regression:
> cat bug.f90
SUBROUTINE urep_egr(erep,derep,surr)
INTEGER, PARAMETER :: dp=8
REAL(dp), INTENT(inout) :: erep, derep(3)
REAL(dp), INTENT(in) :: surr(2)
REAL(dp) :: de_z, rz
IF (n_urpoly > 0) THEN
IF (r < spxr(1,1)) THEN
ispg: DO isp = 1,spdim ! condition ca)
IF (isp /= spdim) THEN
nsp = 5 ! condition cb
DO jsp = 0,nsp
IF( jsp <= 3 ) THEN
ELSE
erep = erep + surr(jsp-3)*rz**(jsp)
ENDIF
END DO
END IF
END DO ispg
END IF
END IF
END SUBROUTINE urep_egr
> gfortran -c -O3 -ffast-math bug.f90
[...]
in pp_string, at pretty-print.c:955
0x14506c6 pp_string
../../gcc/gcc/pretty-print.c:955
0x14506c6 pp_string(pretty_printer*, char const*)
../../gcc/gcc/pretty-print.c:953
0x14514e9 pp_format(pretty_printer*, text_info*)
../../gcc/gcc/pretty-print.c:597
0x14445f1 diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
../../gcc/gcc/diagnostic.c:941
0x1444e48 diagnostic_impl
../../gcc/gcc/diagnostic.c:1064
0x1444f74 internal_error(char const*, ...)
../../gcc/gcc/diagnostic.c:1349
0x9130f8 gimple_check_failed(gimple const*, char const*, int, char const*,
gimple_code, tree_code)
../../gcc/gcc/gimple.c:1177
0xd992d7 GIMPLE_CHECK2<const gassign*>
../../gcc/gcc/gimple.h:73
0xd8a037 gimple_phi_arg
../../gcc/gcc/tree-phinodes.h:37
0xd8a037 gimple_phi_arg_imm_use_ptr
../../gcc/gcc/tree-phinodes.h:37
0xd8a037 op_iter_next_use
../../gcc/gcc/ssa-iterators.h:490
0xd8a037 link_use_stmts_after
../../gcc/gcc/ssa-iterators.h:902
0xd8a037 next_imm_use_stmt
../../gcc/gcc/ssa-iterators.h:955
0xd8a037 make_new_ssa_for_def
../../gcc/gcc/tree-ssa-reassoc.c:1167
0xd8d908 make_new_ssa_for_all_defs
../../gcc/gcc/tree-ssa-reassoc.c:1194
0xd8d908 zero_one_operation
../../gcc/gcc/tree-ssa-reassoc.c:1338
0xd95430 undistribute_ops_list
../../gcc/gcc/tree-ssa-reassoc.c:1684
0xd96178 reassociate_bb
../../gcc/gcc/tree-ssa-reassoc.c:5393
0xd95fa7 reassociate_bb
../../gcc/gcc/tree-ssa-reassoc.c:5528
0xd95fa7 reassociate_bb
../../gcc/gcc/tree-ssa-reassoc.c:5528
Please submit a full bug report,
> gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/data/vjoost/gnu/gcc_trunk/install/libexec/gcc/x86_64-pc-linux-gnu/7.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc/configure --prefix=/data/vjoost/gnu/gcc_trunk/install
--enable-languages=c,c++,fortran --disable-multilib --enable-plugins
--enable-lto --disable-bootstrap
Thread model: posix
gcc version 7.0.0 20160924 (experimental) [trunk revision 240461] (GCC)