http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60426

            Bug ID: 60426
           Summary: [4.9 Regression] ICE near
                    expand_builtin_int_roundingfn_2
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Joost.VandeVondele at mat dot ethz.ch

Between r208300 and r208339 LTO compiles of cp2k start failing with the
backtrace below. This happens for several files, all traces lead to a NINT in
the code.

/data/vjoost/gnu/cp2k/cp2k/makefiles/../src/qs_scf_post_gpw.F:977:0: internal
compiler error: Segmentation fault
                nmoloc(ispin) = NINT(nelectron/occupation(1))
 ^
0x9056cf crash_signal
        ../../gcc/gcc/toplev.c:337
0x57808b contains_struct_check
        ../../gcc/gcc/tree.h:2822
0x57808b build_call_nofold_loc
        ../../gcc/gcc/builtins.c:2695
0x580aa5 expand_builtin_int_roundingfn_2
        ../../gcc/gcc/builtins.c:2933
0x5a0ae0 expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int)
        ../../gcc/gcc/builtins.c:5928
0x68da35 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../../gcc/gcc/expr.c:10341
0x6991df store_expr(tree_node*, rtx_def*, int, bool)
        ../../gcc/gcc/expr.c:5337
0x69bf69 expand_assignment(tree_node*, tree_node*, bool)
        ../../gcc/gcc/expr.c:5123
0x5bf2ea expand_call_stmt
        ../../gcc/gcc/cfgexpand.c:2257
0x5bf2ea expand_gimple_stmt_1
        ../../gcc/gcc/cfgexpand.c:3158
0x5bf2ea expand_gimple_stmt
        ../../gcc/gcc/cfgexpand.c:3310
0x5c0957 expand_gimple_basic_block
        ../../gcc/gcc/cfgexpand.c:5150
0x5c31f9 gimple_expand_cfg
        ../../gcc/gcc/cfgexpand.c:5729
0x5c31f9 execute
        ../../gcc/gcc/cfgexpand.c:5949
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.
make[3]: *** [/tmp/ccvOjlYd.ltrans24.ltrans.o] Error 1

Reply via email to