https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84817

            Bug ID: 84817
           Summary: PR tree-optimization/84526: gcc-8-8-20180310-1 FTBFS
                    on GNU/Hurd by removing "dead" code
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: svante.signell at gmail dot com
  Target Milestone: ---

Hi,

Latest Debian version of gcc-8: gcc-8-8-20180310-1 (r258410) FTBFS due to
gimple-match.c problems:

build/genmatch --gimple ../../src/gcc/match.pd \
    > tmp-gimple-match.c
GIMPLE decision tree has 2511 leafs, maximum depth 12 and a total number of
9849 nodes
removed 1569 duplicate tails
build/genmatch --generic ../../src/gcc/match.pd \
    > tmp-generic-match.c
GENERIC decision tree has 2461 leafs, maximum depth 12 and a total number of
9612 nodes
removed 1530 duplicate tails
/bin/bash ../../src/gcc/../move-if-change tmp-gimple-match.c \
                                        gimple-match.c
/bin/bash ../../src/gcc/../move-if-change tmp-generic-match.c \
                                        generic-match.c
echo timestamp > s-match
/home/srs/DEBs/gcc-8/gcc-8-8-20180310-1.1/build/./prev-gcc/xg++
-B/home/srs/DEBs/gcc-8/gcc-8-8-20180310-1.1/build/./prev-gcc/
-B/usr/i686-gnu/bin/ -nostdinc++
-B/home/srs/DEBs/gcc-8/gcc-8-8-20180310-1.1/build/prev-i686-gnu/libstdc++-v3/src/.libs
-B/home/srs/DEBs/gcc-8/gcc-8-8-20180310-1.1/build/prev-i686-gnu/libstdc++-v3/libsupc++/.libs

-I/home/srs/DEBs/gcc-8/gcc-8-8-20180310-1.1/build/prev-i686-gnu/libstdc++-v3/include/i686-gnu

-I/home/srs/DEBs/gcc-8/gcc-8-8-20180310-1.1/build/prev-i686-gnu/libstdc++-v3/include
 -I/home/srs/DEBs/gcc-8/gcc-8-8-20180310-1.1/src/libstdc++-v3/libsupc++
-L/home/srs/DEBs/gcc-8/gcc-8-8-20180310-1.1/build/prev-i686-gnu/libstdc++-v3/src/.libs
-L/home/srs/DEBs/gcc-8/gcc-8-8-20180310-1.1/build/prev-i686-gnu/libstdc++-v3/libsupc++/.libs
-fno-PIE -c   -g -O2 -gtoggle -DIN_GCC     -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings  -Wno-unused
-DHAVE_CONFIG_H -I. -I. -I../../src/gcc -I../../src/gcc/.
-I../../src/gcc/../include -I../../src/gcc/../libcpp/include 
-I../../src/gcc/../libdecnumber -I../../src/gcc/../libdecnumber/bid
-I../libdecnumber -I../../src/gcc/../libbacktrace   -o gimple-match.o -MT
gimple-match.o -MMD -MP -MF ./.deps/gimple-match.TPo gimple-match.c
gimple-match.c: In function 'bool gimple_simplify_FLOAT_EXPR(code_helper*,
tree_node**, gimple**, tree_node* (*)(tree), code_helper, tree, tree)':
gimple-match.c:15146:1: error: unable to find a register to spill
 }
 ^
gimple-match.c:15146:1: error: this is the insn:
(insn 616 3197 2728 97 (parallel [
            (set (reg:DI 938 [547])
                (ashift:DI (reg:DI 938 [547])
                    (reg:QI 1367)))
            (clobber (reg:CC 17 flags))
        ]) "../../src/gcc/hwint.h":293 431 {*ashldi3_doubleword}
     (expr_list:REG_DEAD (reg:QI 1367)
        (expr_list:REG_UNUSED (reg:CC 17 flags)
            (nil))))
gimple-match.c:15146: confused by earlier errors, bailing out

Looking at src/gcc/Changelog one finds:

2018-03-09  Martin Sebor  <mse...@redhat.com>

        PR tree-optimization/84526
        * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
        Remove dead code.

Replacing the file src/gcc/gimple-ssa-warn-restrict.c with an older version of
that file from gcc-8: gcc-8-8-20180308-1 (r258348) makes the build successful
again.

Can you please revert the changes that breaks the build?

Thanks!

Reply via email to