public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/66394] New: ICE in -flto -fmerge-all-constants -fno-use-linker-plugin targetting i686-w64-mingw32
@ 2015-06-03 10:39 sthalik at misaki dot pl
  2015-06-03 10:40 ` [Bug other/66394] " sthalik at misaki dot pl
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: sthalik at misaki dot pl @ 2015-06-03 10:39 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 66394
           Summary: ICE in -flto -fmerge-all-constants
                    -fno-use-linker-plugin targetting i686-w64-mingw32
           Product: gcc
           Version: 5.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sthalik at misaki dot pl
  Target Milestone: ---

Compiling as follows:

[ 76%] Building CXX object
modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/color.cpp.obj
cd /d C:\Users\Administrator\dev\opentrack-win32\opencv\build2\modules\imgproc
&& C:\mingw-w64\i686-5.1.0-posix-dwarf-rt
_v4-rev0\mingw32\bin\i686-w64-mingw32-g++.exe    -fmerge-all-constants
--save-temps -fPIC   -fsigned-char -mstackrealign
 -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat
-Werror=format-security -Wmissing-declarat
ions -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing
-Wno-delete-non-virtual-dtor -fdiagnostics
-show-option -fomit-frame-pointer -ffast-math -msse -msse2 -mfpmath=sse
-ffunction-sections -O2 -ffast-math -flto -fno-u
se-linker-plugin -march=i686 -mtune=corei7-avx -mfpmath=both -msse -msse2
-mno-sse3 -mno-avx -frename-registers  -DNDEBU
G @CMakeFiles/opencv_imgproc.dir/includes_CXX.rsp    -Winvalid-pch -o
CMakeFiles\opencv_imgproc.dir\src\color.cpp.obj -c

C:\Users\Administrator\dev\opentrack-win32\opencv\modules\imgproc\src\color.cpp

C:\Users\Administrator\dev\opentrack-win32\opencv\modules\imgproc\src\color.cpp:4425:1:
internal compiler error: Segmentation fault

Not all flags are needed, enough to trigger is -O3 -flto -fno-use-linker-plugin
-fmerge-all-constants


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

* [Bug other/66394] ICE in -flto -fmerge-all-constants -fno-use-linker-plugin targetting i686-w64-mingw32
  2015-06-03 10:39 [Bug other/66394] New: ICE in -flto -fmerge-all-constants -fno-use-linker-plugin targetting i686-w64-mingw32 sthalik at misaki dot pl
@ 2015-06-03 10:40 ` sthalik at misaki dot pl
  2015-06-03 15:22 ` [Bug other/66394] [5/6 Regression] " marxin at gcc dot gnu.org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: sthalik at misaki dot pl @ 2015-06-03 10:40 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Stanisław Halik <sthalik at misaki dot pl> ---
Created attachment 35689
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35689&action=edit
preprocessed source of ICE
>From gcc-bugs-return-487947-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jun 03 11:04:10 2015
Return-Path: <gcc-bugs-return-487947-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91880 invoked by alias); 3 Jun 2015 11:04:08 -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 91272 invoked by uid 55); 3 Jun 2015 11:03:59 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/62031] [4.8 Regression] Different results between O2 and O2 -fpredictive-commoning
Date: Wed, 03 Jun 2015 11:04: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: 4.7.2
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-62031-4-Ie8puIcJOG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-62031-4@http.gcc.gnu.org/bugzilla/>
References: <bug-62031-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-06/txt/msg00282.txt.bz2
Content-length: 3121

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

--- Comment #19 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Wed Jun  3 11:03:26 2015
New Revision: 224072

URL: https://gcc.gnu.org/viewcvs?rev"4072&root=gcc&view=rev
Log:
2015-06-03  Richard Biener  <rguenther@suse.de>

        Backport from mainline
        2015-05-26  Michael Matz  <matz@suse.de>

        PR middle-end/66251
        * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
        STMT_VINFO_VEC_STMT, also with SLP.

        * gcc.dg/vect/pr66251.c: New test.

        2015-05-22  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/66251
        * tree-vect-stmts.c (vectorizable_conversion): Properly
        set STMT_VINFO_VEC_STMT even for the SLP case.

        * gfortran.fortran-torture/compile/pr66251.f90: New testcase.

        2015-05-27  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/66272
        Revert parts of
        2014-08-15  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/62031
        * tree-data-ref.c (dr_analyze_indices): Do not set
        DR_UNCONSTRAINED_BASE.
        (dr_may_alias_p): All indirect accesses have to go the
        formerly DR_UNCONSTRAINED_BASE path.
        * tree-data-ref.h (struct indices): Remove
        unconstrained_base member.
        (DR_UNCONSTRAINED_BASE): Remove.

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

        2015-05-13  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/66123
        * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
        a taken edge.

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

        2015-06-02  Richard Biener  <rguenther@suse.de>

        PR debug/65549
        * dwarf2out.c (lookup_context_die): New function.
        (resolve_addr): Avoid forcing a full DIE for the
        target of a DW_TAG_GNU_call_site during late compilation.
        Instead create a stub DIE without a type if we have a
        context DIE present.

        * g++.dg/lto/pr65549_0.C: New testcase.

        2015-03-23  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/65518
        * tree-vect-stmts.c (vectorizable_load): Reject single-element
        interleaving cases we generate absymal code for.

        * gcc.dg/vect/pr65518.c: New testcase.

Added:
    branches/gcc-4_9-branch/gcc/testsuite/g++.dg/lto/pr65549_0.C
    branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/torture/pr66123.c
    branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/torture/pr66272.c
    branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/vect/pr65518.c
    branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/vect/pr66251.c

branches/gcc-4_9-branch/gcc/testsuite/gfortran.fortran-torture/compile/pr66251.f90
Modified:
    branches/gcc-4_9-branch/gcc/ChangeLog
    branches/gcc-4_9-branch/gcc/dwarf2out.c
    branches/gcc-4_9-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_9-branch/gcc/tree-data-ref.c
    branches/gcc-4_9-branch/gcc/tree-data-ref.h
    branches/gcc-4_9-branch/gcc/tree-ssa-dom.c
    branches/gcc-4_9-branch/gcc/tree-vect-stmts.c


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

* [Bug other/66394] [5/6 Regression] ICE in -flto -fmerge-all-constants -fno-use-linker-plugin targetting i686-w64-mingw32
  2015-06-03 10:39 [Bug other/66394] New: ICE in -flto -fmerge-all-constants -fno-use-linker-plugin targetting i686-w64-mingw32 sthalik at misaki dot pl
  2015-06-03 10:40 ` [Bug other/66394] " sthalik at misaki dot pl
@ 2015-06-03 15:22 ` marxin at gcc dot gnu.org
  2015-06-04 11:43 ` [Bug other/66394] [4.8/4.9/5/6 " marxin at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: marxin at gcc dot gnu.org @ 2015-06-03 15:22 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Reduced test case:

$ cat color.ii
template <typename Cvt> void CvtColorLoop(int, int, const Cvt &);
enum { R2Y, G2Y, B2Y };
struct RGB2Gray {
  RGB2Gray(int, int, int coeffs) {
    const int coeffs0[]{G2Y, B2Y};
    coeffs = coeffs0;
    tab[2] = coeffs;
  }
  int tab[];
};

cvtColor_bidx() {
  int src, dst;
  CvtColorLoop(src, dst, RGB2Gray(0, cvtColor_bidx, 0));
}

$ g++ -fmerge-all-constants -flto -c color.ii -c -fpermissive

0xa8395f crash_signal
        ../../gcc/toplev.c:380
0x985325 compute_ltrans_boundary(lto_symtab_encoder_d*)
        ../../gcc/lto-cgraph.c:1024
0x9da94f ipa_write_summaries()
        ../../gcc/passes.c:2519
0x76c300 ipa_passes
        ../../gcc/cgraphunit.c:2215
0x76c300 symbol_table::compile()
        ../../gcc/cgraphunit.c:2311
0x76d8b0 symbol_table::finalize_compilation_unit()
        ../../gcc/cgraphunit.c:2460
0x5f8cf2 cp_write_global_declarations()
        ../../gcc/cp/decl2.c:4793
>From gcc-bugs-return-488008-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jun 03 15:25:52 2015
Return-Path: <gcc-bugs-return-488008-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43445 invoked by alias); 3 Jun 2015 15:25:52 -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 43384 invoked by uid 55); 3 Jun 2015 15:25:48 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug gcov-profile/64634] [4.8/4.9 Regression] gcov reports catch(...) as not executed
Date: Wed, 03 Jun 2015 15:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: gcov-profile
X-Bugzilla-Version: 4.8.3
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.8.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64634-4-w0zWE256kH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64634-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64634-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-06/txt/msg00340.txt.bz2
Content-length: 863

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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Jun  3 15:25:15 2015
New Revision: 224084

URL: https://gcc.gnu.org/viewcvs?rev"4084&root=gcc&view=rev
Log:
        Backported from mainline
        2015-02-18  Jakub Jelinek  <jakub@redhat.com>

        PR gcov-profile/64634
        * tree-eh.c (frob_into_branch_around): Fix up typos
        in function comment.
        (lower_catch): Put eh_seq resulting from EH lowering of
        the cleanup sequence after the cleanup rather than before
        it.

        * g++.dg/gcov/gcov-15.C: New test.

Added:
    branches/gcc-4_9-branch/gcc/testsuite/g++.dg/gcov/gcov-15.C
Modified:
    branches/gcc-4_9-branch/gcc/ChangeLog
    branches/gcc-4_9-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_9-branch/gcc/tree-eh.c


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

* [Bug other/66394] [4.8/4.9/5/6 Regression] ICE in -flto -fmerge-all-constants -fno-use-linker-plugin targetting i686-w64-mingw32
  2015-06-03 10:39 [Bug other/66394] New: ICE in -flto -fmerge-all-constants -fno-use-linker-plugin targetting i686-w64-mingw32 sthalik at misaki dot pl
  2015-06-03 10:40 ` [Bug other/66394] " sthalik at misaki dot pl
  2015-06-03 15:22 ` [Bug other/66394] [5/6 Regression] " marxin at gcc dot gnu.org
@ 2015-06-04 11:43 ` marxin at gcc dot gnu.org
  2015-06-04 12:37 ` marxin at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: marxin at gcc dot gnu.org @ 2015-06-04 11:43 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.9/5/6 Regression] ICE in |[4.8/4.9/5/6 Regression]
                   |-flto -fmerge-all-constants |ICE in -flto
                   |-fno-use-linker-plugin      |-fmerge-all-constants
                   |targetting i686-w64-mingw32 |-fno-use-linker-plugin
                   |                            |targetting i686-w64-mingw32

--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed in 4.9 as r208454.
>From gcc-bugs-return-488103-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jun 04 11:56:06 2015
Return-Path: <gcc-bugs-return-488103-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99054 invoked by alias); 4 Jun 2015 11:56:06 -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 99001 invoked by uid 48); 4 Jun 2015 11:56:02 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66405] [5/6 Regression] ICE: in tsubst, at cp/pt.c:11984
Date: Thu, 04 Jun 2015 11:56: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: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trippels at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-66405-4-TGTdXY3sQN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66405-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66405-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-06/txt/msg00435.txt.bz2
Content-length: 161

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

--- Comment #5 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Started with r217250 aka DR 1558.


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

* [Bug other/66394] [4.8/4.9/5/6 Regression] ICE in -flto -fmerge-all-constants -fno-use-linker-plugin targetting i686-w64-mingw32
  2015-06-03 10:39 [Bug other/66394] New: ICE in -flto -fmerge-all-constants -fno-use-linker-plugin targetting i686-w64-mingw32 sthalik at misaki dot pl
                   ` (2 preceding siblings ...)
  2015-06-04 11:43 ` [Bug other/66394] [4.8/4.9/5/6 " marxin at gcc dot gnu.org
@ 2015-06-04 12:37 ` marxin at gcc dot gnu.org
  2015-06-04 12:48 ` [Bug other/66394] [4.9/5/6 " marxin at gcc dot gnu.org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: marxin at gcc dot gnu.org @ 2015-06-04 12:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
Situation with all branches younger than 4.8 is:

4.8-branch: a bit different issue is touched and fixed in r208454, I'm going to
test a backport from 4.9 branch
4.9-branch - master: in r201468 Honza added streaming of abstract origin so
that it's going to improved debug info. Unfortunately, as -fmerge-all-constants
is passed, varpool_node::get (DECL_ABSTRACT_ORIGIN (vnode->decl)) can be equal
to NULL.

I'm going to test following patch:

diff --cc gcc/lto-cgraph.c
index b5fd83e,07eebfc..0000000
--- a/gcc/lto-cgraph.c
+++ b/gcc/lto-cgraph.c
@@@ -942,8 -807,8 +942,10 @@@ compute_ltrans_boundary (lto_symtab_enc
        if (DECL_ABSTRACT_ORIGIN (vnode->decl))
        {
          varpool_node *origin_node
 -        = varpool_node_for_decl (DECL_ABSTRACT_ORIGIN (vnode->decl));
 -        lto_set_symtab_encoder_in_partition (encoder, origin_node);
 +          = varpool_node::get (DECL_ABSTRACT_ORIGIN (vnode->decl));
-         lto_set_symtab_encoder_in_partition (encoder, origin_node);
++
++        if (origin_node)
++          lto_set_symtab_encoder_in_partition (encoder, origin_node);
        }
      }
    /* Pickle in also the initializer of all referenced readonly variables

Thanks,
Martin
>From gcc-bugs-return-488106-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jun 04 12:39:22 2015
Return-Path: <gcc-bugs-return-488106-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111853 invoked by alias); 4 Jun 2015 12:39:22 -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 111807 invoked by uid 48); 4 Jun 2015 12:39:17 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/66394] [4.8/4.9/5/6 Regression] ICE in -flto -fmerge-all-constants -fno-use-linker-plugin targetting i686-w64-mingw32
Date: Thu, 04 Jun 2015 12:39: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: 5.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin 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:
Message-ID: <bug-66394-4-2gCusJjPv9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66394-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66394-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-06/txt/msg00438.txt.bz2
Content-length: 870

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

--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> ---
Correct patch:

diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP
index 36a0ea2..415abbf 100644
--- a/gcc/DATESTAMP
+++ b/gcc/DATESTAMP
@@ -1 +1 @@
-20150603
+20150604
diff --git a/gcc/lto-cgraph.c b/gcc/lto-cgraph.c
index b5fd83e..74e9eeb 100644
--- a/gcc/lto-cgraph.c
+++ b/gcc/lto-cgraph.c
@@ -943,7 +943,9 @@ compute_ltrans_boundary (lto_symtab_encoder_t in_encoder)
        {
          varpool_node *origin_node
            = varpool_node::get (DECL_ABSTRACT_ORIGIN (vnode->decl));
-         lto_set_symtab_encoder_in_partition (encoder, origin_node);
+
+         if (origin_node)
+           lto_set_symtab_encoder_in_partition (encoder, origin_node);
        }
     }
   /* Pickle in also the initializer of all referenced readonly variables
>From gcc-bugs-return-488107-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jun 04 12:43:40 2015
Return-Path: <gcc-bugs-return-488107-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87407 invoked by alias); 4 Jun 2015 12:43:40 -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 87325 invoked by uid 55); 4 Jun 2015 12:43:36 -0000
From: "clyon at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/63843] [5 Regression] wrong code generation at -O1 and higher
Date: Thu, 04 Jun 2015 12:43: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: 5.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: clyon at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-63843-4-TS6AH5D4o6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63843-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63843-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-06/txt/msg00439.txt.bz2
Content-length: 973

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

--- Comment #6 from Christophe Lyon <clyon at gcc dot gnu.org> ---
Author: clyon
Date: Thu Jun  4 12:43:03 2015
New Revision: 224125

URL: https://gcc.gnu.org/viewcvs?rev"4125&root=gcc&view=rev
Log:
2015-06-02  Christophe Lyon  <christophe.lyon@linaro.org>

        Backport from trunk r217753.
        2014-11-19  Jakub Jelinek  <jakub@redhat.com>

        PR rtl-optimization/63843
        gcc/
        * simplify-rtx.c (simplify_binary_operation_1) <case ASHIFTRT>: For
        optimization of ashiftrt of subreg of lshiftrt, check that code
        is ASHIFTRT.

        gcc/testsuite
        * gcc.c-torture/execute/pr63843.c: New test.


Added:

branches/linaro/gcc-4_9-branch/gcc/testsuite/gcc.c-torture/execute/pr63843.c
Modified:
    branches/linaro/gcc-4_9-branch/gcc/ChangeLog.linaro
    branches/linaro/gcc-4_9-branch/gcc/simplify-rtx.c
    branches/linaro/gcc-4_9-branch/gcc/testsuite/ChangeLog.linaro


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

* [Bug other/66394] [4.9/5/6 Regression] ICE in -flto -fmerge-all-constants -fno-use-linker-plugin targetting i686-w64-mingw32
  2015-06-03 10:39 [Bug other/66394] New: ICE in -flto -fmerge-all-constants -fno-use-linker-plugin targetting i686-w64-mingw32 sthalik at misaki dot pl
                   ` (3 preceding siblings ...)
  2015-06-04 12:37 ` marxin at gcc dot gnu.org
@ 2015-06-04 12:48 ` marxin at gcc dot gnu.org
  2015-06-17 13:37 ` [Bug lto/66394] " rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: marxin at gcc dot gnu.org @ 2015-06-04 12:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Martin Liška <marxin at gcc dot gnu.org> ---
Ok, so 4.8 is unaffected branch.
>From gcc-bugs-return-488109-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jun 04 16:11:50 2015
Return-Path: <gcc-bugs-return-488109-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76066 invoked by alias); 4 Jun 2015 16:11:49 -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 76029 invoked by uid 48); 4 Jun 2015 16:11:46 -0000
From: "jamrial at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66067] [6 Regression] tree check ICE: accessed elt 1 of tree_vec with 0 elts in write_template_args, at cp/mangle.c:2574
Date: Thu, 04 Jun 2015 16:11: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: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jamrial at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
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-66067-4-E5GRNFFyR8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66067-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66067-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-06/txt/msg00441.txt.bz2
Content-length: 498

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

--- Comment #10 from James Almer <jamrial at gmail dot com> ---
(In reply to Markus Trippelsdorf from comment #9)
> I've tested latest gcc-5 branch and still cannot reproduce the issue.
> The only ICE I get building range-v3 is PR66405.

Odd. I'll see about reporting the gcc 5 segmentation fault to ArchLinux (It's
their x86_64 gcc package). Sorry for the noise.
Let this bug report be for the tree check gcc 6 ICE from the first comment
only.


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

* [Bug lto/66394] [4.9/5/6 Regression] ICE in -flto -fmerge-all-constants -fno-use-linker-plugin targetting i686-w64-mingw32
  2015-06-03 10:39 [Bug other/66394] New: ICE in -flto -fmerge-all-constants -fno-use-linker-plugin targetting i686-w64-mingw32 sthalik at misaki dot pl
                   ` (4 preceding siblings ...)
  2015-06-04 12:48 ` [Bug other/66394] [4.9/5/6 " marxin at gcc dot gnu.org
@ 2015-06-17 13:37 ` rguenth at gcc dot gnu.org
  2015-06-22 12:06 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-06-17 13:37 UTC (permalink / raw)
  To: gcc-bugs

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

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

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


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

* [Bug lto/66394] [4.9/5/6 Regression] ICE in -flto -fmerge-all-constants -fno-use-linker-plugin targetting i686-w64-mingw32
  2015-06-03 10:39 [Bug other/66394] New: ICE in -flto -fmerge-all-constants -fno-use-linker-plugin targetting i686-w64-mingw32 sthalik at misaki dot pl
                   ` (5 preceding siblings ...)
  2015-06-17 13:37 ` [Bug lto/66394] " rguenth at gcc dot gnu.org
@ 2015-06-22 12:06 ` rguenth at gcc dot gnu.org
  2015-06-26 20:19 ` jakub at gcc dot gnu.org
  2015-06-26 20:39 ` jakub at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-06-22 12:06 UTC (permalink / raw)
  To: gcc-bugs

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

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

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


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

* [Bug lto/66394] [4.9/5/6 Regression] ICE in -flto -fmerge-all-constants -fno-use-linker-plugin targetting i686-w64-mingw32
  2015-06-03 10:39 [Bug other/66394] New: ICE in -flto -fmerge-all-constants -fno-use-linker-plugin targetting i686-w64-mingw32 sthalik at misaki dot pl
                   ` (6 preceding siblings ...)
  2015-06-22 12:06 ` rguenth at gcc dot gnu.org
@ 2015-06-26 20:19 ` jakub at gcc dot gnu.org
  2015-06-26 20:39 ` jakub at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-26 20:19 UTC (permalink / raw)
  To: gcc-bugs

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

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


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

* [Bug lto/66394] [4.9/5/6 Regression] ICE in -flto -fmerge-all-constants -fno-use-linker-plugin targetting i686-w64-mingw32
  2015-06-03 10:39 [Bug other/66394] New: ICE in -flto -fmerge-all-constants -fno-use-linker-plugin targetting i686-w64-mingw32 sthalik at misaki dot pl
                   ` (7 preceding siblings ...)
  2015-06-26 20:19 ` jakub at gcc dot gnu.org
@ 2015-06-26 20:39 ` jakub at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-26 20:39 UTC (permalink / raw)
  To: gcc-bugs

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

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

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


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

end of thread, other threads:[~2015-06-26 20:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-03 10:39 [Bug other/66394] New: ICE in -flto -fmerge-all-constants -fno-use-linker-plugin targetting i686-w64-mingw32 sthalik at misaki dot pl
2015-06-03 10:40 ` [Bug other/66394] " sthalik at misaki dot pl
2015-06-03 15:22 ` [Bug other/66394] [5/6 Regression] " marxin at gcc dot gnu.org
2015-06-04 11:43 ` [Bug other/66394] [4.8/4.9/5/6 " marxin at gcc dot gnu.org
2015-06-04 12:37 ` marxin at gcc dot gnu.org
2015-06-04 12:48 ` [Bug other/66394] [4.9/5/6 " marxin at gcc dot gnu.org
2015-06-17 13:37 ` [Bug lto/66394] " rguenth at gcc dot gnu.org
2015-06-22 12:06 ` rguenth at gcc dot gnu.org
2015-06-26 20:19 ` jakub at gcc dot gnu.org
2015-06-26 20:39 ` jakub at gcc dot gnu.org

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