public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/59139] New: internal compiler error: in get_val_for, at tree-ssa-loop-niter.c:2267
@ 2013-11-14 23:13 regehr at cs dot utah.edu
  2013-11-21 14:46 ` [Bug tree-optimization/59139] [4.7/4.8/4.9 Regression] " rguenth at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: regehr at cs dot utah.edu @ 2013-11-14 23:13 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59139
           Summary: internal compiler error: in get_val_for, at
                    tree-ssa-loop-niter.c:2267
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: regehr at cs dot utah.edu

[regehr@imp test]$ gcc -O3 -c -Wall ./work20/reduce_55RZFl/small.c
./work20/reduce_55RZFl/small.c: In function ‘fn2’:
./work20/reduce_55RZFl/small.c:4:6: internal compiler error: in get_val_for, at
tree-ssa-loop-niter.c:2267
 void fn2() {
      ^
0xafe7c9 get_val_for
    /users/regehr/z/compiler-source/gcc/gcc/tree-ssa-loop-niter.c:2267
0xb0162b loop_niter_by_eval(loop*, edge_def*)
    /users/regehr/z/compiler-source/gcc/gcc/tree-ssa-loop-niter.c:2335
0xb01934 find_loop_niter_by_eval(loop*, edge_def**)
    /users/regehr/z/compiler-source/gcc/gcc/tree-ssa-loop-niter.c:2394
0xae4c5f canonicalize_loop_induction_variables
    /users/regehr/z/compiler-source/gcc/gcc/tree-ssa-loop-ivcanon.c:929
0xae682b canonicalize_induction_variables()
    /users/regehr/z/compiler-source/gcc/gcc/tree-ssa-loop-ivcanon.c:998
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
[regehr@imp test]$ cat ./work20/reduce_55RZFl/small.c
int a, b, c, d, e;
int fn1(p1, p2) { return p2 == 0 ? p1 : 1 % p2; }

void fn2() {
  c = 0;
  for (;; c = (unsigned short)c) {
    b = 2;
    for (; b; b = a) {
      e = fn1(2, c && 1);
      d = c == 0 ? e : c;
      if (d)
        return;
    }
  }
}
[regehr@imp test]$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/mnt/local/randomtest/compiler-install/gcc-r204770-install/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /users/regehr/z/compiler-source/gcc/configure
--prefix=/users/regehr/z/compiler-install/gcc-r204770-install
--enable-languages=c,c++ --enable-multilib
Thread model: posix
gcc version 4.9.0 20131114 (experimental) (GCC)
>From gcc-bugs-return-434647-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Nov 14 23:36:58 2013
Return-Path: <gcc-bugs-return-434647-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25261 invoked by alias); 14 Nov 2013 23:36:58 -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 25244 invoked by uid 48); 14 Nov 2013 23:36:55 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/59131] Compiler segfaults while generating code to save local variables in transactional section
Date: Thu, 14 Nov 2013 23:36: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: 4.7.3
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: WAITING
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 everconfirmed
Message-ID: <bug-59131-4-dFuUGRVD12@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59131-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59131-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: 2013-11/txt/msg01424.txt.bz2
Content-length: 504

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2013-11-14
     Ever confirmed|0                           |1

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Nothing is attached.


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

* [Bug tree-optimization/59139] [4.7/4.8/4.9 Regression] internal compiler error: in get_val_for, at tree-ssa-loop-niter.c:2267
  2013-11-14 23:13 [Bug c/59139] New: internal compiler error: in get_val_for, at tree-ssa-loop-niter.c:2267 regehr at cs dot utah.edu
@ 2013-11-21 14:46 ` rguenth at gcc dot gnu.org
  2013-11-22 11:05 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-11-21 14:46 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
I can't reproduce it anymore and wonder what fixed it.  Likely some constant
folding.

I wonder if a more appropriate fix would be to drop the gcc_unreachable ()
and just fold the thing.

I'll have a look.


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

* [Bug tree-optimization/59139] [4.7/4.8/4.9 Regression] internal compiler error: in get_val_for, at tree-ssa-loop-niter.c:2267
  2013-11-14 23:13 [Bug c/59139] New: internal compiler error: in get_val_for, at tree-ssa-loop-niter.c:2267 regehr at cs dot utah.edu
  2013-11-21 14:46 ` [Bug tree-optimization/59139] [4.7/4.8/4.9 Regression] " rguenth at gcc dot gnu.org
@ 2013-11-22 11:05 ` rguenth at gcc dot gnu.org
  2013-12-02 15:43 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-11-22 11:05 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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

* [Bug tree-optimization/59139] [4.7/4.8/4.9 Regression] internal compiler error: in get_val_for, at tree-ssa-loop-niter.c:2267
  2013-11-14 23:13 [Bug c/59139] New: internal compiler error: in get_val_for, at tree-ssa-loop-niter.c:2267 regehr at cs dot utah.edu
                   ` (2 preceding siblings ...)
  2013-12-02 15:43 ` rguenth at gcc dot gnu.org
@ 2013-12-02 15:43 ` rguenth at gcc dot gnu.org
  2013-12-02 15:44 ` [Bug tree-optimization/59139] [4.7 " rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-12-02 15:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon Dec  2 15:43:01 2013
New Revision: 205588

URL: http://gcc.gnu.org/viewcvs?rev=205588&root=gcc&view=rev
Log:
2013-12-02  Richard Biener  <rguenther@suse.de>

    PR tree-optimization/59139
    * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
    code in get_val_for.
    (get_val_for): Use gcc_checking_asserts.

    * gcc.dg/torture/pr59139.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr59139.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-loop-niter.c


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

* [Bug tree-optimization/59139] [4.7/4.8/4.9 Regression] internal compiler error: in get_val_for, at tree-ssa-loop-niter.c:2267
  2013-11-14 23:13 [Bug c/59139] New: internal compiler error: in get_val_for, at tree-ssa-loop-niter.c:2267 regehr at cs dot utah.edu
  2013-11-21 14:46 ` [Bug tree-optimization/59139] [4.7/4.8/4.9 Regression] " rguenth at gcc dot gnu.org
  2013-11-22 11:05 ` rguenth at gcc dot gnu.org
@ 2013-12-02 15:43 ` rguenth at gcc dot gnu.org
  2013-12-02 15:43 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-12-02 15:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon Dec  2 15:43:47 2013
New Revision: 205589

URL: http://gcc.gnu.org/viewcvs?rev=205589&root=gcc&view=rev
Log:
2013-12-02  Richard Biener  <rguenther@suse.de>

    PR tree-optimization/59139
    * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
    code in get_val_for.
    (get_val_for): Use gcc_checking_asserts.

    * gcc.dg/torture/pr59139.c: New testcase.

Added:
    branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/torture/pr59139.c
Modified:
    branches/gcc-4_8-branch/gcc/ChangeLog
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_8-branch/gcc/tree-ssa-loop-niter.c


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

* [Bug tree-optimization/59139] [4.7 Regression] internal compiler error: in get_val_for, at tree-ssa-loop-niter.c:2267
  2013-11-14 23:13 [Bug c/59139] New: internal compiler error: in get_val_for, at tree-ssa-loop-niter.c:2267 regehr at cs dot utah.edu
                   ` (3 preceding siblings ...)
  2013-12-02 15:43 ` rguenth at gcc dot gnu.org
@ 2013-12-02 15:44 ` rguenth at gcc dot gnu.org
  2014-03-17 14:39 ` rguenth at gcc dot gnu.org
  2014-03-17 14:40 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-12-02 15:44 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.8.3, 4.9.0
            Summary|[4.7/4.8/4.9 Regression]    |[4.7 Regression] internal
                   |internal compiler error: in |compiler error: in
                   |get_val_for, at             |get_val_for, at
                   |tree-ssa-loop-niter.c:2267  |tree-ssa-loop-niter.c:2267
      Known to fail|4.9.0                       |

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed for 4.8.3 sofar.


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

* [Bug tree-optimization/59139] [4.7 Regression] internal compiler error: in get_val_for, at tree-ssa-loop-niter.c:2267
  2013-11-14 23:13 [Bug c/59139] New: internal compiler error: in get_val_for, at tree-ssa-loop-niter.c:2267 regehr at cs dot utah.edu
                   ` (4 preceding siblings ...)
  2013-12-02 15:44 ` [Bug tree-optimization/59139] [4.7 " rguenth at gcc dot gnu.org
@ 2014-03-17 14:39 ` rguenth at gcc dot gnu.org
  2014-03-17 14:40 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-03-17 14:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon Mar 17 14:38:55 2014
New Revision: 208618

URL: http://gcc.gnu.org/viewcvs?rev=208618&root=gcc&view=rev
Log:
2014-03-17  Richard Biener  <rguenther@suse.de>

    Backport from mainline
    2013-05-21  Richard Biener  <rguenther@suse.de>

    PR tree-optimization/57303
    * tree-ssa-sink.c (statement_sink_location): Properly handle
    self-assignments.

    * gcc.dg/torture/pr57303.c: New testcase.

    2013-12-02  Richard Biener  <rguenther@suse.de>

    PR tree-optimization/59139
    * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
    code in get_val_for.
    (get_val_for): Use gcc_checking_asserts.

    * gcc.dg/torture/pr59139.c: New testcase.

    2014-02-14  Richard Biener  <rguenther@suse.de>

    PR tree-optimization/60183
    * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating
    loads.
    (tree_ssa_phiprop): Calculate and free post-dominators.

    * gcc.dg/torture/pr60183.c: New testcase.

Added:
    branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/torture/pr57303.c
    branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/torture/pr59139.c
    branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/torture/pr60183.c
Modified:
    branches/gcc-4_7-branch/gcc/ChangeLog
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_7-branch/gcc/tree-ssa-loop-niter.c
    branches/gcc-4_7-branch/gcc/tree-ssa-phiprop.c
    branches/gcc-4_7-branch/gcc/tree-ssa-sink.c


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

* [Bug tree-optimization/59139] [4.7 Regression] internal compiler error: in get_val_for, at tree-ssa-loop-niter.c:2267
  2013-11-14 23:13 [Bug c/59139] New: internal compiler error: in get_val_for, at tree-ssa-loop-niter.c:2267 regehr at cs dot utah.edu
                   ` (5 preceding siblings ...)
  2014-03-17 14:39 ` rguenth at gcc dot gnu.org
@ 2014-03-17 14:40 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-03-17 14:40 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.


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

end of thread, other threads:[~2014-03-17 14:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-14 23:13 [Bug c/59139] New: internal compiler error: in get_val_for, at tree-ssa-loop-niter.c:2267 regehr at cs dot utah.edu
2013-11-21 14:46 ` [Bug tree-optimization/59139] [4.7/4.8/4.9 Regression] " rguenth at gcc dot gnu.org
2013-11-22 11:05 ` rguenth at gcc dot gnu.org
2013-12-02 15:43 ` rguenth at gcc dot gnu.org
2013-12-02 15:43 ` rguenth at gcc dot gnu.org
2013-12-02 15:44 ` [Bug tree-optimization/59139] [4.7 " rguenth at gcc dot gnu.org
2014-03-17 14:39 ` rguenth at gcc dot gnu.org
2014-03-17 14:40 ` rguenth 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).