[Bug bootstrap/78705] ICE in ix86_test_dumping_memory_blockage

2016-12-06 Thread sgk at troutmask dot apl.washington.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78705

--- Comment #8 from Steve Kargl  ---
On Wed, Dec 07, 2016 at 01:31:51AM +, dmalcolm at gcc dot gnu.org wrote:
> 
> --- Comment #7 from David Malcolm  ---
> Sorry about the breakage.  Should be fixed by r243332.
> 

Thanks for the prompt attention to this bug.

[Bug bootstrap/78705] ICE in ix86_test_dumping_memory_blockage

2016-12-06 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78705

David Malcolm  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #7 from David Malcolm  ---
Sorry about the breakage.  Should be fixed by r243332.

[Bug bootstrap/78705] ICE in ix86_test_dumping_memory_blockage

2016-12-06 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78705

--- Comment #6 from David Malcolm  ---
Author: dmalcolm
Date: Wed Dec  7 01:28:13 2016
New Revision: 243332

URL: https://gcc.gnu.org/viewcvs?rev=243332=gcc=rev
Log:
Fix x86_64-ism in selftest (PR bootstrap/78705)

In r243317 I accidentally introduced an assumption in a selftest
in i386.c that Pmode == DImode.  This patch conditionalizes the
overzealous string comparison to avoid breaking the build on
32-bit i386.c targets.

gcc/ChangeLog:
PR bootstrap/78705
* config/i386/i386.c (selftest::ix86_test_dumping_memory_blockage):
Conditionalize the string comparison on Pmode == DImode.


Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/i386.c

[Bug bootstrap/78705] ICE in ix86_test_dumping_memory_blockage

2016-12-06 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78705

--- Comment #5 from David Malcolm  ---
i386.md's define_expand "memory_blockage" has:
  operands[0] = gen_rtx_MEM (BLKmode, gen_rtx_SCRATCH (Pmode));
so it's due to the difference in Pmode between i386 and x86_64.

[Bug bootstrap/78705] ICE in ix86_test_dumping_memory_blockage

2016-12-06 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78705

David Malcolm  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2016-12-07
   Assignee|unassigned at gcc dot gnu.org  |dmalcolm at gcc dot 
gnu.org
 Ever confirmed|0   |1

--- Comment #4 from David Malcolm  ---
Reproduced with i686-pc-linux-gnu

[Bug bootstrap/78705] ICE in ix86_test_dumping_memory_blockage

2016-12-06 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78705

--- Comment #3 from David Malcolm  ---
Sorry about the breakage.

Expected:
(cinsn 1 (set (mem/v:BLK (0|scratch:DI) [0  A8])
(unspec:BLK [
(mem/v:BLK (reuse_rtx 0) [0  A8])
] UNSPEC_MEMORY_BLOCKAGE)))

Actual:
(cinsn 1 (set (mem/v:BLK (0|scratch:SI) [0  A8])
(unspec:BLK [
(mem/v:BLK (reuse_rtx 0) [0  A8])
] UNSPEC_MEMORY_BLOCKAGE)))

Looks like the difference is "SI" vs "DI" within the scratch.

[Bug bootstrap/78705] ICE in ix86_test_dumping_memory_blockage

2016-12-06 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78705

kargl at gcc dot gnu.org changed:

   What|Removed |Added

   Priority|P3  |P1
   Target Milestone|--- |7.0

[Bug bootstrap/78705] ICE in ix86_test_dumping_memory_blockage

2016-12-06 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78705

--- Comment #2 from kargl at gcc dot gnu.org ---
svn merge -r 243317:243316 .

fixes the problem.

[Bug bootstrap/78705] ICE in ix86_test_dumping_memory_blockage

2016-12-06 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78705

--- Comment #1 from kargl at gcc dot gnu.org ---
(In reply to kargl from comment #0)
> gmake[3]: Entering directory '/mnt/kargl/obj/gcc'
> /mnt/kargl/obj/./gcc/xgcc -B/mnt/kargl/obj/./gcc/ -nostdinc -x c /dev/null
> -S -fself-test -o /dev/null
> /mnt/kargl/gcc/gcc/config/i386/i386.c:51198:
> ix86_test_dumping_memory_blockage: FAIL: ASSERT_STREQ (expected_dump, dump)
> expected="(cinsn 1 (set (mem/v:BLK (0|scratch:DI) [0  A8])
> (unspec:BLK [
> (mem/v:BLK (reuse_rtx 0) [0  A8])
> ] UNSPEC_MEMORY_BLOCKAGE)))
> " actual="(cinsn 1 (set (mem/v:BLK (0|scratch:SI) [0  A8])
> (unspec:BLK [
> (mem/v:BLK (reuse_rtx 0) [0  A8])
> ] UNSPEC_MEMORY_BLOCKAGE)))
> "
> cc1: internal compiler error: in fail_formatted, at selftest.c:62
> no stack trace because unwind library not available
> Please submit a full bug report,
> with preprocessed source if appropriate.

This failure is on i686-*-freebsd.

/mnt/kargl/gcc/configure \
  --prefix=$HOME/work --with-isl=/usr/local \
  --enable-languages=c,c++,fortran --disable-nls