public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/57032] New: [4.9 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90)
@ 2013-04-22 14:35 ubizjak at gmail dot com
  2013-04-22 15:20 ` [Bug rtl-optimization/57032] " ubizjak at gmail dot com
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: ubizjak at gmail dot com @ 2013-04-22 14:35 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 57032
           Summary: [4.9 Regression]: internal compiler error: Max. number
                    of generated reload insns per insn is achieved (90)
    Classification: Unclassified
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Keywords: ra
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ubizjak@gmail.com
                CC: vmakarov@gcc.gnu.org
            Target: alpha-linux-gnu


Created attachment 29914
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29914
Preprocessed source

Attached preprocessed source fails to compile for alpha-linux-gnu target. The
failure can be reproduced on a cross from x86_64-pc-linux-gnu, configured with:

../gcc-svn/trunk/configure --target=alpha-linux-gnu --with-long-double-128

~/gcc-build-alpha/gcc/xgcc -B ~/gcc-build-alpha/gcc -O2 libgcc2.i 
../../../gcc-svn/trunk/libgcc/libgcc2.c: In function ‘__fixunssfti’:
../../../gcc-svn/trunk/libgcc/libgcc2.c:1382:1: internal compiler error: Max.
number of generated reload insns per insn is achieved (90)

0x7aa777 lra_constraints(bool)
        ../../gcc-svn/trunk/gcc/lra-constraints.c:3538
0x79ce9c lra(_IO_FILE*)
        ../../gcc-svn/trunk/gcc/lra.c:2268
0x7645c0 do_reload
        ../../gcc-svn/trunk/gcc/ira.c:4619
0x7645c0 rest_of_handle_reload
        ../../gcc-svn/trunk/gcc/ira.c:4731
Please submit a full bug report,
with preprocessed source if appropriate.
>From gcc-bugs-return-420748-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Apr 22 14:46:20 2013
Return-Path: <gcc-bugs-return-420748-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19051 invoked by alias); 22 Apr 2013 14:46:20 -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 19009 invoked by uid 48); 22 Apr 2013 14:46:17 -0000
From: "ysrumyan at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/56935] Basic block is not SLP-vectorizeed after r197635.
Date: Mon, 22 Apr 2013 14:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ysrumyan at gmail dot com
X-Bugzilla-Status: WAITING
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Changed-Fields:
Message-ID: <bug-56935-4-2OKIE0zoy2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56935-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56935-4@http.gcc.gnu.org/bugzilla/>
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
Content-Type: text/plain; charset="UTF-8"
MIME-Version: 1.0
X-SW-Source: 2013-04/txt/msg01893.txt.bz2
Content-length: 383


http://gcc.gnu.org/bugzilla/show_bug.cgi?idV935

--- Comment #6 from Yuri Rumyantsev <ysrumyan at gmail dot com> 2013-04-22 14:46:16 UTC ---
Richard,

Sorry for troubles since we found out the real cause of performance degradation
- code layout was changed after your fix and it caused ~5% slowdown on
253.perlbmk bench on IVB. So you can close this bug as 'user error'.


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

* [Bug rtl-optimization/57032] [4.9 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90)
  2013-04-22 14:35 [Bug rtl-optimization/57032] New: [4.9 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90) ubizjak at gmail dot com
@ 2013-04-22 15:20 ` ubizjak at gmail dot com
  2013-04-22 17:22 ` ubizjak at gmail dot com
                   ` (15 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: ubizjak at gmail dot com @ 2013-04-22 15:20 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #1 from Uros Bizjak <ubizjak at gmail dot com> 2013-04-22 15:20:38 UTC ---
For some reason, LRA does not fix-up (insn 12):

(insn 12 11 13 2 (set (reg/v:DI 72 [ hi ])
        (unsigned_fix:DI (reg:DF 83 [ D.5360 ])))
../../../gcc-svn/trunk/libgcc/libgcc2.c:1334 138 {*fix_truncdfdi2}
     (expr_list:REG_DEAD (reg:DF 83 [ D.5360 ])
        (nil)))

with a spill to memory via *movdi combo (as is the case with reload):

    cvttq/c $f10,$f10     # 12    *fix_truncdfdi2    [length = 4]
    stt $f10,0($30)     # 60    *movdi/12    [length = 4]
    ldq $1,0($30)     # 61    *movdi/8    [length = 4]

But ignores the above alternative and goes with:

   12: r108:DI=uns_fix(r83:DF)
      REG_DEAD r83:DF
    Inserting insn reload after:
   58: r72:DI=r108:DI

      Creating newreg=109, assigning class NO_REGS to secondary r109
   58: r109:DI=r108:DI
    Inserting the sec. move after:
   59: r72:DI=r109:DI

     Choosing alt 7 in insn 59:  (0) r  (1) m
     Choosing alt 0 in insn 13:  (2) rJ
     Choosing alt 0 in insn 14:  (0) =f  (1) f
      Creating newreg=110 from oldreg=72, assigning class FLOAT_REGS to r110
   14: r87:DF=float(r110:DI)
    Inserting insn reload before:
   60: r110:DI=r72:DI

      Creating newreg=111, assigning class NO_REGS to secondary r111
   60: r111:DI=r72:DI
    Inserting the sec. move after:
   61: r110:DI=r111:DI

     Choosing alt 9 in insn 61:  (0) *f  (1) *fJ
      Creating newreg=112 from oldreg=111, assigning class FLOAT_REGS to r112
   61: r110:DI=r112:DI
    Inserting insn reload before:
   62: r112:DI=r111:DI

     Choosing alt 9 in insn 62:  (0) *f  (1) *fJ
      Creating newreg=113 from oldreg=111, assigning class FLOAT_REGS to r113
   62: r112:DI=r113:DI
    Inserting insn reload before:
   63: r113:DI=r111:DI

...

This creates a reload loop.


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

* [Bug rtl-optimization/57032] [4.9 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90)
  2013-04-22 14:35 [Bug rtl-optimization/57032] New: [4.9 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90) ubizjak at gmail dot com
  2013-04-22 15:20 ` [Bug rtl-optimization/57032] " ubizjak at gmail dot com
@ 2013-04-22 17:22 ` ubizjak at gmail dot com
  2013-04-22 21:00 ` ubizjak at gmail dot com
                   ` (14 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: ubizjak at gmail dot com @ 2013-04-22 17:22 UTC (permalink / raw)
  To: gcc-bugs


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

Uros Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.9.0

--- Comment #2 from Uros Bizjak <ubizjak at gmail dot com> 2013-04-22 17:22:17 UTC ---
Fixed by revert:

Author: uros
Date: Mon Apr 22 16:58:30 2013
New Revision: 198145

URL: http://gcc.gnu.org/viewcvs?rev=198145&root=gcc&view=rev
Log:
    PR target/57032
    Revert:
    2013-03-17  Uros Bizjak  <ubizjak@gmail.com>

    * config/alpha/alpha.c (TARGET_LRA_P): New define.


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


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

* [Bug rtl-optimization/57032] [4.9 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90)
  2013-04-22 14:35 [Bug rtl-optimization/57032] New: [4.9 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90) ubizjak at gmail dot com
  2013-04-22 15:20 ` [Bug rtl-optimization/57032] " ubizjak at gmail dot com
  2013-04-22 17:22 ` ubizjak at gmail dot com
@ 2013-04-22 21:00 ` ubizjak at gmail dot com
  2013-11-22 10:46 ` rguenth at gcc dot gnu.org
                   ` (13 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: ubizjak at gmail dot com @ 2013-04-22 21:00 UTC (permalink / raw)
  To: gcc-bugs


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

Uros Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |SUSPENDED
   Last reconfirmed|                            |2013-04-22
         Resolution|FIXED                       |
     Ever Confirmed|0                           |1

--- Comment #3 from Uros Bizjak <ubizjak at gmail dot com> 2013-04-22 21:00:26 UTC ---
Suspended, until LRA is reenabled on alpha.


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

* [Bug rtl-optimization/57032] [4.9 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90)
  2013-04-22 14:35 [Bug rtl-optimization/57032] New: [4.9 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90) ubizjak at gmail dot com
                   ` (2 preceding siblings ...)
  2013-04-22 21:00 ` ubizjak at gmail dot com
@ 2013-11-22 10:46 ` rguenth at gcc dot gnu.org
  2014-04-22 11:38 ` [Bug rtl-optimization/57032] [4.9/4.10 " jakub at gcc dot gnu.org
                   ` (12 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-11-22 10:46 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4


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

* [Bug rtl-optimization/57032] [4.9/4.10 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90)
  2013-04-22 14:35 [Bug rtl-optimization/57032] New: [4.9 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90) ubizjak at gmail dot com
                   ` (3 preceding siblings ...)
  2013-11-22 10:46 ` rguenth at gcc dot gnu.org
@ 2014-04-22 11:38 ` jakub at gcc dot gnu.org
  2014-07-16 13:31 ` jakub at gcc dot gnu.org
                   ` (11 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-04-22 11:38 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.9.0                       |4.9.1

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.9.0 has been released


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

* [Bug rtl-optimization/57032] [4.9/4.10 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90)
  2013-04-22 14:35 [Bug rtl-optimization/57032] New: [4.9 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90) ubizjak at gmail dot com
                   ` (4 preceding siblings ...)
  2014-04-22 11:38 ` [Bug rtl-optimization/57032] [4.9/4.10 " jakub at gcc dot gnu.org
@ 2014-07-16 13:31 ` jakub at gcc dot gnu.org
  2014-09-13 23:20 ` [Bug rtl-optimization/57032] [4.9/5 " olegendo at gcc dot gnu.org
                   ` (10 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-07-16 13:31 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.9.1                       |4.9.2

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.9.1 has been released.


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

* [Bug rtl-optimization/57032] [4.9/5 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90)
  2013-04-22 14:35 [Bug rtl-optimization/57032] New: [4.9 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90) ubizjak at gmail dot com
                   ` (5 preceding siblings ...)
  2014-07-16 13:31 ` jakub at gcc dot gnu.org
@ 2014-09-13 23:20 ` olegendo at gcc dot gnu.org
  2014-10-30 10:43 ` jakub at gcc dot gnu.org
                   ` (9 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: olegendo at gcc dot gnu.org @ 2014-09-13 23:20 UTC (permalink / raw)
  To: gcc-bugs

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

Oleg Endo <olegendo at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |olegendo at gcc dot gnu.org

--- Comment #6 from Oleg Endo <olegendo at gcc dot gnu.org> ---
While trying to switch SH to LRA (PR 55212) I ran into something that looks
similar.


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

* [Bug rtl-optimization/57032] [4.9/5 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90)
  2013-04-22 14:35 [Bug rtl-optimization/57032] New: [4.9 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90) ubizjak at gmail dot com
                   ` (6 preceding siblings ...)
  2014-09-13 23:20 ` [Bug rtl-optimization/57032] [4.9/5 " olegendo at gcc dot gnu.org
@ 2014-10-30 10:43 ` jakub at gcc dot gnu.org
  2015-04-08  8:28 ` ubizjak at gmail dot com
                   ` (8 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-10-30 10:43 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.9.2                       |4.9.3

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.9.2 has been released.


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

* [Bug rtl-optimization/57032] [4.9/5 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90)
  2013-04-22 14:35 [Bug rtl-optimization/57032] New: [4.9 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90) ubizjak at gmail dot com
                   ` (7 preceding siblings ...)
  2014-10-30 10:43 ` jakub at gcc dot gnu.org
@ 2015-04-08  8:28 ` ubizjak at gmail dot com
  2015-04-09 17:31 ` rth at gcc dot gnu.org
                   ` (7 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: ubizjak at gmail dot com @ 2015-04-08  8:28 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ra                          |
                 CC|                            |rth at gcc dot gnu.org

--- Comment #8 from Uroš Bizjak <ubizjak at gmail dot com> ---
This is not a LRA problem.

The problem is in definition of "Q" constraint, AKA "normal_memory_operand":

(define_constraint "Q"
  "@internal A normal_memory_operand"
  (match_operand 0 "normal_memory_operand"))

;; Return 1 is OP is a memory location that is not a reference
;; (using an AND) to an unaligned location.  Take into account
;; what reload will do.
(define_special_predicate "normal_memory_operand"
  (ior (match_test "op = resolve_reload_operand (op), 0")
       (and (match_code "mem")
        (match_test "GET_CODE (XEXP (op, 0)) != AND"))))

This constraint calls "resolve_reload_operand":

/* Used by aligned_memory_operand and unaligned_memory_operand to
   resolve what reload is going to do with OP if it's a register.  */

rtx
resolve_reload_operand (rtx op)
{
  if (reload_in_progress)
    {
      rtx tmp = op;
      if (GET_CODE (tmp) == SUBREG)
    tmp = SUBREG_REG (tmp);
      if (REG_P (tmp)
      && REGNO (tmp) >= FIRST_PSEUDO_REGISTER)
    {
      op = reg_equiv_memory_loc (REGNO (tmp));
      if (op == 0)
        return 0;
    }
    }
  return op;
}

LRA does not set reload_in_progress, and also doesn't allow to use
reg_equiv_memory_loc. So, the "Q" constraint is effectively dead when LRA is
used.

Using the "m" constraint instead of "Q" in:

(define_insn "*movdi"
  [(set (match_operand:DI 0 "nonimmediate_operand"
                "=r,r,r,r,r,r,r,r, m, *f,*f, Q, r,*f")
    (match_operand:DI 1 "input_operand"
                "rJ,K,L,T,s,n,s,m,rJ,*fJ, Q,*f,*f, r"))]
  "register_operand (operands[0], DImode)
   || reg_or_0_operand (operands[1], DImode)"

solves this particular failure.

Probably we need to redefine "Q" as a memory constraint. Also
{aligned,unaligned,normal}_memory_operand shouldn't use resolve_reload_operand
anymore. Richard, do you have any insight into this issue?
>From gcc-bugs-return-482950-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Apr 08 08:33:43 2015
Return-Path: <gcc-bugs-return-482950-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62818 invoked by alias); 8 Apr 2015 08:33:43 -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 62767 invoked by uid 48); 8 Apr 2015 08:33:39 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/65559] [5 Regression] lto1.exe: internal compiler error: in read_cgraph_and_symbols, at lto/lto.c:2947
Date: Wed, 08 Apr 2015 08:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-65559-4-9J3E2fb1sr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65559-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65559-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-04/txt/msg00502.txt.bz2
Content-length: 382

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

--- Comment #14 from Richard Biener <rguenth at gcc dot gnu.org> ---
too bad :/  As this doesn't reproduce with a cross it's impossible to debug for
me as well (are there instructions somewhere how to "install"
x86_64-w64-mingw32 using wine ...?  would that even work and reproduce the
issue?)

I'll leave this for Kai to debug.


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

* [Bug rtl-optimization/57032] [4.9/5 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90)
  2013-04-22 14:35 [Bug rtl-optimization/57032] New: [4.9 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90) ubizjak at gmail dot com
                   ` (8 preceding siblings ...)
  2015-04-08  8:28 ` ubizjak at gmail dot com
@ 2015-04-09 17:31 ` rth at gcc dot gnu.org
  2015-04-09 19:46 ` ubizjak at gmail dot com
                   ` (6 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: rth at gcc dot gnu.org @ 2015-04-09 17:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Richard Henderson <rth at gcc dot gnu.org> ---
I think all of the bits touching reload internals stems
from the non-existence of define_memory_constraint when
the port was first written.

I suspect that this is fixable with nothing more than

(define_memory_constraint "Q"
  "@internal normal memory operand"
  (and (match_code "mem")
       (match_test "GET_CODE (XEXP (op, 0)) != AND")
       (match_test "memory_address_addr_space_p
                    (GET_MODE (op), XEXP (op, 0),
                     MEM_ADDR_SPACE (op))")))


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

* [Bug rtl-optimization/57032] [4.9/5 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90)
  2013-04-22 14:35 [Bug rtl-optimization/57032] New: [4.9 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90) ubizjak at gmail dot com
                   ` (9 preceding siblings ...)
  2015-04-09 17:31 ` rth at gcc dot gnu.org
@ 2015-04-09 19:46 ` ubizjak at gmail dot com
  2015-04-09 19:48 ` ubizjak at gmail dot com
                   ` (5 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: ubizjak at gmail dot com @ 2015-04-09 19:46 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Richard Henderson from comment #9)
> I think all of the bits touching reload internals stems
> from the non-existence of define_memory_constraint when
> the port was first written.
> 
> I suspect that this is fixable with nothing more than
> 
> (define_memory_constraint "Q"
>   "@internal normal memory operand"
>   (and (match_code "mem")
>        (match_test "GET_CODE (XEXP (op, 0)) != AND")
>        (match_test "memory_address_addr_space_p
>                     (GET_MODE (op), XEXP (op, 0),
>                      MEM_ADDR_SPACE (op))")))

Great, this fix brings bootstrap way further to libgomp, but now crashes with:

/space/homedirs/uros/gcc-svn/trunk/libgomp/team.c: In function
‘gomp_team_start’:
/space/homedirs/uros/gcc-svn/trunk/libgomp/team.c:836:1: internal compiler
error: Max. number of generated reload insns per insn is achieved (90)

However, this is different problem, and this one indeed looks like RA problem.

There, RA wants to reload:

(insn 280 2259 279 17 (set (reg:DI 364)
        (ashift:DI (zero_extend:DI (subreg/s/u:QI (reg/v:DI 98 [ bind ]) 0))
            (ashift:DI (reg/f:DI 362)
                (const_int 3 [0x3]))))
/space/homedirs/uros/gcc-svn/trunk/libgomp/team.c:334 83 {insbl}
     (nil))

and creates reload loop trying to move QImode subreg of DImode value to QI reg:

     Choosing alt 0 in insn 280:  (0) =r  (1) r  (2) rI {insbl}
      Creating newreg=1020, assigning class GENERAL_REGS to r1020
  280: r364:DI=zero_extend(r1020:QI)<<r362:DI<<0x3
    Inserting insn reload before:
 2443: r1020:QI=r98:DI#0

            0 Non pseudo reload: reject++
          alt=0,overall=607,losers=1,rld_nregs=1
            0 Non pseudo reload: reject++
            alt=1: Bad operand -- refuse
     Choosing alt 0 in insn 2443:  (0) =r  (1) rJ {*movqi}
      Creating newreg=1021, assigning class GENERAL_REGS to r1021
 2443: r1020:QI=r1021:QI
    Inserting insn reload before:
 2444: r1021:QI=r98:DI#0

            0 Non pseudo reload: reject++
          alt=0,overall=607,losers=1,rld_nregs=1
            0 Non pseudo reload: reject++
            alt=1: Bad operand -- refuse
     Choosing alt 0 in insn 2444:  (0) =r  (1) rJ {*movqi}
      Creating newreg=1022, assigning class GENERAL_REGS to r1022
 2444: r1021:QI=r1022:QI
    Inserting insn reload before:
...

I'll post the WIP patch and preprocessed source in a moment.
>From gcc-bugs-return-483202-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Apr 09 19:47:56 2015
Return-Path: <gcc-bugs-return-483202-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75029 invoked by alias); 9 Apr 2015 19:47:56 -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 74937 invoked by uid 48); 9 Apr 2015 19:47:52 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/65710] [5 Regression] Thumb1 ICE caused by no register to spill
Date: Thu, 09 Apr 2015 19:47: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.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-65710-4-peMAvpN7nw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65710-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65710-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-04/txt/msg00754.txt.bz2
Content-length: 504

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |jakub at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed, thanks.


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

* [Bug rtl-optimization/57032] [4.9/5 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90)
  2013-04-22 14:35 [Bug rtl-optimization/57032] New: [4.9 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90) ubizjak at gmail dot com
                   ` (10 preceding siblings ...)
  2015-04-09 19:46 ` ubizjak at gmail dot com
@ 2015-04-09 19:48 ` ubizjak at gmail dot com
  2015-04-09 19:53 ` ubizjak at gmail dot com
                   ` (4 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: ubizjak at gmail dot com @ 2015-04-09 19:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from Uroš Bizjak <ubizjak at gmail dot com> ---
Created attachment 35281
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35281&action=edit
WIP patch (fixes "Q" constraint)
>From gcc-bugs-return-483204-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Apr 09 19:51:46 2015
Return-Path: <gcc-bugs-return-483204-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79220 invoked by alias); 9 Apr 2015 19:51:46 -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 78819 invoked by uid 55); 9 Apr 2015 19:51:40 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/65709] [5 Regression] Bad code for LZ4 decompression with -O3 on x86_64
Date: Thu, 09 Apr 2015 19:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-65709-4-kMpGvFdM1E@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65709-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65709-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-04/txt/msg00756.txt.bz2
Content-length: 580

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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Apr  9 19:51:08 2015
New Revision: 221958

URL: https://gcc.gnu.org/viewcvs?rev"1958&root=gcc&view=rev
Log:
    PR tree-optimization/65709
    * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
    TREE_TYPE (TREE_TYPE (t)).

    * c-c++-common/ubsan/align-9.c: New test.

Added:
    trunk/gcc/testsuite/c-c++-common/ubsan/align-9.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/ubsan.c


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

* [Bug rtl-optimization/57032] [4.9/5 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90)
  2013-04-22 14:35 [Bug rtl-optimization/57032] New: [4.9 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90) ubizjak at gmail dot com
                   ` (11 preceding siblings ...)
  2015-04-09 19:48 ` ubizjak at gmail dot com
@ 2015-04-09 19:53 ` ubizjak at gmail dot com
  2015-04-09 19:56 ` ubizjak at gmail dot com
                   ` (3 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: ubizjak at gmail dot com @ 2015-04-09 19:53 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #12 from Uroš Bizjak <ubizjak at gmail dot com> ---
Created attachment 35282
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35282&action=edit
Preprocessed source for QImode subreg reload problem

$ /space/uros/gcc-build-nobwx/gcc/cc1 -O2 -quiet team.i
/space/homedirs/uros/gcc-svn/trunk/libgomp/team.c: In function
‘gomp_team_start’:
/space/homedirs/uros/gcc-svn/trunk/libgomp/team.c:836:1: internal compiler
error: Max. number of generated reload insns per insn is achieved (90)

 }
 ^
0x1209d580b lra_constraints(bool)
        /space/homedirs/uros/gcc-svn/trunk/gcc/lra-constraints.c:4366
0x1209b5f0b lra(_IO_FILE*)
        /space/homedirs/uros/gcc-svn/trunk/gcc/lra.c:2315
0x12093b4e7 do_reload
        /space/homedirs/uros/gcc-svn/trunk/gcc/ira.c:5418
0x12093bc1f execute
        /space/homedirs/uros/gcc-svn/trunk/gcc/ira.c:5589
Please submit a full bug report,

this problem can also be triggered by a cross from x86_64-linux-gnu.
>From gcc-bugs-return-483206-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Apr 09 19:55:26 2015
Return-Path: <gcc-bugs-return-483206-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94580 invoked by alias); 9 Apr 2015 19:55:26 -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 94506 invoked by uid 55); 9 Apr 2015 19:55:21 -0000
From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug jit/65691] libgccjit documentation typo in gcc_jit_context_one
Date: Thu, 09 Apr 2015 19:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: jit
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dmalcolm at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-65691-4-wD89ctmkqN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65691-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65691-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-04/txt/msg00758.txt.bz2
Content-length: 816

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

--- Comment #1 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Author: dmalcolm
Date: Thu Apr  9 19:54:49 2015
New Revision: 221959

URL: https://gcc.gnu.org/viewcvs?rev"1959&root=gcc&view=rev
Log:
PR jit/65691: Fix copy&paste error in docs

gcc/jit/ChangeLog:
    PR jit/65691
    * docs/cp/topics/expressions.rst (Simple expressions): Fix copy
    and paste error in description of gccjit::context::one.
    * docs/topics/expressions.rst (Simple expressions): Likewise in
    description of gcc_jit_context_one.
    * docs/_build/texinfo/libgccjit.texi: Regenerate.


Modified:
    trunk/gcc/jit/ChangeLog
    trunk/gcc/jit/docs/_build/texinfo/libgccjit.texi
    trunk/gcc/jit/docs/cp/topics/expressions.rst
    trunk/gcc/jit/docs/topics/expressions.rst


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

* [Bug rtl-optimization/57032] [4.9/5 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90)
  2013-04-22 14:35 [Bug rtl-optimization/57032] New: [4.9 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90) ubizjak at gmail dot com
                   ` (12 preceding siblings ...)
  2015-04-09 19:53 ` ubizjak at gmail dot com
@ 2015-04-09 19:56 ` ubizjak at gmail dot com
  2015-04-14 16:48 ` [Bug rtl-optimization/57032] [4.9/5/6 " ubizjak at gmail dot com
                   ` (2 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: ubizjak at gmail dot com @ 2015-04-09 19:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #13 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Uroš Bizjak from comment #12)

> this problem can also be triggered by a cross from x86_64-linux-gnu.

(gdb) f 1
#1  0x00000000008d5315 in lra_constraints (first_p=true) at
/home/uros/gcc-svn/trunk/gcc/lra-constraints.c:4366
4366               MAX_RELOAD_INSNS_NUMBER);
(gdb) p debug_rtx (curr_insn)
(insn 2226 1952 2225 17 (set (reg:QI 1110)
        (subreg/s/u:QI (reg/v:DI 98 [ bind ]) 0))
/space/homedirs/uros/gcc-svn/trunk/libgomp/team.c:334 229 {*movqi}
     (nil))
$5 = void
>From gcc-bugs-return-483208-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Apr 09 20:02:27 2015
Return-Path: <gcc-bugs-return-483208-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68335 invoked by alias); 9 Apr 2015 20:02:27 -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 68284 invoked by uid 48); 9 Apr 2015 20:02:23 -0000
From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug jit/65691] libgccjit documentation typo in gcc_jit_context_one
Date: Thu, 09 Apr 2015 20:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: jit
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dmalcolm at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-65691-4-0ckPApvjAh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65691-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65691-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-04/txt/msg00760.txt.bz2
Content-length: 691

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

David Malcolm <dmalcolm at gcc dot gnu.org> changed:

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

--- Comment #2 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Good catch; thanks!

This also affected the docs on the C++ bindings at
https://gcc.gnu.org/onlinedocs/jit/cp/topics/expressions.html

Both should now be fixed in the .rst sources (as of r221959).
The built HTML on the website should rebuild sometime tonight (cronjob).


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

* [Bug rtl-optimization/57032] [4.9/5/6 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90)
  2013-04-22 14:35 [Bug rtl-optimization/57032] New: [4.9 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90) ubizjak at gmail dot com
                   ` (13 preceding siblings ...)
  2015-04-09 19:56 ` ubizjak at gmail dot com
@ 2015-04-14 16:48 ` ubizjak at gmail dot com
  2015-05-18 16:35 ` uros at gcc dot gnu.org
  2015-05-18 17:40 ` ubizjak at gmail dot com
  16 siblings, 0 replies; 18+ messages in thread
From: ubizjak at gmail dot com @ 2015-04-14 16:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #14 from Uroš Bizjak <ubizjak at gmail dot com> ---
Created attachment 35312
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35312&action=edit
Reduced testcase for QImode subreg reload problem

Reduced testcase, compile with -O2 for alpha-linux-target:

tt.c: In function ‘gomp_team_start’:
tt.c:80:1: internal compiler error: Max. number of generated reload insns per
insn is achieved (90)

 }
 ^
0x8d5314 lra_constraints(bool)
        /home/uros/gcc-svn/trunk/gcc/lra-constraints.c:4366
0x8c1d8c lra(_IO_FILE*)
        /home/uros/gcc-svn/trunk/gcc/lra.c:2315
0x883879 do_reload
        /home/uros/gcc-svn/trunk/gcc/ira.c:5418
0x883879 execute
        /home/uros/gcc-svn/trunk/gcc/ira.c:5589
Please submit a full bug report,
>From gcc-bugs-return-483584-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Apr 14 16:54:02 2015
Return-Path: <gcc-bugs-return-483584-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109067 invoked by alias); 14 Apr 2015 16:54:02 -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 108705 invoked by uid 48); 14 Apr 2015 16:53:57 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/57032] [4.9/5/6 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90)
Date: Tue, 14 Apr 2015 16:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status target_milestone
Message-ID: <bug-57032-4-AJSZrWwf4e@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-57032-4@http.gcc.gnu.org/bugzilla/>
References: <bug-57032-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-04/txt/msg01136.txt.bz2
Content-length: 398

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ra
             Status|SUSPENDED                   |NEW
   Target Milestone|4.9.3                       |6.0
>From gcc-bugs-return-483585-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Apr 14 17:22:31 2015
Return-Path: <gcc-bugs-return-483585-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59654 invoked by alias); 14 Apr 2015 17:22:31 -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 59583 invoked by uid 55); 14 Apr 2015 17:22:27 -0000
From: "yroux at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/65729] [5/6 Regression] ICE (in prohibited_class_reg_set_mode_p, at lra-constraints.c) on arm-linux-gnueabihf
Date: Tue, 14 Apr 2015 17:22: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.0
X-Bugzilla-Keywords: ice-on-valid-code, ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: yroux at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-65729-4-A66p0HkXSr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65729-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65729-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-04/txt/msg01137.txt.bz2
Content-length: 699

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

--- Comment #11 from Yvan Roux <yroux at gcc dot gnu.org> ---
Author: yroux
Date: Tue Apr 14 17:21:54 2015
New Revision: 222101

URL: https://gcc.gnu.org/viewcvs?rev"2101&root=gcc&view=rev
Log:
gcc/
2015-04-14  Yvan Roux  <yvan.roux@linaro.org>

    PR target/65729
    * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
    the assertiion.

gcc/testsuite/
2015-04-14  Yvan Roux  <yvan.roux@linaro.org>

    PR target/65729
    * gcc.target/arm/pr65729.c: New test.


Added:
    trunk/gcc/testsuite/gcc.target/arm/pr65729.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/lra-constraints.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug rtl-optimization/57032] [4.9/5/6 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90)
  2013-04-22 14:35 [Bug rtl-optimization/57032] New: [4.9 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90) ubizjak at gmail dot com
                   ` (14 preceding siblings ...)
  2015-04-14 16:48 ` [Bug rtl-optimization/57032] [4.9/5/6 " ubizjak at gmail dot com
@ 2015-05-18 16:35 ` uros at gcc dot gnu.org
  2015-05-18 17:40 ` ubizjak at gmail dot com
  16 siblings, 0 replies; 18+ messages in thread
From: uros at gcc dot gnu.org @ 2015-05-18 16:35 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #15 from uros at gcc dot gnu.org ---
Author: uros
Date: Mon May 18 16:34:23 2015
New Revision: 223298

URL: https://gcc.gnu.org/viewcvs?rev=223298&root=gcc&view=rev
Log:
        PR target/57032
        * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
        Check for a memory location that is not a reference (using an AND)
        to an unaligned location here.
        * config/alpha/predicates.md (normal_memory_operand): Remove.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/alpha/constraints.md
    trunk/gcc/config/alpha/predicates.md


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

* [Bug rtl-optimization/57032] [4.9/5/6 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90)
  2013-04-22 14:35 [Bug rtl-optimization/57032] New: [4.9 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90) ubizjak at gmail dot com
                   ` (15 preceding siblings ...)
  2015-05-18 16:35 ` uros at gcc dot gnu.org
@ 2015-05-18 17:40 ` ubizjak at gmail dot com
  16 siblings, 0 replies; 18+ messages in thread
From: ubizjak at gmail dot com @ 2015-05-18 17:40 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #16 from Uroš Bizjak <ubizjak at gmail dot com> ---
This particular problem is now fixed.
>From gcc-bugs-return-486560-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon May 18 17:42:11 2015
Return-Path: <gcc-bugs-return-486560-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65248 invoked by alias); 18 May 2015 17:42:10 -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 65226 invoked by uid 48); 18 May 2015 17:42:07 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/66194] emit vectorization instruction for not aligned data(amd64), -fno-strict-aliasing not help
Date: Mon, 18 May 2015 17:42: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
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: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-66194-4-duKoGLudv3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66194-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66194-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-05/txt/msg01400.txt.bz2
Content-length: 593

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2015-05-18
                 CC|                            |hjl.tools at gmail dot com
     Ever confirmed|0                           |1

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
Which gcc did you use? Please provide a run-time test.


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

end of thread, other threads:[~2015-05-18 17:40 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-22 14:35 [Bug rtl-optimization/57032] New: [4.9 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90) ubizjak at gmail dot com
2013-04-22 15:20 ` [Bug rtl-optimization/57032] " ubizjak at gmail dot com
2013-04-22 17:22 ` ubizjak at gmail dot com
2013-04-22 21:00 ` ubizjak at gmail dot com
2013-11-22 10:46 ` rguenth at gcc dot gnu.org
2014-04-22 11:38 ` [Bug rtl-optimization/57032] [4.9/4.10 " jakub at gcc dot gnu.org
2014-07-16 13:31 ` jakub at gcc dot gnu.org
2014-09-13 23:20 ` [Bug rtl-optimization/57032] [4.9/5 " olegendo at gcc dot gnu.org
2014-10-30 10:43 ` jakub at gcc dot gnu.org
2015-04-08  8:28 ` ubizjak at gmail dot com
2015-04-09 17:31 ` rth at gcc dot gnu.org
2015-04-09 19:46 ` ubizjak at gmail dot com
2015-04-09 19:48 ` ubizjak at gmail dot com
2015-04-09 19:53 ` ubizjak at gmail dot com
2015-04-09 19:56 ` ubizjak at gmail dot com
2015-04-14 16:48 ` [Bug rtl-optimization/57032] [4.9/5/6 " ubizjak at gmail dot com
2015-05-18 16:35 ` uros at gcc dot gnu.org
2015-05-18 17:40 ` ubizjak 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).