public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/64671] New: [5 Regression] s390-linux profiledbootstrap failure
@ 2015-01-19 15:40 jakub at gcc dot gnu.org
  2015-01-19 15:46 ` [Bug rtl-optimization/64671] " jakub at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-19 15:40 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 64671
           Summary: [5 Regression] s390-linux profiledbootstrap failure
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org

On s390-linux, profiledbootstrap hangs while compiling various libgcc routines
with stageprofile cc1.
This looks like a register allocation issue to me.
.L2667:
        .loc 3 1448 0
        lr      %r1,%r8
        ahi     %r1,-1
        lhi     %r4,1
        lr      %r10,%r1
        jne     .L2667
is an endless loop, because r8 doesn't change in the loop, so if it is not 1 at
the beginning of the loop, it will cycle forever.
During reload one can see first the:
(code_label 6256 8889 3592 323 2667 "" [1 uses])
(note 3592 6256 3599 323 [bb 323] NOTE_INSN_BASIC_BLOCK)
(insn 3599 3592 11197 323 (set (reg:SI 4 %r4)
        (const_int 1 [0x1])) ../../gcc/vec.h:1448 68 {*movsi_esa}
     (nil))
(insn 11197 3599 11038 323 (parallel [
            (set (pc)
                (if_then_else (ne (reg:SI 8 %r8 [orig:1459 D.73971 ] [1459])
                        (const_int 1 [0x1]))
                    (label_ref 6256)
                    (pc)))
            (set (reg:SI 10 %r10 [orig:1460 D.73963 ] [1460])
                (plus:SI (reg:SI 8 %r8 [orig:1459 D.73971 ] [1459])
                    (const_int -1 [0xffffffffffffffff])))
            (clobber (reg:SI 1 %r1 [5607]))
            (clobber (reg:CC 33 %cc))
        ]) ../../gcc/vec.h:1448 619 {doloop_si64}
     (nil))
which already is the endless loop, but at *.ira there is no such code like
that, so it rematerialized from somewhere else.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug rtl-optimization/64671] [5 Regression] s390-linux profiledbootstrap failure
  2015-01-19 15:40 [Bug rtl-optimization/64671] New: [5 Regression] s390-linux profiledbootstrap failure jakub at gcc dot gnu.org
@ 2015-01-19 15:46 ` jakub at gcc dot gnu.org
  2015-01-19 15:54 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-19 15:46 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 34486
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34486&action=edit
tsf.ii.bz2

Preprocessed tree-ssa-forwprop.c.
To reproduce with x86_64-linux -> s390x-linux cross:
./cc1plus -m31 -O2 -fexceptions -fstack-protector-strong -march=z9-109 \
-mtune=z10 -fprofile-generate -fno-exceptions -fno-rtti \
-fasynchronous-unwind-tables tsf.ii -o tsf.s -nostdinc
Look for 3rd line with
brasl %r14,_ZN3vecIP9tree_node7va_heap6vl_ptrE7reserveEjb
and a few lines above it is that:
.L2667:
        .loc 3 1448 0
        lr      %r1,%r8
        ahi     %r1,-1
        lhi     %r4,1
        lr      %r10,%r1
        jne     .L2667


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug rtl-optimization/64671] [5 Regression] s390-linux profiledbootstrap failure
  2015-01-19 15:40 [Bug rtl-optimization/64671] New: [5 Regression] s390-linux profiledbootstrap failure jakub at gcc dot gnu.org
  2015-01-19 15:46 ` [Bug rtl-optimization/64671] " jakub at gcc dot gnu.org
@ 2015-01-19 15:54 ` jakub at gcc dot gnu.org
  2015-01-19 19:54 ` vmakarov at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-19 15:54 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-01-19
                 CC|                            |krebbel at gcc dot gnu.org,
                   |                            |vmakarov at gcc dot gnu.org
   Target Milestone|---                         |5.0
     Ever confirmed|0                           |1


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug rtl-optimization/64671] [5 Regression] s390-linux profiledbootstrap failure
  2015-01-19 15:40 [Bug rtl-optimization/64671] New: [5 Regression] s390-linux profiledbootstrap failure jakub at gcc dot gnu.org
  2015-01-19 15:46 ` [Bug rtl-optimization/64671] " jakub at gcc dot gnu.org
  2015-01-19 15:54 ` jakub at gcc dot gnu.org
@ 2015-01-19 19:54 ` vmakarov at gcc dot gnu.org
  2015-01-19 20:14 ` vmakarov at gcc dot gnu.org
  2015-01-20  7:48 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: vmakarov at gcc dot gnu.org @ 2015-01-19 19:54 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
I started to work on this.  The patch will be in the trunk today.  Thanks.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug rtl-optimization/64671] [5 Regression] s390-linux profiledbootstrap failure
  2015-01-19 15:40 [Bug rtl-optimization/64671] New: [5 Regression] s390-linux profiledbootstrap failure jakub at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2015-01-19 19:54 ` vmakarov at gcc dot gnu.org
@ 2015-01-19 20:14 ` vmakarov at gcc dot gnu.org
  2015-01-20  7:48 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: vmakarov at gcc dot gnu.org @ 2015-01-19 20:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
Author: vmakarov
Date: Mon Jan 19 20:13:35 2015
New Revision: 219857

URL: https://gcc.gnu.org/viewcvs?rev=219857&root=gcc&view=rev
Log:
2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>

    PR rtl-optimization/64671
    * lra-remat.c (operand_to_remat): Don't consider jump and call
    insns.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/lra-remat.c


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug rtl-optimization/64671] [5 Regression] s390-linux profiledbootstrap failure
  2015-01-19 15:40 [Bug rtl-optimization/64671] New: [5 Regression] s390-linux profiledbootstrap failure jakub at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2015-01-19 20:14 ` vmakarov at gcc dot gnu.org
@ 2015-01-20  7:48 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-20  7:48 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Thanks, with this patch s390-linux as well as s390x-linux profiledbootstrap
succeeds again (well, s390x-linux worked before too).


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-01-20  7:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-19 15:40 [Bug rtl-optimization/64671] New: [5 Regression] s390-linux profiledbootstrap failure jakub at gcc dot gnu.org
2015-01-19 15:46 ` [Bug rtl-optimization/64671] " jakub at gcc dot gnu.org
2015-01-19 15:54 ` jakub at gcc dot gnu.org
2015-01-19 19:54 ` vmakarov at gcc dot gnu.org
2015-01-19 20:14 ` vmakarov at gcc dot gnu.org
2015-01-20  7:48 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).