public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/83351] New: Missed optimization in math expression: sin^2(a) + cos^2(a) == 1
@ 2017-12-10 13:48 zamazan4ik at tut dot by
2021-12-15 21:57 ` [Bug tree-optimization/83351] " pinskia at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: zamazan4ik at tut dot by @ 2017-12-10 13:48 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: 185710 bytes --]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83351
Bug ID: 83351
Summary: Missed optimization in math expression: sin^2(a) +
cos^2(a) == 1
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: zamazan4ik at tut dot by
Target Milestone: ---
gcc(trunk) with '--std=c++17 -O3 -march=native -ffast-math' flags for this
code:
#include <cmath>
double test(double a)
{
return cos(a) * cos(a) + sin(a) * sin(a);
}
generates this assembly:
test(double):
sub rsp, 24
mov rsi, rsp
lea rdi, [rsp+8]
call sincos
vmovsd xmm1, QWORD PTR [rsp+8]
vmovsd xmm0, QWORD PTR [rsp]
add rsp, 24
vmulsd xmm1, xmm1, xmm1
vfmadd132sd xmm0, xmm1, xmm0
ret
But there is formula: sin^2(a) + cos^2(a) == 1. And it can be compiled in
faster way.
>From gcc-bugs-return-584729-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Dec 10 13:56:04 2017
Return-Path: <gcc-bugs-return-584729-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15850 invoked by alias); 10 Dec 2017 13:56:04 -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 15815 invoked by uid 48); 10 Dec 2017 13:56:00 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83326] [8 Regression] SPEC CPU2017 648.exchange2_s ~6% performance regression with r255267 (reproducer attached)
Date: Sun, 10 Dec 2017 13:56: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: 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed
Message-ID: <bug-83326-4-pogy9hcn7U@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83326-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83326-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/msg01078.txt.bz2
Content-length: 583
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83326
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2017-12-10
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
I will investigate.
>From gcc-bugs-return-584730-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Dec 10 13:57:29 2017
Return-Path: <gcc-bugs-return-584730-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16936 invoked by alias); 10 Dec 2017 13:57: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 16895 invoked by uid 48); 10 Dec 2017 13:57:26 -0000
From: "rguenth 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: Sun, 10 Dec 2017 13:57: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: 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on target_milestone everconfirmed
Message-ID: <bug-83332-4-8dwyiq5QPF@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/msg01079.txt.bz2
Content-length: 640
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83332
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2017-12-10
Target Milestone|--- |8.0
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Possibly a similar reason as x86, vect_cond_mixed is set but you cannot do
V2DIV2DF mixed condition handling?
>From gcc-bugs-return-584731-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Dec 10 14:00:38 2017
Return-Path: <gcc-bugs-return-584731-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21679 invoked by alias); 10 Dec 2017 14:00: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 21224 invoked by uid 48); 10 Dec 2017 14:00:34 -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: Sun, 10 Dec 2017 14:00: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: keywords bug_status target_milestone
Message-ID: <bug-80645-4-W6vqdMse4H@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/msg01080.txt.bz2
Content-length: 639
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80645
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Status|NEW |WAITING
Target Milestone|8.0 |---
--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
The regression is the diagnostic which is output even though no range info is
available.
Anyway, WAITING for Fortran folks to settle the wrong-code dispute.
>From gcc-bugs-return-584732-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Dec 10 14:02:55 2017
Return-Path: <gcc-bugs-return-584732-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25490 invoked by alias); 10 Dec 2017 14:02: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 25447 invoked by uid 48); 10 Dec 2017 14:02:50 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/81875] omp for loop optimized away
Date: Sun, 10 Dec 2017 14:02: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: openmp, patch, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vries 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81875-4-K8t8Nh3BW5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81875-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81875-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/msg01081.txt.bz2
Content-length: 215
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81875
--- Comment #4 from Tom de Vries <vries at gcc dot gnu.org> ---
Proposed to backport to 6/7 branch (
https://gcc.gnu.org/ml/gcc-patches/2017-12/msg00574.html ).
>From gcc-bugs-return-584733-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Dec 10 14:15:07 2017
Return-Path: <gcc-bugs-return-584733-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41929 invoked by alias); 10 Dec 2017 14:15: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 41652 invoked by uid 48); 10 Dec 2017 14:15:02 -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: Sun, 10 Dec 2017 14:15: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: keywords bug_status assigned_to
Message-ID: <bug-81889-4-AxjnrB61SU@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/msg01082.txt.bz2
Content-length: 1244
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81889
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
There is a path in the IL that has the array not initialized which is when
n is 0.
# iftmp.13_23 = PHI <_31(3), 1(36)>
_2 = *n_34(D);
_107 = (integer(kind=8)) _2;
if (_2 > 3)
goto <bb 5>; [50.00%]
else
goto <bb 6>; [50.00%]
<bb 6> [local count: 161061274]:
_39 = _107 + -1;
_40 = _39 < 0;
if (_40 != 0)
goto <bb 33>; [50.00%]
else
goto <bb 7>; [50.00%]
then we also somehow end up with a lot of threaded(?) paths exposing all
(and even impossible) loads from xx. Note the warnings are _all_ from
the path dominated by the n <= 3 check! So the warning is obviously
valid just the compiler-generated code must be dead in some way it doesn't
see...
Need some closer investigation, mine for that.
>From gcc-bugs-return-584734-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Dec 10 14:27:19 2017
Return-Path: <gcc-bugs-return-584734-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79785 invoked by alias); 10 Dec 2017 14:27: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 76884 invoked by uid 48); 10 Dec 2017 14:27:15 -0000
From: "dominiq at lps dot ens.fr" <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: Sun, 10 Dec 2017 14:27: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: dominiq at lps dot ens.fr
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-80645-4-pDD6uaSJz4@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/msg01083.txt.bz2
Content-length: 846
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80645
--- Comment #10 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Anyway, WAITING for Fortran folks to settle the wrong-code dispute.
AFAIU the code is valid Fortran
x(4:1:-1) = x((/1,3,2,4/))
x((/1,3,2,4/)) use a temporary array of size 4 and
tmp(1)=x(1)
tmp(2)=x(3)
tmp(3)=x(2)
tmp(4)=x(4)
then this temporaries assigned to the fist four elements of x as
x(4)=tmp(1)
x(3)=tmp(2)
x(2)=tmp(3)
x(1)=tmp(4)
and it is what I see in the dump of the reduced test
program test
implicit none
type mytype
integer x
end type mytype
type(mytype) :: x(6) = (/mytype(1),mytype(2),mytype(3), &
mytype(4),mytype(5), mytype(6)/)
print *, x
x(4:1:-1) = x((/1,3,2,4/))
print *, x
end program test
>From gcc-bugs-return-584735-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Dec 10 14:30:34 2017
Return-Path: <gcc-bugs-return-584735-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12952 invoked by alias); 10 Dec 2017 14:30: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 12859 invoked by uid 48); 10 Dec 2017 14:30:26 -0000
From: "rguenth at gcc dot gnu.org" <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: Sun, 10 Dec 2017 14:30: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: 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:
Message-ID: <bug-82006-4-b3WoBSSlut@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/msg01084.txt.bz2
Content-length: 461
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82006
--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
Hmm, builtins.exp references $LTO_TORTURE_OPTIONS. Does the issue only
reproduce with builtins.exp or also other .exp files?
How does check_effective_target_lto behave on mingw32 currently?
Unfortunately I don't speak TCL a bit (doing cut&paste programming on that part
of GCC...) nor do I have a mingw setup to reproduce the issue.
>From gcc-bugs-return-584736-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Dec 10 14:54:31 2017
Return-Path: <gcc-bugs-return-584736-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69796 invoked by alias); 10 Dec 2017 14:54: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 69761 invoked by uid 48); 10 Dec 2017 14:54:27 -0000
From: "zamazan4ik at tut dot by" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83352] New: Missed optimization in math expression: sqrt(sqrt(a)) == pow(a, 1/4)
Date: Sun, 10 Dec 2017 14:54: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:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: zamazan4ik at tut dot by
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-83352-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/msg01085.txt.bz2
Content-length: 857
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83352
Bug ID: 83352
Summary: Missed optimization in math expression: sqrt(sqrt(a))
== pow(a, 1/4)
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: zamazan4ik at tut dot by
Target Milestone: ---
gcc(trunk) with '--std=c++17 -O3 -march=native -ffast-math' flags for this
code:
#include <cmath>
double test(double a)
{
return sqrt(sqrt(a));
}
generates this assembly:
test(double): # @test(double)
vsqrtsd xmm0, xmm0, xmm0
vsqrtsd xmm0, xmm0, xmm0
ret
But there is formula: sqrt(sqrt(a)) == pow(a, 1/4). And it can be compiled in
faster way.
>From gcc-bugs-return-584737-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Dec 10 15:12:14 2017
Return-Path: <gcc-bugs-return-584737-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86487 invoked by alias); 10 Dec 2017 15:12: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 86410 invoked by uid 48); 10 Dec 2017 15:12:09 -0000
From: "hubicka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/83069] [8 Regression] internal compiler error: in from_gcov_type, at profile-count.h:676
Date: Sun, 10 Dec 2017 15:12: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:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hubicka 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: bug_status resolution
Message-ID: <bug-83069-4-1IeYExYXPf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83069-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83069-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/msg01086.txt.bz2
Content-length: 717
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83069
Jan Hubicka <hubicka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #16 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
I made typo in PR number, but it is fixed by
2017-12-08 Jan Hubicka <hubicka@ucw.cz>
PR middle-end/83609
* profile-count.c (profile_count::from_gcov_type): Move from
profile-count.h; handle overflow.
* profile-count.h (profile_count::from_gcov_type): Move offline.
>From gcc-bugs-return-584738-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Dec 10 15:36:50 2017
Return-Path: <gcc-bugs-return-584738-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31683 invoked by alias); 10 Dec 2017 15:36: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 31633 invoked by uid 48); 10 Dec 2017 15:36:45 -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: Sun, 10 Dec 2017 15:36: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.created
Message-ID: <bug-81842-4-ov9FwFvioE@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/msg01087.txt.bz2
Content-length: 231
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81842
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
Created attachment 42823
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42823&action=edit
The first patch
>From gcc-bugs-return-584739-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Dec 10 15:37:13 2017
Return-Path: <gcc-bugs-return-584739-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32479 invoked by alias); 10 Dec 2017 15:37: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 32450 invoked by uid 48); 10 Dec 2017 15:37:09 -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: Sun, 10 Dec 2017 15:37: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.created
Message-ID: <bug-81842-4-v7Y7QEWKkc@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/msg01088.txt.bz2
Content-length: 232
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81842
--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
Created attachment 42824
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42824&action=edit
The second patch
>From gcc-bugs-return-584740-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Dec 10 15:48:22 2017
Return-Path: <gcc-bugs-return-584740-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40956 invoked by alias); 10 Dec 2017 15:48: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 40759 invoked by uid 48); 10 Dec 2017 15:48:00 -0000
From: "zamazan4ik at tut dot by" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83353] New: Missed optimization in math expression: sin(asin(a)) == a
Date: Sun, 10 Dec 2017 15:48: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:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: zamazan4ik at tut dot by
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-83353-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/msg01089.txt.bz2
Content-length: 836
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83353
Bug ID: 83353
Summary: Missed optimization in math expression: sin(asin(a))
== a
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: zamazan4ik at tut dot by
Target Milestone: ---
gcc(trunk) with '--std=c++17 -O3 -march=native -ffast-math' flags for this
code:
#include <cmath>
double test(double a)
{
return sin(asin(a));
}
generates this assembly:
test(double):
sub rsp, 8
call __asin_finite
add rsp, 8
jmp sin
But sin(asin(a)) == a. So there is no reason to call anything.
>From gcc-bugs-return-584741-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Dec 10 15:50:30 2017
Return-Path: <gcc-bugs-return-584741-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42590 invoked by alias); 10 Dec 2017 15:50: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 42560 invoked by uid 48); 10 Dec 2017 15:50:26 -0000
From: "zamazan4ik at tut dot by" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83353] Missed optimization in math expression: sin(asin(a)) == a
Date: Sun, 10 Dec 2017 15:50: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: zamazan4ik at tut dot by
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-83353-4-YY52gWUzFf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83353-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83353-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/msg01090.txt.bz2
Content-length: 158
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83353
--- Comment #1 from Alexander Zaitsev <zamazan4ik at tut dot by> ---
The same issue about cos(acos(x)).
>From gcc-bugs-return-584742-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Dec 10 16:22:51 2017
Return-Path: <gcc-bugs-return-584742-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67010 invoked by alias); 10 Dec 2017 16:22: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 66971 invoked by uid 48); 10 Dec 2017 16:22:46 -0000
From: "zamazan4ik at tut dot by" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83354] New: Missed optimization in math expression: pow(cbrt(x), y) == pow(x, y / 3)
Date: Sun, 10 Dec 2017 16:22: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:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: zamazan4ik at tut dot by
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-83354-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/msg01091.txt.bz2
Content-length: 966
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83354
Bug ID: 83354
Summary: Missed optimization in math expression: pow(cbrt(x),
y) == pow(x, y / 3)
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: zamazan4ik at tut dot by
Target Milestone: ---
gcc(trunk) with '--std=c++17 -O3 -march=native -ffast-math' flags for this
code:
#include <cmath>
double test(double x, double y)
{
return pow(cbrt(x),y);
}
generates this assembly:
test(double, double):
sub rsp, 24
vmovsd QWORD PTR [rsp+8], xmm1
call cbrt
vmovsd xmm1, QWORD PTR [rsp+8]
add rsp, 24
jmp __pow_finite
As you can see, we can simplify it by calling pow(x, y/3). It should be faster.
>From gcc-bugs-return-584743-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Dec 10 17:43:52 2017
Return-Path: <gcc-bugs-return-584743-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61477 invoked by alias); 10 Dec 2017 17:43:52 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 61401 invoked by uid 48); 10 Dec 2017 17:43:44 -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: Sun, 10 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: 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-zp14wMdanY@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/msg01092.txt.bz2
Content-length: 513
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81842
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #42824|0 |1
is obsolete| |
--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> ---
Created attachment 42825
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42825&action=edit
The second patch
>From gcc-bugs-return-584744-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Dec 10 19:11:57 2017
Return-Path: <gcc-bugs-return-584744-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86358 invoked by alias); 10 Dec 2017 19:11: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 86312 invoked by uid 55); 10 Dec 2017 19:11:52 -0000
From: "dominiq at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/53478] gfortran segfaults when module name clashes with C binding name of procedure
Date: Sun, 10 Dec 2017 19:11: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.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: dominiq at lps dot ens.fr
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-53478-4-jy763ncxM8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53478-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53478-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/msg01093.txt.bz2
Content-length: 1939
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53478
--- Comment #10 from dominiq at gcc dot gnu.org ---
Author: dominiq
Date: Sun Dec 10 19:11:18 2017
New Revision: 255530
URL: https://gcc.gnu.org/viewcvs?rev=255530&root=gcc&view=rev
Log:
2017-12-10 Dominique d'Humieres <dominiq@lps.ens.fr>
PR fortran/53478
* gfortran.h (gfc_find_case_gsymbol): New prototype.
* symbol.c (gfc_find_case_gsymbol): New procedure, case
insensistive version of gfc_find_gsymbol.
* resolve.c (resolve_common_blocks): Use it.
Replace %s with %qs where needed.
* gfortran.dg/binding_label_tests_4.f03: Update dg-error.
* gfortran.dg/binding_label_tests_6.f03: Likewise.
* gfortran.dg/binding_label_tests_7.f03: Likewise.
* gfortran.dg/binding_label_tests_8.f03: Likewise.
* gfortran.dg/binding_label_tests_10_main.f03: Likewise.
* gfortran.dg/binding_label_tests_11_main.f03: Likewise.
* gfortran.dg/binding_label_tests_13_main.f03: Likewise.
* gfortran.dg/test_common_binding_labels_3_main.f03: Likewise.
* gfortran.dg/binding_label_tests_29.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/binding_label_tests_29.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/gfortran.h
trunk/gcc/fortran/resolve.c
trunk/gcc/fortran/symbol.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/binding_label_tests_10_main.f03
trunk/gcc/testsuite/gfortran.dg/binding_label_tests_11_main.f03
trunk/gcc/testsuite/gfortran.dg/binding_label_tests_13_main.f03
trunk/gcc/testsuite/gfortran.dg/binding_label_tests_4.f03
trunk/gcc/testsuite/gfortran.dg/binding_label_tests_6.f03
trunk/gcc/testsuite/gfortran.dg/binding_label_tests_7.f03
trunk/gcc/testsuite/gfortran.dg/binding_label_tests_8.f03
trunk/gcc/testsuite/gfortran.dg/test_common_binding_labels_3_main.f03
>From gcc-bugs-return-584745-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Dec 10 19:28:12 2017
Return-Path: <gcc-bugs-return-584745-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42477 invoked by alias); 10 Dec 2017 19:28: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 42405 invoked by uid 48); 10 Dec 2017 19:28:08 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/53478] gfortran segfaults when module name clashes with C binding name of procedure
Date: Sun, 10 Dec 2017 19:28: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.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: dominiq at lps dot ens.fr
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-53478-4-kvy7G2E2BL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53478-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53478-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/msg01094.txt.bz2
Content-length: 442
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53478
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #11 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Closing.
>From gcc-bugs-return-584746-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Dec 10 19:56:26 2017
Return-Path: <gcc-bugs-return-584746-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68270 invoked by alias); 10 Dec 2017 19:56: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 68217 invoked by uid 48); 10 Dec 2017 19:56:22 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/83237] Values returned by std::poisson_distribution are not distributed correctly
Date: Sun, 10 Dec 2017 19:56: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: 7.2.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 everconfirmed
Message-ID: <bug-83237-4-A6zjPUKeoZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83237-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83237-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/msg01095.txt.bz2
Content-length: 402
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83237
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-12-10
Ever confirmed|0 |1
>From gcc-bugs-return-584747-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Dec 10 20:28:36 2017
Return-Path: <gcc-bugs-return-584747-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31696 invoked by alias); 10 Dec 2017 20:28: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 25236 invoked by uid 48); 10 Dec 2017 20:28:31 -0000
From: "andi-gcc at firstfloor dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug gcov-profile/83355] New: autofdo g++.dg/bprob/g++-bprob-1.C FAILS with ICE
Date: Sun, 10 Dec 2017 20:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
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: 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-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/msg01096.txt.bz2
Content-length: 2726
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83355
Bug ID: 83355
Summary: autofdo g++.dg/bprob/g++-bprob-1.C FAILS with ICE
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: gcov-profile
Assignee: unassigned at gcc dot gnu.org
Reporter: andi-gcc at firstfloor dot org
CC: marxin at gcc dot gnu.org
Target Milestone: ---
Running in gdb shows that there is a very deep recursion in get_index_by_decl
until it overflows the stack.
This patch seems to fix it (but not sure why the abstract origin would point to
itself)
diff --git a/gcc/auto-profile.c b/gcc/auto-profile.c
index 5134a795331..403709bad6b 100644
--- a/gcc/auto-profile.c
+++ b/gcc/auto-profile.c
@@ -477,7 +477,7 @@ string_table::get_index_by_decl (tree decl) const
ret = get_index (lang_hooks.dwarf_name (decl, 0));
if (ret != -1)
return ret;
- if (DECL_ABSTRACT_ORIGIN (decl))
+ if (DECL_ABSTRACT_ORIGIN (decl) && DECL_ABSTRACT_ORIGIN (decl) != decl)
return get_index_by_decl (DECL_ABSTRACT_ORIGIN (decl));
return -1;
Backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x00000000016c4ab2 in pp_emit_prefix (pp=0x229b1a0 <actual_pretty_printer>) at
/home/andi/gcc/git/gcc/gcc/pretty-print.c:1485
1485 {
(gdb) up
#1 0x00000000016c4c90 in pp_append_text(pretty_printer*, char const*, char
const*) ()
at /home/andi/gcc/git/gcc/gcc/pretty-print.c:1556
1556 pp_emit_prefix (pp);
(gdb) bt
#0 0x00000000016c4ab2 in pp_emit_prefix (pp=0x229b1a0 <actual_pretty_printer>)
at /home/andi/gcc/git/gcc/gcc/pretty-print.c:1485
#1 0x00000000016c4c90 in pp_append_text(pretty_printer*, char const*, char
const*) ()
at /home/andi/gcc/git/gcc/gcc/pretty-print.c:1556
#2 0x0000000000b12c83 in pp_c_identifier (pp=0x229b1a0
<actual_pretty_printer>, id=<optimized out>)
at /home/andi/gcc/git/gcc/gcc/c-family/c-pretty-print.c:1203
#3 0x0000000000992b46 in dump_decl (flags=0, t=0x7ffff6d2ce40, pp=0x229b1a0
<actual_pretty_printer>)
at /home/andi/gcc/git/gcc/gcc/tree.h:3226
#4 dump_function_name(cxx_pretty_printer*, tree_node*, int) () at
/home/andi/gcc/git/gcc/gcc/cp/error.c:1852
#5 0x00000000009940a4 in lang_decl_name(tree_node*, int, bool) () at
/home/andi/gcc/git/gcc/gcc/cp/error.c:3005
#6 0x0000000000994133 in lang_decl_dwarf_name (decl=<optimized out>,
v=<optimized out>, translate=<optimized out>)
at /home/andi/gcc/git/gcc/gcc/cp/error.c:2977
#7 0x000000000156762a in autofdo::string_table::get_index_by_decl(tree_node*)
const ()
at /home/andi/gcc/git/gcc/gcc/auto-profile.c:477
....
>From gcc-bugs-return-584748-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Dec 10 20:50:22 2017
Return-Path: <gcc-bugs-return-584748-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126025 invoked by alias); 10 Dec 2017 20:50: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 125949 invoked by uid 48); 10 Dec 2017 20:50:18 -0000
From: "arnd at linaro dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/83356] New: [7 regression] excessive stack usage compiling with -O2 -fsanitize=bounds -fsanitize=object-size
Date: Sun, 10 Dec 2017 20:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: arnd at linaro 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-83356-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/msg01097.txt.bz2
Content-length: 1856
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83356
Bug ID: 83356
Summary: [7 regression] excessive stack usage compiling with
-O2 -fsanitize=bounds -fsanitize=object-size
Product: gcc
Version: 7.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: sanitizer
Assignee: unassigned at gcc dot gnu.org
Reporter: arnd at linaro dot org
CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at gcc dot gnu.org
Target Milestone: ---
Created attachment 42826
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42826&action=edit
The AES crypto implementation from linux, preprocessed
After upgrading from gcc-7.1.1 (20170717) to 7.2.1 (20171130), I observed a
warning when building the kernel in configurations with UBSAN:
x86_64-linux-gcc-7.2.1 -Wframe-larger-than=1024 -fsanitize=bounds
-fsanitize=object-size -fno-strict-aliasing -O2 -Wall -c aes_generic.i
/git/arm-soc/crypto/aes_generic.c: In function 'aes_encrypt':
/git/arm-soc/crypto/aes_generic.c:1371:1: warning: the frame size of 3840 bytes
is larger than 1024 bytes [-Wframe-larger-than=]
/git/arm-soc/crypto/aes_generic.c: In function 'aes_decrypt':
/git/arm-soc/crypto/aes_generic.c:1441:1: warning: the frame size of 3840 bytes
is larger than 1024 bytes [-Wframe-larger-than=]
With gcc-7.1.1, the stack frames were 304 bytes each, gcc-8.0.0 uses 512 bytes,
and with "gcc-7.2.1 -Os -fsanitize=bounds -fsanitize=object-size", it's even
smaller at 56 bytes.
I have only noticed this regression with one file in the kernel so far,
crypto/aes_generic.c, all other files apparently stay below the stack frame
warning limit.
>From gcc-bugs-return-584749-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Dec 10 20:53:30 2017
Return-Path: <gcc-bugs-return-584749-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128786 invoked by alias); 10 Dec 2017 20:53: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 128740 invoked by uid 55); 10 Dec 2017 20:53:26 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/81875] omp for loop optimized away
Date: Sun, 10 Dec 2017 20: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: 8.0
X-Bugzilla-Keywords: openmp, patch, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vries 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81875-4-ZPYpJDVcV4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81875-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81875-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/msg01098.txt.bz2
Content-length: 837
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81875
--- Comment #5 from Tom de Vries <vries at gcc dot gnu.org> ---
Author: vries
Date: Sun Dec 10 20:52:54 2017
New Revision: 255531
URL: https://gcc.gnu.org/viewcvs?rev=255531&root=gcc&view=rev
Log:
Backport "Fix condition folding in c_parser_omp_for_loop"
2017-12-10 Tom de Vries <tom@codesourcery.com>
backport from trunk:
2017-09-16 Tom de Vries <tom@codesourcery.com>
PR c/81875
* c-parser.c (c_parser_omp_for_loop): Fold only operands of cond, not
cond itself.
* testsuite/libgomp.c/pr81875.c: New test.
Added:
branches/gcc-7-branch/libgomp/testsuite/libgomp.c/pr81875.c
Modified:
branches/gcc-7-branch/gcc/c/ChangeLog
branches/gcc-7-branch/gcc/c/c-parser.c
branches/gcc-7-branch/libgomp/ChangeLog
>From gcc-bugs-return-584750-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Dec 10 21:37:44 2017
Return-Path: <gcc-bugs-return-584750-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56768 invoked by alias); 10 Dec 2017 21:37: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 56729 invoked by uid 55); 10 Dec 2017 21:37:40 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/81875] omp for loop optimized away
Date: Sun, 10 Dec 2017 21: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: openmp, patch, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vries 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81875-4-V599clO8ak@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81875-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81875-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/msg01099.txt.bz2
Content-length: 837
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81875
--- Comment #6 from Tom de Vries <vries at gcc dot gnu.org> ---
Author: vries
Date: Sun Dec 10 21:37:08 2017
New Revision: 255532
URL: https://gcc.gnu.org/viewcvs?rev=255532&root=gcc&view=rev
Log:
Backport "Fix condition folding in c_parser_omp_for_loop"
2017-12-10 Tom de Vries <tom@codesourcery.com>
backport from trunk:
2017-09-16 Tom de Vries <tom@codesourcery.com>
PR c/81875
* c-parser.c (c_parser_omp_for_loop): Fold only operands of cond, not
cond itself.
* testsuite/libgomp.c/pr81875.c: New test.
Added:
branches/gcc-6-branch/libgomp/testsuite/libgomp.c/pr81875.c
Modified:
branches/gcc-6-branch/gcc/c/ChangeLog
branches/gcc-6-branch/gcc/c/c-parser.c
branches/gcc-6-branch/libgomp/ChangeLog
>From gcc-bugs-return-584751-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Dec 10 22:29:45 2017
Return-Path: <gcc-bugs-return-584751-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16667 invoked by alias); 10 Dec 2017 22:29: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 16621 invoked by uid 48); 10 Dec 2017 22:29:41 -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: Sun, 10 Dec 2017 22:29: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-IeBXTYXKLb@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/msg01100.txt.bz2
Content-length: 670
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81842
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #42823|0 |1
is obsolete| |
Attachment #42825|0 |1
is obsolete| |
--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> ---
Created attachment 42827
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42827&action=edit
The combined patch
This combined patch replaces the previous 2 patches.
>From gcc-bugs-return-584752-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Dec 10 22:35:15 2017
Return-Path: <gcc-bugs-return-584752-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30233 invoked by alias); 10 Dec 2017 22:35: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 30150 invoked by uid 48); 10 Dec 2017 22:35:10 -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: Sun, 10 Dec 2017 22: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: 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-WPQNZQlQAj@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/msg01101.txt.bz2
Content-length: 523
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81842
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #42827|0 |1
is obsolete| |
--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> ---
Created attachment 42828
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42828&action=edit
The updated combined patch
>From gcc-bugs-return-584753-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 02:21:29 2017
Return-Path: <gcc-bugs-return-584753-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100687 invoked by alias); 11 Dec 2017 02:21: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 100650 invoked by uid 48); 11 Dec 2017 02:21:24 -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 02: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-iWmsNt7Ret@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/msg01102.txt.bz2
Content-length: 523
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81842
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #42828|0 |1
is obsolete| |
--- Comment #8 from H.J. Lu <hjl.tools at gmail dot com> ---
Created attachment 42829
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42829&action=edit
The updated combined patch
>From gcc-bugs-return-584755-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 03:04:34 2017
Return-Path: <gcc-bugs-return-584755-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19833 invoked by alias); 11 Dec 2017 03:04: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 17471 invoked by uid 48); 11 Dec 2017 03:04:30 -0000
From: "yangyibiao at nju dot edu.cn" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83357] [Gcc-optimization] wrong code for elements in a union pointed by two different types of global pointers
Date: Mon, 11 Dec 2017 03:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: yangyibiao at nju dot edu.cn
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-83357-4-MrwZFEfEIa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83357-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83357-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/msg01104.txt.bz2
Content-length: 1471
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83357
--- Comment #1 from Yibiao Yang <yangyibiao at nju dot edu.cn> ---
# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.2.0-8ubuntu3'
--with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs
--enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr
--with-gcc-major-version-only --program-suffix=-7
--program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie
--with-system-zlib --with-target-system-zlib --enable-objc-gc=auto
--enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64
--with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic
--enable-offload-targets=nvptx-none --without-cuda-driver
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 7.2.0 (Ubuntu 7.2.0-8ubuntu3)
>From gcc-bugs-return-584754-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 03:04:15 2017
Return-Path: <gcc-bugs-return-584754-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16285 invoked by alias); 11 Dec 2017 03:04: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 16192 invoked by uid 48); 11 Dec 2017 03:04:10 -0000
From: "yangyibiao at nju dot edu.cn" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83357] New: [Gcc-optimization] wrong code for elements in a union pointed by two different types of global pointers
Date: Mon, 11 Dec 2017 03:04: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.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: yangyibiao at nju dot edu.cn
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-83357-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/msg01103.txt.bz2
Content-length: 1091
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83357
Bug ID: 83357
Summary: [Gcc-optimization] wrong code for elements in a union
pointed by two different types of global pointers
Product: gcc
Version: 7.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: yangyibiao at nju dot edu.cn
Target Milestone: ---
$ cat small.c
int printf(const char *, ...);
union a {
int b;
long c;
} e[] = {{0}, {8}};
int d = 0;
int *f = &e[1].b;
long *g = &e[1].c;
void h() {
for (; d < 2; d++) {
*g = 0;
if (*f)
return;
}
return;
}
int main() {
h();
printf("%d\n", d);
}
$ gcc -O0 small.c; ./a.out
2
$ gcc -O3 small.c; ./a.out
0
$ clang -fsanitize=alignment small.c; ./a.out
2
I am not very sure whether there exist any undefined behavior in this code.
When I am using sanitize option in clang, clang can not detect any undefined
behavior in this code.
>From gcc-bugs-return-584756-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 04:34:40 2017
Return-Path: <gcc-bugs-return-584756-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86462 invoked by alias); 11 Dec 2017 04: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 86424 invoked by uid 48); 11 Dec 2017 04:34:35 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/83358] New: [8 Regression] division not converted with Intel tuning since r253934
Date: Mon, 11 Dec 2017 04:34: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: 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_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <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/msg01105.txt.bz2
Content-length: 3737
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83358
Bug ID: 83358
Summary: [8 Regression] division not converted with Intel
tuning since r253934
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: trippels at gcc dot gnu.org
CC: hubicka at ucw dot cz
Target Milestone: ---
The following code snipped came up on the realworldtech forum recently:
#include <stdint.h>
__attribute__((noinline, noclone))
void bin2ascii(uint64_t val, char *dst) {
const int64_t POW10_10 = ((int64_t)10) * 1000 * 1000 * 1000;
int64_t hix = val / POW10_10;
int64_t lox = val % POW10_10;
int32_t v0 = hix / 100000;
int32_t v1 = hix % 100000;
int32_t v2 = lox / 100000;
int32_t v3 = lox % 100000;
for (int i = 4; i != 0; --i) {
dst[i + 0 * 5] = v0 % 10 + '0';
v0 /= 10;
dst[i + 1 * 5] = v1 % 10 + '0';
v1 /= 10;
dst[i + 2 * 5] = v2 % 10 + '0';
v2 /= 10;
dst[i + 3 * 5] = v3 % 10 + '0';
v3 /= 10;
}
dst[0 * 5] = v0 + '0';
dst[1 * 5] = v1 + '0';
dst[2 * 5] = v2 + '0';
dst[3 * 5] = v3 + '0';
dst[4 * 5] = 0;
}
int main() {
char ch[20];
for (int i = 0; i < 10000000; i++) {
bin2ascii(10010155021040540, ch);
}
}
Since r253934 gcc doesn't convert divisions anymore when tuning for Intel with
e.g. -mtune=haswell. The result is ~5x slower than before.
bin2ascii:
.LFB0:
.cfi_startproc
movq %rdi, %rax
pushq %rbx
.cfi_def_cfa_offset 16
.cfi_offset 3, -16
leaq 4(%rsi), %r9
movl $-858993459, %ebx
movabsq $-2601111570856684097, %rdx
movabsq $755578637259143235, %rcx
mulq %rdx
movabsq $10000000000, %rax
movq %rdx, %r8
shrq $38, %rdx
shrq $33, %r8
imulq %r8, %rax
subq %rax, %rdi
movq %rdx, %rax
mulq %rcx
shrq $7, %rdx
movl %edx, %r10d
imulq $100000, %rdx, %rdx
subl %edx, %r8d
movq %rdi, %rdx
shrq $5, %rdx
movq %rdx, %rax
mulq %rcx
movl $10, %ecx
shrq $7, %rdx
movl %edx, %r11d
imulq $100000, %rdx, %rdx
subl %edx, %edi
.L2:
movl %r10d, %eax
decq %r9
cltd
idivl %ecx
movl %r10d, %eax
addl $48, %edx
movb %dl, 1(%r9)
mull %ebx
movl %r8d, %eax
movl %edx, %r10d
cltd
idivl %ecx
movl %r8d, %eax
shrl $3, %r10d
addl $48, %edx
movb %dl, 6(%r9)
mull %ebx
movl %r11d, %eax
movl %edx, %r8d
cltd
idivl %ecx
movl %r11d, %eax
shrl $3, %r8d
addl $48, %edx
movb %dl, 11(%r9)
mull %ebx
movl %edi, %eax
movl %edx, %r11d
cltd
idivl %ecx
movl %edi, %eax
shrl $3, %r11d
addl $48, %edx
movb %dl, 16(%r9)
mull %ebx
movl %edx, %edi
shrl $3, %edi
cmpq %r9, %rsi
jne .L2
addl $48, %r10d
addl $48, %r8d
leal 48(%r11), %edx
addl $48, %edi
movb %r10b, (%rsi)
popq %rbx
.cfi_def_cfa_offset 8
movb %r8b, 5(%rsi)
movb %dl, 10(%rsi)
movb %dil, 15(%rsi)
movb $0, 20(%rsi)
ret
>From gcc-bugs-return-584757-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 04:35:55 2017
Return-Path: <gcc-bugs-return-584757-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87585 invoked by alias); 11 Dec 2017 04:35: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 87548 invoked by uid 48); 11 Dec 2017 04:35:51 -0000
From: "trippels at gcc dot gnu.org" <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 04: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: 8.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-83358-4-MerHrcB0Os@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/msg01106.txt.bz2
Content-length: 196
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83358
--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
The output above is from:
% gcc -O2 -mtune=haswell foo.i -S -o -
>From gcc-bugs-return-584758-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 05:49:24 2017
Return-Path: <gcc-bugs-return-584758-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5222 invoked by alias); 11 Dec 2017 05:48: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 113526 invoked by uid 48); 11 Dec 2017 05:46:44 -0000
From: "law at redhat dot com" <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 05:48: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: law at redhat dot com
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: cc
Message-ID: <bug-81889-4-tPuj1AQxoz@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/msg01107.txt.bz2
Content-length: 657
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81889
Jeffrey A. Law <law at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |law at redhat dot com
--- Comment #5 from Jeffrey A. Law <law at redhat dot com> ---
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.
>From gcc-bugs-return-584759-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 06:19:37 2017
Return-Path: <gcc-bugs-return-584759-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25837 invoked by alias); 11 Dec 2017 06:19: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 25769 invoked by uid 48); 11 Dec 2017 06:19:30 -0000
From: "andrewm.roberts at sky dot com" <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 06:19: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: andrewm.roberts at sky 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:
Message-ID: <bug-83206-4-d6hasOBQXB@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/msg01108.txt.bz2
Content-length: 1931
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83206
--- Comment #18 from Andrew Roberts <andrewm.roberts at sky dot com> ---
Richard, I'm giving the latest snapshot a test, the armv6 version will be
ready in 16 hrs or so...
Meanwhile a question about consistency with gcc -Q --help=target,
and also what happens if you don't specify -mcpu= with =mfpu=auto
tested with gcc version 8.0.0 20171210 (experimental) (GCC)
/usr/local/gcc/bin/gcc -Q --help=target | grep "mcpu\|mfpu\|march"
-march= armv7-a+fp
-mcpu=
-mfpu= vfpv3-d16
/usr/local/gcc/bin/gcc -march=native -Q --help=target | grep
"mcpu\|mfpu\|march"
-march= armv7ve+vfpv3-d16
-mcpu=
-mfpu= vfpv3-d16
/usr/local/gcc/bin/gcc -march=native -mcpu=native -Q --help=target | grep
"mcpu\|mfpu\|march"
-march= armv7ve+vfpv3-d16
-mcpu= cortex-a7
-mfpu= vfpv3-d16
/usr/local/gcc/bin/gcc -march=native -mcpu=native -mfpu=auto -Q --help=target |
grep "mcpu\|mfpu\|march"
-march= armv7ve
-mcpu= cortex-a7
-mfpu= auto
So without anything specified generic arch is given and also a fpu.
-march=native fills in the arch with the correct one
whereas -mfpu=auto just says auto rather than what was selected
march=native gives different results depending on if -mfpu=auto is set
How does mfpu=auto impact cross compuilers? Will it just not be available? What
will happen in the future when its the default?
This was all on the Big/Little ODROID XU4, so it should really have been:
-mcpu= cortex-a15.cortex-a7
When the patches for that issue land.
>From gcc-bugs-return-584760-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 06:38:16 2017
Return-Path: <gcc-bugs-return-584760-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101402 invoked by alias); 11 Dec 2017 06:38:16 -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 101352 invoked by uid 48); 11 Dec 2017 06:38:12 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83359] New: [8 Regression] ICE in expand_LOOP_DIST_ALIAS, at internal-fn.c:2362
Date: Mon, 11 Dec 2017 06:38: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
Message-ID: <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/msg01109.txt.bz2
Content-length: 2607
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83359
Bug ID: 83359
Summary: [8 Regression] ICE in expand_LOOP_DIST_ALIAS, at
internal-fn.c:2362
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: ---
gcc-8.0.0-alpha20171126 snapshot (r255155) ICEs when compiling the following
snippet w/ -O3 (-Ofast) -floop-parallelize-all -ftree-parallelize-loops=2:
int uw, m0, wy;
void
bp (int jf, int lz)
{
int *qu = &uw;
int *c5 = &jf;
for (uw = 0; uw < 1; ++uw)
qu = &jf;
while (m0 < 10)
{
for (m0 = 0; m0 < 1; ++m0)
if (jf == 0)
while (jf < 1)
++jf;
else
while (jf < 1)
{
qu = &lz;
++jf;
}
++m0;
}
for (;;)
for (wy = 0; wy < 2; ++wy)
{
if (*qu != 0)
uw = *c5;
c5 = &m0;
lz = 0;
}
}
% powerpc-e300c3-linux-gnu-gcc-8.0.0-alpha20171126 -O3 -floop-parallelize-all
-ftree-parallelize-loops=2 -c -w drtdvf1q.c
during RTL pass: expand
drtdvf1q.c: In function 'bp':
drtdvf1q.c:4:1: internal compiler error: in expand_LOOP_DIST_ALIAS, at
internal-fn.c:2362
bp (int jf, int lz)
^~
0x9b232a expand_LOOP_DIST_ALIAS
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-8.0.0_alpha20171126/work/gcc-8-20171126/gcc/internal-fn.c:2362
0x724bd7 expand_call_stmt
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-8.0.0_alpha20171126/work/gcc-8-20171126/gcc/cfgexpand.c:2584
0x724bd7 expand_gimple_stmt_1
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-8.0.0_alpha20171126/work/gcc-8-20171126/gcc/cfgexpand.c:3607
0x724bd7 expand_gimple_stmt
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-8.0.0_alpha20171126/work/gcc-8-20171126/gcc/cfgexpand.c:3773
0x726ddf expand_gimple_basic_block
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-8.0.0_alpha20171126/work/gcc-8-20171126/gcc/cfgexpand.c:5772
0x72cf2f execute
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-8.0.0_alpha20171126/work/gcc-8-20171126/gcc/cfgexpand.c:6373
>From gcc-bugs-return-584761-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 06:55:28 2017
Return-Path: <gcc-bugs-return-584761-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25492 invoked by alias); 11 Dec 2017 06:55: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 25458 invoked by uid 48); 11 Dec 2017 06:55:23 -0000
From: "tottixh10.xianghua at huawei dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/83360] New: make gcc failed, cause classpath/tools/tools.zip:0:0: internal compiler error: in java_mangle_resource_name, at java/mangle.c:657
Date: Mon, 11 Dec 2017 06:55: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: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tottixh10.xianghua at huawei 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-83360-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/msg01110.txt.bz2
Content-length: 2223
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83360
Bug ID: 83360
Summary: make gcc failed, cause classpath/tools/tools.zip:0:0:
internal compiler error: in java_mangle_resource_name,
at java/mangle.c:657
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: tottixh10.xianghua at huawei dot com
Target Milestone: ---
CTU1000080956:/soter/gcc-4.9.0/build/x86_64-unknown-linux-gnu/32/libjava #
/soter/gcc-4.9.0/build/./gcc/gcj
-B/soter/gcc-4.9.0/build/x86_64-unknown-linux-gnu/32/libjava/
-B/soter/gcc-4.9.0/build/x86_64-unknown-linux-gnu/32/libjava/
-B/soter/gcc-4.9.0/build/./gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/
-B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/local/x86_64-unknown-linux-gnu/include -isystem
/usr/local/x86_64-unknown-linux-gnu/sys-include -m32 -ffloat-store
-fomit-frame-pointer -Usun -fclasspath=
-fbootclasspath=../../../../libjava/classpath/lib --encoding=UTF-8
-Wno-deprecated -fbootstrap-classes -findirect-dispatch -fno-bootstrap-classes
-fno-indirect-classes
-fsource-filename=/soter/gcc-4.9.0/build/x86_64-unknown-linux-gnu/32/libjava/classpath/tools/all-classes.lst
-g -O2 -m32 -MT classpath/tools/libgcj_tools_la-tools.lo -MD -MP -MF
classpath/tools/.deps/libgcj_tools_la-tools.Tpo -c classpath/tools/tools.zip
-fPIC -o classpath/tools/.libs/libgcj_tools_la-tools.o
In file included from <built-in>:0:0:
classpath/tools/tools.zip:0:0: internal compiler error: in
java_mangle_resource_name, at java/mangle.c:657
0x553633 java_mangle_resource_name(char const*)
../../gcc/java/mangle.c:657
0x5550c1 compile_resource_data(char const*, char const*, int)
../../gcc/java/resource.c:69
0x55243f parse_zip_file_entries
../../gcc/java/jcf-parse.c:2144
0x55243f java_parse_file()
../../gcc/java/jcf-parse.c:1936
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
>From gcc-bugs-return-584762-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 06:58:45 2017
Return-Path: <gcc-bugs-return-584762-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45971 invoked by alias); 11 Dec 2017 06: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 45574 invoked by uid 48); 11 Dec 2017 06:58:42 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug java/83360] make gcc failed, cause classpath/tools/tools.zip:0:0: internal compiler error: in java_mangle_resource_name, at java/mangle.c:657
Date: Mon, 11 Dec 2017 06:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: java
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-83360-4-VsIcGk6w8d@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83360-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83360-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/msg01111.txt.bz2
Content-length: 544
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83360
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |WONTFIX
Target Milestone|--- |7.0
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Java was removed from GCC in GCC 7. GCC 4.9 is no longer supported.
>From gcc-bugs-return-584763-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 07:03:50 2017
Return-Path: <gcc-bugs-return-584763-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91990 invoked by alias); 11 Dec 2017 07:03: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 91788 invoked by uid 48); 11 Dec 2017 07:03:45 -0000
From: "tottixh10.xianghua at huawei dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug java/83360] make gcc failed, cause classpath/tools/tools.zip:0:0: internal compiler error: in java_mangle_resource_name, at java/mangle.c:657
Date: Mon, 11 Dec 2017 07:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: java
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tottixh10.xianghua at huawei 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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-83360-4-qgxNWgYWM0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83360-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83360-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/msg01112.txt.bz2
Content-length: 298
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83360
--- Comment #2 from tottixh10.xianghua at huawei dot com ---
(In reply to Andrew Pinski from comment #1)
> Java was removed from GCC in GCC 7. GCC 4.9 is no longer supported.
Thanks for answering. So I need download GCC 7.x for installation?
>From gcc-bugs-return-584764-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 07:55:39 2017
Return-Path: <gcc-bugs-return-584764-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66693 invoked by alias); 11 Dec 2017 07:55: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 66632 invoked by uid 48); 11 Dec 2017 07:55:34 -0000
From: "glaubitz at physik dot fu-berlin.de" <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 07:55: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: glaubitz at physik dot fu-berlin.de
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-MFwwMjcKJg@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/msg01113.txt.bz2
Content-length: 3000
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83308
--- Comment #9 from John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin.de> ---
I have added "sh" to all relevant places and after uncovering a bug in
qemu-sh4, I managed to build libgo but the no-fpu variant eventually fails to
link:
make[4]: Entering directory
'/build/gcc-7-COw15T/gcc-7-7.2.0/build/sh4-linux-gnu/m4-nofpu/libgo'
/usr/bin/make "AR_FLAGS=" "CC_FOR_BUILD=sh4-linux-gnu-gcc-7" "CC_FOR_TARGET="
"CFLAGS=-g -O2 -m4-nofpu" "CXXFLAGS=-m4-nofpu" "CFLAGS_FOR_BUILD="
"CFLAGS_FOR_TARGET=" "GOC_FOR_TARGET="
"GOC=/build/gcc-7-COw15T/gcc-7-7.2.0/build/./gcc/gccgo
-B/build/gcc-7-COw15T/gcc-7-7.2.0/build/./gcc/ -B/usr/sh4-linux-gnu/bin/
-B/usr/sh4-linux-gnu/lib/ -isystem /usr/sh4-linux-gnu/include -isystem
/usr/sh4-linux-gnu/sys-include -isystem
/build/gcc-7-COw15T/gcc-7-7.2.0/build/sys-include " "GOCFLAGS=-g -O2
-m4-nofpu" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m
644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c"
"LDFLAGS=-Wl,-z,relro -m4-nofpu" "LIBCFLAGS=-m4-nofpu" "LIBCFLAGS_FOR_TARGET="
"MAKE=/usr/bin/make" "MAKEINFO=makeinfo --split-size=5000000 " "PICFLAG="
"PICFLAG_FOR_TARGET=" "SHELL=/bin/bash" "RUNTESTFLAGS=" "exec_prefix=/usr"
"infodir=/usr/share/info" "libdir=/usr/lib" "includedir=/usr/include"
"prefix=/usr" "tooldir=" "gxx_include_dir=" "AR=sh4-linux-gnu-ar" "AS=as"
"LD=/build/gcc-7-COw15T/gcc-7-7.2.0/build/./gcc/collect-ld"
"RANLIB=sh4-linux-gnu-ranlib"
"NM=/build/gcc-7-COw15T/gcc-7-7.2.0/build/./gcc/nm" "NM_FOR_BUILD="
"NM_FOR_TARGET=" "DESTDIR=" "WERROR=" all-recursive
make[5]: Entering directory
'/build/gcc-7-COw15T/gcc-7-7.2.0/build/sh4-linux-gnu/m4-nofpu/libgo'
make[6]: Entering directory
'/build/gcc-7-COw15T/gcc-7-7.2.0/build/sh4-linux-gnu/m4-nofpu/libgo'
make[6]: *** No rule to make target '../libbacktrace/libbacktrace.la', needed
by 'libgo.la'. Stop.
make[6]: Leaving directory
'/build/gcc-7-COw15T/gcc-7-7.2.0/build/sh4-linux-gnu/m4-nofpu/libgo'
Makefile:2757: recipe for target 'all-recursive' failed
make[5]: *** [all-recursive] Error 1
Looking at the build directory, libbacktrace is built:
(sid-sh4-sbuild)root@nofan:/build/gcc-7-COw15T/gcc-7-7.2.0/build/sh4-linux-gnu/libgo#
ls ..
libada libatomic libbacktrace libffi libgcc libgnatvsn libgo libgomp
libstdc++-v3 m4-nofpu
(sid-sh4-sbuild)root@nofan:/build/gcc-7-COw15T/gcc-7-7.2.0/build/sh4-linux-gnu/libgo#
But not for the m4-nofpu variant:
(sid-sh4-sbuild)root@nofan:/build/gcc-7-COw15T/gcc-7-7.2.0/build/sh4-linux-gnu/m4-nofpu/libgo#
ls ..
libffi libgo libgomp libstdc++-v3
(sid-sh4-sbuild)root@nofan:/build/gcc-7-COw15T/gcc-7-7.2.0/build/sh4-linux-gnu/m4-nofpu/libgo#
Hence "../libbacktrace/libbacktrace.la" is not found when m4-fpu/libgo/libgo.la
is being linked.
Is there a way to disable libgo for m4-fpu?
>From gcc-bugs-return-584765-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 08:04:17 2017
Return-Path: <gcc-bugs-return-584765-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119610 invoked by alias); 11 Dec 2017 08:04:16 -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 119545 invoked by uid 48); 11 Dec 2017 08:04:13 -0000
From: "glaubitz at physik dot fu-berlin.de" <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 08:04: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: glaubitz at physik dot fu-berlin.de
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-zPwf4JWUUa@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/msg01114.txt.bz2
Content-length: 786
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83308
--- Comment #10 from John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin.de> ---
Oh, and it seems the function signature for ioctl is wrong:
./libtool: line 1143: warning: setlocale: LC_ALL: cannot change locale
(en_US.UTF-8)
../../../src/libgo/go/exp/terminal/util.go:70:23: error: integer constant
overflow
if ioctl(fd, syscall.TIOCGWINSZ, unsafe.Pointer(&dimensions)) < 0 {
^
Makefile:3342: recipe for target 'exp/terminal.lo' failed
Changing the second parameter to 'uint' fixes this issue:
//extern ioctl
func ioctl(int, uint, unsafe.Pointer) int
which also matches what "man ioctl" says:
SYNOPSIS
#include <sys/ioctl.h>
int ioctl(int fd, unsigned long request, ...);
>From gcc-bugs-return-584766-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 08:07:20 2017
Return-Path: <gcc-bugs-return-584766-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121817 invoked by alias); 11 Dec 2017 08:07: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 121772 invoked by uid 48); 11 Dec 2017 08:07:15 -0000
From: "rguenth at gcc dot gnu.org" <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 08:07: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: 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: cf_gcctarget
Message-ID: <bug-83334-4-EuHLdgPHW2@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/msg01115.txt.bz2
Content-length: 493
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83334
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |x86_64-*-* i?86-*-*
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
The summary suggests you are doing bogus things (sysv ABI varargs function
using __builtin_ms_va_copy) -> INVALID?
>From gcc-bugs-return-584767-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 08:07:32 2017
Return-Path: <gcc-bugs-return-584767-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122511 invoked by alias); 11 Dec 2017 08:07: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 122474 invoked by uid 48); 11 Dec 2017 08:07:28 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/83335] [8 regression][aarch64,ilp32] gcc.target/aarch64/asm-2.c ICEs since 255481
Date: Mon, 11 Dec 2017 08:07: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: 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-83335-4-M0CZ99BbTJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83335-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83335-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/msg01116.txt.bz2
Content-length: 293
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83335
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |8.0
>From gcc-bugs-return-584768-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 08:16:19 2017
Return-Path: <gcc-bugs-return-584768-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125962 invoked by alias); 11 Dec 2017 08:16: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 125886 invoked by uid 48); 11 Dec 2017 08:16:13 -0000
From: "rguenth 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 08: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: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth 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-83336-4-sl5SCghoYh@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/msg01117.txt.bz2
Content-length: 1697
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83336
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-12-11
Ever confirmed|0 |1
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Elsewhere dwarf people were complaining about a non 1:1 match of the scope tree
of abstract and concrete instances as well which would suggest to never prune
any BLOCKs...
Note the artificial inline BLOCK might be not too excessive to preserve. OTOH
for testcases like tramp3d we have about 10 function calls per final emitted
assembly statement. That is, for heavily abstracted C++ code not pruning
BLOCKs
might cause an excessive increase in memory usage.
Shrinking tree_block might be a good idea - obvious candidates are
abstract_flag/block_num (re-use tree_base u.? but likely lang-flags are
used...)
and of course fragment_origin/chain which is only used during very late RTL.
Eventually move that offline into sth also containing the die member (similar
lifetime). The distinction between VARS and nonlocalized_vars is also
not really necessary if we get rid of the BLOCK_VARS chaining via DECL_CHAIN
and instead use the vec approach for all of them.
That said, WPA stage should no longer stream all BLOCK trees (double-check
that),
so the LTO argument might be moot but the general argument still valid (see the
tramp3d example or possibly any of the weird boost template metaprogramming
examples).
>From gcc-bugs-return-584769-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 08:20:50 2017
Return-Path: <gcc-bugs-return-584769-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17924 invoked by alias); 11 Dec 2017 08:20: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 17627 invoked by uid 48); 11 Dec 2017 08:20:45 -0000
From: "rguenth at gcc dot gnu.org" <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 08:20: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: 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: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc target_milestone
Message-ID: <bug-83338-4-owiuyBc7Sx@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/msg01118.txt.bz2
Content-length: 555
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83338
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
CC| |rguenth at gcc dot gnu.org
Target Milestone|--- |8.0
--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
Andrey, please report back on the status after the commit.
>From gcc-bugs-return-584770-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 08:21:37 2017
Return-Path: <gcc-bugs-return-584770-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18889 invoked by alias); 11 Dec 2017 08:21: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 18793 invoked by uid 48); 11 Dec 2017 08:21:28 -0000
From: "rguenth 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 08:21: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: 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: component version target_milestone short_desc
Message-ID: <bug-83341-4-z74a2iWle9@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/msg01119.txt.bz2
Content-length: 621
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83341
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|other |libquadmath
Version|unknown |8.0
Target Milestone|--- |8.0
Summary|r254899 causes about 15000 |[8 Regression] r254899
|test failures on powerpc |causes about 15000 test
| |failures on powerpc
>From gcc-bugs-return-584771-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 08:25:55 2017
Return-Path: <gcc-bugs-return-584771-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35445 invoked by alias); 11 Dec 2017 08:25: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 35392 invoked by uid 48); 11 Dec 2017 08:25:51 -0000
From: "tkoenig 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 08:25: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: tkoenig 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
Message-ID: <bug-80645-4-Jtp37KXvq9@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/msg01120.txt.bz2
Content-length: 381
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80645
Thomas Koenig <tkoenig at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
--- Comment #11 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Yes, this is valid.
>From gcc-bugs-return-584772-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 08:31:06 2017
Return-Path: <gcc-bugs-return-584772-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41810 invoked by alias); 11 Dec 2017 08:31: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 41437 invoked by uid 48); 11 Dec 2017 08:30:43 -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 08:31: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-fkdeAwz6hW@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/msg01121.txt.bz2
Content-length: 1210
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83334
--- Comment #2 from zenith432 at users dot sourceforge.net ---
You're misquoting my summary. It does not say sysv ABI varargs function. It
says sys ABI function. Check the samples. A __builtin_ms_va_list is
constructed (__builtin_ms_va_started) in an ms ABI varargs function, then
passed as an argument to a sysv ABI function. sysv ABI functions can already
iterate over __builtin_ms_va_lists today with __builtin_va_arg. But using
__builtin_ms_va_copy on a __builtin_ms_va_list in a sysv ABI function (that got
one passed in as a parameter) emits incorrect code.
These features are all non-standard and undocumented, so it is difficult to
separate a "bug report" from a "feature request". A __builtin_ms_va_list is a
char*, and calling __builtin_ms_va_copy on it is just to assign the pointer to
another pointer. It is the same complexity as passing it as an argument. On
the other hand, iterating over a __builtin_ms_va_list (with __builtin_va_arg)
emits more complicated code, and this can already be done in a sysv ABI
function. So it seems like an omission or bug that __builtin_ms_va_copy
doesn't work in a sysv ABI function.
>From gcc-bugs-return-584773-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 08:33:56 2017
Return-Path: <gcc-bugs-return-584773-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69341 invoked by alias); 11 Dec 2017 08:33: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 69280 invoked by uid 48); 11 Dec 2017 08:33:51 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/83346] inliner crash with attribute always_inline/flatten on a destructor
Date: Mon, 11 Dec 2017 08:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ipa
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth 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 cc everconfirmed
Message-ID: <bug-83346-4-KNiCmfJmfL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83346-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83346-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/msg01122.txt.bz2
Content-length: 2199
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83346
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-12-11
CC| |hubicka at gcc dot gnu.org,
| |rguenth at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
(gdb) p node->debug ()
_ZN12_GLOBAL__N_11bIiNS_12_GLOBAL__N_12acIcccEEED2Ev/1 ({anonymous}::b<int,
{anonymous}::{anonymous}::ac<char> >::~b()) @0x7ffff6db8170
Type: function definition analyzed
Visibility: prevailing_def_ironly artificial
References:
Referring:
Function {anonymous}::b<int, {anonymous}::{anonymous}::ac<char> >::~b()/1 is
inline copy in {anonymous}::ae::~ae()/6
Availability: local
First run: 0
Function flags: count: 574129753 (estimated locally) body local
Called by: {anonymous}::ae::~ae()/6 (inlined) (574129753 (estimated
locally),0.53 per call)
Calls: {anonymous}::{anonymous}::ac<e, <template-parameter-1-2>,
<template-parameter-1-3> >::~ac() [with <template-parameter-1-1> = char;
<template-parameter-1-2> = char; <template-parameter-1-3> = char]/15 (574129752
(estimated locally),0.53 per call)
so it's an inline clone. BUT ... at the start of the loop it is
_ZN12_GLOBAL__N_11bIiNS_12_GLOBAL__N_12acIcccEEED1Ev/2 ({anonymous}::b<int,
{anonymous}::{anonymous}::ac<char> >::~b()) @0x7ffff6db82e0
Type: function definition analyzed alias cpp_implicit_alias
Visibility: prevailing_def_ironly artificial
References: _ZN12_GLOBAL__N_11bIiNS_12_GLOBAL__N_12acIcccEEED2Ev/1 (alias)
Referring:
Availability: local
First run: 0
Function flags: local
Called by: {anonymous}::ae::~ae()/6 (574129753 (estimated locally),0.53 per
call)
Calls:
so I'm not sure if 'order' stays valid during flatten processing or if we're
just lucky in re-using GC memory with the inline clone.
Honza?
>From gcc-bugs-return-584774-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 08:38:11 2017
Return-Path: <gcc-bugs-return-584774-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76049 invoked by alias); 11 Dec 2017 08: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 75836 invoked by uid 48); 11 Dec 2017 08:37:45 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83357] [Gcc-optimization] wrong code for elements in a union pointed by two different types of global pointers
Date: Mon, 11 Dec 2017 08: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.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub 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 cc resolution
Message-ID: <bug-83357-4-6KW8FRsLx7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83357-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83357-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/msg01123.txt.bz2
Content-length: 1046
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83357
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |jakub at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
There is UB in that code, but the bug isn't about alignment, but about
aliasing; the standard says that writing to a union member invalidates all
other union members, and while GCC and other compilers as an extension allow
that, the requirement is that the union is visible in the access path, which is
not the case here. Testcases like this would almost always kill all the type
based alias analysis optimizations. The fact that neither GCC nor clang
-fsanitize=undefined catches this is just because there is no alias analysis
sanitizer yet.
>From gcc-bugs-return-584776-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 08:44:41 2017
Return-Path: <gcc-bugs-return-584776-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80641 invoked by alias); 11 Dec 2017 08:44: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 80168 invoked by uid 48); 11 Dec 2017 08:44:35 -0000
From: "yangyibiao at nju dot edu.cn" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83357] [Gcc-optimization] wrong code for elements in a union pointed by two different types of global pointers
Date: Mon, 11 Dec 2017 08:44: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.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: yangyibiao at nju dot edu.cn
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-83357-4-9NfP70qrJI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83357-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83357-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/msg01125.txt.bz2
Content-length: 758
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83357
--- Comment #3 from Yibiao Yang <yangyibiao at nju dot edu.cn> ---
Thank you very much.
(In reply to Jakub Jelinek from comment #2)
> There is UB in that code, but the bug isn't about alignment, but about
> aliasing; the standard says that writing to a union member invalidates all
> other union members, and while GCC and other compilers as an extension allow
> that, the requirement is that the union is visible in the access path, which
> is not the case here. Testcases like this would almost always kill all the
> type based alias analysis optimizations. The fact that neither GCC nor
> clang -fsanitize=undefined catches this is just because there is no alias
> analysis sanitizer yet.
>From gcc-bugs-return-584775-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 08:44:35 2017
Return-Path: <gcc-bugs-return-584775-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80031 invoked by alias); 11 Dec 2017 08:44: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 79698 invoked by uid 48); 11 Dec 2017 08:44:09 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83348] Missed optimization in math expression: can be used std::pow function
Date: Mon, 11 Dec 2017 08:44: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: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth 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 cf_gcctarget bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-83348-4-6CbR0w50T9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83348-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83348-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/msg01124.txt.bz2
Content-length: 2246
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83348
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Target| |x86_64-*-* i?86-*-*
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-12-11
CC| |rguenth at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
We recognize this as an integer power of 'a' and unconditionally expand that to
an (optimal) power series. We are not considering using libgccs powi or libms
pow. Actually we do, but it's
/* Provide a default value for POWI_MAX_MULTS, the maximum number of
multiplications to inline before calling the system library's pow
function. powi(x,n) requires at worst 2*bits(n)-2 multiplications,
so this default never requires calling pow, powf or powl. */
#ifndef POWI_MAX_MULTS
#define POWI_MAX_MULTS (2*HOST_BITS_PER_WIDE_INT-2)
#endif
and no target defines this. These days it should probably be a --param.
Note that for -Os you get a call to powidf2.
@defmac POWI_MAX_MULTS
If defined, this macro is interpreted as a signed integer C expression
that specifies the maximum number of floating point multiplications
that should be emitted when expanding exponentiation by an integer
constant inline. When this value is defined, exponentiation requiring
more than this number of multiplications is implemented by calling the
system library's @code{pow}, @code{powf} or @code{powl} routines.
The default value places no upper bound on the multiplication count.
@end defmac
I guess we should simply use a more reasonable default and eventually
also decide for a cut-off calling pow () instead of libgcc provided
powi. powi does
TYPE
NAME (TYPE x, int m)
{
unsigned int n = m < 0 ? -m : m;
TYPE y = n % 2 ? x : 1;
while (n >>= 1)
{
x = x * x;
if (n % 2)
y = y * x;
}
return m < 0 ? 1/y : y;
}
>From gcc-bugs-return-584777-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 08:52:03 2017
Return-Path: <gcc-bugs-return-584777-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96096 invoked by alias); 11 Dec 2017 08:52: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 96009 invoked by uid 48); 11 Dec 2017 08:51:59 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/83349] Missed optimization in math expression: aggressive optimization with std::pow
Date: Mon, 11 Dec 2017 08:52: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: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth 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 component everconfirmed
Message-ID: <bug-83349-4-BQijh9vL0q@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83349-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83349-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/msg01126.txt.bz2
Content-length: 1240
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83349
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-12-11
CC| |glisse at gcc dot gnu.org,
| |rguenth at gcc dot gnu.org
Component|tree-optimization |middle-end
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
IIRC we had this simplificatio in fold-const.c at some point. Eventually we
thought moving it to tree-ssa-reassoc.c. There we have
<bb 2> [local count: 1073741825]:
_1 = __builtin_pow (a_5(D), x_6(D));
reassocpow_9 = __builtin_powi (a_5(D), 4);
_7 = _1 * reassocpow_9;
which suggests we miss (mult (pow @0 @1) (powi @0 @2)) -> (pow @0 (plus @1
@2)).
And also (mult (pow @0 @1) @0) of course.
Not sure if there is anything besides FP contraction to look for validity.
>From gcc-bugs-return-584778-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 09:03:25 2017
Return-Path: <gcc-bugs-return-584778-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109415 invoked by alias); 11 Dec 2017 09:03: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 109303 invoked by uid 48); 11 Dec 2017 09:03:21 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83350] Missed optimization in math expression: missing cube of the sum formula
Date: Mon, 11 Dec 2017 09:03: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: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth 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 everconfirmed
Message-ID: <bug-83350-4-lB34LuTVcR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83350-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83350-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/msg01127.txt.bz2
Content-length: 1072
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83350
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-12-11
CC| |rguenth at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
We're associating it a bit but we do not know of the power identities like
(a + b)^2 = a*a + 2*a*b + b*b
eventually undistribute_ops_list could be used to implement a generic variant
as it already searches for a similar pattern to apply reverse distribution law
a*a + a*b -> a * (a + b).
Note that at some point of complexity I view such transforms as responsibility
of the programmer rather than the compiler... (this one is on the border)
>From gcc-bugs-return-584779-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 09:05:22 2017
Return-Path: <gcc-bugs-return-584779-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34873 invoked by alias); 11 Dec 2017 09:05: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 34662 invoked by uid 48); 11 Dec 2017 09:05:18 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83351] Missed optimization in math expression: sin^2(a) + cos^2(a) == 1
Date: Mon, 11 Dec 2017 09:05: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: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth 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 everconfirmed
Message-ID: <bug-83351-4-JWNT3rGYAO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83351-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83351-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/msg01128.txt.bz2
Content-length: 756
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83351
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-12-11
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed. But whoever writes this is maybe not interested in seeing it
optimized to 1? There are a gazillion math identities we could handle.
This one we can pattern-match in match.pd if we think it is useful.
>From gcc-bugs-return-584780-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 09:08:20 2017
Return-Path: <gcc-bugs-return-584780-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37014 invoked by alias); 11 Dec 2017 09:08: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 36985 invoked by uid 48); 11 Dec 2017 09:08:16 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83352] Missed optimization in math expression: sqrt(sqrt(a)) == pow(a, 1/4)
Date: Mon, 11 Dec 2017 09: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: missed-optimization
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: keywords cf_gcctarget bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-83352-4-6kOXKJSN5P@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83352-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83352-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/msg01129.txt.bz2
Content-length: 967
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83352
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Target| |x86_64-*-* i?86-*-*
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2017-12-11
CC| |rguenth at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
We have it
/* sqrt(sqrt(x)) -> pow(x,1/4). */
(simplify
(sqrts (sqrts @0))
(pows @0 { build_real (type, dconst_quarter ()); }))
but only for canonicalization, we then expand that as (sqrt (sqrt @0)) again.
What is it that it can be "compiled in faster way" to?
>From gcc-bugs-return-584781-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 09:09:19 2017
Return-Path: <gcc-bugs-return-584781-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38289 invoked by alias); 11 Dec 2017 09: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 38244 invoked by uid 48); 11 Dec 2017 09:09:13 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83353] Missed optimization in math expression: sin(asin(a)) == a
Date: Mon, 11 Dec 2017 09: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: 8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth 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 everconfirmed
Message-ID: <bug-83353-4-dag548HbgR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83353-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83353-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/msg01130.txt.bz2
Content-length: 754
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83353
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-12-11
CC| |rguenth at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
We're missing all of those identities. Are they really useful to have in the
compiler? I doubt that... the compiler is not matlab.
>From gcc-bugs-return-584782-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 09:11:59 2017
Return-Path: <gcc-bugs-return-584782-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 123519 invoked by alias); 11 Dec 2017 09:11: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 115700 invoked by uid 48); 11 Dec 2017 09:11:54 -0000
From: "trippels at gcc dot gnu.org" <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 09:11: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: 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-83358-4-4hKAL4i5Da@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/msg01131.txt.bz2
Content-length: 1474
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?
>From gcc-bugs-return-584783-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 09:13:28 2017
Return-Path: <gcc-bugs-return-584783-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40990 invoked by alias); 11 Dec 2017 09:13: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 40951 invoked by uid 48); 11 Dec 2017 09:13:24 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83354] Missed optimization in math expression: pow(cbrt(x), y) == pow(x, y / 3)
Date: Mon, 11 Dec 2017 09:13: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: 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-83354-4-GW7GdhRSfP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83354-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83354-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/msg01132.txt.bz2
Content-length: 823
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83354
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2017-12-11
CC| |rguenth at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
We have that:
(simplify
(pows (cbrts tree_expr_nonnegative_p@0) @1)
(pows @0 (mult @1 { build_real_truncate (type, dconst_third ()); })))
the constraint is that we have to know x is not negative. If you
write pow(cbrt(fabs(x)), y) you'll see.
So WORKSFORME?
>From gcc-bugs-return-584784-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 09:14:49 2017
Return-Path: <gcc-bugs-return-584784-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43571 invoked by alias); 11 Dec 2017 09:14: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 43527 invoked by uid 48); 11 Dec 2017 09:14:45 -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 09: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: 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: bug_status cf_reconfirmed_on cc assigned_to target_milestone everconfirmed
Message-ID: <bug-83359-4-AYVyckYnmk@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/msg01133.txt.bz2
Content-length: 737
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83359
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2017-12-11
CC| |amker at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
Target Milestone|--- |8.0
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
ISTR a duplicate but I will investigate a bit.
>From gcc-bugs-return-584785-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 09:15:46 2017
Return-Path: <gcc-bugs-return-584785-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44761 invoked by alias); 11 Dec 2017 09:15: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 44630 invoked by uid 48); 11 Dec 2017 09:15:30 -0000
From: "rguenth at gcc dot gnu.org" <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 09:15: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: 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: keywords target_milestone
Message-ID: <bug-83358-4-WCYQUysZyY@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/msg01134.txt.bz2
Content-length: 362
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83358
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Target Milestone|--- |8.0
>From gcc-bugs-return-584786-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 09:16:11 2017
Return-Path: <gcc-bugs-return-584786-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46840 invoked by alias); 11 Dec 2017 09: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 46768 invoked by uid 48); 11 Dec 2017 09:16:07 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/83356] [7 regression] excessive stack usage compiling with -O2 -fsanitize=bounds -fsanitize=object-size
Date: Mon, 11 Dec 2017 09:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.2.1
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: 7.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-83356-4-d7pWGrW2HU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83356-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83356-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/msg01135.txt.bz2
Content-length: 293
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83356
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |7.3
>From gcc-bugs-return-584787-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 09:17:07 2017
Return-Path: <gcc-bugs-return-584787-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49234 invoked by alias); 11 Dec 2017 09:17: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 48760 invoked by uid 48); 11 Dec 2017 09:17:01 -0000
From: "rguenth 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 09:17: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: 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-83355-4-YDZfKH2pLN@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/msg01136.txt.bz2
Content-length: 216
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83355
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Happens as a "feature" ;) See other walkers of abstract origin.
Patch is ok as obvious btw.
>From gcc-bugs-return-584788-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 09:23:24 2017
Return-Path: <gcc-bugs-return-584788-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54983 invoked by alias); 11 Dec 2017 09:23: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 54941 invoked by uid 48); 11 Dec 2017 09:23:18 -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 09:23: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-jLpEQoFgZo@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/msg01137.txt.bz2
Content-length: 442
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83359
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
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.
>From gcc-bugs-return-584789-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 09:49:15 2017
Return-Path: <gcc-bugs-return-584789-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110899 invoked by alias); 11 Dec 2017 09:49: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 110799 invoked by uid 48); 11 Dec 2017 09:49:10 -0000
From: "amker 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 09:49: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: 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-72CPVmMjEW@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/msg01138.txt.bz2
Content-length: 148
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83337
--- Comment #4 from amker at gcc dot gnu.org ---
Thanks Jakub for fixing the issue instantly.
>From gcc-bugs-return-584790-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 09:50:03 2017
Return-Path: <gcc-bugs-return-584790-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112404 invoked by alias); 11 Dec 2017 09:50: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 112287 invoked by uid 55); 11 Dec 2017 09:49:57 -0000
From: "tschwinge at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/78692] [7 Regression] ICE (segfault)
Date: Mon, 11 Dec 2017 09:50: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: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tschwinge at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78692-4-m91pxhsfNO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78692-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78692-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/msg01139.txt.bz2
Content-length: 959
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78692
--- Comment #6 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Author: tschwinge
Date: Mon Dec 11 09:49:25 2017
New Revision: 255538
URL: https://gcc.gnu.org/viewcvs?rev=255538&root=gcc&view=rev
Log:
[PR c++/83301] cgraph.c segfault
Backport trunk r243377:
gcc/
2016-12-07 Jakub Jelinek <jakub@redhat.com>
PR c++/78692
* cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Set lhs
var to lhs of new_stmt right before noreturn handling rather than to
lhs of e->call_stmt early.
gcc/testsuite/
2016-12-07 Jakub Jelinek <jakub@redhat.com>
PR c++/78692
* g++.dg/torture/pr78692.C: New test.
Added:
branches/gcc-6-branch/gcc/testsuite/g++.dg/torture/pr78692.C
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/cgraph.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-584791-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 09:51:36 2017
Return-Path: <gcc-bugs-return-584791-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115034 invoked by alias); 11 Dec 2017 09:51: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 114983 invoked by uid 48); 11 Dec 2017 09:51:31 -0000
From: "amker 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 09:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amker 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-ZPX3LLygLA@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/msg01140.txt.bz2
Content-length: 729
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?
>From gcc-bugs-return-584792-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 09:53:18 2017
Return-Path: <gcc-bugs-return-584792-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118213 invoked by alias); 11 Dec 2017 09:53: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 118116 invoked by uid 48); 11 Dec 2017 09:53:14 -0000
From: "tschwinge at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/83301] [6 Regression] cgraph.c segfault
Date: Mon, 11 Dec 2017 09: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: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tschwinge at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: tschwinge at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-83301-4-FM1nDEf2QQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83301-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83301-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/msg01141.txt.bz2
Content-length: 478
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83301
Thomas Schwinge <tschwinge at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #7 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Backported trunk r243377 in gcc-6-branch r255538.
>From gcc-bugs-return-584793-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 11 10:30:45 2017
Return-Path: <gcc-bugs-return-584793-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81231 invoked by alias); 11 Dec 2017 10:30: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 81195 invoked by uid 89); 11 Dec 2017 10:30:44 -0000
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 testsºYES_00,KAM_SHORT,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammyX-Spam-User: qpsmtpd, 3 recipients
X-HELO: userp2120.oracle.com
Received: from userp2120.oracle.com (HELO userp2120.oracle.com) (156.151.31.85) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 11 Dec 2017 10:30:43 +0000
Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.21/8.16.0.21) with SMTP id vBBAQev7028403; Mon, 11 Dec 2017 10:30:41 GMT
Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2120.oracle.com with ESMTP id 2esr1qg3m4-1 (version=TLSv1.2 cipherìDHE-RSA-AES256-GCM-SHA384 bits%6 verify=NOT); Mon, 11 Dec 2017 10:30:41 +0000
Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id vBB9qO48012894 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits%6 verify=OK); Mon, 11 Dec 2017 09:52:25 GMT
Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id vBB9qOOF013829; Mon, 11 Dec 2017 09:52:24 GMT
Received: from [192.168.1.4] (/87.3.196.15) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 11 Dec 2017 01:52:24 -0800
Subject: Re: [PATCH] Fix Bug 83237 - Values returned by std::poisson_distribution are not distributed correctly
To: Michele Pezzutti <mpezz@tiscali.it>, gcc-bugs@gcc.gnu.org, gcc-patches@gcc.gnu.org, libstdc++@gcc.gnu.org
References: <996b2c2c-45e7-b434-e5d9-4441d2273829@tiscali.it>
From: Paolo Carlini <paolo.carlini@oracle.com>
Message-ID: <87e65391-0306-dc82-a9c0-a70f87574e31@oracle.com>
Date: Mon, 11 Dec 2017 10:30:00 -0000
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0
MIME-Version: 1.0
In-Reply-To: <996b2c2c-45e7-b434-e5d9-4441d2273829@tiscali.it>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Proofpoint-Virus-Version: vendor=nai engineY00 definitions41 signaturesf8644
X-Proofpoint-Spam-Details: rule=notspam policyÞfault score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore9 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1712110159
X-SW-Source: 2017-12/txt/msg01142.txt.bz2
Content-length: 583
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?id237for 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] 2+ messages in thread
* [Bug tree-optimization/83351] Missed optimization in math expression: sin^2(a) + cos^2(a) == 1
2017-12-10 13:48 [Bug tree-optimization/83351] New: Missed optimization in math expression: sin^2(a) + cos^2(a) == 1 zamazan4ik at tut dot by
@ 2021-12-15 21:57 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-15 21:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83351
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-15 21:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-10 13:48 [Bug tree-optimization/83351] New: Missed optimization in math expression: sin^2(a) + cos^2(a) == 1 zamazan4ik at tut dot by
2021-12-15 21:57 ` [Bug tree-optimization/83351] " pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).