public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/67029] New: gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns
@ 2015-07-27 15:52 ziebell_marco at posteo dot de
  2015-07-27 16:06 ` [Bug c/67029] " trippels at gcc dot gnu.org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: ziebell_marco at posteo dot de @ 2015-07-27 15:52 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 4452 bytes --]

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

            Bug ID: 67029
           Summary: gcc-5.2.0 unable to find a register to spill with O3
                    fsched-pressure fschedule-insns
           Product: gcc
           Version: 5.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ziebell_marco at posteo dot de
  Target Milestone: ---

I'm using gcc-5.2.0 with binutils-2.25 on an amd64 maschine.
While compiling the tor program in version 2.6.10 with CFLAS="-O3
-fsched-pressure -fschedule-insns" I'm hitting following error:

x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.  -I./src/ext -Isrc/ext
-I./src/ext/trunnel -I./src/trunnel -I./src/common -Isrc/common
-I./src/ext/trunnel -I./src/trunnel -I./src/or -Isrc/or
-DSHARE_DATADIR="\"/usr/share\"" -DLOCALSTATEDIR="\"/var/lib\""
-DBINDIR="\"/usr/bin\"" -I./src/common     -O3 -fsched-pressure
-fschedule-insns -fno-diagnostics-color -fno-lto -fno-use-linker-plugin
-D_FORTIFY_SOURCE=2 -Wall -fno-strict-aliasing -c -o src/or/addressmap.o
src/or/addressmap.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
src/ext/curve25519_donna/curve25519-donna-c64.c: In function
‘curve25519_donna’:
src/ext/curve25519_donna/curve25519-donna-c64.c:451:1: error: unable to find a
register to spill
 }
 ^
src/ext/curve25519_donna/curve25519-donna-c64.c:451:1: error: this is the insn:
(insn 4080 9130 9131 19 (parallel [
            (set (reg:TI 9523 [orig:5982 D.4126 ] [5982])
                (mult:TI (zero_extend:TI (subreg/j:DI (reg:TI 9523 [orig:5982
D.4126 ] [5982]) 0))
                    (zero_extend:TI (reg/v:DI 1734 [ r0 ]))))
            (clobber (reg:CC 17 flags))
        ]) src/ext/curve25519_donna/curve25519-donna-c64.c:128 328
{*umulditi3_1}
     (expr_list:REG_UNUSED (reg:CC 17 flags)
        (nil)))
src/ext/curve25519_donna/curve25519-donna-c64.c:451: confused by earlier
errors, bailing out
Makefile:2982: recipe for target
'src/ext/curve25519_donna/src_common_libcurve25519_donna_a-curve25519-donna-c64.o'
failed
make[1]: ***
[src/ext/curve25519_donna/src_common_libcurve25519_donna_a-curve25519-donna-c64.o]
Error 1
>From gcc-bugs-return-493460-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jul 27 15:53:47 2015
Return-Path: <gcc-bugs-return-493460-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52159 invoked by alias); 27 Jul 2015 15:53:47 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 52096 invoked by uid 48); 27 Jul 2015 15:53:43 -0000
From: "ziebell_marco at posteo dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/67029] gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns
Date: Mon, 27 Jul 2015 15:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 5.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ziebell_marco at posteo dot de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-67029-4-PXG3PalHAe@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67029-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67029-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-07/txt/msg02350.txt.bz2
Content-length: 245

https://gcc.gnu.org/bugzilla/show_bug.cgi?idg029

--- Comment #1 from ziebell_marco at posteo dot de ---
Created attachment 36068
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id6068&actioníit
build log of tor-0.2.6.10 with gcc-5.2.0


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

* [Bug c/67029] gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns
  2015-07-27 15:52 [Bug c/67029] New: gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns ziebell_marco at posteo dot de
@ 2015-07-27 16:06 ` trippels at gcc dot gnu.org
  2015-07-27 16:12 ` ziebell_marco at posteo dot de
                   ` (14 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-07-27 16:06 UTC (permalink / raw)
  To: gcc-bugs

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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2015-07-27
                 CC|                            |trippels at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Please attach the preprocessed addressmap.i file.


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

* [Bug c/67029] gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns
  2015-07-27 15:52 [Bug c/67029] New: gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns ziebell_marco at posteo dot de
  2015-07-27 16:06 ` [Bug c/67029] " trippels at gcc dot gnu.org
@ 2015-07-27 16:12 ` ziebell_marco at posteo dot de
  2015-07-27 18:58 ` trippels at gcc dot gnu.org
                   ` (13 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: ziebell_marco at posteo dot de @ 2015-07-27 16:12 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from ziebell_marco at posteo dot de ---
Created attachment 36069
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36069&action=edit
build log of tor-0.2.6.10 with gcc-4.9.3

I wanted to note that this is a regression, the project compiles fine with
gcc-4.9.3 and is seems similar to this bug 

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


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

* [Bug c/67029] gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns
  2015-07-27 15:52 [Bug c/67029] New: gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns ziebell_marco at posteo dot de
  2015-07-27 16:06 ` [Bug c/67029] " trippels at gcc dot gnu.org
  2015-07-27 16:12 ` ziebell_marco at posteo dot de
@ 2015-07-27 18:58 ` trippels at gcc dot gnu.org
  2015-07-27 19:12 ` ziebell_marco at posteo dot de
                   ` (12 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-07-27 18:58 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to ziebell_marco from comment #4)
> Created attachment 36070 [details]
> preprocessed version of addressmap.c

Sorry, I requested the wrong file. 
What actually is needed is curve25519-donna-c64.i.


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

* [Bug c/67029] gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns
  2015-07-27 15:52 [Bug c/67029] New: gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns ziebell_marco at posteo dot de
                   ` (2 preceding siblings ...)
  2015-07-27 18:58 ` trippels at gcc dot gnu.org
@ 2015-07-27 19:12 ` ziebell_marco at posteo dot de
  2015-07-27 19:29 ` trippels at gcc dot gnu.org
                   ` (11 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: ziebell_marco at posteo dot de @ 2015-07-27 19:12 UTC (permalink / raw)
  To: gcc-bugs

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

ziebell_marco at posteo dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #36070|0                           |1
        is obsolete|                            |

--- Comment #6 from ziebell_marco at posteo dot de ---
Created attachment 36071
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36071&action=edit
preprocessed version  of curve25519-donna-c64.c


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

* [Bug c/67029] gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns
  2015-07-27 15:52 [Bug c/67029] New: gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns ziebell_marco at posteo dot de
                   ` (4 preceding siblings ...)
  2015-07-27 19:29 ` trippels at gcc dot gnu.org
@ 2015-07-27 19:29 ` trippels at gcc dot gnu.org
  2015-07-27 19:55 ` [Bug rtl-optimization/67029] [5/6 regression] " trippels at gcc dot gnu.org
                   ` (9 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-07-27 19:29 UTC (permalink / raw)
  To: gcc-bugs

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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |UNCONFIRMED
     Ever confirmed|1                           |0


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

* [Bug c/67029] gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns
  2015-07-27 15:52 [Bug c/67029] New: gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns ziebell_marco at posteo dot de
                   ` (3 preceding siblings ...)
  2015-07-27 19:12 ` ziebell_marco at posteo dot de
@ 2015-07-27 19:29 ` trippels at gcc dot gnu.org
  2015-07-27 19:29 ` trippels at gcc dot gnu.org
                   ` (10 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-07-27 19:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Thanks.

I cannot reproduce the issue.


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

* [Bug rtl-optimization/67029] [5/6 regression] gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns
  2015-07-27 15:52 [Bug c/67029] New: gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns ziebell_marco at posteo dot de
                   ` (5 preceding siblings ...)
  2015-07-27 19:29 ` trippels at gcc dot gnu.org
@ 2015-07-27 19:55 ` trippels at gcc dot gnu.org
  2015-08-03  7:18 ` ubizjak at gmail dot com
                   ` (8 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-07-27 19:55 UTC (permalink / raw)
  To: gcc-bugs

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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
                 CC|                            |vmakarov at gcc dot gnu.org
          Component|c                           |rtl-optimization
            Summary|gcc-5.2.0 unable to find a  |[5/6 regression] gcc-5.2.0
                   |register to spill with O3   |unable to find a register
                   |fsched-pressure             |to spill with O3
                   |fschedule-insns             |fsched-pressure
                   |                            |fschedule-insns
     Ever confirmed|0                           |1

--- Comment #8 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
markus@x4 tmp % cat curve25519-donna-c64.i
extern void fn2 (char *);
__int128 a, b;
int
fn1 (void)
{
  char e[32];
  fn2 (e);
  b = 9 * (a >> 1);
  return 0;
}

markus@x4 tmp % gcc -O2 -fstack-protector -fschedule-insns -c
curve25519-donna-c64.i
curve25519-donna-c64.i: In function ‘fn1’:
curve25519-donna-c64.i:10:1: error: unable to find a register to spill
 }
 ^
curve25519-donna-c64.i:10:1: error: this is the insn:
(insn 15 42 43 2 (parallel [
            (set (reg:TI 104 [orig:97 D.1849 ] [97])
                (mult:TI (zero_extend:TI (subreg/j:DI (reg:TI 104 [orig:97
D.1849 ] [97]) 0))
                    (zero_extend:TI (reg:DI 98))))
            (clobber (reg:CC 17 flags))
        ]) curve25519-donna-c64.i:8 328 {*umulditi3_1}
     (expr_list:REG_DEAD (reg:DI 98)
        (expr_list:REG_UNUSED (reg:CC 17 flags)
            (expr_list:REG_EQUAL (mult:TI (zero_extend:TI (subreg:DI (reg:TI 92
[ D.1849 ]) 0))
                    (const_int 9 [0x9]))
                (nil)))))
curve25519-donna-c64.i:10: confused by earlier errors, bailing out
>From gcc-bugs-return-493496-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jul 27 20:03:23 2015
Return-Path: <gcc-bugs-return-493496-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78266 invoked by alias); 27 Jul 2015 20:03:23 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 78182 invoked by uid 48); 27 Jul 2015 20:03:10 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/67032] Geode optimizations incorrectly return -NaN
Date: Mon, 27 Jul 2015 20:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 5.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: component bug_severity
Message-ID: <bug-67032-4-FjcHI1nVxm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67032-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67032-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-07/txt/msg02386.txt.bz2
Content-length: 350

https://gcc.gnu.org/bugzilla/show_bug.cgi?idg032

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c++                         |target
           Severity|major                       |normal


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

* [Bug rtl-optimization/67029] [5/6 regression] gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns
  2015-07-27 15:52 [Bug c/67029] New: gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns ziebell_marco at posteo dot de
                   ` (6 preceding siblings ...)
  2015-07-27 19:55 ` [Bug rtl-optimization/67029] [5/6 regression] " trippels at gcc dot gnu.org
@ 2015-08-03  7:18 ` ubizjak at gmail dot com
  2015-08-03 14:51 ` hjl.tools at gmail dot com
                   ` (7 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: ubizjak at gmail dot com @ 2015-08-03  7:18 UTC (permalink / raw)
  To: gcc-bugs

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

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |5.3
>From gcc-bugs-return-493912-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 03 07:29:00 2015
Return-Path: <gcc-bugs-return-493912-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56198 invoked by alias); 3 Aug 2015 07:29:00 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 56167 invoked by uid 48); 3 Aug 2015 07:28:56 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/67092] bootstrap failure in running genpreds, libstdc++ version mismatch
Date: Mon, 03 Aug 2015 07:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vries at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-67092-4-JRoF4J4MNO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67092-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67092-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-08/txt/msg00054.txt.bz2
Content-length: 293

https://gcc.gnu.org/bugzilla/show_bug.cgi?idg092

--- Comment #9 from vries at gcc dot gnu.org ---
I've done the same build using gcc-5-branch. There, stage2 genpreds also
depends on libstdc++.so.6, but no symbols from it are needed, and no version is
required, so the build doesn't break.


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

* [Bug rtl-optimization/67029] [5/6 regression] gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns
  2015-07-27 15:52 [Bug c/67029] New: gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns ziebell_marco at posteo dot de
                   ` (7 preceding siblings ...)
  2015-08-03  7:18 ` ubizjak at gmail dot com
@ 2015-08-03 14:51 ` hjl.tools at gmail dot com
  2015-08-05 19:14 ` hjl.tools at gmail dot com
                   ` (6 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: hjl.tools at gmail dot com @ 2015-08-03 14:51 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rdsandiford at googlemail dot com

--- Comment #9 from H.J. Lu <hjl.tools at gmail dot com> ---
It was caused by r216554.


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

* [Bug rtl-optimization/67029] [5/6 regression] gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns
  2015-07-27 15:52 [Bug c/67029] New: gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns ziebell_marco at posteo dot de
                   ` (8 preceding siblings ...)
  2015-08-03 14:51 ` hjl.tools at gmail dot com
@ 2015-08-05 19:14 ` hjl.tools at gmail dot com
  2015-08-05 20:27 ` hjl.tools at gmail dot com
                   ` (5 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: hjl.tools at gmail dot com @ 2015-08-05 19:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from H.J. Lu <hjl.tools at gmail dot com> ---
The problem is

/* The value of get_preferred_alternatives for the current instruction,
   supplemental to recog_data.  */
static alternative_mask preferred_alternatives;

ira_implicitly_set_insn_hard_regs may use the staled preferred_alternatives:

#0  ira_implicitly_set_insn_hard_regs (set=0x7fffffffd950)
    at /export/gnu/import/git/sources/gcc/gcc/ira-lives.c:847
#1  0x000000000156d604 in sched_analyze_insn (deps=0x7fffffffdba0, 
    x=0x7ffff18277d0, insn=0x7ffff1823240)
    at /export/gnu/import/git/sources/gcc/gcc/sched-deps.c:2901
#2  0x00000000015703f5 in deps_analyze_insn (deps=0x7fffffffdba0, 
    insn=0x7ffff1823240)
    at /export/gnu/import/git/sources/gcc/gcc/sched-deps.c:3675
#3  0x0000000001570aa6 in sched_analyze (deps=0x7fffffffdba0, 
    head=0x7ffff1823240, tail=0x7ffff1708990)
    at /export/gnu/import/git/sources/gcc/gcc/sched-deps.c:3822
#4  0x0000000000c4b3d0 in compute_block_dependences (bb=0)
    at /export/gnu/import/git/sources/gcc/gcc/sched-rgn.c:2743
#5  0x0000000000c4ccae in sched_rgn_compute_dependencies (rgn=0)
    at /export/gnu/import/git/sources/gcc/gcc/sched-rgn.c:3267
#6  0x0000000000c4c2bf in schedule_region (rgn=0)
    at /export/gnu/import/git/sources/gcc/gcc/sched-rgn.c:3023
#7  0x0000000000c4d3e6 in schedule_insns ()
    at /export/gnu/import/git/sources/gcc/gcc/sched-rgn.c:3426
#8  0x0000000000c4dca4 in rest_of_handle_sched ()


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

* [Bug rtl-optimization/67029] [5/6 regression] gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns
  2015-07-27 15:52 [Bug c/67029] New: gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns ziebell_marco at posteo dot de
                   ` (9 preceding siblings ...)
  2015-08-05 19:14 ` hjl.tools at gmail dot com
@ 2015-08-05 20:27 ` hjl.tools at gmail dot com
  2015-08-06  2:38 ` hjl.tools at gmail dot com
                   ` (4 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: hjl.tools at gmail dot com @ 2015-08-05 20:27 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from H.J. Lu <hjl.tools at gmail dot com> ---
A patch is posted at

https://gcc.gnu.org/ml/gcc-patches/2015-08/msg00313.html


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

* [Bug rtl-optimization/67029] [5/6 regression] gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns
  2015-07-27 15:52 [Bug c/67029] New: gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns ziebell_marco at posteo dot de
                   ` (10 preceding siblings ...)
  2015-08-05 20:27 ` hjl.tools at gmail dot com
@ 2015-08-06  2:38 ` hjl.tools at gmail dot com
  2015-08-07 16:18 ` hjl at gcc dot gnu.org
                   ` (3 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: hjl.tools at gmail dot com @ 2015-08-06  2:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #12 from H.J. Lu <hjl.tools at gmail dot com> ---
An updated patch is posted at

https://gcc.gnu.org/ml/gcc-patches/2015-08/msg00323.html


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

* [Bug rtl-optimization/67029] [5/6 regression] gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns
  2015-07-27 15:52 [Bug c/67029] New: gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns ziebell_marco at posteo dot de
                   ` (11 preceding siblings ...)
  2015-08-06  2:38 ` hjl.tools at gmail dot com
@ 2015-08-07 16:18 ` hjl at gcc dot gnu.org
  2015-08-07 16:50 ` [Bug rtl-optimization/67029] [5 Regression] " trippels at gcc dot gnu.org
                   ` (2 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: hjl at gcc dot gnu.org @ 2015-08-07 16:18 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #13 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Fri Aug  7 16:18:09 2015
New Revision: 226724

URL: https://gcc.gnu.org/viewcvs?rev=226724&root=gcc&view=rev
Log:
Add alternative_mask to ira_implicitly_set_insn_hard_regs

Since ira_implicitly_set_insn_hard_regs may be called outside of
ira-lives.c, it can't use the local variable, preferred_alternatives.
This patch adds an alternative_mask argument to
ira_implicitly_set_insn_hard_regs.

gcc/

        PR rtl-optimization/67029
        * ira-color.c: Include "recog.h" before including "ira-int.h".
        * target-globals.c: Likewise.
        * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
        adds an alternative_mask argument and use it instead of
        preferred_alternatives.
        * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
        * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
        * sched-deps.c: Include "ira-int.h" after including "ira.h".
        (sched_analyze_insn): Update call to
        ira_implicitly_set_insn_hard_regs.
        * sel-sched.c: Include "ira-int.h" after including "ira.h".
        (implicit_clobber_conflict_p): Update call to
        ira_implicitly_set_insn_hard_regs.

gcc/testsuite/

        PR rtl-optimization/67029
        * gcc.dg/pr67029.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr67029.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ira-color.c
    trunk/gcc/ira-int.h
    trunk/gcc/ira-lives.c
    trunk/gcc/ira.h
    trunk/gcc/sched-deps.c
    trunk/gcc/sel-sched.c
    trunk/gcc/target-globals.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug rtl-optimization/67029] [5 Regression] gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns
  2015-07-27 15:52 [Bug c/67029] New: gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns ziebell_marco at posteo dot de
                   ` (12 preceding siblings ...)
  2015-08-07 16:18 ` hjl at gcc dot gnu.org
@ 2015-08-07 16:50 ` trippels at gcc dot gnu.org
  2015-09-30 16:40 ` hjl at gcc dot gnu.org
  2015-09-30 16:40 ` hjl.tools at gmail dot com
  15 siblings, 0 replies; 17+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-08-07 16:50 UTC (permalink / raw)
  To: gcc-bugs

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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[5/6 regression] gcc-5.2.0  |[5 Regression] gcc-5.2.0
                   |unable to find a register   |unable to find a register
                   |to spill with O3            |to spill with O3
                   |fsched-pressure             |fsched-pressure
                   |fschedule-insns             |fschedule-insns

--- Comment #14 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Fixed on trunk. A backport for gcc-5 would be nice.


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

* [Bug rtl-optimization/67029] [5 Regression] gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns
  2015-07-27 15:52 [Bug c/67029] New: gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns ziebell_marco at posteo dot de
                   ` (13 preceding siblings ...)
  2015-08-07 16:50 ` [Bug rtl-optimization/67029] [5 Regression] " trippels at gcc dot gnu.org
@ 2015-09-30 16:40 ` hjl at gcc dot gnu.org
  2015-09-30 16:40 ` hjl.tools at gmail dot com
  15 siblings, 0 replies; 17+ messages in thread
From: hjl at gcc dot gnu.org @ 2015-09-30 16:40 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #15 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Wed Sep 30 16:39:44 2015
New Revision: 228299

URL: https://gcc.gnu.org/viewcvs?rev=228299&root=gcc&view=rev
Log:
Add alternative_mask to ira_implicitly_set_insn_hard_regs

Since ira_implicitly_set_insn_hard_regs may be called outside of
ira-lives.c, it can't use the local variable, preferred_alternatives.
This patch adds an alternative_mask argument to
ira_implicitly_set_insn_hard_regs.

Backport from mainline

gcc/

        PR rtl-optimization/67029
        * ira-color.c: Include "recog.h" before including "ira-int.h".
        * target-globals.c: Likewise.
        * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
        adds an alternative_mask argument and use it instead of
        preferred_alternatives.
        * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
        * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
        * sched-deps.c: Include "ira-int.h" after including "ira.h".
        (sched_analyze_insn): Update call to
        ira_implicitly_set_insn_hard_regs.
        * sel-sched.c: Include "ira-int.h" after including "ira.h".
        (implicit_clobber_conflict_p): Update call to
        ira_implicitly_set_insn_hard_regs.

gcc/testsuite/

        PR rtl-optimization/67029
        * gcc.dg/pr67029.c: New test.

Added:
    branches/gcc-5-branch/gcc/testsuite/gcc.dg/pr67029.c
Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/ira-color.c
    branches/gcc-5-branch/gcc/ira-int.h
    branches/gcc-5-branch/gcc/ira-lives.c
    branches/gcc-5-branch/gcc/ira.h
    branches/gcc-5-branch/gcc/sched-deps.c
    branches/gcc-5-branch/gcc/sel-sched.c
    branches/gcc-5-branch/gcc/target-globals.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog


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

* [Bug rtl-optimization/67029] [5 Regression] gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns
  2015-07-27 15:52 [Bug c/67029] New: gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns ziebell_marco at posteo dot de
                   ` (14 preceding siblings ...)
  2015-09-30 16:40 ` hjl at gcc dot gnu.org
@ 2015-09-30 16:40 ` hjl.tools at gmail dot com
  15 siblings, 0 replies; 17+ messages in thread
From: hjl.tools at gmail dot com @ 2015-09-30 16:40 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

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

--- Comment #16 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed.


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

end of thread, other threads:[~2015-09-30 16:40 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-27 15:52 [Bug c/67029] New: gcc-5.2.0 unable to find a register to spill with O3 fsched-pressure fschedule-insns ziebell_marco at posteo dot de
2015-07-27 16:06 ` [Bug c/67029] " trippels at gcc dot gnu.org
2015-07-27 16:12 ` ziebell_marco at posteo dot de
2015-07-27 18:58 ` trippels at gcc dot gnu.org
2015-07-27 19:12 ` ziebell_marco at posteo dot de
2015-07-27 19:29 ` trippels at gcc dot gnu.org
2015-07-27 19:29 ` trippels at gcc dot gnu.org
2015-07-27 19:55 ` [Bug rtl-optimization/67029] [5/6 regression] " trippels at gcc dot gnu.org
2015-08-03  7:18 ` ubizjak at gmail dot com
2015-08-03 14:51 ` hjl.tools at gmail dot com
2015-08-05 19:14 ` hjl.tools at gmail dot com
2015-08-05 20:27 ` hjl.tools at gmail dot com
2015-08-06  2:38 ` hjl.tools at gmail dot com
2015-08-07 16:18 ` hjl at gcc dot gnu.org
2015-08-07 16:50 ` [Bug rtl-optimization/67029] [5 Regression] " trippels at gcc dot gnu.org
2015-09-30 16:40 ` hjl at gcc dot gnu.org
2015-09-30 16:40 ` hjl.tools at gmail dot com

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).