public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/83359] [8 Regression] ICE in expand_LOOP_DIST_ALIAS, at internal-fn.c:2362
       [not found] <bug-83359-4@http.gcc.gnu.org/bugzilla/>
@ 2017-12-11 10:41 ` rguenther at suse dot de
  0 siblings, 0 replies; only message in thread
From: rguenther at suse dot de @ 2017-12-11 10:41 UTC (permalink / raw)
  To: gcc-bugs

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

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

--- Comment #4 from rguenther at suse dot de <rguenther at suse dot de> ---
On Mon, 11 Dec 2017, amker at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83359
> 
> --- Comment #3 from amker at gcc dot gnu.org ---
> (In reply to Richard Biener from comment #2)
> > Both loops guarded by the IFN are parallelized with the loop noted by
> > the IFN outlined and the autopar scalar copy being a new loop.
> > 
> > Not sure what to do best, eventually not processing those loops with
> > GRAPHITE/autopar and/or being more rigid in throwing it away.  In theory
> > expanding the IFN as just its arg is valid.
> 
> In current logic, we only keep distribution if it enables vectorization,  one
> possible fix is we also keep it if parallelization is enabled.  That is,
> resolve IFN_DIST call and keep the distribution in parallelization.  Does this
> make sense?

I guess so, but I'd like to investigate this a bit more.  One issue
is we outline the loop we reference from the IFN with parallelization,
this might be a strong enough hint to remove the IFN from autopar.
>From gcc-bugs-return-584795-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 10:48:47 2017
Return-Path: <gcc-bugs-return-584795-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22331 invoked by alias); 11 Dec 2017 10:48:47 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 20883 invoked by uid 55); 11 Dec 2017 10:48:37 -0000
From: "amker at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83320] Mismatched free() / delete / delete []  in gimple-loop-interchange.cc:948
Date: Mon, 11 Dec 2017 10:48: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amker at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: amker at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-83320-4-pBBuaEaa3N@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83320-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83320-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: 2017-12/txt/msg01144.txt.bz2
Content-length: 475

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

--- Comment #3 from amker at gcc dot gnu.org ---
Author: amker
Date: Mon Dec 11 10:47:53 2017
New Revision: 255539

URL: https://gcc.gnu.org/viewcvs?rev=255539&root=gcc&view=rev
Log:
        PR tree-optimization/83320
        * gimple-loop-interchange.cc (free_data_refs_with_aux): Use delete.
        (prune_datarefs_not_in_loop): Ditto.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimple-loop-interchange.cc
>From gcc-bugs-return-584796-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 10:49:19 2017
Return-Path: <gcc-bugs-return-584796-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23306 invoked by alias); 11 Dec 2017 10:49:19 -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 23207 invoked by uid 48); 11 Dec 2017 10:49:16 -0000
From: "jdbleretour at free dot fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/68519] condition_variable::wait_for does not work properly with float duration
Date: Mon, 11 Dec 2017 10:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 5.1.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jdbleretour at free dot fr
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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-68519-4-9KOgNwzo4k@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68519-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68519-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: 2017-12/txt/msg01145.txt.bz2
Content-length: 514

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

Adrien <jdbleretour at free dot fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jdbleretour at free dot fr

--- Comment #5 from Adrien <jdbleretour at free dot fr> ---
Still not working properly:
https://stackoverflow.com/questions/47744331/condition-variable-not-waking-up-when-used-with-a-chronodurationfloat
>From gcc-bugs-return-584797-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 10:52:12 2017
Return-Path: <gcc-bugs-return-584797-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98997 invoked by alias); 11 Dec 2017 10:52:12 -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 98923 invoked by uid 48); 11 Dec 2017 10:52:09 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/68519] condition_variable::wait_for does not work properly with float duration
Date: Mon, 11 Dec 2017 10:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 5.1.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-68519-4-MWcXHBJpP2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68519-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68519-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: 2017-12/txt/msg01146.txt.bz2
Content-length: 154

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

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
That's why the bug is still open.
>From gcc-bugs-return-584798-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 10:54:49 2017
Return-Path: <gcc-bugs-return-584798-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3756 invoked by alias); 11 Dec 2017 10:54: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 3701 invoked by uid 48); 11 Dec 2017 10:54:45 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83359] [8 Regression] ICE in expand_LOOP_DIST_ALIAS, at internal-fn.c:2362
Date: Mon, 11 Dec 2017 10:54: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: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
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: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-83359-4-srhaclySuN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83359-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83359-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: 2017-12/txt/msg01147.txt.bz2
Content-length: 601

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 42830
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42830&action=edit
gcc8-pr83359.patch

In the mean time I wrote this patch.

That said, LOOP_DIST_ALIAS seems quite fragile to me, unlike ifcvt added
LOOP_VECTORIZED calls which go away in the very next pass, there are many
passes in between ldist and vectorizer and I'd be worried that the calls could
be cloned with other loop copying, moved and all other kinds of things,
especially in graphite.
>From gcc-bugs-return-584799-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 10:56:29 2017
Return-Path: <gcc-bugs-return-584799-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5170 invoked by alias); 11 Dec 2017 10:56:29 -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 5125 invoked by uid 48); 11 Dec 2017 10:56:25 -0000
From: "rearnsha at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug driver/83206] -mfpu=auto does not work on ARM (armv7l-unknown-linux-gnueabihf)
Date: Mon, 11 Dec 2017 10:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: driver
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rearnsha 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-83206-4-UCs39K8ySU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83206-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83206-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: 2017-12/txt/msg01148.txt.bz2
Content-length: 917

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

--- Comment #19 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
-m{cpu,tune,arch}=native are hosted-only flags that mean look-up the
architecture on the machine I'm running on now.  They are not supported at all
on cross compilers.  This is translated by the driver into the real
-m{cpu,tune,arch} flag that gets passed to the compiler proper, which is why
you see it changed by the help information.
-mfpu=auto means use the floating-point unit implied by -mcpu/-march flags. 
This works even if on a cross compiler.  -mfpu=auto != -mfpu=native.  There
never has been a -mfpu=native option and now we have -mfpu=auto we don't need
one.  -mfpu=auto is not translated by the driver; it's used in the compiler
proper to control where the selected FPU information is looked up (directly or
from the architecture specification).
>From gcc-bugs-return-584800-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 11:00:56 2017
Return-Path: <gcc-bugs-return-584800-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11245 invoked by alias); 11 Dec 2017 11:00:55 -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 11148 invoked by uid 48); 11 Dec 2017 11:00:49 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83359] [8 Regression] ICE in expand_LOOP_DIST_ALIAS, at internal-fn.c:2362
Date: Mon, 11 Dec 2017 11:00: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: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-83359-4-vRItigLkgB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83359-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83359-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: 2017-12/txt/msg01149.txt.bz2
Content-length: 960

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

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #5)
> Created attachment 42830 [details]
> gcc8-pr83359.patch
> 
> In the mean time I wrote this patch.
> 
> That said, LOOP_DIST_ALIAS seems quite fragile to me, unlike ifcvt added
> LOOP_VECTORIZED calls which go away in the very next pass, there are many
> passes in between ldist and vectorizer and I'd be worried that the calls
> could be cloned with other loop copying, moved and all other kinds of
> things, especially in graphite.

IMHO given it's fragility we should see to tame it down for the release
with either folding the remaining calls during fold-all-builtins or
replacing expand_LOOP_DIST_ALIAS with code that does in fact expand
the function (to its boolean argument).

expand_LOOP_DIST_ALIAS should then emit a note in the .expand dump so
we can track the cases we leak it.
>From gcc-bugs-return-584801-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 11:11:51 2017
Return-Path: <gcc-bugs-return-584801-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68640 invoked by alias); 11 Dec 2017 11:11:51 -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 68551 invoked by uid 48); 11 Dec 2017 11:11:47 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83320] Mismatched free() / delete / delete []  in gimple-loop-interchange.cc:948
Date: Mon, 11 Dec 2017 11:11: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trippels at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: amker at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-83320-4-FYzUnPbnhn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83320-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83320-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: 2017-12/txt/msg01150.txt.bz2
Content-length: 449

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

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

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

--- Comment #4 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Fixed. Thanks.
>From gcc-bugs-return-584802-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 11:21:45 2017
Return-Path: <gcc-bugs-return-584802-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102425 invoked by alias); 11 Dec 2017 11:21:45 -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 100712 invoked by uid 48); 11 Dec 2017 11:21:38 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83361] New: [8 Regression] ICE: verify_flow_info failed (error: non-cold basic block 3 reachable only by paths crossing the cold partition) on 32-bit BE powerpc targets
Date: Mon, 11 Dec 2017 11:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: asolokha at gmx dot com
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: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget
Message-ID: <bug-83361-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: 2017-12/txt/msg01151.txt.bz2
Content-length: 2352

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

            Bug ID: 83361
           Summary: [8 Regression] ICE: verify_flow_info failed (error:
                    non-cold basic block 3 reachable only by paths
                    crossing the cold partition) on 32-bit BE powerpc
                    targets
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---
            Target: powerpc-*-linux-gnu, powerpcspe-*-linux-gnu

gcc-8.0.0-alpha20171210 snapshot (r255534) ICEs when compiling the following
snippet w/ -O2 (-O3, -Ofast) -freorder-blocks-and-partition:

#include <limits.h>

int yz;

void
tq (int z3)
{
  unsigned long long int n8 = (unsigned long long int)INT_MAX + 1;
  int *ey = &yz;

  if (yz == 0)
    {
      int bc;

      yz = 1;
      while (yz != 0)
        {
          *ey *= bc;
          n8 = !!(1 / ((unsigned long long int)yz == n8));
          ey = &z3;
        }

      while (z3 != 0)
        {
        }
    }

  z3 = (n8 != 0) && (*ey != 0);
  z3 = yz / z3;
  if (z3 < 0)
    {
      if (yz != 0)
        yz = 0;
      yz /= 0;
    }
}

% powerpc-e300c3-linux-gnu-gcc-8.0.0-alpha20171210 -O2
-freorder-blocks-and-partition -w -c yb4mx7hn.c
yb4mx7hn.c: In function 'tq':
yb4mx7hn.c:36:1: error: non-cold basic block 3 reachable only by paths crossing
the cold partition
 }
 ^
during RTL pass: ce3
yb4mx7hn.c:36:1: internal compiler error: verify_flow_info failed
0x71c61a verify_flow_info()
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-8.0.0_alpha20171210/work/gcc-8-20171210/gcc/cfghooks.c:265
0x13db5d8 checking_verify_flow_info
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-8.0.0_alpha20171210/work/gcc-8-20171210/gcc/cfghooks.h:198
0x13db5d8 if_convert
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-8.0.0_alpha20171210/work/gcc-8-20171210/gcc/ifcvt.c:5449
0x13dd2fc execute
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-8.0.0_alpha20171210/work/gcc-8-20171210/gcc/ifcvt.c:5549
>From gcc-bugs-return-584803-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 11:22:22 2017
Return-Path: <gcc-bugs-return-584803-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103354 invoked by alias); 11 Dec 2017 11:22: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 103301 invoked by uid 48); 11 Dec 2017 11:22:18 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/81559] ICE: verify_flow_info failed (error: non-cold basic block 4 reachable only by paths crossing the cold partition) on 32-bit BE powerpc target
Date: Mon, 11 Dec 2017 11:22: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: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: asolokha at gmx dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-81559-4-P5HAO8E3Le@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81559-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81559-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: 2017-12/txt/msg01152.txt.bz2
Content-length: 451

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

Arseny Solokha <asolokha at gmx dot com> changed:

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

--- Comment #3 from Arseny Solokha <asolokha at gmx dot com> ---
Closing in favor of PR83361, then.
>From gcc-bugs-return-584804-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 11:39:45 2017
Return-Path: <gcc-bugs-return-584804-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 63951 invoked by alias); 11 Dec 2017 11:39:44 -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 63874 invoked by uid 48); 11 Dec 2017 11:39:40 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83359] [8 Regression] ICE in expand_LOOP_DIST_ALIAS, at internal-fn.c:2362
Date: Mon, 11 Dec 2017 11:39: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: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
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: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.isobsolete cc attachments.created
Message-ID: <bug-83359-4-5gauCSzSl1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83359-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83359-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: 2017-12/txt/msg01153.txt.bz2
Content-length: 613

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #42830|0                           |1
        is obsolete|                            |
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 42831
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42831&action=edit
gcc8-pr83359.patch

Updated patch.
>From gcc-bugs-return-584805-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 11:58:15 2017
Return-Path: <gcc-bugs-return-584805-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46247 invoked by alias); 11 Dec 2017 11:58:15 -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 46212 invoked by uid 48); 11 Dec 2017 11:58:11 -0000
From: "zsojka at seznam dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83362] New: [8 Regression] wrong code at -O1
Date: Mon, 11 Dec 2017 11:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: zsojka at seznam dot cz
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: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-83362-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: 2017-12/txt/msg01154.txt.bz2
Content-length: 1586

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

            Bug ID: 83362
           Summary: [8 Regression] wrong code at -O1
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---

Created attachment 42832
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42832&action=edit
reduced testcase

Output:
$ x86_64-pc-linux-gnu-gcc -O1 testcase.c
$ ./a.out 
Aborted

$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-255464-checking-yes-rtl-df-extra-nographite-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--without-cloog --without-ppl --without-isl --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu
--with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-255464-checking-yes-rtl-df-extra-nographite-amd64
Thread model: posix
gcc version 8.0.0 20171207 (experimental) (GCC) 

All tested targets (arm, powerpc, x86) seem to be affected.
>From gcc-bugs-return-584806-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 11:59:49 2017
Return-Path: <gcc-bugs-return-584806-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47756 invoked by alias); 11 Dec 2017 11:59: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 47705 invoked by uid 48); 11 Dec 2017 11:59:45 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/83239] False positive from -Wstringop-overflow on simple std::vector code
Date: Mon, 11 Dec 2017 11:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic, missed-optimization, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: law at redhat dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-83239-4-mKvu5EXAPq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83239-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83239-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: 2017-12/txt/msg01155.txt.bz2
Content-length: 1777

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

--- Comment #13 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Jeffrey A. Law from comment #12)
> I was looking at this again tonight, and I clearly missed the interaction
> between known ranges and the overflow check.
> 
> If we look at the .vrp1 dump we see this overflow check in bb16:
> 
> 23 = ASSERT_EXPR <_13, _13 > 2>;
> _1 = _23 + 18446744073709551614;
> if (_1 > _23)
>   goto <bb 17>; [33.00%]
> else
>   goto <bb 41>; [67.00%]
> 
> This is a controlling condition for the clearing loop which ldist will turn
> into a memset.
> 
> The range for _23 is:
> 
> (gdb) p debug_value_range (get_value_range (gimple_cond_rhs (stmt)))
> [3, +INF]  EQUIVALENCES: { _13 } (1 elements)
> 
> Exactly what we'd expect given the ASSERT_EXPR.  So far so good.
> 
> The condition can be rewritten as _23 - 2 > _23, which is only going to be
> true if _23 has the value 0 or 1.  So we can deduce that the condition is
> always false.
> 
> We're correctly identifying the test as an overflow check in VRP, but we're
> not optimizing it.  I think we just need to extend
> vr_values::vrp_evaluate_conditional_warnv_with_ops and the right things
> should just happen.

In fact if we'd do it like EVRP (set SSA_NAME_RANGE_INFO) then IMHO
stmt folding via gimple_fold_stmt_to_constant_1 should handle it
without adding "tricks" to vrp_evaluate_conditional_warnv_with_ops.
That said, this function should likely call match-and-simplify somehow
(note that match.pd lacks a pattern that would simplify the above with
range information).

That said, doing this somewhere more generic (match.pd) might be better,
though VRP not setting range-info during propagation might make things
harder here.
>From gcc-bugs-return-584807-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 12:02:13 2017
Return-Path: <gcc-bugs-return-584807-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49655 invoked by alias); 11 Dec 2017 12:02:13 -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 49628 invoked by uid 48); 11 Dec 2017 12:02:09 -0000
From: "zsojka at seznam dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83363] New: [8 Regression] wrong code at -O2 -fno-forward-propagate
Date: Mon, 11 Dec 2017 12:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: zsojka at seznam dot cz
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: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget attachments.created
Message-ID: <bug-83363-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: 2017-12/txt/msg01156.txt.bz2
Content-length: 1668

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

            Bug ID: 83363
           Summary: [8 Regression] wrong code at -O2
                    -fno-forward-propagate
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu

Created attachment 42833
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42833&action=edit
reduced testcase

Output:
$ x86_64-pc-linux-gnu-gcc -O2 -fno-forward-propagate testcase.c
$ ./a.out 
Aborted

$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-255464-checking-yes-rtl-df-extra-nographite-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--without-cloog --without-ppl --without-isl --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu
--with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-255464-checking-yes-rtl-df-extra-nographite-amd64
Thread model: posix
gcc version 8.0.0 20171207 (experimental) (GCC)
>From gcc-bugs-return-584808-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 12:07:06 2017
Return-Path: <gcc-bugs-return-584808-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90972 invoked by alias); 11 Dec 2017 12:07: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 87914 invoked by uid 55); 11 Dec 2017 12:07:01 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83359] [8 Regression] ICE in expand_LOOP_DIST_ALIAS, at internal-fn.c:2362
Date: Mon, 11 Dec 2017 12:07: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: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenther at suse dot de
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-83359-4-cp39J1hDVL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83359-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83359-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: 2017-12/txt/msg01157.txt.bz2
Content-length: 919

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

--- Comment #8 from rguenther at suse dot de <rguenther at suse dot de> ---
On Mon, 11 Dec 2017, jakub at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83359
> 
> Jakub Jelinek <jakub at gcc dot gnu.org> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>   Attachment #42830|0                           |1
>         is obsolete|                            |
>                  CC|                            |jakub at gcc dot gnu.org
> 
> --- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
> Created attachment 42831
>   --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42831&action=edit
> gcc8-pr83359.patch
> 
> Updated patch.

LGTM, find_loop_dist_alias (basic_block bb) in tree-cfg.c looks unused 
now.
>From gcc-bugs-return-584809-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 12:08:30 2017
Return-Path: <gcc-bugs-return-584809-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100420 invoked by alias); 11 Dec 2017 12:08:30 -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 100366 invoked by uid 48); 11 Dec 2017 12:08:26 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83363] [8 Regression] wrong code at -O2 -fno-forward-propagate
Date: Mon, 11 Dec 2017 12:08: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: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-83363-4-fo7qY4XNHO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83363-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83363-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: 2017-12/txt/msg01158.txt.bz2
Content-length: 293

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |8.0
>From gcc-bugs-return-584810-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 12:08:41 2017
Return-Path: <gcc-bugs-return-584810-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101171 invoked by alias); 11 Dec 2017 12:08:41 -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 100740 invoked by uid 48); 11 Dec 2017 12:08:33 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83362] [8 Regression] wrong code at -O1
Date: Mon, 11 Dec 2017 12:08: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: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-83362-4-HnXXEcJCkj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83362-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83362-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: 2017-12/txt/msg01159.txt.bz2
Content-length: 293

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |8.0
>From gcc-bugs-return-584811-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 12:08:45 2017
Return-Path: <gcc-bugs-return-584811-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101505 invoked by alias); 11 Dec 2017 12:08:45 -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 101153 invoked by uid 48); 11 Dec 2017 12:08:41 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83361] [8 Regression] ICE: verify_flow_info failed (error: non-cold basic block 3 reachable only by paths crossing the cold partition) on 32-bit BE powerpc targets
Date: Mon, 11 Dec 2017 12:08: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: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-83361-4-kUJ0lVXMcD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83361-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83361-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: 2017-12/txt/msg01160.txt.bz2
Content-length: 293

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |8.0
>From gcc-bugs-return-584812-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 12:12:56 2017
Return-Path: <gcc-bugs-return-584812-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106471 invoked by alias); 11 Dec 2017 12:12: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 106383 invoked by uid 48); 11 Dec 2017 12:12:51 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83359] [8 Regression] ICE in expand_LOOP_DIST_ALIAS, at internal-fn.c:2362
Date: Mon, 11 Dec 2017 12:12: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: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
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: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-83359-4-V7oMAU9EnO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83359-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83359-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: 2017-12/txt/msg01161.txt.bz2
Content-length: 217

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

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
No, it is used (twice).  And this function isn't too similar to the one that
the vectorizer uses.
>From gcc-bugs-return-584813-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 12:16:22 2017
Return-Path: <gcc-bugs-return-584813-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129263 invoked by alias); 11 Dec 2017 12:16: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 124665 invoked by uid 55); 11 Dec 2017 12:16:16 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83359] [8 Regression] ICE in expand_LOOP_DIST_ALIAS, at internal-fn.c:2362
Date: Mon, 11 Dec 2017 12:16: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: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenther at suse dot de
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-83359-4-o6smUuFmED@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83359-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83359-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: 2017-12/txt/msg01162.txt.bz2
Content-length: 429

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

--- Comment #10 from rguenther at suse dot de <rguenther at suse dot de> ---
On Mon, 11 Dec 2017, jakub at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83359
> 
> --- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
> No, it is used (twice).  And this function isn't too similar to the one that
> the vectorizer uses.

Ah, indeed.
>From gcc-bugs-return-584814-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 12:29:42 2017
Return-Path: <gcc-bugs-return-584814-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38193 invoked by alias); 11 Dec 2017 12:29:42 -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 35660 invoked by uid 48); 11 Dec 2017 12:29:38 -0000
From: "zsojka at seznam dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83364] New: [8 Regression] wrong code with -O -fno-forward-propagate -fno-tree-coalesce-vars -fno-tree-ter
Date: Mon, 11 Dec 2017 12:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: zsojka at seznam dot cz
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: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget attachments.created
Message-ID: <bug-83364-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: 2017-12/txt/msg01163.txt.bz2
Content-length: 1809

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

            Bug ID: 83364
           Summary: [8 Regression] wrong code with -O
                    -fno-forward-propagate -fno-tree-coalesce-vars
                    -fno-tree-ter
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu

Created attachment 42834
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42834&action=edit
reduced testcase

Output:
$ x86_64-pc-linux-gnu-gcc -w -O -fno-forward-propagate -fno-tree-coalesce-vars
-fno-tree-ter testcase.c
$ ./a.out 
Aborted

$ /repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-255464-checking-yes-rtl-df-extra-nographite-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--without-cloog --without-ppl --without-isl --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu
--with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-255464-checking-yes-rtl-df-extra-nographite-amd64
Thread model: posix
gcc version 8.0.0 20171207 (experimental) (GCC)
>From gcc-bugs-return-584815-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 12:35:23 2017
Return-Path: <gcc-bugs-return-584815-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80954 invoked by alias); 11 Dec 2017 12:35:23 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 80921 invoked by uid 48); 11 Dec 2017 12:35:19 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/83334] __builtin_ms_va_copy used in function with sysv_abi is broken
Date: Mon, 11 Dec 2017 12:35: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: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
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: cc
Message-ID: <bug-83334-4-n5r8ncY9By@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83334-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83334-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: 2017-12/txt/msg01164.txt.bz2
Content-length: 398

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hjl.tools at gmail dot com

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
Is this a dup of PR 50818?
>From gcc-bugs-return-584816-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 12:38:26 2017
Return-Path: <gcc-bugs-return-584816-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5072 invoked by alias); 11 Dec 2017 12:38:25 -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 4982 invoked by uid 48); 11 Dec 2017 12:38:21 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/80645] FAIL: gfortran.dg/elemental_subroutine_3.f90   -O1  (test for excess errors)
Date: Mon, 11 Dec 2017 12:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status
Message-ID: <bug-80645-4-sVzuxYdu2s@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80645-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80645-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: 2017-12/txt/msg01165.txt.bz2
Content-length: 2753

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING

--- Comment #12 from Richard Biener <rguenth at gcc dot gnu.org> ---
Looking again for the issue in the original report (the comment#1 issue has
been fixed):

    arg:0 <var_decl 0x7ffff7fee5a0 x type <array_type 0x7ffff69a4930>
        addressable used static decl_0 BLK
/space/rguenther/src/svn/trunk2/gcc/testsuite/gfortran.dg/elemental_subroutine_3.f90:29:0
size <integer_cst 0x7ffff697d930 192> unit-size <integer_cst 0x7ffff699c588 24>

and we warn about

__builtin_memcpy (_153, &MEM[(void *)&x + 16B], 12)

with x having size 24 there's not 12 bytes at &x + 16.  It is DSE3 first
having the size of 12 here:

   <bb 18> [local count: 20817692]:
   _95 = __builtin_malloc (16);
-  __builtin_memcpy (_95, &x[3], 16);
+  _153 = _95 + 4;
+  __builtin_memcpy (_153, &MEM[(void *)&x + 16B], 12);

this is from the following code in .original:

    parm.11.dtype = 297;
    parm.11.dim[0].lbound = 0;
    parm.11.dim[0].ubound = 3;
    parm.11.dim[0].stride = -1;
    parm.11.data = (void *) &x[3];
    parm.11.offset = 0;
        typedef struct mytype [4];
...
    data.13 = (struct mytype *) _gfortran_internal_pack (&parm.11);
    if ((struct mytype[0:] *) parm.11.data == data.13)
      {
        {
          void * restrict D.2228;

          D.2228 = (void * restrict) __builtin_malloc (16);
          data.13 = (struct mytype *) D.2228;
          (void) __builtin_memcpy ((void *) data.13, parm.11.data, 16);
        }
      }
    atmp.12.data = (void * restrict) data.13;
    atmp.12.offset = 0;
    {
      integer(kind=8) S.14;

      S.14 = 0;
      while (1)
        {
          if (S.14 > 3) goto L.5;
          {
            integer(kind=4) D.2230;

            D.2230 = (*(integer(kind=4)[0:] *)
parm.10.data)[parm.10.dim[0].stride * NON_LVALUE_EXPR <S.14>];
            myassign (&(*(struct mytype[4] * restrict) atmp.12.data)[S.14],
&x[(integer(kind=8)) D.2230 + -1]);
          }
          S.14 = S.14 + 1;
        }
      L.5:;

so we somehow allocate a temporary for the view on the LHS even though
it is packed in-place (and later unpacked again) but somehow miscalculate
the size of the required temporary.  Possibly because of the negative
stride.

   x(4:1:-1) = x((/1,3,2,4/))

-> gfortran wrong-code bug.  The reduced testcase from comment#10 does _not_
do this pack/unpack and temporary dance.  Probably requires the myassign thing?

Fortran folks, please investigate again!
>From gcc-bugs-return-584817-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 12:39:32 2017
Return-Path: <gcc-bugs-return-584817-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31016 invoked by alias); 11 Dec 2017 12:39:32 -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 30988 invoked by uid 48); 11 Dec 2017 12:39:28 -0000
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/83365] New: ice in interpret_rhs_expr, at tree-scalar-evolution.c:1775
Date: Mon, 11 Dec 2017 12:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dcb314 at hotmail dot com
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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-83365-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: 2017-12/txt/msg01166.txt.bz2
Content-length: 1327

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

            Bug ID: 83365
           Summary: ice in interpret_rhs_expr, at
                    tree-scalar-evolution.c:1775
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

The following C code, when compiled by recent gcc trunk and compiler flag -O3,
does this:

during GIMPLE pass: linterchange
hack/hack.bones.c: In function ‘getbones’:
hack/hack.bones.c:154:1: internal compiler error: in interpret_rhs_expr, at
tree-scalar-evolution.c:1775
0xead827 interpret_rhs_expr
        ../../trunk/gcc/tree-scalar-evolution.c:1775
0xea9208 interpret_expr
        ../../trunk/gcc/tree-scalar-evolution.c:1991
0xea9208 analyze_scalar_evolution_1
        ../../trunk/gcc/tree-scalar-evolution.c:2026
0xeaa611 analyze_scalar_evolution(loop*, tree_node*)
        ../../trunk/gcc/tree-scalar-evolution.c:2113

The problem seems to occur between revisions 255402 and 255516.

C source code is

struct {
  unsigned : 1;
  unsigned a : 1
} b[];
c;
d() {
  int e;
  for (; e; e++) {
    c = 0;
    for (; c < 2; c++)
      b[c].a = 0;
  }
}
>From gcc-bugs-return-584818-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 12:50:46 2017
Return-Path: <gcc-bugs-return-584818-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43086 invoked by alias); 11 Dec 2017 12:50: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 43042 invoked by uid 48); 11 Dec 2017 12:50:42 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/83365] [8 Regression] ice in interpret_rhs_expr, at tree-scalar-evolution.c:1775
Date: Mon, 11 Dec 2017 12:50: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc target_milestone short_desc everconfirmed
Message-ID: <bug-83365-4-keV8OfWpuw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83365-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83365-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: 2017-12/txt/msg01167.txt.bz2
Content-length: 1074

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-12-11
                 CC|                            |mpolacek at gcc dot gnu.org
   Target Milestone|---                         |8.0
            Summary|ice in interpret_rhs_expr,  |[8 Regression] ice in
                   |at                          |interpret_rhs_expr, at
                   |tree-scalar-evolution.c:177 |tree-scalar-evolution.c:177
                   |5                           |5
     Ever confirmed|0                           |1

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Started with r255472.  Better testcase:

struct {
  unsigned : 1;
  unsigned a : 1;
} b[1];
int c;
void
d() {
  int e;
  for (; e; e++) {
    c = 0;
    for (; c < 2; c++)
      b[c].a = 0;
  }
}
>From gcc-bugs-return-584819-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 12:56:28 2017
Return-Path: <gcc-bugs-return-584819-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56920 invoked by alias); 11 Dec 2017 12:56:28 -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 56875 invoked by uid 48); 11 Dec 2017 12:56:24 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/83366] New: gfortran.dg/minval_char_2.f90 and gfortran.dg/maxval_char_2.f90 fail at random
Date: Mon, 11 Dec 2017 12:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-83366-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: 2017-12/txt/msg01168.txt.bz2
Content-length: 718

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

            Bug ID: 83366
           Summary: gfortran.dg/minval_char_2.f90 and
                    gfortran.dg/maxval_char_2.f90 fail at random
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

On x86, I got random failures, like

Program aborted. Backtrace:
#0  0x400e33 in ???
#1  0x400b89 in ???
#2  0x7fabeab42ff9 in ???
#3  0x400bb9 in ???
#4  0xffffffffffffffff in ???
FAIL: gfortran.dg/maxval_char_2.f90   -Os  execution test
>From gcc-bugs-return-584820-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 13:13:14 2017
Return-Path: <gcc-bugs-return-584820-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92170 invoked by alias); 11 Dec 2017 13:13:14 -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 92053 invoked by uid 48); 11 Dec 2017 13:13:08 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/83347] write pointer to const string possible without warning
Date: Mon, 11 Dec 2017 13:13: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.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
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: cc see_also
Message-ID: <bug-83347-4-ryW9nb9kX8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83347-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83347-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: 2017-12/txt/msg01169.txt.bz2
Content-length: 562

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

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |egallager at gcc dot gnu.org
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=61579

--- Comment #4 from Eric Gallager <egallager at gcc dot gnu.org> ---
See also bug 61579
>From gcc-bugs-return-584821-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 13:14:22 2017
Return-Path: <gcc-bugs-return-584821-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93397 invoked by alias); 11 Dec 2017 13:14: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 93336 invoked by uid 48); 11 Dec 2017 13:14:18 -0000
From: "weilercdale at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/83367] New: static global constructors stack memory clobbering
Date: Mon, 11 Dec 2017 13:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: weilercdale at gmail dot com
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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-83367-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: 2017-12/txt/msg01170.txt.bz2
Content-length: 1742

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

            Bug ID: 83367
           Summary: static global constructors stack memory clobbering
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: weilercdale at gmail dot com
  Target Milestone: ---

Created attachment 42835
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42835&action=edit
I've combined three files here because Bugzilla does not support adding
multiple attachment files?

I spent several hours trying to reduce this to the most minimal test case I
could but the compiler is very picky about the static global constructors being
in their own translation unit to trigger the problems.

Test.cpp contains the core code for a "test" framework that accepts registering
tests and subtests through maintaining a static linked list as static global
constructors are invoked.

Test.h contains the definitions needed to define tests in a seperate
translation unit Tests.cpp (again because putting it inline the Test.cpp file
does not exibit the problem.)

Test.cpp contains a test + subtest that triggers the bug, however the
conditionally excluded equivlant example (avoiding cTestRegister) does not
exibit the problem either.

When you compile with -fsanitize=address asan reports stack memory corruption,
as does valgrind if you run it a couple times.

It should print "b\n\a\n", as it does with clang/msvc (at all optimization
levels) and gcc at -O0, any optimization level will lead to clobbering, garbage
output and in most cases Illegal instruction exceptions.
>From gcc-bugs-return-584822-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 13:21:38 2017
Return-Path: <gcc-bugs-return-584822-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129712 invoked by alias); 11 Dec 2017 13:21:38 -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 124105 invoked by uid 48); 11 Dec 2017 13:21:34 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81842] -fcf-protection -mcet is incompatible with makecontext family functions
Date: Mon, 11 Dec 2017 13:21: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created
Message-ID: <bug-81842-4-wEVMH7Ih4p@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81842-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81842-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: 2017-12/txt/msg01171.txt.bz2
Content-length: 519

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

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

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

--- Comment #9 from H.J. Lu <hjl.tools at gmail dot com> ---
Created attachment 42836
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42836&action=edit
The new combined patch
>From gcc-bugs-return-584823-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 13:25:03 2017
Return-Path: <gcc-bugs-return-584823-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122302 invoked by alias); 11 Dec 2017 13:25:03 -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 122169 invoked by uid 48); 11 Dec 2017 13:24:58 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/82179] Optionally compile free calls in such a way that the passed pointer is clobbered after the call
Date: Mon, 11 Dec 2017 13:25: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: enhancement
X-Bugzilla-Who: egallager 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed bug_severity
Message-ID: <bug-82179-4-ej4JjXydL4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82179-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82179-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: 2017-12/txt/msg01172.txt.bz2
Content-length: 594

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

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-12-11
     Ever confirmed|0                           |1
           Severity|normal                      |enhancement

--- Comment #4 from Eric Gallager <egallager at gcc dot gnu.org> ---
Given the retitling, I'll confirm this as an enhancement.
>From gcc-bugs-return-584824-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 13:29:37 2017
Return-Path: <gcc-bugs-return-584824-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1451 invoked by alias); 11 Dec 2017 13:29:37 -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 1370 invoked by uid 48); 11 Dec 2017 13:29:32 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81889] [7/8 Regression] bogus warnings with -Wmaybe-uninitialized -O3
Date: Mon, 11 Dec 2017 13:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: diagnostic, missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81889-4-GN729Px0kk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81889-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81889-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: 2017-12/txt/msg01173.txt.bz2
Content-length: 1977

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

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Jeffrey A. Law from comment #5)
> I wonder why forwprop doesn't simplify bb6 by pushing the RHS of the
> assignment to _40 into the use of _40 in the conditional.
> 
> I'd guess the fortran front-end's boolean types are goofy and that's getting
> in the way of forwprop doing its job.  It may be impeding other bits as well.

It is because we fold (_39 < 0) != 0 to (logical(kind=1)) (_39 >> 63) and
canonicalize_cond_expr_cond doesn't recognize that form.

Index: gcc/gimple.c
===================================================================
--- gcc/gimple.c        (revision 255539)
+++ gcc/gimple.c        (working copy)
@@ -2148,6 +2148,17 @@ canonicalize_cond_expr_cond (tree t)
   else if (TREE_CODE (t) == BIT_XOR_EXPR)
     t = build2 (NE_EXPR, TREE_TYPE (t),
                TREE_OPERAND (t, 0), TREE_OPERAND (t, 1));
+  /* For (bool)(x >> 63) use x < 0.  */
+  else if (CONVERT_EXPR_P (t)
+          && TREE_CODE (TREE_OPERAND (t, 0)) == RSHIFT_EXPR
+          && TREE_CODE (TREE_OPERAND (TREE_OPERAND (t, 0), 1)) == INTEGER_CST
+          && ! TYPE_UNSIGNED (TREE_TYPE (TREE_OPERAND (t, 0)))
+          && compare_tree_int (TREE_OPERAND (TREE_OPERAND (t, 0), 1),
+                               TYPE_PRECISION
+                                 (TREE_TYPE (TREE_OPERAND (t, 0))) - 1) == 0)
+    t = build2 (LT_EXPR, TREE_TYPE (t),
+               TREE_OPERAND (TREE_OPERAND (t, 0), 0),
+               build_zero_cst (TREE_TYPE (TREE_OPERAND (t, 0))));

   if (is_gimple_condexpr (t))
     return t;

fixes that but not the warnings (didn't expect that).  As suspected the array
accesses are introduced by cunroll.  I'll see what to recover from there.
>From gcc-bugs-return-584825-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 13:35:33 2017
Return-Path: <gcc-bugs-return-584825-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102169 invoked by alias); 11 Dec 2017 13:35:32 -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 102012 invoked by uid 48); 11 Dec 2017 13:35:28 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83362] [8 Regression] wrong code at -O1
Date: Mon, 11 Dec 2017 13:35: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: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-83362-4-8V9Xd6uDos@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83362-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83362-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: 2017-12/txt/msg01174.txt.bz2
Content-length: 586

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-12-11
                 CC|                            |mpolacek at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Seems to have started with r255387.
>From gcc-bugs-return-584826-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 13:43:29 2017
Return-Path: <gcc-bugs-return-584826-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6106 invoked by alias); 11 Dec 2017 13:43:28 -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 6057 invoked by uid 48); 11 Dec 2017 13:43:24 -0000
From: "jrtc27 at jrtc27 dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/83368] New: alloca after setjmp breaks PIC base reg
Date: Mon, 11 Dec 2017 13:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jrtc27 at jrtc27 dot com
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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcctarget attachments.created
Message-ID: <bug-83368-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: 2017-12/txt/msg01175.txt.bz2
Content-length: 1077

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

            Bug ID: 83368
           Summary: alloca after setjmp breaks PIC base reg
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jrtc27 at jrtc27 dot com
                CC: glaubitz at physik dot fu-berlin.de
  Target Milestone: ---
            Target: sparc64-linux-gnu

Created attachment 42837
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42837&action=edit
Testcase

If alloca is used after setjmp in the same function, upon longjmp'ing back, %l7
no longer has the correct value, but the generated code assumes it does, and
things break, typically by segfaulting (as in the attached example).

It seems this possibility is intended to be covered in sparc.md, as
builtin_setjmp_receiver has a call to load_got_register if flag_pic is true.
However, for whatever reason this doesn't seem to actually make a difference.
>From gcc-bugs-return-584827-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 13:49:20 2017
Return-Path: <gcc-bugs-return-584827-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98210 invoked by alias); 11 Dec 2017 13:49: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 96021 invoked by uid 48); 11 Dec 2017 13:49:14 -0000
From: "amker at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/83365] [8 Regression] ice in interpret_rhs_expr, at tree-scalar-evolution.c:1775
Date: Mon, 11 Dec 2017 13:49: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amker 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-83365-4-Nav1ZlLaR6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83365-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83365-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: 2017-12/txt/msg01176.txt.bz2
Content-length: 155

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

--- Comment #2 from amker at gcc dot gnu.org ---
Is this a duplicate of PR83337 thus fixed by Jakub?
>From gcc-bugs-return-584828-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 13:53:44 2017
Return-Path: <gcc-bugs-return-584828-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115284 invoked by alias); 11 Dec 2017 13:53:44 -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 115224 invoked by uid 48); 11 Dec 2017 13:53:40 -0000
From: "rainer@emrich-ebersheim.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82006] [8 Regression] ERROR: torture-init: torture_without_loops is not empty as expected
Date: Mon, 11 Dec 2017 13:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rainer@emrich-ebersheim.de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82006-4-Z7Stuqf5Wi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82006-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82006-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: 2017-12/txt/msg01177.txt.bz2
Content-length: 865

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

--- Comment #11 from Rainer Emrich <rainer@emrich-ebersheim.de> ---
(In reply to Richard Biener from comment #10)
> Hmm, builtins.exp references $LTO_TORTURE_OPTIONS.  Does the issue only
> reproduce with builtins.exp or also other .exp files?
As you see in comment 8 there are 14 .exp files showing an issue. A single one
showing "ERROR: can't read "testname_with_flags": no such variable", which is
builtins.exp. The other 13 ones all show "ERROR: torture-init:
torture_without_loops is not empty as expected". These 13 .exp files are:
ieee.exp
unsorted.exp
format.exp
pch.exp
sancov.exp
simulate-thread.exp
sso.exp
stackalign.exp
tls.exp
tsan.exp
i386-prefetch.exp
math-torture.exp
ppc-fortran.exp

> 
> How does check_effective_target_lto behave on mingw32 currently?
How can I check this. Any hints?
>From gcc-bugs-return-584829-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 14:10:38 2017
Return-Path: <gcc-bugs-return-584829-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22368 invoked by alias); 11 Dec 2017 14:10:38 -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 22249 invoked by uid 48); 11 Dec 2017 14:10:34 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81889] [7/8 Regression] bogus warnings with -Wmaybe-uninitialized -O3
Date: Mon, 11 Dec 2017 14:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: diagnostic, missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-81889-4-cLJjZEA71W@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81889-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81889-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: 2017-12/txt/msg01178.txt.bz2
Content-length: 1483

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

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Created attachment 42838
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42838&action=edit
old non-functional patch

VRP1 has figured out ranges that bound the iteration of the loop in question
but there's too much stuff happening inbewteen that and cunrool to have any
hope to preserve it enough.

niter analysis would benefit from some ad-hoc walking of dominator stmts
like simplify_using_initial_conditions does for the purpose of figuring
an upper bound for the iteration...  like the attached old non-functional
patch computing ranges for a GENERIC expr which nowadays should use
register_edge_assert_for () to get at "asserts" for conditions it visits
and extract_range_for_var_from_comparison_expr to get at range info.

That said, niter analysis might want to populate a sparse lattice of
ranges seeded by dominating conditions and propagate those via the suggested
recursion (lacking SSA use->def handling).  Not sure if a sparse lattice
can be easily instantiated with the current vr_values class - it seems to
include lattice storage at the moment rather than abstracting that.

Note that re-ordering passes to somehow make VRP2 appear before cunroll
might also fix things but cunroll is in the loop pipeline and VRP2 is not.
Hacking things up so that early range info is copied/preserved enough might
be possible for this particular case.
>From gcc-bugs-return-584830-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 14:13:41 2017
Return-Path: <gcc-bugs-return-584830-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87796 invoked by alias); 11 Dec 2017 14:13:41 -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 87725 invoked by uid 55); 11 Dec 2017 14:13:37 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/82006] [8 Regression] ERROR: torture-init: torture_without_loops is not empty as expected
Date: Mon, 11 Dec 2017 14:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenther at suse dot de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82006-4-lWtnFYam7B@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82006-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82006-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: 2017-12/txt/msg01179.txt.bz2
Content-length: 2409

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

--- Comment #12 from rguenther at suse dot de <rguenther at suse dot de> ---
On Mon, 11 Dec 2017, rainer@emrich-ebersheim.de wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82006
> 
> --- Comment #11 from Rainer Emrich <rainer@emrich-ebersheim.de> ---
> (In reply to Richard Biener from comment #10)
> > Hmm, builtins.exp references $LTO_TORTURE_OPTIONS.  Does the issue only
> > reproduce with builtins.exp or also other .exp files?
> As you see in comment 8 there are 14 .exp files showing an issue. A single one
> showing "ERROR: can't read "testname_with_flags": no such variable", which is
> builtins.exp. The other 13 ones all show "ERROR: torture-init:
> torture_without_loops is not empty as expected". These 13 .exp files are:
> ieee.exp
> unsorted.exp
> format.exp
> pch.exp
> sancov.exp
> simulate-thread.exp
> sso.exp
> stackalign.exp
> tls.exp
> tsan.exp
> i386-prefetch.exp
> math-torture.exp
> ppc-fortran.exp
> 
> > 
> > How does check_effective_target_lto behave on mingw32 currently?
> How can I check this. Any hints?

No idea for details but when running lto.exp I see

Executing on host: /home/abuild/rguenther/trunk2-g/gcc/xgcc 
-B/home/abuild/rguenther/trunk2-g/gcc/  -fno-diagnostics-show-caret 
-fdiagnostics-color=never  -flto -c   -o lto19653.o lto19653.c    (timeout 
= 300)
spawn /home/abuild/rguenther/trunk2-g/gcc/xgcc 
-B/home/abuild/rguenther/trunk2-g/gcc/ -fno-diagnostics-show-caret 
-fdiagnostics-color=never -flto -c -o lto19653.o lto19653.c^M
Executing on host: /home/abuild/rguenther/trunk2-g/gcc/xgcc 
-B/home/abuild/rguenther/trunk2-g/gcc/ linker_plugin19653.c  
-fno-diagnostics-show-caret -fdiagnostics-color=never  -flto 
-fuse-linker-plugin  -lm    -o linker_plugin19653.exe    (timeout = 300)
spawn /home/abuild/rguenther/trunk2-g/gcc/xgcc 
-B/home/abuild/rguenther/trunk2-g/gcc/ linker_plugin19653.c 
-fno-diagnostics-show-caret -fdiagnostics-color=never -flto 
-fuse-linker-plugin -lm -o linker_plugin19653.exe^M
Executing on host: /home/abuild/rguenther/trunk2-g/gcc/xgcc 
-B/home/abuild/rguenther/trunk2-g/gcc/ linker_plugin19653.c  
-fno-diagnostics-show-caret -fdiagnostics-color=never  -flto 
-fuse-linker-plugin       -o linker_plugin19653.exe    (timeout = 300)
...

those appear to be from the lto and linker-plugin meta-testing.
>From gcc-bugs-return-584831-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 14:14:43 2017
Return-Path: <gcc-bugs-return-584831-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89948 invoked by alias); 11 Dec 2017 14:14: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 89863 invoked by uid 48); 11 Dec 2017 14:14:39 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/83367] static global constructors stack memory corruption
Date: Mon, 11 Dec 2017 14:14: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: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-83367-4-JBq0sWH9tY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83367-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83367-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: 2017-12/txt/msg01180.txt.bz2
Content-length: 204

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I wonder if a temporary is not being bound so it is considered going out of
scope.
>From gcc-bugs-return-584832-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 14:16:10 2017
Return-Path: <gcc-bugs-return-584832-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91469 invoked by alias); 11 Dec 2017 14:16: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 91416 invoked by uid 48); 11 Dec 2017 14:16:05 -0000
From: "zenith432 at users dot sourceforge.net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/83334] __builtin_ms_va_copy used in function with sysv_abi is broken
Date: Mon, 11 Dec 2017 14:16: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: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: zenith432 at users dot sourceforge.net
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-83334-4-2ZqtjACNms@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83334-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83334-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: 2017-12/txt/msg01181.txt.bz2
Content-length: 2010

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

--- Comment #4 from zenith432 at users dot sourceforge.net ---
It's not PR 50818
Here's the source code for sample1
=====
#include <stdio.h>

#define MS_ABI __attribute__((ms_abi))

int funcc(int c, __builtin_ms_va_list ap)
{
        int i, s;

        for (s = 0, i = 0; i < c; ++i)
                s += __builtin_va_arg(ap, int);
        return s;
}

int funcb(int c, __builtin_ms_va_list ap)
{
        __builtin_ms_va_list ap2;
        int r;

        __builtin_ms_va_copy(ap2, ap);
        r = funcc(c, ap2);
        __builtin_ms_va_end(ap2);
        return r;
}

int MS_ABI funca(int c, ...)
{
        __builtin_ms_va_list ap;
        int r;

        __builtin_ms_va_start(ap, c);
        r = funcb(c, ap);
        __builtin_ms_va_end(ap);
        return r;
}

int main(int argc, char** argv)
{
        printf("%d\n", funca(3, 1, 2, 3));
        return 0;
}
=====
funcb is a sysv-abi function that obtains an explicitly typed
__builtin_ms_va_list as a parameter.  The code generated for its invocation of
__builtin_ms_va_copy is incorrect.  I didn't attach the object code, but can be
easily obtained with objdump -d.

PR 50818 began in 2011 as a bug report because at the time the __builtin_ms_va*
family didn't exist.  In code compiled with -mabi=sysv, there was no way to
handle varargs inside a function defined as __attribute__((ms_abi)).
Nowadays, the __builtin_ms_va* family exists, so what remains of 
PR 50818 is a feature request that __builtin_va* family behave like the ABI of
the function it is embedded in instead of according to the global -mabi.

This report is about...
- Passing a __builtin_ms_va_list to a sysv_abi function ... works!
- Calling __builtin_var_arg on a __builtin_ms_va_list inside a sysv_abi
function ... works!
- Calling __builtin_ms_va_copy on a __builtin_ms_va_list inside a sysv_abi
function... doesn't work.

Is this a bug?  An unimplemented feature?  It's your call.
>From gcc-bugs-return-584833-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 14:22:15 2017
Return-Path: <gcc-bugs-return-584833-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3622 invoked by alias); 11 Dec 2017 14:22:15 -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 3519 invoked by uid 55); 11 Dec 2017 14:22:10 -0000
From: "hubicka at ucw dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/83358] [8 Regression] division not converted with Intel tuning since r253934
Date: Mon, 11 Dec 2017 14: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: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hubicka at ucw dot cz
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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-83358-4-CBP49wU1Bj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83358-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83358-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: 2017-12/txt/msg01182.txt.bz2
Content-length: 2166

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

--- Comment #3 from Jan Hubicka <hubicka at ucw dot cz> ---
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83358
> 
> --- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
> The following fixes this particular issue:
> 
> diff --git a/gcc/config/i386/x86-tune-costs.h
> b/gcc/config/i386/x86-tune-costs.h         
> index 312467d9788..00f1dae9085 100644       
> --- a/gcc/config/i386/x86-tune-costs.h      
> +++ b/gcc/config/i386/x86-tune-costs.h      
> @@ -2345,7 +2345,7 @@ struct processor_costs core_cost = {                      
>    {COSTS_N_INSNS (8),                  /* cost of a divide/mod for QI */       
>     COSTS_N_INSNS (8),                  /*                          HI */       
>     /* 8-11 */                              
> -   COSTS_N_INSNS (11),                 /*                          SI */       
> +   COSTS_N_INSNS (13),                 /*                          SI */       
>     /* 24-81 */                             
>     COSTS_N_INSNS (81),                 /*                          DI */       
>     COSTS_N_INSNS (81)},                        /*                         
> other */ 
> 
> Perhaps the div costs are a bit too tight in general?

The main problem here is that the algorithm expading div/mod into shift/add/lea
does not consider at all the parallelism and thus the cost model is not
realistic.
I meant to write bencmark that will try different constatns and see if they are
after by idiv or by expanded sequence.

The original costs was still based on pentium4, so I brought them to be
consistently
basedd on latencies.
Increasing values bit over the estimated latencies (with comment on why that
was done)
is perhaps easiest short term solution.

Honza
>From gcc-bugs-return-584834-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 14:34:41 2017
Return-Path: <gcc-bugs-return-584834-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68079 invoked by alias); 11 Dec 2017 14:34: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 67936 invoked by uid 48); 11 Dec 2017 14:34:32 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81889] [7/8 Regression] bogus warnings with -Wmaybe-uninitialized -O3
Date: Mon, 11 Dec 2017 14:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: diagnostic, missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81889-4-BXJuwHMahP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81889-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81889-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: 2017-12/txt/msg01183.txt.bz2
Content-length: 1933

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

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
Specifically it is PRE code hoisting hoisting (integer(kind=8)) _2 above
if (_2 > 3) making it impossible to set a SSA range info on it.

At cunroll time we still have somewhat useful info on other SSA names in
the loop:

  <bb 12> [local count: 912680545]:
  # val.11_94 = PHI <0.0(17), val.11_56(20)>
  # RANGE [1, 17] NONZERO 7
  # S.12_93 = PHI <1(17), S.12_57(20)>
  # RANGE [0, 2] NONZERO 3
  _16 = S.12_93 + -1;
  _17 = xx[_16];
  val.11_56 = _17 + val.11_94;
  # RANGE [2, 4] NONZERO 7
  S.12_57 = S.12_93 + 1;
  if (S.12_57 > _106)
    goto <bb 26>; [15.00%]
  else
    goto <bb 20>; [85.00%]

  <bb 26> [local count: 136902080]:
  # val.11_122 = PHI <val.11_56(12)>
  goto <bb 13>; [100.00%]

specifically the range info on S.12 (even if somewhat strange) could be used
to derive a range "backwards" for the number of iterations from base and step
from the increment stmt for example.

Thus for example the following fixes the testcase and exploits any
range info on undefined overflow stmts.  Giving that wider testing.

Index: gcc/tree-ssa-loop-niter.c
===================================================================
--- gcc/tree-ssa-loop-niter.c   (revision 255539)
+++ gcc/tree-ssa-loop-niter.c   (working copy)
@@ -3510,6 +3510,12 @@ infer_loop_bounds_from_signedness (struc

   low = lower_bound_in_type (type, type);
   high = upper_bound_in_type (type, type);
+  wide_int minv, maxv;
+  if (get_range_info (def, &minv, &maxv) == VR_RANGE)
+    {
+      low = wide_int_to_tree (type, minv);
+      high = wide_int_to_tree (type, maxv);
+    }

   record_nonwrapping_iv (loop, base, step, stmt, low, high, false, true);
 }
>From gcc-bugs-return-584835-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 14:41:38 2017
Return-Path: <gcc-bugs-return-584835-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109749 invoked by alias); 11 Dec 2017 14:41:38 -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 103737 invoked by uid 48); 11 Dec 2017 14:41:34 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83361] [8 Regression] ICE: verify_flow_info failed (error: non-cold basic block 3 reachable only by paths crossing the cold partition) on 32-bit BE powerpc targets
Date: Mon, 11 Dec 2017 14:41: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: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-83361-4-lk96doroKY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83361-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83361-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: 2017-12/txt/msg01184.txt.bz2
Content-length: 567

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

Segher Boessenkool <segher at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-12-11
     Ever confirmed|0                           |1

--- Comment #1 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Confirmed, doesn't need any special options (just -m32
-freorder-blocks-and-partition).
>From gcc-bugs-return-584836-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 14:58:02 2017
Return-Path: <gcc-bugs-return-584836-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113485 invoked by alias); 11 Dec 2017 14:58: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 113373 invoked by uid 48); 11 Dec 2017 14:57:56 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83362] [8 Regression] wrong code at -O1
Date: Mon, 11 Dec 2017 14:58: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: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: law at redhat dot com
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc assigned_to
Message-ID: <bug-83362-4-COMbqTOoIm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83362-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83362-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: 2017-12/txt/msg01185.txt.bz2
Content-length: 539

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

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |law at redhat dot com
           Assignee|unassigned at gcc dot gnu.org      |law at redhat dot com

--- Comment #2 from Jeffrey A. Law <law at redhat dot com> ---
Likely the same thing I'm already tracking via a P1 regression related to that
change.
>From gcc-bugs-return-584837-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 15:06:47 2017
Return-Path: <gcc-bugs-return-584837-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84841 invoked by alias); 11 Dec 2017 15:06:47 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 78335 invoked by uid 48); 11 Dec 2017 15:06:38 -0000
From: "bugzilla@poradnik-webmastera.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/83369] New: Missing diagnostics during inlining
Date: Mon, 11 Dec 2017 15:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bugzilla@poradnik-webmastera.com
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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-83369-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: 2017-12/txt/msg01186.txt.bz2
Content-length: 2628

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

            Bug ID: 83369
           Summary: Missing diagnostics during inlining
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bugzilla@poradnik-webmastera.com
  Target Milestone: ---

When code below is compiled, gcc prints warnings that null is passed to
function with nonnull attribute. However gcc does not point that error is
caused by inlining of my_strcpy at line 32 of test.cc.

Code was compiled using gcc (GCC) 8.0.0 20171210 (experimental).

[code]
#include <string.h>

char buf[100];

struct Test
{
    const char* s1;
    const char* s2;
};

__attribute((nonnull(1, 2)))
inline char* my_strcpy(char* __restrict__ dst, const char* __restrict__ src,
size_t size)
{
    size_t len = strlen(src);
    if (len < size)
        memcpy(dst, src, len + 1);
    else
    {
        memcpy(dst, src, size - 1);
        dst[size - 1] = '\0';
    }
    return dst;
}

void test(Test* test)
{
    if (test->s1)
        my_strcpy(buf, test->s1, sizeof(buf));
    else if (test->s2)
        my_strcpy(buf, test->s2, sizeof(buf));
    else
        my_strcpy(buf, test->s2, sizeof(buf)); // error, line 32
}
[/code]

[out]
$ g++ -c -o test.o test.cc -O2 -Wall
test.cc: In function ‘void test(Test*)’:
test.cc:14:24: warning: argument 1 null where non-null expected [-Wnonnull]
     size_t len = strlen(src);
                  ~~~~~~^~~~~
In file included from test.cc:1:
/usr/include/string.h:395:15: note: in a call to function ‘size_t strlen(const
char*)’ declared here
 extern size_t strlen (const char *__s)
               ^~~~~~
test.cc:16:15: warning: argument 2 null where non-null expected [-Wnonnull]
         memcpy(dst, src, len + 1);
         ~~~~~~^~~~~~~~~~~~~~~~~~~
In file included from test.cc:1:
/usr/include/string.h:42:14: note: in a call to function ‘void* memcpy(void*,
const void*, size_t)’ declared here
 extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
              ^~~~~~
test.cc:19:15: warning: argument 2 null where non-null expected [-Wnonnull]
         memcpy(dst, src, size - 1);
         ~~~~~~^~~~~~~~~~~~~~~~~~~~
In file included from test.cc:1:
/usr/include/string.h:42:14: note: in a call to function ‘void* memcpy(void*,
const void*, size_t)’ declared here
 extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
              ^~~~~~
[/out]
>From gcc-bugs-return-584838-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 15:20:32 2017
Return-Path: <gcc-bugs-return-584838-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59892 invoked by alias); 11 Dec 2017 15:20:32 -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 59842 invoked by uid 48); 11 Dec 2017 15:20:27 -0000
From: "renlin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/83370] New: [AARCH64]Tailcall register may be corrupted by epilogue code
Date: Mon, 11 Dec 2017 15:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: renlin 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-83370-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: 2017-12/txt/msg01187.txt.bz2
Content-length: 2074

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

            Bug ID: 83370
           Summary: [AARCH64]Tailcall register may be corrupted by
                    epilogue code
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: renlin at gcc dot gnu.org
  Target Milestone: ---

The following example generates incorrect code:

void (*f)();
int xx;
void tailcall (int i)
{
   int arr[5000];
   xx = arr[i];
   f();
}

When built with -O2 -ffixed-x0 -ffixed-x1 -ffixed-x2 -ffixed-x3 -ffixed-x4
-ffixed-x5 -ffixed-x6 -ffixed-x7 -ffixed-x8 -ffixed-x9 -ffixed-x10 -ffixed-x11
-ffixed-x12 -ffixed-x13 -ffixed-x14 -ffixed-x15 -ffixed-x17 -ffixed-x18

tailcall:
        mov     x16, 20016
        sub     sp, sp, x16
        adrp    x16, .LANCHOR0
        stp     x19, x30, [sp]
        add     x19, sp, 16
        ldr     s0, [x19, w0, sxtw 2]
        ldp     x19, x30, [sp]
        str     s0, [x16, #:lo12:.LANCHOR0]
        mov     x16, 20016
        add     sp, sp, x16
        br      x16   // oops

So the issue is there is nothing in the tail call instruction that prevents it
from using IP0/IP1 which are used as temporaries in the epilogue. We use the
temporary for frames of 4-64KB, so this issue is more likely today (previously
temporary was used only in frames larger than 16MBytes).

The problem appears to be that while we have explicit clobbers in a tailcall,
they are after the call, not before it:

(call_insn/j 16 12 17 2 (parallel [
            (call (mem:DI (reg/f:DI 84 [ f ]) [0 *f.0_2 S8 A8])
                (const_int 0 [0]))
            (return)
        ]) "tailcall.c":13 42 {*sibcall_insn}
     (expr_list:REG_DEAD (reg/f:DI 84 [ f ])
        (expr_list:REG_CALL_DECL (nil)
            (nil)))
    (expr_list (clobber (reg:DI 17 x17))
        (expr_list (clobber (reg:DI 16 x16))
            (nil))))

This issues affects gcc-5, gcc-6, gcc-7 and current trunk.
>From gcc-bugs-return-584839-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 15:33:52 2017
Return-Path: <gcc-bugs-return-584839-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82567 invoked by alias); 11 Dec 2017 15:33:51 -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 82503 invoked by uid 48); 11 Dec 2017 15:33:48 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83364] [8 Regression] wrong code with -O -fno-forward-propagate -fno-tree-coalesce-vars -fno-tree-ter
Date: Mon, 11 Dec 2017 15:33: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: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-83364-4-nVRqDw9G2I@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83364-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83364-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: 2017-12/txt/msg01188.txt.bz2
Content-length: 293

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |8.0
>From gcc-bugs-return-584841-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 15:34:48 2017
Return-Path: <gcc-bugs-return-584841-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84006 invoked by alias); 11 Dec 2017 15:34:48 -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 83923 invoked by uid 48); 11 Dec 2017 15:34:44 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83337] [8 Regression] ICE at -O3 x86_64-linux-gnu: in interpret_rhs_expr, at tree-scalar-evolution.c:1775
Date: Mon, 11 Dec 2017 15:34: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: 8.0
X-Bugzilla-Keywords:
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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-83337-4-UJACw18az5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83337-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83337-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: 2017-12/txt/msg01190.txt.bz2
Content-length: 184

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

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
*** Bug 83365 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-584840-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 15:34:48 2017
Return-Path: <gcc-bugs-return-584840-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 83993 invoked by alias); 11 Dec 2017 15:34:48 -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 83872 invoked by uid 48); 11 Dec 2017 15:34:43 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/83365] [8 Regression] ice in interpret_rhs_expr, at tree-scalar-evolution.c:1775
Date: Mon, 11 Dec 2017 15:34: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-83365-4-ea3t6uNRGm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83365-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83365-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: 2017-12/txt/msg01189.txt.bz2
Content-length: 495

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

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

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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
It is.

*** This bug has been marked as a duplicate of bug 83337 ***
>From gcc-bugs-return-584842-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 15:35:51 2017
Return-Path: <gcc-bugs-return-584842-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86942 invoked by alias); 11 Dec 2017 15:35:51 -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 86588 invoked by uid 48); 11 Dec 2017 15:35:47 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/83367] static global constructors stack memory corruption
Date: Mon, 11 Dec 2017 15:35: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: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth 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-83367-4-97RrI1vpVr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83367-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83367-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: 2017-12/txt/msg01191.txt.bz2
Content-length: 145

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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Try -fno-lifetime-dse?
>From gcc-bugs-return-584843-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 15:42:29 2017
Return-Path: <gcc-bugs-return-584843-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54638 invoked by alias); 11 Dec 2017 15:42:29 -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 54521 invoked by uid 48); 11 Dec 2017 15:42:25 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/83361] [8 Regression] ICE: verify_flow_info failed (error: non-cold basic block 3 reachable only by paths crossing the cold partition) on 32-bit BE powerpc targets
Date: Mon, 11 Dec 2017 15:42: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: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: segher at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-83361-4-affmD7E8uF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83361-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83361-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: 2017-12/txt/msg01192.txt.bz2
Content-length: 473

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

Segher Boessenkool <segher at gcc dot gnu.org> changed:

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

--- Comment #2 from Segher Boessenkool <segher at gcc dot gnu.org> ---
I have a patch.
>From gcc-bugs-return-584844-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 15:42:48 2017
Return-Path: <gcc-bugs-return-584844-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55425 invoked by alias); 11 Dec 2017 15:42:48 -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 55389 invoked by uid 48); 11 Dec 2017 15:42:44 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/83369] Missing diagnostics during inlining
Date: Mon, 11 Dec 2017 15: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: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc assigned_to everconfirmed
Message-ID: <bug-83369-4-tbwplmTrzZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83369-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83369-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: 2017-12/txt/msg01193.txt.bz2
Content-length: 2672

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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-12-11
                 CC|                            |msebor at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed.

Now that the warning diagnostic supports the %G directive the warning call can
be adjusted to make use of it to produce the following output.  Let me post a
patch with the fix.

In function ‘char* my_strcpy(char*, const char*, size_t)’,
    inlined from ‘void test(Test*)’ at pr83369.c:32:18:
pr83369.c:14:24: warning: argument 1 null where non-null expected [-Wnonnull]
     size_t len = strlen(src);
                  ~~~~~~^~~~~
In file included from pr83369.c:1:
/usr/include/string.h: In function ‘void test(Test*)’:
/usr/include/string.h:394:15: note: in a call to function ‘size_t strlen(const
char*)’ declared here
 extern size_t strlen (const char *__s)
               ^~~~~~
In function ‘char* my_strcpy(char*, const char*, size_t)’,
    inlined from ‘void test(Test*)’ at pr83369.c:32:18:
pr83369.c:16:15: warning: argument 2 null where non-null expected [-Wnonnull]
         memcpy(dst, src, len + 1);
         ~~~~~~^~~~~~~~~~~~~~~~~~~
In file included from pr83369.c:1:
/usr/include/string.h: In function ‘void test(Test*)’:
/usr/include/string.h:42:14: note: in a call to function ‘void* memcpy(void*,
const void*, size_t)’ declared here
 extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
              ^~~~~~
In function ‘char* my_strcpy(char*, const char*, size_t)’,
    inlined from ‘void test(Test*)’ at pr83369.c:32:18:
pr83369.c:19:15: warning: argument 2 null where non-null expected [-Wnonnull]
         memcpy(dst, src, size - 1);
         ~~~~~~^~~~~~~~~~~~~~~~~~~~
In file included from pr83369.c:1:
/usr/include/string.h: In function ‘void test(Test*)’:
/usr/include/string.h:42:14: note: in a call to function ‘void* memcpy(void*,
const void*, size_t)’ declared here
 extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
              ^~~~~~
>From gcc-bugs-return-584845-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 15:45:49 2017
Return-Path: <gcc-bugs-return-584845-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59036 invoked by alias); 11 Dec 2017 15:45:48 -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 58980 invoked by uid 48); 11 Dec 2017 15:45:43 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/83332] [8 regression] new test case gfortran.dg/vect/pr81303.f fails (r255499)
Date: Mon, 11 Dec 2017 15:45:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wschmidt at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-83332-4-NtLKnSksgJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83332-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83332-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: 2017-12/txt/msg01194.txt.bz2
Content-length: 1276

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

--- Comment #2 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #1)
> Possibly a similar reason as x86, vect_cond_mixed is set but you cannot do
> V2DIV2DF mixed condition handling?

That appears to be the case:

proc check_effective_target_vect_cond_mixed { } {
    global et_vect_cond_mixed_saved
    global et_index

    if [info exists et_vect_cond_mixed_saved($et_index)] {
        verbose "check_effective_target_vect_cond_mixed: using cached result" 2
    } else {
        set et_vect_cond_mixed_saved($et_index) 0
        if { [istarget i?86-*-*] || [istarget x86_64-*-*]
             || [istarget aarch64*-*-*]
             || [istarget powerpc*-*-*]
             || ([istarget mips*-*-*]
                 && [et-is-effective-target mips_msa])
             || ([istarget s390*-*-*]
                 && [check_effective_target_s390_vx]) } {
           set et_vect_cond_mixed_saved($et_index) 1
        }
    }

but so far as I can tell the PPC back end does not have any vcond<m1><m2>
patterns where m1 != m2.

So is the target-supports check a total lie, so that we should remove the
powerpc*-*-* clause there?  That's what the documentation would seem to imply.
>From gcc-bugs-return-584847-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 15:47:27 2017
Return-Path: <gcc-bugs-return-584847-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62486 invoked by alias); 11 Dec 2017 15:47: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 62261 invoked by uid 48); 11 Dec 2017 15:47:23 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83298] [8 Regression] wrong code at -O1, -O2 and -O3 on x86_64-linux-gnu
Date: Mon, 11 Dec 2017 15:47: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: law at redhat dot com
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-83298-4-z2Q0BHtK9S@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83298-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83298-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: 2017-12/txt/msg01196.txt.bz2
Content-length: 434

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

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zsojka at seznam dot cz

--- Comment #4 from Jeffrey A. Law <law at redhat dot com> ---
*** Bug 83362 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-584846-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 15:47:25 2017
Return-Path: <gcc-bugs-return-584846-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62308 invoked by alias); 11 Dec 2017 15:47:25 -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 62178 invoked by uid 48); 11 Dec 2017 15:47:22 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83362] [8 Regression] wrong code at -O1
Date: Mon, 11 Dec 2017 15:47: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: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: law at redhat dot com
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-83362-4-tIgCnHxo2G@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83362-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83362-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: 2017-12/txt/msg01195.txt.bz2
Content-length: 504

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

Jeffrey A. Law <law at redhat dot com> changed:

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

--- Comment #3 from Jeffrey A. Law <law at redhat dot com> ---
Confirmed as a duplicate.

*** This bug has been marked as a duplicate of bug 83298 ***
>From gcc-bugs-return-584848-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 15:49:40 2017
Return-Path: <gcc-bugs-return-584848-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65420 invoked by alias); 11 Dec 2017 15:49:39 -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 65382 invoked by uid 48); 11 Dec 2017 15:49:35 -0000
From: "weilercdale at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/83367] static global constructors stack memory corruption
Date: Mon, 11 Dec 2017 15:49: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: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: weilercdale at gmail dot com
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-83367-4-1Y1ZA553jJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83367-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83367-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: 2017-12/txt/msg01197.txt.bz2
Content-length: 216

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

--- Comment #3 from Dale Weiler <weilercdale at gmail dot com> ---
(In reply to Richard Biener from comment #2)
> Try -fno-lifetime-dse?

Tried that, same issue.
>From gcc-bugs-return-584849-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 15:50:48 2017
Return-Path: <gcc-bugs-return-584849-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 72849 invoked by alias); 11 Dec 2017 15:50:48 -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 72201 invoked by uid 48); 11 Dec 2017 15:50:44 -0000
From: "hstong at ca dot ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/83371] New: Partial ordering ignores implicit object parameter
Date: Mon, 11 Dec 2017 15:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: accepts-invalid, rejects-valid, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hstong at ca dot ibm.com
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: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-83371-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: 2017-12/txt/msg01198.txt.bz2
Content-length: 1826

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

            Bug ID: 83371
           Summary: Partial ordering ignores implicit object parameter
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid, rejects-valid, wrong-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hstong at ca dot ibm.com
  Target Milestone: ---

For the following case, given that the constrained and unconstrained parameters
are similar in their constrainedness between the two candidates (just with
different ordering), and the arguments provided match just as well, it seems
that GCC is ignoring the implicit object parameter in the partial ordering in
turn leading to broken behaviour.

### SOURCE (<stdin>):
struct A {
  template <typename T> void operator<(T &) &; // #1
};

template <typename T> bool operator<(T &, A &); // #2

bool g(A *ap) { return *ap < *ap; } // GCC picks #2;
    // Clang and MSVC says ambiguous


### COMPILER INVOCATION:
g++ -S -o /dev/null -x c++ -


### ACTUAL OUTPUT:
(Clean compile)


### EXPECTED OUTPUT:
(Error message)


### COMPILER VERSION INFO (g++ -v):
Using built-in specs.
COLLECT_GCC=/opt/wandbox/gcc-head/bin/g++
COLLECT_LTO_WRAPPER=/opt/wandbox/gcc-head/libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../source/configure --prefix=/opt/wandbox/gcc-head
--enable-languages=c,c++ --disable-multilib --without-ppl --without-cloog-ppl
--enable-checking=release --disable-nls --enable-lto
LDFLAGS=-Wl,-rpath,/opt/wandbox/gcc-head/lib,-rpath,/opt/wandbox/gcc-head/lib64,-rpath,/opt/wandbox/gcc-head/lib32
Thread model: posix
gcc version 8.0.0 20171210 (experimental) (GCC)
>From gcc-bugs-return-584850-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 15:51:30 2017
Return-Path: <gcc-bugs-return-584850-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86912 invoked by alias); 11 Dec 2017 15:51:29 -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 86769 invoked by uid 48); 11 Dec 2017 15:51:25 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libquadmath/83341] [8 Regression] r254899 causes about 15000 test failures on powerpc
Date: Mon, 11 Dec 2017 15:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libquadmath
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-83341-4-eE0jw2gYt2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83341-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: 2017-12/txt/msg01199.txt.bz2
Content-length: 598

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

Segher Boessenkool <segher at gcc dot gnu.org> changed:

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

--- Comment #2 from Segher Boessenkool <segher at gcc dot gnu.org> ---
So, this was caused by having a libquadmath.so.0 in the --prefix (before
running "make install"), and apparently the testsuite does not like that.

Closing as invalid.
>From gcc-bugs-return-584851-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 15:52:36 2017
Return-Path: <gcc-bugs-return-584851-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108657 invoked by alias); 11 Dec 2017 15:52:36 -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 108482 invoked by uid 48); 11 Dec 2017 15:52:32 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/83332] [8 regression] new test case gfortran.dg/vect/pr81303.f fails (r255499)
Date: Mon, 11 Dec 2017 15:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wschmidt at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-83332-4-oCP5WthGEz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83332-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83332-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: 2017-12/txt/msg01200.txt.bz2
Content-length: 311

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

--- Comment #3 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Uh, actually that is not quite right.  We do have vcondv4sfv4si and
vcondv4siv4sf patterns.  So it looks like we need to adjust the test case until
such time as we add the v2di/v2df ones.
>From gcc-bugs-return-584852-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 15:57:33 2017
Return-Path: <gcc-bugs-return-584852-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10564 invoked by alias); 11 Dec 2017 15:57:33 -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 10472 invoked by uid 48); 11 Dec 2017 15:57:27 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/14770] redundant store due to the fact that implicit set is not noticed
Date: Mon, 11 Dec 2017 15:57: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: 6.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-14770-4-gtduWnzVOt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-14770-4@http.gcc.gnu.org/bugzilla/>
References: <bug-14770-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: 2017-12/txt/msg01201.txt.bz2
Content-length: 556

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

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |law at redhat dot com
         Resolution|---                         |FIXED

--- Comment #5 from Jeffrey A. Law <law at redhat dot com> ---
RTL forwprop handles this.  I didn't dig into precise when it was fixed.
>From gcc-bugs-return-584853-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 15:59:20 2017
Return-Path: <gcc-bugs-return-584853-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12835 invoked by alias); 11 Dec 2017 15:59: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 12765 invoked by uid 48); 11 Dec 2017 15:59:16 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/83308] Missing platform definitions for SH in libgo
Date: Mon, 11 Dec 2017 15:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: go
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ian at airs dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-83308-4-idJzwN9qNb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83308-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83308-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: 2017-12/txt/msg01202.txt.bz2
Content-length: 420

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

--- Comment #11 from Ian Lance Taylor <ian at airs dot com> ---
As far as I know libbacktrace and libgo use the same criteria for whether they
are built or not.  Why is libbacktrace not being built for m4-fpu?  What is
preventing that build from occurring?

What is the value of TIOCGWINSZ on SH?  What is the output of

grep TIOCGWINSZ TARGET/libgo/sysinfo.go

?
>From gcc-bugs-return-584854-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:00:20 2017
Return-Path: <gcc-bugs-return-584854-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14015 invoked by alias); 11 Dec 2017 16:00:14 -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 13665 invoked by uid 48); 11 Dec 2017 16:00:00 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/83332] [8 regression] new test case gfortran.dg/vect/pr81303.f fails (r255499)
Date: Mon, 11 Dec 2017 16:00:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wschmidt 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status
Message-ID: <bug-83332-4-7QhuJBpOqQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83332-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83332-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: 2017-12/txt/msg01203.txt.bz2
Content-length: 452

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

Bill Schmidt <wschmidt at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW

--- Comment #4 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Looks like adding those patterns should be pretty trivial, I'll work on a patch
for that.
>From gcc-bugs-return-584855-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:03:06 2017
Return-Path: <gcc-bugs-return-584855-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20560 invoked by alias); 11 Dec 2017 16:03: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 17760 invoked by uid 48); 11 Dec 2017 16:03:02 -0000
From: "jrtc27 at jrtc27 dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/83308] Missing platform definitions for SH in libgo
Date: Mon, 11 Dec 2017 16:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: go
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jrtc27 at jrtc27 dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-83308-4-vC7pMwa3vR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83308-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83308-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: 2017-12/txt/msg01204.txt.bz2
Content-length: 338

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

--- Comment #12 from James Clarke <jrtc27 at jrtc27 dot com> ---
> What is the value of TIOCGWINSZ on SH?

It's 0x80087468, which is the expansion of _IOR('t', 104, struct winsize) (sh4
uses the default encoding for _IOC; also for some reason the value is
hard-coded in the header)
>From gcc-bugs-return-584856-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:04:01 2017
Return-Path: <gcc-bugs-return-584856-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67975 invoked by alias); 11 Dec 2017 16:04:01 -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 58130 invoked by uid 48); 11 Dec 2017 16:03:52 -0000
From: "alan at octopull dot co.uk" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/83372] New: Compiler segfaults
Date: Mon, 11 Dec 2017 16:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: alan at octopull dot co.uk
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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-83372-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: 2017-12/txt/msg01205.txt.bz2
Content-length: 1240

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

            Bug ID: 83372
           Summary: Compiler segfaults
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: alan at octopull dot co.uk
  Target Milestone: ---

Created attachment 42839
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42839&action=edit
build log including gcc dump

g++7.2.0 on Ubuntu Artful AMD64:
https://launchpadlibrarian.net/348583139/buildlog_ubuntu-artful-amd64.mir_0.29.0~rc7-g165e6e8886-0ubuntu17.10_BUILDING.txt.gz

(Alse seen with g++7.2.1 on Fedora 27 x86_64:
https://copr-be.cloud.fedoraproject.org/results/ngompa/mir-prerel-fedora/fedora-27-x86_64/00685833-mir/builder-live.log)

Various other compiler versions and architectures built successfully. 

/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/server/frontend/wayland/wayland_connector.cpp:2275:1:
internal compiler error: Segmentation fault
 }
 ^
Please submit a full bug report


Preprocessed source stored into /tmp/cczHUc1t.out file, please attach this to
your bugreport.
>From gcc-bugs-return-584857-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:08:30 2017
Return-Path: <gcc-bugs-return-584857-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93613 invoked by alias); 11 Dec 2017 16:08:30 -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 89833 invoked by uid 48); 11 Dec 2017 16:08:25 -0000
From: "bugzilla@poradnik-webmastera.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/83373] New: False positive reported by -Wstringop-overflow
Date: Mon, 11 Dec 2017 16:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bugzilla@poradnik-webmastera.com
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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-83373-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: 2017-12/txt/msg01206.txt.bz2
Content-length: 1618

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

            Bug ID: 83373
           Summary: False positive reported by -Wstringop-overflow
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bugzilla@poradnik-webmastera.com
  Target Milestone: ---

When code below is compiled, gcc incorrectly complains that memcpy will read
data after end of buffer in line marked with star. Looks that gcc does not take
into account that 'if' above protects against this.

Code was compiles using gcc (GCC) 8.0.0 20171210 (experimental).

[code]
#include <string.h>

char buf[100];

void get_data(char* ptr);

__attribute((nonnull(1, 2)))
inline char* my_strcpy(char* __restrict__ dst, const char* __restrict__ src,
size_t size)
{
    size_t len = strlen(src);
    if (len < size)
        memcpy(dst, src, len + 1);
    else
    {
        memcpy(dst, src, size - 1); //*
        dst[size - 1] = '\0';
    }
    return dst;
}

void test()
{
    char data[20];
    get_data(data);
    my_strcpy(buf, data, sizeof(buf));
}
[/code]

[out]
$ g++ -c -o test.o test.cc -O2 -Wall
In function ‘char* my_strcpy(char*, const char*, size_t)’,
    inlined from ‘void test()’ at test.cc:25:14:
test.cc:15:15: warning: ‘void* memcpy(void*, const void*, size_t)’ reading 99
bytes from a region of size 20 [-Wstringop-overflow=]
         memcpy(dst, src, size - 1); //*
         ~~~~~~^~~~~~~~~~~~~~~~~~~~
[/out]
>From gcc-bugs-return-584858-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:09:18 2017
Return-Path: <gcc-bugs-return-584858-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101363 invoked by alias); 11 Dec 2017 16:09:18 -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 101256 invoked by uid 48); 11 Dec 2017 16:09:10 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/80631] [6/7/8 Regression] Compiling with -O3 -mavx2 gives wrong code
Date: Mon, 11 Dec 2017 16:09: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: 6.3.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to attachments.created
Message-ID: <bug-80631-4-e4W2JLgRiw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80631-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80631-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: 2017-12/txt/msg01207.txt.bz2
Content-length: 578

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

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

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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 42840
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42840&action=edit
gcc8-pr80631.patch

Untested fix.
>From gcc-bugs-return-584859-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:13:38 2017
Return-Path: <gcc-bugs-return-584859-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102838 invoked by alias); 11 Dec 2017 16:13:38 -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 99082 invoked by uid 48); 11 Dec 2017 16:13:33 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/83372] Compiler segfaults
Date: Mon, 11 Dec 2017 16:13: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: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trippels at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-83372-4-2Yc5a30mMM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83372-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83372-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: 2017-12/txt/msg01208.txt.bz2
Content-length: 649

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-12-11
                 CC|                            |trippels at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
The attached file is not usable.
Please attach the compressed preprocessed source.
>From gcc-bugs-return-584860-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:14:30 2017
Return-Path: <gcc-bugs-return-584860-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110158 invoked by alias); 11 Dec 2017 16:14:30 -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 106850 invoked by uid 55); 11 Dec 2017 16:14:25 -0000
From: "ak at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug gcov-profile/83355] autofdo g++.dg/bprob/g++-bprob-1.C FAILS with ICE
Date: Mon, 11 Dec 2017 16:14: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ak 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-83355-4-CvTASxuEeH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83355-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83355-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: 2017-12/txt/msg01209.txt.bz2
Content-length: 740

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

--- Comment #2 from ak at gcc dot gnu.org ---
Author: ak
Date: Mon Dec 11 16:13:53 2017
New Revision: 255540

URL: https://gcc.gnu.org/viewcvs?rev=255540&root=gcc&view=rev
Log:
Fix stack overflow with autofdo (PR83355)

g++.dg/bprob* is failing currently with autofdo.

Running in gdb shows that there is a very deep recursion in get_index_by_decl
until it
overflows the stack.

gcc/:
2017-12-11  Andi Kleen  <ak@linux.intel.com>

        PR gcov-profile/83355
        * auto-profile.c (string_table::get_index_by_decl): Don't
        recurse when abstract origin points to itself.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/auto-profile.c
    trunk/gcc/lto-streamer-in.c
>From gcc-bugs-return-584861-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:16:14 2017
Return-Path: <gcc-bugs-return-584861-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114245 invoked by alias); 11 Dec 2017 16:16:13 -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 114140 invoked by uid 48); 11 Dec 2017 16:16:09 -0000
From: "andrey.y.guskov at intel dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/83338] [8 Regression] SPEC CPU2017 510.parest_r ICE
Date: Mon, 11 Dec 2017 16:16: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: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: andrey.y.guskov at intel 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-83338-4-NqprkINSFj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83338-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83338-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: 2017-12/txt/msg01210.txt.bz2
Content-length: 171

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

--- Comment #11 from Andrey Guskov <andrey.y.guskov at intel dot com> ---
Understood. Going to report back tomorrow.
>From gcc-bugs-return-584862-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:16:44 2017
Return-Path: <gcc-bugs-return-584862-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125336 invoked by alias); 11 Dec 2017 16:16:44 -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 125299 invoked by uid 48); 11 Dec 2017 16:16:40 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/83345] c++1z produces an infinite recursion (c++1y works fine).
Date: Mon, 11 Dec 2017 16:16: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: 7.2.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
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 resolution
Message-ID: <bug-83345-4-wjZ6U2yJzm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83345-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83345-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: 2017-12/txt/msg01211.txt.bz2
Content-length: 741

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I think that's the expected behaviour in C++17. The return statement in the
conversion operator no longer constructs an object in C++17, it calls the
conversion operator again.

This will fix it:

        operator ref_proxy_t( void )
        {
            return ref_proxy_t( static_cast<ICondition&>(*this) );
        }
>From gcc-bugs-return-584863-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:20:58 2017
Return-Path: <gcc-bugs-return-584863-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37438 invoked by alias); 11 Dec 2017 16:20: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 29425 invoked by uid 48); 11 Dec 2017 16:20:53 -0000
From: "alex.mikhalevich at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/83374] New: Bad std::is_standard_layout with two base class subobjects of the same type
Date: Mon, 11 Dec 2017 16:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: alex.mikhalevich at gmail dot com
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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-83374-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: 2017-12/txt/msg01212.txt.bz2
Content-length: 1128

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

            Bug ID: 83374
           Summary: Bad std::is_standard_layout with two base class
                    subobjects of the same type
           Product: gcc
           Version: 6.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: alex.mikhalevich at gmail dot com
  Target Milestone: ---

Steps to reproduce:
1. Compile the following code with gcc 6.3.0 (maybe affects other versions, I
was not able to check):
#include <iostream>
#include <type_traits>

struct Q {};
struct S : Q {};
struct T : Q {};
struct NonPod : S, T {};
int main(int argc, char** argv) {
        std::cout << (bool)std::is_pod<NonPod>::value << " ";
        std::cout << (bool)std::is_standard_layout<NonPod>::value << std::endl;
        return 0;
}
2. Run the result program.

Expected result:
0 0 (the NonPod structure is not a standard-layout class as described here:
http://en.cppreference.com/w/cpp/concept/StandardLayoutType).

Actual result:
1 1
>From gcc-bugs-return-584864-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:25:49 2017
Return-Path: <gcc-bugs-return-584864-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121765 invoked by alias); 11 Dec 2017 16:25: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 121673 invoked by uid 48); 11 Dec 2017 16:25:44 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83363] [8 Regression] wrong code at -O2 -fno-forward-propagate
Date: Mon, 11 Dec 2017 16:25: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: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-83363-4-21ReYHWGxY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83363-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83363-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: 2017-12/txt/msg01213.txt.bz2
Content-length: 639

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-12-11
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |segher at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r255384.
>From gcc-bugs-return-584865-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:27:28 2017
Return-Path: <gcc-bugs-return-584865-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128397 invoked by alias); 11 Dec 2017 16:27:28 -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 128347 invoked by uid 48); 11 Dec 2017 16:27:24 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83364] [8 Regression] wrong code with -O -fno-forward-propagate -fno-tree-coalesce-vars -fno-tree-ter
Date: Mon, 11 Dec 2017 16:27: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: 8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-83364-4-LlMs0bwzaz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83364-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83364-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: 2017-12/txt/msg01214.txt.bz2
Content-length: 644

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-12-11
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |segher at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Also started with r255384.
>From gcc-bugs-return-584866-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:30:36 2017
Return-Path: <gcc-bugs-return-584866-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89824 invoked by alias); 11 Dec 2017 16:30:36 -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 89509 invoked by uid 48); 11 Dec 2017 16:30:21 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/19790] equality not noticed when signedness differs.
Date: Mon, 11 Dec 2017 16:30: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: unknown
X-Bugzilla-Keywords: missed-optimization, TREE
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-19790-4-lAJH465JxN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-19790-4@http.gcc.gnu.org/bugzilla/>
References: <bug-19790-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: 2017-12/txt/msg01215.txt.bz2
Content-length: 731

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

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |law at redhat dot com
         Resolution|---                         |FIXED

--- Comment #7 from Jeffrey A. Law <law at redhat dot com> ---
The original issue reported by Kazu has been fixed.  We no longer have to
increment a temporary holding i - 1 to retrieve i for second statement in the
loop.

Given the age of this BZ, I didn't bisect it to figure out exactly when that
happened.
>From gcc-bugs-return-584867-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:30:41 2017
Return-Path: <gcc-bugs-return-584867-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90350 invoked by alias); 11 Dec 2017 16:30: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 89936 invoked by uid 48); 11 Dec 2017 16:30:36 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/19721] [meta-bug] optimizations that CSE still catches
Date: Mon, 11 Dec 2017 16:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.0.0
X-Bugzilla-Keywords: meta-bug
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: SUSPENDED
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 resolution
Message-ID: <bug-19721-4-bGaZD712mD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-19721-4@http.gcc.gnu.org/bugzilla/>
References: <bug-19721-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: 2017-12/txt/msg01216.txt.bz2
Content-length: 471

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19721
Bug 19721 depends on bug 19790, which changed state.

Bug 19790 Summary: equality not noticed when signedness differs.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19790

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-584869-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:35:40 2017
Return-Path: <gcc-bugs-return-584869-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96427 invoked by alias); 11 Dec 2017 16:35: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 96363 invoked by uid 48); 11 Dec 2017 16:35:36 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82398] [8 Regression] error: qsort comparator non-negative on sorted output: 2 in fill_vec_av_set at gcc/sel-sched.c:3725
Date: Mon, 11 Dec 2017 16:35: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: 8.0
X-Bugzilla-Keywords: ice-checking, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82398-4-dV5QjRO5Md@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82398-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82398-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: 2017-12/txt/msg01218.txt.bz2
Content-length: 407

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

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

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Andrey, any progress on this?
>From gcc-bugs-return-584868-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:35:15 2017
Return-Path: <gcc-bugs-return-584868-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95556 invoked by alias); 11 Dec 2017 16:35:14 -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 95515 invoked by uid 48); 11 Dec 2017 16:35:10 -0000
From: "alan at octopull dot co.uk" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/83372] Compiler segfaults
Date: Mon, 11 Dec 2017 16:35: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: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: alan at octopull dot co.uk
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: attachments.created
Message-ID: <bug-83372-4-kUPi71GBIa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83372-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83372-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: 2017-12/txt/msg01217.txt.bz2
Content-length: 574

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

--- Comment #2 from Alan Griffiths <alan at octopull dot co.uk> ---
Created attachment 42841
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42841&action=edit
Preprocessed source

So far, I've only seen the error on "builders" where I don't have access (i.e.
I've so far failed to reproduce "locally"). The attached preprocessed source
comes from adapting the compile command shown in the build log and running that
locally.

I'm told the error also appears on Fedora 27 32bit builds, but intermittently.
>From gcc-bugs-return-584870-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:36:36 2017
Return-Path: <gcc-bugs-return-584870-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100024 invoked by alias); 11 Dec 2017 16:36:36 -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 99971 invoked by uid 48); 11 Dec 2017 16:36:32 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/83374] [DR1813] Bad std::is_standard_layout with two base class subobjects of the same type
Date: Mon, 11 Dec 2017 16: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: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on component short_desc everconfirmed
Message-ID: <bug-83374-4-7KYYcN6JaE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83374-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83374-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: 2017-12/txt/msg01219.txt.bz2
Content-length: 1503

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-12-11
          Component|libstdc++                   |c++
            Summary|Bad std::is_standard_layout |[DR1813] Bad
                   |with two base class         |std::is_standard_layout
                   |subobjects of the same type |with two base class
                   |                            |subobjects of the same type
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
G++ doesn't implement DR 1813 yet, https://wg21.link/cwg1813

struct B { int i; };        // standard-layout class
struct C : B { };           // standard-layout class
struct D : C { };           // standard-layout class
struct E : D { char : 4; }; // not a standard-layout class
static_assert( __is_standard_layout(B), "" );
static_assert( __is_standard_layout(C), "" );
static_assert( __is_standard_layout(D), "" );
static_assert( ! __is_standard_layout(E), "" );
struct Q {};
struct S : Q { };
struct T : Q { };
struct U : S, T { };         // not a standard-layout class
static_assert( ! __is_standard_layout(U), "" );
int main() { }

G++ fails the last assertion (and Clang fails the last two).
>From gcc-bugs-return-584872-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:37:42 2017
Return-Path: <gcc-bugs-return-584872-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101936 invoked by alias); 11 Dec 2017 16:37:42 -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 101898 invoked by uid 48); 11 Dec 2017 16:37:39 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/83373] False positive reported by -Wstringop-overflow
Date: Mon, 11 Dec 2017 16:37: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: 8.0
X-Bugzilla-Keywords: diagnostic, missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc see_also everconfirmed
Message-ID: <bug-83373-4-4Cm8IP8esI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83373-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83373-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: 2017-12/txt/msg01221.txt.bz2
Content-length: 1983

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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic,
                   |                            |missed-optimization
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-12-11
                 CC|                            |msebor at gcc dot gnu.org
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=78450
     Ever confirmed|0                           |1

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed.

The warning is caused by a missed optimization opportunity in the strlen pass. 
GCC doesn't recognize that the result of a strlen() call with an array argument
must be less than the size of the array and, as a result, doesn't eliminate the
else block in my_strcpy().  The warning then sees the memcpy(dst, src, 99) call
and complains.

Here's a small test case for the missing strlen optimization.  This is the
subject of pr78450.

$ cat d.c && gcc -O2 -S -Wall -Wextra -Wpedantic
-fdump-tree-optimized=/dev/stdout d.c
void init (void*);

void f (void)
{
  char a[20];

  init (a);

  if (__builtin_strlen (a) < 20)   // must be true
    return;

  __builtin_abort ();   // can be eliminated
}

;; Function f (f, funcdef_no=0, decl_uid=1894, cgraph_uid=0, symbol_order=0)

f ()
{
  char a[20];
  long unsigned int _1;

  <bb 2> [local count: 1073741825]:
  init (&a);
  _1 = __builtin_strlen (&a);
  if (_1 <= 19)
    goto <bb 3>; [99.96%]
  else
    goto <bb 4>; [0.00%]

  <bb 3> [local count: 1073312327]:
  a ={v} {CLOBBER};
  return;

  <bb 4> [count: 0]:
  __builtin_abort ();   // not eliminated but could be

}
>From gcc-bugs-return-584871-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:37:08 2017
Return-Path: <gcc-bugs-return-584871-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100927 invoked by alias); 11 Dec 2017 16:37: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 100870 invoked by uid 48); 11 Dec 2017 16:37:04 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/82407] [meta-bug] qsort_chk fallout tracking
Date: Mon, 11 Dec 2017 16:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-checking, meta-bug
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc short_desc
Message-ID: <bug-82407-4-dkigng9xfH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82407-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82407-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: 2017-12/txt/msg01220.txt.bz2
Content-length: 624

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org
            Summary|[8 Regression][meta-bug]    |[meta-bug] qsort_chk
                   |qsort_chk fallout tracking  |fallout tracking

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The only remaining PR is tracked as [8 Regression] already, we don't need 2
regression PRs for the same issue.
>From gcc-bugs-return-584873-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:38:12 2017
Return-Path: <gcc-bugs-return-584873-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102835 invoked by alias); 11 Dec 2017 16:38:11 -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 102784 invoked by uid 48); 11 Dec 2017 16:38:08 -0000
From: "andi-gcc at firstfloor dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/83375] New: partitioner partitions static arrays with label references
Date: Mon, 11 Dec 2017 16:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: andi-gcc at firstfloor dot 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone attachments.created
Message-ID: <bug-83375-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: 2017-12/txt/msg01222.txt.bz2
Content-length: 1128

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

            Bug ID: 83375
           Summary: partitioner partitions static arrays with label
                    references
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: andi-gcc at firstfloor dot org
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

Created attachment 42842
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42842&action=edit
test case

I thought there was already a bug for this, but can't find it right now.

When &&labels are put into static arrays the LTO partitioner can put the static
into a different partition, which causes an assembler error because the code
labels are local.

This breaks Linux kernel LTO builds.

See attached test case.

I think ipa-comdats should put the function and the static into the same
partition, but for some reason it doesn't work.

Attached test case shows the problem with -flto-partition=1to1 -flto -O2
>From gcc-bugs-return-584874-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:38:34 2017
Return-Path: <gcc-bugs-return-584874-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103634 invoked by alias); 11 Dec 2017 16:38:34 -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 103599 invoked by uid 48); 11 Dec 2017 16:38:30 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/78450] strlen(s) return value can be assumed to be less than the size of s
Date: Mon, 11 Dec 2017 16:38: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: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: msebor 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-78450-4-PfrNdxzJiV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78450-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78450-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: 2017-12/txt/msg01223.txt.bz2
Content-length: 497

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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-12-11
     Ever confirmed|0                           |1

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed based on bug 83373.
>From gcc-bugs-return-584876-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:39:43 2017
Return-Path: <gcc-bugs-return-584876-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 104900 invoked by alias); 11 Dec 2017 16:39: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 104768 invoked by uid 48); 11 Dec 2017 16:39:39 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/19986] [meta-bug] fold missing optimizations (compared to RTL)
Date: Mon, 11 Dec 2017 16:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.0.0
X-Bugzilla-Keywords: meta-bug, missed-optimization, TREE
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-19986-4-AgKZGoZQvQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-19986-4@http.gcc.gnu.org/bugzilla/>
References: <bug-19986-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: 2017-12/txt/msg01225.txt.bz2
Content-length: 483

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19986
Bug 19986 depends on bug 25529, which changed state.

Bug 25529 Summary: (unsigned * 2)/2 is not changed into unsigned &0x7FFFFFFF
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25529

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-584875-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:39:43 2017
Return-Path: <gcc-bugs-return-584875-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 104889 invoked by alias); 11 Dec 2017 16:39:42 -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 104740 invoked by uid 48); 11 Dec 2017 16:39:38 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/25529] (unsigned * 2)/2 is not changed into unsigned &0x7FFFFFFF
Date: Mon, 11 Dec 2017 16:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.2.0
X-Bugzilla-Keywords: missed-optimization, TREE
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
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 cc resolution
Message-ID: <bug-25529-4-rwYwHCJxBG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-25529-4@http.gcc.gnu.org/bugzilla/>
References: <bug-25529-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: 2017-12/txt/msg01224.txt.bz2
Content-length: 521

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

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |law at redhat dot com
         Resolution|---                         |FIXED

--- Comment #4 from Jeffrey A. Law <law at redhat dot com> ---
Fixed.  Presumably by Naveen's patch.
>From gcc-bugs-return-584877-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:40:59 2017
Return-Path: <gcc-bugs-return-584877-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106838 invoked by alias); 11 Dec 2017 16:40:59 -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 106784 invoked by uid 48); 11 Dec 2017 16:40:55 -0000
From: "andi-gcc at firstfloor dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/83375] partitioner partitions static arrays with label references
Date: Mon, 11 Dec 2017 16:40: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: andi-gcc at firstfloor dot 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-83375-4-wiiFYU12Hi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83375-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83375-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: 2017-12/txt/msg01226.txt.bz2
Content-length: 153

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

--- Comment #1 from Andi Kleen <andi-gcc at firstfloor dot org> ---
Actually -flto-partition=max
>From gcc-bugs-return-584878-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:43:31 2017
Return-Path: <gcc-bugs-return-584878-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128171 invoked by alias); 11 Dec 2017 16:43: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 125515 invoked by uid 48); 11 Dec 2017 16:43:27 -0000
From: "cgw at alum dot mit.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/35014] Libgfortran.a (downloaded) is not PIC compiled...
Date: Mon, 11 Dec 2017 16:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libfortran
X-Bugzilla-Version: 4.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: cgw at alum dot mit.edu
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-35014-4-g1kY5O16ip@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-35014-4@http.gcc.gnu.org/bugzilla/>
References: <bug-35014-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: 2017-12/txt/msg01227.txt.bz2
Content-length: 650

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

--- Comment #5 from cgw at alum dot mit.edu ---
Why not?

Our use case is building a Python module (an .so file loaded by Python) which
wraps some Fortran code.

We would like to reduce the external dependencies that this module has.  There
have been some hard-to-track-down runtime errors resulting from libgcc.so
version  mismatches and we would like to remove this source of errors.

We found that libgfortran.so itself depends on libgcc.so, but had hoped that by
using the options `-static-libgfortran -static-libgcc' we could eliminate the
runtime dependency on libgcc.so completely
>From gcc-bugs-return-584880-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:44:46 2017
Return-Path: <gcc-bugs-return-584880-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9280 invoked by alias); 11 Dec 2017 16:44: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 9139 invoked by uid 48); 11 Dec 2017 16:44:41 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug plugins/82371] [6/7 Regression] Cross-compiling GCC fails when build platform has fread_unlocked but host platform doesn't
Date: Mon, 11 Dec 2017 16:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: plugins
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub 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: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc short_desc
Message-ID: <bug-82371-4-CiMr3RqObh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82371-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82371-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: 2017-12/txt/msg01229.txt.bz2
Content-length: 944

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org
            Summary|[6/7/8 Regression]          |[6/7 Regression]
                   |Cross-compiling GCC fails   |Cross-compiling GCC fails
                   |when build platform has     |when build platform has
                   |fread_unlocked but host     |fread_unlocked but host
                   |platform doesn't            |platform doesn't

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I believe this has been fixed already on the trunk, see r255154, in particular
the:
2017-11-14 Boris Kolpackov  <boris@codesynthesis.com>

        * Makefile.in (gengtype-lex.c): Fix broken AIX workaround.
part.
>From gcc-bugs-return-584879-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:44:12 2017
Return-Path: <gcc-bugs-return-584879-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7681 invoked by alias); 11 Dec 2017 16:44:12 -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 7645 invoked by uid 48); 11 Dec 2017 16:44:08 -0000
From: "andi-gcc at firstfloor dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/83376] New: ICE in LTO streamer
Date: Mon, 11 Dec 2017 16:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: andi-gcc at firstfloor dot 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-83376-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: 2017-12/txt/msg01228.txt.bz2
Content-length: 1471

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

            Bug ID: 83376
           Summary: ICE in LTO streamer
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: andi-gcc at firstfloor dot org
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

Don't have a small test case right now, but will bisect

When building Linux kernel LTO with gcc 8 I currently get an ICE. Doesn't
happen on 7 and I think it's also recent on 8.

In this case data_in->current_decl_data is NULL while reading a reference.

0xa58fe7 crash_signal
        ../../gcc/gcc/toplev.c:325
0x957a39 lto_file_decl_data_get_var_decl
        ../../gcc/gcc/lto-streamer.h:1210
0x957a39 lto_input_tree_ref(lto_input_block*, data_in*, function*, LTO_tags)
        ../../gcc/gcc/lto-streamer-in.c:366
0x957c1d lto_input_tree_1(lto_input_block*, data_in*, LTO_tags, unsigned int)
        ../../gcc/gcc/lto-streamer-in.c:1475
0x6bdc8c lto_read_decls
        ../../gcc/gcc/lto/lto.c:1791
0x6bdc8c lto_file_finalize
        ../../gcc/gcc/lto/lto.c:2055
0x6bdc8c lto_create_files_from_ids
        ../../gcc/gcc/lto/lto.c:2065
0x6bdc8c lto_file_read
        ../../gcc/gcc/lto/lto.c:2106
0x6bdc8c read_cgraph_and_symbols
        ../../gcc/gcc/lto/lto.c:2818
0x6bfdb1 lto_main()
        ../../gcc/gcc/lto/lto.c:3323
>From gcc-bugs-return-584881-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:46:46 2017
Return-Path: <gcc-bugs-return-584881-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14899 invoked by alias); 11 Dec 2017 16:46: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 14876 invoked by uid 48); 11 Dec 2017 16:46:42 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/83372] Compiler segfaults
Date: Mon, 11 Dec 2017 16:46: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: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trippels 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: bug_status everconfirmed
Message-ID: <bug-83372-4-kV8o7RjZTe@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83372-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83372-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: 2017-12/txt/msg01230.txt.bz2
Content-length: 471

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

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

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

--- Comment #3 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Thanks. I cannot reproduce the issue.
>From gcc-bugs-return-584882-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:49:58 2017
Return-Path: <gcc-bugs-return-584882-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22394 invoked by alias); 11 Dec 2017 16:49: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 22351 invoked by uid 48); 11 Dec 2017 16:49:53 -0000
From: "matthew at wil dot cx" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83377] New: Missed optimization (x86): Bit operations should be converted to arithmetic
Date: Mon, 11 Dec 2017 16:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: matthew at wil dot cx
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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-83377-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: 2017-12/txt/msg01231.txt.bz2
Content-length: 2444

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

            Bug ID: 83377
           Summary: Missed optimization (x86): Bit operations should be
                    converted to arithmetic
           Product: gcc
           Version: 7.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: matthew at wil dot cx
  Target Milestone: ---

GCC fails to optimise

if (x & 2) y = (x &~ 2)

into

if (x & 2) y = (x - 2)

in cases where that would be advantageous.

Here's one example, which I'm sure will upset the C pedants, but is relatively
common in codebases which use typed pointers based on the lower bits.

int a(void *);
struct s { struct s *s; };
int b(void *x) {
        void *p = x;
        if ((unsigned long)x & 2)
                p = ((struct s *)((unsigned long)x & ~2UL))->s;
        return a(p);
}
int c(void *x) {
        void *p = x;
        if ((unsigned long)x & 2)
                p = ((struct s *)((unsigned long)x - 2))->s;
        return a(p);
}

On x86, the difference between the assembly output is clear; function c is
smaller than function b:

0000000000000000 <b>:
   0:   40 f6 c7 02             test   $0x2,%dil
   4:   74 07                   je     d <b+0xd>
   6:   48 83 e7 fd             and    $0xfffffffffffffffd,%rdi
   a:   48 8b 3f                mov    (%rdi),%rdi
   d:   e9 00 00 00 00          jmpq   12 <b+0x12>
  12:   0f 1f 40 00             nopl   0x0(%rax)
  16:   66 2e 0f 1f 84 00 00    nopw   %cs:0x0(%rax,%rax,1)
  1d:   00 00 00 

0000000000000020 <c>:
  20:   40 f6 c7 02             test   $0x2,%dil
  24:   74 04                   je     2a <c+0xa>
  26:   48 8b 7f fe             mov    -0x2(%rdi),%rdi
  2a:   e9 00 00 00 00          jmpq   2f <c+0xf>

This is true with both -O3 and -O2.  I have other functions where the savings
are greater (two insns and seven bytes), but the root cause is the same; a
failure to optimise an AND into a SUB (which can then be fused with a load)

I'm filing this one under tree-optimisation rather than RTL, because I think
it's a common feature in CPUs to have load (reg + offset), and relatively
uncommon (in fact I don't know of one) to have load (reg & mask).  I'm sure
some CPUs don't even have (reg + offset) addressing modes, but they wouldn't be
harmed by such an optimisation.
>From gcc-bugs-return-584883-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:52:28 2017
Return-Path: <gcc-bugs-return-584883-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36001 invoked by alias); 11 Dec 2017 16:52: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 35961 invoked by uid 48); 11 Dec 2017 16:52:23 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/83369] Missing diagnostics during inlining
Date: Mon, 11 Dec 2017 16:52: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: 8.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords
Message-ID: <bug-83369-4-ryEuYLqvRQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83369-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83369-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: 2017-12/txt/msg01232.txt.bz2
Content-length: 422

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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Patch: https://gcc.gnu.org/ml/gcc-patches/2017-12/msg00629.html
>From gcc-bugs-return-584884-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:57:44 2017
Return-Path: <gcc-bugs-return-584884-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39777 invoked by alias); 11 Dec 2017 16:57:44 -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 39684 invoked by uid 48); 11 Dec 2017 16:57:38 -0000
From: "andrey.y.guskov at intel dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/83338] [8 Regression] SPEC CPU2017 510.parest_r ICE
Date: Mon, 11 Dec 2017 16:57: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: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: andrey.y.guskov at intel 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-83338-4-skY8bJaj6E@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83338-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83338-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: 2017-12/txt/msg01233.txt.bz2
Content-length: 774

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

--- Comment #12 from Andrey Guskov <andrey.y.guskov at intel dot com> ---
Well, that was faster than I expected.


Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=20171211/libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: source/configure --prefix=20171211 --with-system-zlib
--with-demangler-in-ld --with-fpmath=sse --with-pkgversion=Revision=250112
--enable-shared --enable-host-shared --enable-clocale=gnu
--enable-cloog-backend=isl --enable-languages=c,c++,fortran,jit,lto
--with-arch=haswell --with-cpu=haswell
Thread model: posix
gcc version 8.0.0 20171211 (experimental) (Revision=250112)


510 - passed
436 - passed
447 - passed
>From gcc-bugs-return-584885-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 16:59:59 2017
Return-Path: <gcc-bugs-return-584885-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45356 invoked by alias); 11 Dec 2017 16:59:59 -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 45285 invoked by uid 48); 11 Dec 2017 16:59:55 -0000
From: "andrey.y.guskov at intel dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/83338] [8 Regression] SPEC CPU2017 510.parest_r ICE
Date: Mon, 11 Dec 2017 16:59: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: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: andrey.y.guskov at intel 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-83338-4-CyAkTfnFyj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83338-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83338-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: 2017-12/txt/msg01234.txt.bz2
Content-length: 172

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

--- Comment #13 from Andrey Guskov <andrey.y.guskov at intel dot com> ---
The revision was wrong, it`s today`s build.
>From gcc-bugs-return-584886-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 17:06:58 2017
Return-Path: <gcc-bugs-return-584886-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92853 invoked by alias); 11 Dec 2017 17:06:57 -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 92572 invoked by uid 48); 11 Dec 2017 17:06:54 -0000
From: "andrey.y.guskov at intel dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/83378] New: [8 regression] gcc.dg/guality/pr54970.c xpass
Date: Mon, 11 Dec 2017 17:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: andrey.y.guskov at intel dot com
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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-83378-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: 2017-12/txt/msg01235.txt.bz2
Content-length: 826

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

            Bug ID: 83378
           Summary: [8 regression] gcc.dg/guality/pr54970.c xpass
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: andrey.y.guskov at intel dot com
  Target Milestone: ---

r255510 triggers this:

spawn gdb -nx -nw -quiet -batch -x pr54970.gdb ./pr54970.exe
XPASS: gcc.dg/guality/pr54970.c   -O0  line 31 a[0] == 4

Option set:
-with-system-zlib --with-demangler-in-ld --with-fpmath=sse --enable-shared
--enable-host-shared --enable-clocale=gnu --enable-cloog-backend=isl
--enable-languages=c,c++,fortran,jit,lto -with-arch=haswell --with-cpu=haswell
>From gcc-bugs-return-584887-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 17:08:59 2017
Return-Path: <gcc-bugs-return-584887-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103750 invoked by alias); 11 Dec 2017 17:08:59 -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 103592 invoked by uid 48); 11 Dec 2017 17:08:55 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/29775] redundant movzbl
Date: Mon, 11 Dec 2017 17:08: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: 4.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
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 cc resolution
Message-ID: <bug-29775-4-9s1YuygT6s@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-29775-4@http.gcc.gnu.org/bugzilla/>
References: <bug-29775-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: 2017-12/txt/msg01236.txt.bz2
Content-length: 603

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

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |law at redhat dot com
         Resolution|---                         |FIXED

--- Comment #3 from Jeffrey A. Law <law at redhat dot com> ---
No redundant extension on the trunk.  Given the age of this BZ I did not try to
track it down to a particular change.
>From gcc-bugs-return-584889-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 17:14:08 2017
Return-Path: <gcc-bugs-return-584889-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50406 invoked by alias); 11 Dec 2017 17:14: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 48075 invoked by uid 48); 11 Dec 2017 17:14:03 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/31914] FRE does not do const or copy propagation while it could
Date: Mon, 11 Dec 2017 17:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.3.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WONTFIX
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 resolution
Message-ID: <bug-31914-4-q193YNv7dS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-31914-4@http.gcc.gnu.org/bugzilla/>
References: <bug-31914-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: 2017-12/txt/msg01238.txt.bz2
Content-length: 473

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31914
Bug 31914 depends on bug 30997, which changed state.

Bug 30997 Summary: FRE does not simplify comparisons in COND_EXPRs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30997

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-584888-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 17:14:08 2017
Return-Path: <gcc-bugs-return-584888-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50220 invoked by alias); 11 Dec 2017 17:14:07 -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 47833 invoked by uid 48); 11 Dec 2017 17:14:03 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/30997] FRE does not simplify comparisons in COND_EXPRs
Date: Mon, 11 Dec 2017 17:14: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.3.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
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 cc resolution
Message-ID: <bug-30997-4-WI57u4t4Sg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-30997-4@http.gcc.gnu.org/bugzilla/>
References: <bug-30997-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: 2017-12/txt/msg01237.txt.bz2
Content-length: 596

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

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |law at redhat dot com
         Resolution|---                         |FIXED

--- Comment #5 from Jeffrey A. Law <law at redhat dot com> ---
Fixed.  We generate a single comparison rather than two.

Not sure when.  Given the age, I didn't try to bisect.
>From gcc-bugs-return-584890-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 17:18:45 2017
Return-Path: <gcc-bugs-return-584890-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65129 invoked by alias); 11 Dec 2017 17:18:45 -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 65079 invoked by uid 48); 11 Dec 2017 17:18:41 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/33349] Redundant zero-extension of registers
Date: Mon, 11 Dec 2017 17:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
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 cc resolution
Message-ID: <bug-33349-4-rbcwvzIwIY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-33349-4@http.gcc.gnu.org/bugzilla/>
References: <bug-33349-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: 2017-12/txt/msg01239.txt.bz2
Content-length: 577

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

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |law at redhat dot com
         Resolution|---                         |FIXED

--- Comment #3 from Jeffrey A. Law <law at redhat dot com> ---
Fixed on the trunk.  Not sure when and given the age of the BZ I didn't bisect
to find out.
>From gcc-bugs-return-584892-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 17:32:51 2017
Return-Path: <gcc-bugs-return-584892-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27955 invoked by alias); 11 Dec 2017 17:32:51 -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 27918 invoked by uid 48); 11 Dec 2017 17:32:47 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/83379] New: Intermittent failure of min/maxval_char*.f90 test cases
Date: Mon, 11 Dec 2017 17:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-83379-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: 2017-12/txt/msg01241.txt.bz2
Content-length: 618

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

            Bug ID: 83379
           Summary: Intermittent failure of min/maxval_char*.f90 test
                    cases
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tkoenig at gcc dot gnu.org
  Target Milestone: ---

The test cases in question sometimes fail, see

https://gcc.gnu.org/ml/fortran/2017-12/msg00050.html and
https://gcc.gnu.org/ml/fortran/2017-12/msg00019.html
>From gcc-bugs-return-584891-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 17:32:05 2017
Return-Path: <gcc-bugs-return-584891-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27022 invoked by alias); 11 Dec 2017 17:32:05 -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 26964 invoked by uid 48); 11 Dec 2017 17:32:00 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/44474] GCC inserts redundant "test" instruction due to incorrect clobber
Date: Mon, 11 Dec 2017 17:32: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: 4.6.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
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 cc resolution
Message-ID: <bug-44474-4-cgXMpvvPDr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-44474-4@http.gcc.gnu.org/bugzilla/>
References: <bug-44474-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: 2017-12/txt/msg01240.txt.bz2
Content-length: 645

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

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |law at redhat dot com
         Resolution|---                         |FIXED

--- Comment #4 from Jeffrey A. Law <law at redhat dot com> ---
Compare-elimination does the right thing and eliminates the redundant test on
the trunk.  Given the age of the BZ I didn't track it down any further than
that.
>From gcc-bugs-return-584893-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 17:33:23 2017
Return-Path: <gcc-bugs-return-584893-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34899 invoked by alias); 11 Dec 2017 17:33:23 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 34424 invoked by uid 48); 11 Dec 2017 17:33:19 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/83379] [8 Regression] Intermittent failure of min/maxval_char*.f90 test cases
Date: Mon, 11 Dec 2017 17:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to target_milestone short_desc everconfirmed
Message-ID: <bug-83379-4-5yVGSR1BUy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83379-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83379-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: 2017-12/txt/msg01242.txt.bz2
Content-length: 813

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

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-12-11
           Assignee|unassigned at gcc dot gnu.org      |tkoenig at gcc dot gnu.org
   Target Milestone|---                         |8.0
            Summary|Intermittent failure of     |[8 Regression] Intermittent
                   |min/maxval_char*.f90 test   |failure of
                   |cases                       |min/maxval_char*.f90 test
                   |                            |cases
     Ever confirmed|0                           |1
>From gcc-bugs-return-584894-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 17:39:46 2017
Return-Path: <gcc-bugs-return-584894-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43718 invoked by alias); 11 Dec 2017 17:39: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 43677 invoked by uid 55); 11 Dec 2017 17:39:41 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/45689] [F03] Missing transformational intrinsic in the trans_func_f2003 list
Date: Mon, 11 Dec 2017 17:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-45689-4-awU8u838cn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-45689-4@http.gcc.gnu.org/bugzilla/>
References: <bug-45689-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: 2017-12/txt/msg01243.txt.bz2
Content-length: 1166

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

--- Comment #14 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Author: tkoenig
Date: Mon Dec 11 17:39:07 2017
New Revision: 255542

URL: https://gcc.gnu.org/viewcvs?rev=255542&root=gcc&view=rev
Log:
2017-12-11  Thomas Koenig  <tkoenig@gcc.gnu.org>

        PR fortran/45689
        * simplify.c (min_max_choose): Add prototype.
        (gfc_count): Format correctly.
        (simplify_transformation): Pass array argument to init_result_expr.
        (gfc_simplify_minval_maxval): Remove.
        (gfc_min): New function.
        (gfc_simplify_minval): Call simplify_transformation.
        (gfc_max): New function.
        (gfc_simplify_maxval): Call simplify_transformation.

2017-12-11  Thomas Koenig  <tkoenig@gcc.gnu.org>

        PR fortran/45689
        * gfortran.dg/minval_parameter_1.f90: New test.
        * gfortran.dg/maxval_parameter_1.f90: New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/maxval_parameter_1.f90
    trunk/gcc/testsuite/gfortran.dg/minval_parameter_1.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/simplify.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-584895-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 17:40:55 2017
Return-Path: <gcc-bugs-return-584895-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44906 invoked by alias); 11 Dec 2017 17:40:55 -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 44845 invoked by uid 48); 11 Dec 2017 17:40:50 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/82844] [8 Regression] Many ada tests time out on x32
Date: Mon, 11 Dec 2017 17:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority cc
Message-ID: <bug-82844-4-aYlEutRjyX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82844-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82844-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: 2017-12/txt/msg01244.txt.bz2
Content-length: 363

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
                 CC|                            |jakub at gcc dot gnu.org
>From gcc-bugs-return-584896-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 17:41:28 2017
Return-Path: <gcc-bugs-return-584896-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45778 invoked by alias); 11 Dec 2017 17:41:28 -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 45715 invoked by uid 48); 11 Dec 2017 17:41:24 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/53110] GCC-4.7 generates stupid x86_64 asm
Date: Mon, 11 Dec 2017 17:41: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: 4.7.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
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 cc resolution
Message-ID: <bug-53110-4-7gNSJoxuWR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53110-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53110-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: 2017-12/txt/msg01245.txt.bz2
Content-length: 605

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

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |law at redhat dot com
         Resolution|---                         |FIXED

--- Comment #14 from Jeffrey A. Law <law at redhat dot com> ---
The trunk no longer generates masking with andl for this testcase.  I didn't
try to track it down any further than that.
>From gcc-bugs-return-584897-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 17:43:57 2017
Return-Path: <gcc-bugs-return-584897-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47819 invoked by alias); 11 Dec 2017 17:43:57 -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 47756 invoked by uid 48); 11 Dec 2017 17:43:53 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/53347] Duplicated redundant condition in compare-elim.c
Date: Mon, 11 Dec 2017 17:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: trivial
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
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 cc resolution
Message-ID: <bug-53347-4-4lMAsRUVYN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53347-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53347-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: 2017-12/txt/msg01246.txt.bz2
Content-length: 545

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

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |law at redhat dot com
         Resolution|---                         |FIXED

--- Comment #2 from Jeffrey A. Law <law at redhat dot com> ---
Eric fixed this as part of the compare-elim revamp last year.
>From gcc-bugs-return-584898-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 17:44:41 2017
Return-Path: <gcc-bugs-return-584898-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48816 invoked by alias); 11 Dec 2017 17:44:41 -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 48730 invoked by uid 48); 11 Dec 2017 17:44:38 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/82849] [8 Regression] ICE on valid code since r254379
Date: Mon, 11 Dec 2017 17:44: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: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82849-4-O5NnCvkoKI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82849-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82849-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: 2017-12/txt/msg01247.txt.bz2
Content-length: 489

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

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

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Honza, what happened to this patch?  My understanding is that Jeff approved it,
but it hasn't been committed.
>From gcc-bugs-return-584899-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 17:46:41 2017
Return-Path: <gcc-bugs-return-584899-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61684 invoked by alias); 11 Dec 2017 17:46:41 -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 61492 invoked by uid 48); 11 Dec 2017 17:46:37 -0000
From: "pawel_sikora at zoho dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/83345] c++1z produces an infinite recursion (c++1y works fine).
Date: Mon, 11 Dec 2017 17:46: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: 7.2.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pawel_sikora at zoho dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
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-83345-4-4ZGLVooD48@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83345-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83345-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: 2017-12/txt/msg01248.txt.bz2
Content-length: 598

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

--- Comment #2 from Pawel Sikora <pawel_sikora at zoho dot com> ---
(In reply to Jonathan Wakely from comment #1)
> I think that's the expected behaviour in C++17. The return statement in the
> conversion operator no longer constructs an object in C++17, it calls the
> conversion operator again.
> 
> This will fix it:
> 
>         operator ref_proxy_t( void )
>         {
>             return ref_proxy_t( static_cast<ICondition&>(*this) );
>         }

thanks for clarification. is there any list of such breaking changes for c++17?
>From gcc-bugs-return-584900-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 17:53:24 2017
Return-Path: <gcc-bugs-return-584900-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93864 invoked by alias); 11 Dec 2017 17:53:24 -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 93809 invoked by uid 48); 11 Dec 2017 17:53:21 -0000
From: "alan at octopull dot co.uk" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/83372] Compiler segfaults
Date: Mon, 11 Dec 2017 17:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: alan at octopull dot co.uk
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created
Message-ID: <bug-83372-4-KM12EBrXl1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83372-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83372-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: 2017-12/txt/msg01249.txt.bz2
Content-length: 635

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

Alan Griffiths <alan at octopull dot co.uk> changed:

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

--- Comment #4 from Alan Griffiths <alan at octopull dot co.uk> ---
Created attachment 42843
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42843&action=edit
Preprocessed source as dumped by a failing build

I finally found a way to reproduce (using mock). Updated source from that.
>From gcc-bugs-return-584901-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 17:58:15 2017
Return-Path: <gcc-bugs-return-584901-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114083 invoked by alias); 11 Dec 2017 17:58:14 -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 114049 invoked by uid 55); 11 Dec 2017 17:58:11 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/83379] [8 Regression] Intermittent failure of min/maxval_char*.f90 test cases
Date: Mon, 11 Dec 2017 17:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-83379-4-4YB5bHwl9I@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83379-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83379-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: 2017-12/txt/msg01250.txt.bz2
Content-length: 838

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

--- Comment #1 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Author: tkoenig
Date: Mon Dec 11 17:57:38 2017
New Revision: 255543

URL: https://gcc.gnu.org/viewcvs?rev=255543&root=gcc&view=rev
Log:
2017-12-11  Thomas Koenig  <tkoenig@gcc.gnu.org>

        PR fortran/83379
        * gfortran.dg/minval_char_1.f90: Correct logic for mask
        calculation.
        * gfortran.dg/minval_char_2.f90: Likewise.
        * gfortran.dg/maxval_char_1.f90: Likewise.
        * gfortran.dg/maxval_char_2.f90: Likewise.


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/maxval_char_1.f90
    trunk/gcc/testsuite/gfortran.dg/maxval_char_2.f90
    trunk/gcc/testsuite/gfortran.dg/minval_char_1.f90
    trunk/gcc/testsuite/gfortran.dg/minval_char_2.f90
>From gcc-bugs-return-584903-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 17:58:53 2017
Return-Path: <gcc-bugs-return-584903-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115236 invoked by alias); 11 Dec 2017 17:58:53 -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 115153 invoked by uid 48); 11 Dec 2017 17:58:49 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/83379] [8 Regression] Intermittent failure of min/maxval_char*.f90 test cases
Date: Mon, 11 Dec 2017 17:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-83379-4-npZuc8SJuz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83379-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83379-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: 2017-12/txt/msg01252.txt.bz2
Content-length: 457

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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hjl.tools at gmail dot com

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
*** Bug 83366 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-584902-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 17:58:53 2017
Return-Path: <gcc-bugs-return-584902-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115224 invoked by alias); 11 Dec 2017 17:58:53 -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 115133 invoked by uid 48); 11 Dec 2017 17:58:49 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/83366] gfortran.dg/minval_char_2.f90 and gfortran.dg/maxval_char_2.f90 fail at random
Date: Mon, 11 Dec 2017 17:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
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 resolution
Message-ID: <bug-83366-4-1H9umEG2HX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83366-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83366-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: 2017-12/txt/msg01251.txt.bz2
Content-length: 535

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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

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

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
WORKSFORME on x86_64-apple-darwin17.

*** This bug has been marked as a duplicate of bug 83379 ***
>From gcc-bugs-return-584904-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 18:02:01 2017
Return-Path: <gcc-bugs-return-584904-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125465 invoked by alias); 11 Dec 2017 18:02:01 -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 125368 invoked by uid 48); 11 Dec 2017 18:01:57 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/66726] missed optimization, factor conversion out of COND_EXPR
Date: Mon, 11 Dec 2017 18:02: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: unknown
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: kugan at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-66726-4-NBbJcucywO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66726-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66726-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: 2017-12/txt/msg01253.txt.bz2
Content-length: 436

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

Jeffrey A. Law <law at redhat dot com> changed:

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

--- Comment #20 from Jeffrey A. Law <law at redhat dot com> ---
Fixed by Kugan's work.
>From gcc-bugs-return-584905-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 18:08:42 2017
Return-Path: <gcc-bugs-return-584905-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11141 invoked by alias); 11 Dec 2017 18:08:42 -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 11084 invoked by uid 48); 11 Dec 2017 18:08:38 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/67751] redundant zero extension
Date: Mon, 11 Dec 2017 18:08: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.2.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
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 cc resolution
Message-ID: <bug-67751-4-GgJNiyeQoO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67751-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67751-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: 2017-12/txt/msg01254.txt.bz2
Content-length: 546

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

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |law at redhat dot com
         Resolution|---                         |FIXED

--- Comment #1 from Jeffrey A. Law <law at redhat dot com> ---
The combiner now removes the redundant extension on the trunk.
>From gcc-bugs-return-584906-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 18:40:20 2017
Return-Path: <gcc-bugs-return-584906-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85309 invoked by alias); 11 Dec 2017 18:40: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 85232 invoked by uid 48); 11 Dec 2017 18:40:15 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/83239] False positive from -Wstringop-overflow on simple std::vector code
Date: Mon, 11 Dec 2017 18:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: diagnostic, missed-optimization, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: law at redhat dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-83239-4-sj57cN5Ped@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83239-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83239-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: 2017-12/txt/msg01255.txt.bz2
Content-length: 532

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

--- Comment #14 from Jeffrey A. Law <law at redhat dot com> ---
You *really* don't want to do this with a match.pd pattern.  Recovering the
arith-with-overflow optimizations is virtually impossible in the general case.

All that really needs to be done here is generalize existing code that
currently handles overflow tests with +-1 to handle them more generically.  In
fact doing so actually removes code since we had separate cases for +1 and -1
generating an overflow.
>From gcc-bugs-return-584907-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 18:55:32 2017
Return-Path: <gcc-bugs-return-584907-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5240 invoked by alias); 11 Dec 2017 18:55:32 -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 5155 invoked by uid 55); 11 Dec 2017 18:55:27 -0000
From: "meissner at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/81959] PowerPC __float128 optimization fails with integer PRE_INC addresses
Date: Mon, 11 Dec 2017 18:55: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: meissner at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: meissner at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81959-4-Hz3ohWvtcy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81959-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81959-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: 2017-12/txt/msg01256.txt.bz2
Content-length: 1302

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

--- Comment #3 from Michael Meissner <meissner at gcc dot gnu.org> ---
Author: meissner
Date: Mon Dec 11 18:54:55 2017
New Revision: 255545

URL: https://gcc.gnu.org/viewcvs?rev=255545&root=gcc&view=rev
Log:
[gcc]
2017-12-11  Michael Meissner  <meissner@linux.vnet.ibm.com>

        Back port from trunk
        2017-12-01  Michael Meissner  <meissner@linux.vnet.ibm.com>

        PR target/81959
        * config/rs6000/rs6000.c (rs6000_address_for_fpconvert): Check for
        whether we can allocate pseudos before trying to fix an address.
        * config/rs6000/rs6000.md (float_<mode>si2_hw): Make sure the
        memory address is indexed or indirect.
        (floatuns_<mode>si2_hw2): Likewise.

[gcct/testsuite]
2017-12-11  Michael Meissner  <meissner@linux.vnet.ibm.com>

        Back port from trunk
        2017-12-01  Michael Meissner  <meissner@linux.vnet.ibm.com>

        PR target/81959
        * gcc.target/powerpc/pr81959.c: New test.


Added:
    branches/gcc-7-branch/gcc/testsuite/gcc.target/powerpc/pr81959.c
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/config/rs6000/rs6000.c
    branches/gcc-7-branch/gcc/config/rs6000/rs6000.md
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-584908-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 18:59:32 2017
Return-Path: <gcc-bugs-return-584908-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18601 invoked by alias); 11 Dec 2017 18:59:32 -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 18560 invoked by uid 48); 11 Dec 2017 18:59:28 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/83379] [8 Regression] Intermittent failure of min/maxval_char*.f90 test cases
Date: Mon, 11 Dec 2017 18:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority cc
Message-ID: <bug-83379-4-TaGhzuXtSK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83379-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83379-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: 2017-12/txt/msg01257.txt.bz2
Content-length: 358

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

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
                 CC|                            |law at redhat dot com
>From gcc-bugs-return-584909-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 19:04:51 2017
Return-Path: <gcc-bugs-return-584909-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79531 invoked by alias); 11 Dec 2017 19:04:51 -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 79489 invoked by uid 48); 11 Dec 2017 19:04:46 -0000
From: "alan at octopull dot co.uk" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/83372] Compiler segfaults
Date: Mon, 11 Dec 2017 19:04: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: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: alan at octopull dot co.uk
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-83372-4-RODKIvMAQ2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83372-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83372-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: 2017-12/txt/msg01258.txt.bz2
Content-length: 948

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

--- Comment #5 from Alan Griffiths <alan at octopull dot co.uk> ---
It isn't clear why, but the problem seems to be provoked by this function:

int mf::WaylandConnector::client_socket_fd() const
{
    enum { server, client, size };
    int socket_fd[size];

    if (socketpair(AF_LOCAL, SOCK_STREAM, 0, socket_fd))
    {
        BOOST_THROW_EXCEPTION((std::system_error{
            errno,
            std::system_category(),
            "Could not create socket pair"}));
    }

    if (!wl_client_create(display.get(), socket_fd[server]))
    {
        BOOST_THROW_EXCEPTION((std::system_error{
            errno,
            std::system_category(),
            "Failed to add server end of socketpair to Wayland display"}));
    }

    return socket_fd[client];
}

Reworking to have just one throw site avoids the segfault. (But I've not yet
found a simpler example exhibiting the problem.)
>From gcc-bugs-return-584910-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 19:13:14 2017
Return-Path: <gcc-bugs-return-584910-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99100 invoked by alias); 11 Dec 2017 19:13:14 -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 99057 invoked by uid 48); 11 Dec 2017 19:13:10 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/83372] Compiler segfaults
Date: Mon, 11 Dec 2017 19:13: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: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trippels 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-83372-4-eZYroWX7ei@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83372-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83372-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: 2017-12/txt/msg01259.txt.bz2
Content-length: 242

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

--- Comment #6 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Still cannot reproduce. Please post the full gcc invocation. Add -v to it and
please post the full output, too.
>From gcc-bugs-return-584911-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 19:45:43 2017
Return-Path: <gcc-bugs-return-584911-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3504 invoked by alias); 11 Dec 2017 19:45: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 3379 invoked by uid 48); 11 Dec 2017 19:45:33 -0000
From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83312] [8 regression] bogus -Warray-bounds warning
Date: Mon, 11 Dec 2017 19:45: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: 8.0
X-Bugzilla-Keywords: diagnostic, missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dmalcolm at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: law at redhat dot com
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-83312-4-wuEabMfRlz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83312-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83312-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: 2017-12/txt/msg01260.txt.bz2
Content-length: 1670

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

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

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

--- Comment #6 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
FWIW this seems to have some of the issues with inlining vs diagnostics as PR
tree-optimization/83336.

In particular, the diagnostics lacks the "%K" in its format string (I take "%K"
to be something of a "make this work please" anti-pattern; diagnostics
shouldn't need to supply it IMHO).

Hacking up default_tree_diagnostic_starter to inject a %K, and using my other
local fixes for PR tree-optimization/83336, I get this additional contextual
information:

In function ‘ptlrpcd_ctl_init.part.0’,
    inlined from ‘ptlrpcd_ctl_init’,
    inlined from ‘ptlrpcd_init’ at ../../src/pr83312.c:20:7,
       ptlrpcd_ctl_init(&ptlrpcd_init_pd->pd_threads[j], j);
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    inlined from ‘ptlrpcd_addref’ at ../../src/pr83312.c:26:5:
     ptlrpcd_init(ptlrpcd_init_groupsize);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/pr83312.c:10:26: warning: array subscript -1 is below array bounds of
‘struct ptlrpcd_ctl[6]’ [-Warray-bounds]
     __builtin_snprintf(pc->pc_name, sizeof(pc->pc_name), "ptlrpcd_rcv");
                        ~~^~~~~~~~~


which looks sane (well, the contextual information does; the warning itself is
still bogus).
>From gcc-bugs-return-584912-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 19:51:24 2017
Return-Path: <gcc-bugs-return-584912-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 51125 invoked by alias); 11 Dec 2017 19:51:24 -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 51030 invoked by uid 48); 11 Dec 2017 19:51:18 -0000
From: "alan at octopull dot co.uk" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/83372] Compiler segfaults
Date: Mon, 11 Dec 2017 19:51: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: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: alan at octopull dot co.uk
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-83372-4-zr8Fs1hbp5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83372-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83372-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: 2017-12/txt/msg01261.txt.bz2
Content-length: 14552

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

--- Comment #7 from Alan Griffiths <alan at octopull dot co.uk> ---
cd
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/x86_64-redhat-linux-gnu/src/server/frontend/wayland
&& /usr/bin/c++  -DLOG_NDEBUG=1 -DMESA_EGL_NO_X11_HEADERS
-DMIR_DRMMODEADDFB_HAS_CONST_SIGNATURE
-DMIR_LOG_COMPONENT_FALLBACK=\"mirserver\"
-DMIR_SERVER_EGL_OPENGL_API=EGL_OPENGL_ES_API
-DMIR_SERVER_EGL_OPENGL_BIT=EGL_OPENGL_ES2_BIT
-DMIR_SERVER_GLEXT_H="<GLES2/gl2ext.h>" -DMIR_SERVER_GL_H="<GLES2/gl2.h>"
-DMIR_SERVER_GRAPHICS_PLATFORM_VERSION=\"MIR_GRAPHICS_PLATFORM_0.27\"
-DMIR_SERVER_INPUT_PLATFORM_VERSION=\"MIR_INPUT_PLATFORM_0.27\"
-DMIR_SERVER_PLATFORM_PATH=\"/usr/lib64/mir/server-platform\"
-DMIR_VERSION=\"0.29.0\" -DMIR_VERSION_MAJOR=0 -DMIR_VERSION_MICRO=0
-DMIR_VERSION_MINOR=29 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/core
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/common
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/cookie
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/include/common
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/x86_64-redhat-linux-gnu/src/capnproto
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/x86_64-redhat-linux-gnu/src/protobuf
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/platform
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/client
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/server
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/renderer
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/renderers/gl
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/renderers/sw
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/include/platform
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/include/client
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/include/server
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/include/cookie
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -O2 -g -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -pthread -g
-std=c++14 -Werror -Wall -fno-strict-aliasing -pedantic -Wnon-virtual-dtor
-Wextra -fPIC -Wno-psabi -flto -ffat-lto-objects   -o
CMakeFiles/mirfrontend-wayland.dir/wayland_connector.cpp.o -c
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/server/frontend/wayland/wayland_connector.cpp
-v
Using built-in specs.
Reading specs from /usr/lib/rpm/redhat/redhat-hardened-cc1
COLLECT_GCC=/usr/bin/c++
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap
--enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared
--enable-threads=posix --enable-checking=release --enable-multilib
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions
--enable-gnu-unique-object --enable-linker-build-id
--with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin
--enable-initfini-array --with-isl --enable-libmpx
--enable-offload-targets=nvptx-none --without-cuda-driver
--enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686
--build=x86_64-redhat-linux
Thread model: posix
gcc version 7.2.1 20170915 (Red Hat 7.2.1-2) (GCC) 
COLLECT_GCC_OPTIONS='-D' 'LOG_NDEBUG=1' '-D' 'MESA_EGL_NO_X11_HEADERS' '-D'
'MIR_DRMMODEADDFB_HAS_CONST_SIGNATURE' '-D'
'MIR_LOG_COMPONENT_FALLBACK="mirserver"' '-D'
'MIR_SERVER_EGL_OPENGL_API=EGL_OPENGL_ES_API' '-D'
'MIR_SERVER_EGL_OPENGL_BIT=EGL_OPENGL_ES2_BIT' '-D'
'MIR_SERVER_GLEXT_H=<GLES2/gl2ext.h>' '-D' 'MIR_SERVER_GL_H=<GLES2/gl2.h>' '-D'
'MIR_SERVER_GRAPHICS_PLATFORM_VERSION="MIR_GRAPHICS_PLATFORM_0.27"' '-D'
'MIR_SERVER_INPUT_PLATFORM_VERSION="MIR_INPUT_PLATFORM_0.27"' '-D'
'MIR_SERVER_PLATFORM_PATH="/usr/lib64/mir/server-platform"' '-D'
'MIR_VERSION="0.29.0"' '-D' 'MIR_VERSION_MAJOR=0' '-D' 'MIR_VERSION_MICRO=0'
'-D' 'MIR_VERSION_MINOR=29' '-D' '_FILE_OFFSET_BITS=64' '-D' '_GNU_SOURCE' '-I'
'/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/core'
'-I'
'/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/common'
'-I'
'/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/cookie'
'-I'
'/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/include/common'
'-I'
'/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/x86_64-redhat-linux-gnu/src/capnproto'
'-I'
'/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/x86_64-redhat-linux-gnu/src/protobuf'
'-I'
'/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/platform'
'-I'
'/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/client'
'-I'
'/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/server'
'-I'
'/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/renderer'
'-I'
'/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/renderers/gl'
'-I'
'/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/renderers/sw'
'-I'
'/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/include/platform'
'-I'
'/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/include/client'
'-I'
'/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/include/server'
'-I'
'/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/include/cookie'
'-I' '/usr/include/glib-2.0' '-I' '/usr/lib64/glib-2.0/include' '-O2' '-g'
'-pipe' '-Werror=format-security' '-fexceptions' '-fstack-protector-strong'
'--param' 'ssp-buffer-size=4' '-grecord-gcc-switches'
'-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' '-m64' '-mtune=generic'
'-pthread' '-g' '-std=c++14' '-Werror' '-Wall' '-fno-strict-aliasing'
'-Wpedantic' '-Wnon-virtual-dtor' '-Wextra' '-fPIC' '-Wno-psabi' '-flto'
'-ffat-lto-objects' '-o'
'CMakeFiles/mirfrontend-wayland.dir/wayland_connector.cpp.o' '-c' '-v'
'-shared-libgcc' '-march=x86-64'
 /usr/libexec/gcc/x86_64-redhat-linux/7/cc1plus -quiet -v -I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/core
-I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/common
-I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/cookie
-I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/include/common
-I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/x86_64-redhat-linux-gnu/src/capnproto
-I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/x86_64-redhat-linux-gnu/src/protobuf
-I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/platform
-I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/client
-I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/server
-I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/renderer
-I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/renderers/gl
-I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/renderers/sw
-I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/include/platform
-I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/include/client
-I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/include/server
-I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/include/cookie
-I /usr/include/glib-2.0 -I /usr/lib64/glib-2.0/include -D_GNU_SOURCE
-D_REENTRANT -D LOG_NDEBUG=1 -D MESA_EGL_NO_X11_HEADERS -D
MIR_DRMMODEADDFB_HAS_CONST_SIGNATURE -D MIR_LOG_COMPONENT_FALLBACK="mirserver"
-D MIR_SERVER_EGL_OPENGL_API=EGL_OPENGL_ES_API -D
MIR_SERVER_EGL_OPENGL_BIT=EGL_OPENGL_ES2_BIT -D
MIR_SERVER_GLEXT_H=<GLES2/gl2ext.h> -D MIR_SERVER_GL_H=<GLES2/gl2.h> -D
MIR_SERVER_GRAPHICS_PLATFORM_VERSION="MIR_GRAPHICS_PLATFORM_0.27" -D
MIR_SERVER_INPUT_PLATFORM_VERSION="MIR_INPUT_PLATFORM_0.27" -D
MIR_SERVER_PLATFORM_PATH="/usr/lib64/mir/server-platform" -D
MIR_VERSION="0.29.0" -D MIR_VERSION_MAJOR=0 -D MIR_VERSION_MICRO=0 -D
MIR_VERSION_MINOR=29 -D _FILE_OFFSET_BITS=64 -D _GNU_SOURCE -D_FORTIFY_SOURCE=2
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/server/frontend/wayland/wayland_connector.cpp
-quiet -dumpbase wayland_connector.cpp -m64 -mtune=generic -march=x86-64
-auxbase-strip CMakeFiles/mirfrontend-wayland.dir/wayland_connector.cpp.o -g
-grecord-gcc-switches -g -O2 -Werror=format-security -Werror -Wall -Wpedantic
-Wnon-virtual-dtor -Wextra -Wno-psabi -std=c++14 -version -fexceptions
-fstack-protector-strong -fno-strict-aliasing -fPIC -flto -ffat-lto-objects
--param ssp-buffer-size=4 -o - |
 as -v -I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/core
-I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/common
-I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/cookie
-I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/include/common
-I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/x86_64-redhat-linux-gnu/src/capnproto
-I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/x86_64-redhat-linux-gnu/src/protobuf
-I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/platform
-I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/client
-I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/server
-I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/renderer
-I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/renderers/gl
-I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/renderers/sw
-I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/include/platform
-I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/include/client
-I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/include/server
-I
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/include/cookie
-I /usr/include/glib-2.0 -I /usr/lib64/glib-2.0/include --64 -o
CMakeFiles/mirfrontend-wayland.dir/wayland_connector.cpp.o
GNU assembler version 2.29 (x86_64-redhat-linux) using BFD version version
2.29-6.fc27
GNU C++14 (GCC) version 7.2.1 20170915 (Red Hat 7.2.1-2) (x86_64-redhat-linux)
        compiled by GNU C version 7.2.1 20170915 (Red Hat 7.2.1-2), GMP version
6.1.2, MPFR version 3.1.5, MPC version 1.0.2, isl version isl-0.16.1-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-redhat-linux/7/include-fixed"
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-redhat-linux/7/../../../../x86_64-redhat-linux/include"
ignoring nonexistent directory
"/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/renderers/sw"
#include "..." search starts here:
#include <...> search starts here:

/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/core

/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/common

/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/cookie

/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/include/common

/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/x86_64-redhat-linux-gnu/src/capnproto

/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/x86_64-redhat-linux-gnu/src/protobuf

/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/platform

/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/client

/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/server

/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/renderer

/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/renderers/gl

/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/include/platform

/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/include/client

/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/include/server

/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/include/cookie
 /usr/include/glib-2.0
 /usr/lib64/glib-2.0/include
 /usr/lib/gcc/x86_64-redhat-linux/7/../../../../include/c++/7

/usr/lib/gcc/x86_64-redhat-linux/7/../../../../include/c++/7/x86_64-redhat-linux
 /usr/lib/gcc/x86_64-redhat-linux/7/../../../../include/c++/7/backward
 /usr/lib/gcc/x86_64-redhat-linux/7/include
 /usr/local/include
 /usr/include
End of search list.
GNU C++14 (GCC) version 7.2.1 20170915 (Red Hat 7.2.1-2) (x86_64-redhat-linux)
        compiled by GNU C version 7.2.1 20170915 (Red Hat 7.2.1-2), GMP version
6.1.2, MPFR version 3.1.5, MPC version 1.0.2, isl version isl-0.16.1-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 57c1ae0a7973bbee7ebde84bda955365
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/server/frontend/wayland/wayland_connector.cpp:2275:1:
internal compiler error: Segmentation fault
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccpaNiAr.out file, please attach this to
your bugreport.
>From gcc-bugs-return-584914-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 20:06:50 2017
Return-Path: <gcc-bugs-return-584914-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76370 invoked by alias); 11 Dec 2017 20:06:50 -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 76312 invoked by uid 48); 11 Dec 2017 20:06:46 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/83372] Compiler segfaults
Date: Mon, 11 Dec 2017 20:06: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: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub 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-83372-4-O89FpLnJ7I@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83372-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83372-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: 2017-12/txt/msg01263.txt.bz2
Content-length: 146

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

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Can't reproduce it either.
>From gcc-bugs-return-584913-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 20:06:21 2017
Return-Path: <gcc-bugs-return-584913-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75469 invoked by alias); 11 Dec 2017 20:06:21 -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 75404 invoked by uid 48); 11 Dec 2017 20:06:17 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/83372] Compiler segfaults
Date: Mon, 11 Dec 2017 20:06: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: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trippels 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-83372-4-NSPBNdsyQg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83372-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83372-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: 2017-12/txt/msg01262.txt.bz2
Content-length: 236

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

--- Comment #8 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Thanks. However, I still cannot reproduce.
Perhaps someone who has access to Red Hat 7.2.1-2 has more luck.
>From gcc-bugs-return-584915-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 20:21:26 2017
Return-Path: <gcc-bugs-return-584915-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95612 invoked by alias); 11 Dec 2017 20:21: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 95539 invoked by uid 48); 11 Dec 2017 20:21:20 -0000
From: "alan at octopull dot co.uk" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/83372] Compiler segfaults
Date: Mon, 11 Dec 2017 20:21: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: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: alan at octopull dot co.uk
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-83372-4-3gsTX5mVJD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83372-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83372-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: 2017-12/txt/msg01264.txt.bz2
Content-length: 3559

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

--- Comment #10 from Alan Griffiths <alan at octopull dot co.uk> ---
It took me some time and effort to reproduce too. :(

Building in my normal development environments showed no problems. And I've yet
to reproduce on Ubuntu (although the builders we use fail building for 17.10).

The steps I took (on Fedora 27):

$ sudo dnf install mock
$ sudo usermod -a -G mock $USER
$ wget
https://copr-be.cloud.fedoraproject.org/results/ngompa/mir-prerel-fedora/fedora-27-x86_64/00685833-mir/mir-0.29~git20171208.1.5500595-0.fc27.1.src.rpm
$ mock -r fedora-27-x86_64 mir-0.29~git20171208.1.5500595-0.fc27.1.src.rpm
$ mock -r fedora-27-x86_64 --shell
# cd
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/x86_64-redhat-linux-gnu/src/server/frontend/wayland
&& /usr/bin/c++  -DLOG_NDEBUG=1 -DMESA_EGL_NO_X11_HEADERS
-DMIR_DRMMODEADDFB_HAS_CONST_SIGNATURE
-DMIR_LOG_COMPONENT_FALLBACK=\"mirserver\"
-DMIR_SERVER_EGL_OPENGL_API=EGL_OPENGL_ES_API
-DMIR_SERVER_EGL_OPENGL_BIT=EGL_OPENGL_ES2_BIT
-DMIR_SERVER_GLEXT_H="<GLES2/gl2ext.h>" -DMIR_SERVER_GL_H="<GLES2/gl2.h>"
-DMIR_SERVER_GRAPHICS_PLATFORM_VERSION=\"MIR_GRAPHICS_PLATFORM_0.27\"
-DMIR_SERVER_INPUT_PLATFORM_VERSION=\"MIR_INPUT_PLATFORM_0.27\"
-DMIR_SERVER_PLATFORM_PATH=\"/usr/lib64/mir/server-platform\"
-DMIR_VERSION=\"0.29.0\" -DMIR_VERSION_MAJOR=0 -DMIR_VERSION_MICRO=0
-DMIR_VERSION_MINOR=29 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/core
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/common
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/cookie
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/include/common
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/x86_64-redhat-linux-gnu/src/capnproto
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/x86_64-redhat-linux-gnu/src/protobuf
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/platform
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/client
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/server
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/renderer
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/renderers/gl
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/include/renderers/sw
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/include/platform
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/include/client
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/include/server
-I/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/include/cookie
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -O2 -g -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -pthread -g
-std=c++14 -Werror -Wall -fno-strict-aliasing -pedantic -Wnon-virtual-dtor
-Wextra -fPIC -Wno-psabi -flto -ffat-lto-objects   -o
CMakeFiles/mirfrontend-wayland.dir/wayland_connector.cpp.o -c
/builddir/build/BUILD/mir-5500595810c28c150a3bd9edf19b392c2aeab932/src/server/frontend/wayland/wayland_connector.cpp
>From gcc-bugs-return-584916-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 20:45:24 2017
Return-Path: <gcc-bugs-return-584916-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68578 invoked by alias); 11 Dec 2017 20:45:23 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 68401 invoked by uid 48); 11 Dec 2017 20:45:15 -0000
From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83336] Issues with displaying inlining chain for middle-end warnings
Date: Mon, 11 Dec 2017 20:45: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: 8.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dmalcolm 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-83336-4-WQtZCmJQvR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83336-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83336-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: 2017-12/txt/msg01265.txt.bz2
Content-length: 257

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

--- Comment #5 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Candidate patch: adding some automated test coverage for the existing code:
  https://gcc.gnu.org/ml/gcc-patches/2017-12/msg00646.html
>From gcc-bugs-return-584917-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 20:58:46 2017
Return-Path: <gcc-bugs-return-584917-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66949 invoked by alias); 11 Dec 2017 20:58:45 -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 66913 invoked by uid 89); 11 Dec 2017 20:58:45 -0000
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-27.6 required=5.0 testsºYES_00,FREEMAIL_FROM,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KAM_SHORT,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=Hx-languages-length:1791, H*f:sk:87e6539, H*i:sk:87e6539, nevertheless
X-HELO: smtp.tiscali.it
Received: from michael-notr.mail.tiscali.it (HELO smtp.tiscali.it) (213.205.33.216) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 11 Dec 2017 20:58:43 +0000
Received: from [192.168.1.70] ([93.35.63.102])	by michael.mail.tiscali.it with 	id kkyc1w00H2CMjqt01kydn5; Mon, 11 Dec 2017 20:58:40 +0000
x-auth-user: mpezz@tiscali.it
Subject: Re: [PATCH] Fix Bug 83237 - Values returned by std::poisson_distribution are not distributed correctly
To: Paolo Carlini <paolo.carlini@oracle.com>, gcc-bugs@gcc.gnu.org, gcc-patches@gcc.gnu.org, libstdc++@gcc.gnu.org
References: <996b2c2c-45e7-b434-e5d9-4441d2273829@tiscali.it> <87e65391-0306-dc82-a9c0-a70f87574e31@oracle.com>
From: Michele Pezzutti <mpezz@tiscali.it>
Message-ID: <d4c169b2-0d40-3548-a5d4-c9e5f7773903@tiscali.it>
Date: Mon, 11 Dec 2017 20:58:00 -0000
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.5.0
MIME-Version: 1.0
In-Reply-To: <87e65391-0306-dc82-a9c0-a70f87574e31@oracle.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-SW-Source: 2017-12/txt/msg01266.txt.bz2
Content-length: 1714

I apologize as I am unable to run the test suitein its full form.

Nevertheless, I locally tested the following patch for the test suite:

*26_numerics/random/poisson_distribution/operators/values.cc
     Add additional test to cover bin 'floor(mu) + 1'

by compiling locally values.cc and running it as main().


I had to increase N from default value N = 100000 to N = 4000000 to
trigger the fault.
I think that for smaller N, the deviation due to the bug is well within
the confidence
interval set in testDiscreteDist().


The test case below is successful with the proposed patch.


diff --git a/values.cc b/values.cc
index 0039b7d..e12e54f 100644
--- a/values.cc
+++ b/values.cc
@@ -42,6 +42,10 @@ void test01()
    std::poisson_distribution<> pd3(30.0);
    auto bpd3 = std::bind(pd3, eng);
    testDiscreteDist(bpd3, [](int n) { return poisson_pdf(n, 30.0); } );
+
+  std::poisson_distribution<> pd4(37.17);
+  auto bpd4 = std::bind(pd4, eng);
+  testDiscreteDist<100, 4000000>(bpd4, [](int n) { return
poisson_pdf(n, 37.17); } );
  }



On 12/11/2017 10:52 AM, Paolo Carlini wrote:
> Hi,
>
> On 10/12/2017 14:47, Michele Pezzutti wrote:
>> Hi.
>>
>> This patch intends to fix Bug 83237 - Values returned by
>> std::poisson_distribution are not distributed correctly.
>> See https://gcc.gnu.org/bugzilla/show_bug.cgi?idƒ237 for issue
>> description and tests.
> In any case, the fix should come with a testcase, which would also
> validate the analysis. For this discrete distribution should be pretty
> easy to add one, because all the infrastructure is already in place,
> essentially three lines added to
> 26_numerics/random/poisson_distribution/operators/values.cc.
>
> Paolo.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-12-11 10:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-83359-4@http.gcc.gnu.org/bugzilla/>
2017-12-11 10:41 ` [Bug tree-optimization/83359] [8 Regression] ICE in expand_LOOP_DIST_ALIAS, at internal-fn.c:2362 rguenther at suse dot de

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