public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/61593] New: Support '#pragma mark - foo' (by simply ignoring it without warning)
@ 2014-06-24 15:58 sean@rogue-research.com
  2019-01-17  4:20 ` [Bug target/61593] Support '#pragma mark - foo' on non-Darwin targets " egallager at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: sean@rogue-research.com @ 2014-06-24 15:58 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 61593
           Summary: Support '#pragma mark - foo' (by simply ignoring it
                    without warning)
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sean@rogue-research.com

On OS X, it is common to use:

#pragma mark - foo

to divide source code into sections.

This is supported by clang and Apple's old gcc fork.

gcc however warns:

  warning: ignoring #pragma mark  [-Wunknown-pragmas]

And -Wunknown-pragmas is part of -Wall.  I'm aware I could use
-Wno-unknown-pragmas, but building clean at -Wall is important.

As clang does a lot to be compatible with gcc, I'm hoping gcc can do a little
to be compatible with clang here. :)

No codegen or anything would be required, just ignore and don't warn when
#pragma mark is encountered.

Cheers.


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

* [Bug target/61593] Support '#pragma mark - foo' on non-Darwin targets (by simply ignoring it without warning)
  2014-06-24 15:58 [Bug c/61593] New: Support '#pragma mark - foo' (by simply ignoring it without warning) sean@rogue-research.com
@ 2019-01-17  4:20 ` egallager at gcc dot gnu.org
  2020-05-07 11:56 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: egallager at gcc dot gnu.org @ 2019-01-17  4:20 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: 724106 bytes --]

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |easyhack

--- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> ---
It should be pretty easy; in config/darwin.h #pragma mark is registered as part
of the DARWIN_REGISTER_TARGET_PRAGMAS() macro like this:

if (!flag_preprocess_only)                                      \
      cpp_register_pragma (parse_in, NULL, "mark",              \
                           darwin_pragma_ignore, false);

...and then darwin_pragma_ignore() is a simple no-op declared in
config/darwin-protos.h and defined in config/darwin-c.c. So I guess it'd just
have to be re-titled and moved somewhere generic?
>From gcc-bugs-return-629528-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 04:50:34 2019
Return-Path: <gcc-bugs-return-629528-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129397 invoked by alias); 17 Jan 2019 04:50:33 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 125555 invoked by uid 55); 17 Jan 2019 04:50:27 -0000
From: "aoliva at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/88146] ice in tsubst_copy, at cp/pt.c:16014
Date: Thu, 17 Jan 2019 04:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: aoliva at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: aoliva at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88146-4-nx2noO0Hix@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88146-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88146-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: 2019-01/txt/msg02337.txt.bz2
Content-length: 1877

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

--- Comment #12 from Alexandre Oliva <aoliva at gcc dot gnu.org> ---
Author: aoliva
Date: Thu Jan 17 04:49:55 2019
New Revision: 268004

URL: https://gcc.gnu.org/viewcvs?rev=268004&root=gcc&view=rev
Log:
[PR88146] avoid diagnostics diffs if cdtor_returns_this

Diagnostics for testsuite/g++.dg/cpp0x/inh-ctor32.C varied across
platforms.  Specifically, on ARM, the diagnostics within the subtest
derived_ctor::inherited_derived_ctor::constexpr_noninherited_ctor did
not match those displayed on other platforms, and the test failed.

The difference seemed to have to do with locations assigned to ctors,
but it was more subtle: on ARM, the instantiation of bor's template
ctor was nested within the instantiation of bar's template ctor
inherited from bor.  The reason turned out to be related with the
internal return type of ctors: arm_cxx_cdtor_returns_this is enabled
for because of AAPCS, while cxx.cdtor_returns_this is disabled on most
other platforms.  While convert_to_void returns early with a VOID
expr, the non-VOID return type of the base ctor CALL_EXPR causes
convert_to_void to inspect the called decl for nodiscard attributes:
maybe_warn_nodiscard -> cp_get_fndecl_from_callee ->
maybe_constant_init -> cxx_eval_outermost_constant_expr ->
instantiate_constexpr_fns -> nested instantiation.

The internal return type assigned to a cdtor should not affect
instantiation (constexpr or template) decisions, IMHO.  We know it
affects diagnostics, but I have a hunch this might bring deeper issues
with it, so I've arranged for the CALL_EXPR handler in convert_to_void
to disregard cdtors, regardless of the ABI.


for  gcc/cp/ChangeLog

        PR c++/88146
        * cvt.c (convert_to_void): Handle all cdtor calls as if
        returning void.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cvt.c
>From gcc-bugs-return-629529-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 05:59:55 2019
Return-Path: <gcc-bugs-return-629529-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49399 invoked by alias); 17 Jan 2019 05:59: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 49318 invoked by uid 48); 17 Jan 2019 05:59:50 -0000
From: "kamleshbhalui at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88877] rs6000 emits signed extension for unsigned int  type(__floatunsidf).
Date: Thu, 17 Jan 2019 05:59: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.1.0
X-Bugzilla-Keywords: ABI
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kamleshbhalui at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88877-4-JtmSe2hMXK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88877-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88877-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: 2019-01/txt/msg02338.txt.bz2
Content-length: 425

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

--- Comment #9 from Kamlesh Kumar <kamleshbhalui at gmail dot com> ---
following testcase produces wrong result

$cat test.c

#include <stdio.h>
int main () {
unsigned int x=-1;
double d=x;
printf("%lf",d); 
return 0;
}

$./ccppc -mcpu=e6500 -mabi=elfv2 -msoft-float -m64 test.c

$./a.out
9223372036854775810.000000

while Expected output is:
4294967295.000000
>From gcc-bugs-return-629530-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 06:55:38 2019
Return-Path: <gcc-bugs-return-629530-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82566 invoked by alias); 17 Jan 2019 06:55: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 82493 invoked by uid 48); 17 Jan 2019 06:55:34 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88877] rs6000 emits signed extension for unsigned int  type(__floatunsidf).
Date: Thu, 17 Jan 2019 06:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.1.0
X-Bugzilla-Keywords: ABI
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88877-4-0aB2rpIiL1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88877-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88877-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: 2019-01/txt/msg02339.txt.bz2
Content-length: 513

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

--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Kamlesh Kumar from comment #9)
> $./ccppc -mcpu=e6500 -mabi=elfv2 -msoft-float -m64 test.c

Maybe it is because not many people use soft-float with 64bit which explains
why this has not been seen before.

I don't know of a a 64bit PowerPC which does not have a FPU.  The only place
where soft-float is used is inside the kernel and almost nobody if any uses
float in there.
>From gcc-bugs-return-629531-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 07:18:44 2019
Return-Path: <gcc-bugs-return-629531-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100372 invoked by alias); 17 Jan 2019 07:18: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 100327 invoked by uid 48); 17 Jan 2019 07:18:39 -0000
From: "aoliva at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/87770] [8/9 Regression] ICE in type_dependent_expression_p, at cp/pt.c:25230
Date: Thu, 17 Jan 2019 07:18: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: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: aoliva at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: aoliva at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc assigned_to attachments.created
Message-ID: <bug-87770-4-QHqixQy4xG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87770-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87770-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: 2019-01/txt/msg02340.txt.bz2
Content-length: 642

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

Alexandre Oliva <aoliva at gcc dot gnu.org> changed:

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

--- Comment #4 from Alexandre Oliva <aoliva at gcc dot gnu.org> ---
Created attachment 45448
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45448&action=edit
Candidate patch
>From gcc-bugs-return-629532-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 07:23:25 2019
Return-Path: <gcc-bugs-return-629532-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107641 invoked by alias); 17 Jan 2019 07:23: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 107571 invoked by uid 48); 17 Jan 2019 07:23:20 -0000
From: "sebastian.huber@embedded-brains.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/88643] -Wl,--wrap not supported with LTO
Date: Thu, 17 Jan 2019 07:23: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: 9.0
X-Bugzilla-Keywords: lto
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sebastian.huber@embedded-brains.de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-88643-4-lZhcTjDUlH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88643-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88643-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: 2019-01/txt/msg02341.txt.bz2
Content-length: 769

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

Sebastian Huber <sebastian.huber@embedded-brains.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sebastian.huber@embedded-br
                   |                            |ains.de

--- Comment #2 from Sebastian Huber <sebastian.huber@embedded-brains.de> ---
Is this somehow related to the problem that the LD --wrap does not work for
references internal to a translation unit? See:

https://www.sourceware.org/ml/binutils/2018-12/msg00210.html

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=4ea904edb7b04ad526bd8a5401729a6c1f5a982f
>From gcc-bugs-return-629533-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 07:32:54 2019
Return-Path: <gcc-bugs-return-629533-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116078 invoked by alias); 17 Jan 2019 07:32:53 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 115998 invoked by uid 55); 17 Jan 2019 07:32:48 -0000
From: "aoliva at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/86648] [9 Regression] ICE on class template argument deduction
Date: Thu, 17 Jan 2019 07:32: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: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: aoliva at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: aoliva at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86648-4-V1t64RhoLg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86648-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86648-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: 2019-01/txt/msg02342.txt.bz2
Content-length: 1848

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

--- Comment #7 from Alexandre Oliva <aoliva at gcc dot gnu.org> ---
Author: aoliva
Date: Thu Jan 17 07:32:16 2019
New Revision: 268005

URL: https://gcc.gnu.org/viewcvs?rev=268005&root=gcc&view=rev
Log:
[PR86648] use auto identifier for class placeholder templates

dwarf2out recognizes unspecified auto types by the identifier.  C++
template class placeholders are unspecified auto types that take the
identifier of the class rather than those used by preexisting auto
types, so dwarf2out ICEs when it finds one of those.  Alas, they may
be visible to dwarf2out, since the types of e.g. static data members
of templates are only deduced at member instantiation, i.e., if the
data member is actually referenced, but the data member is added as a
field, still with unspecified auto placeholder type, when the
enclosing class is instantiated.

I've changed placeholder creator to use an auto identifier instead,
which allowed dropping the placeholder test in C++'s is_auto (alas, it
can't be used in dwarf2out, think LTO).  To avoid losing information
in error messages and dumps and whatnot, I've added code to recognize
placeholders for template classes say A and print them out as
A<...auto...>.

for  gcc/cp/ChangeLog

        PR c++/86648
        * pt.c (make_template_placeholder): Use auto_identifier.
        (is_auto): Drop CLASS_PLACEHOLDER_TEMPLATE test.
        * error.c (dump_type): Handle template placeholders.
        * cxx-pretty-print.c (pp_cx_unqualified_id): Likewise.

for  gcc/testsuite/ChangeLog

        PR c++/86648
        * gcc.dg/cpp1z/pr86648.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1z/pr86648.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cxx-pretty-print.c
    trunk/gcc/cp/error.c
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-629534-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 07:33:05 2019
Return-Path: <gcc-bugs-return-629534-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116988 invoked by alias); 17 Jan 2019 07:33:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 116768 invoked by uid 55); 17 Jan 2019 07:33:01 -0000
From: "aoliva at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/87768] [8/9 Regression] ICE in tsubst_copy_and_build, at cp/pt.c:19002 when using concepts
Date: Thu, 17 Jan 2019 07:33: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.2.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: aoliva at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-87768-4-PJ84UCj61F@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87768-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87768-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: 2019-01/txt/msg02343.txt.bz2
Content-length: 1543

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

--- Comment #3 from Alexandre Oliva <aoliva at gcc dot gnu.org> ---
Author: aoliva
Date: Thu Jan 17 07:32:29 2019
New Revision: 268006

URL: https://gcc.gnu.org/viewcvs?rev=268006&root=gcc&view=rev
Log:
[PR87768] reset location wrapper suppression when reentering top level

Concepts-checking and other kinds of early tsubsting may often take
place while location wrappers are suppressed, e.g. because we've
triggered template instantiation within template parameter lists.

With that, exprs that are usually wrapped by VIEW_CONVERT_EXPRs
location wrappers may end up wrapped by NON_LVALUE_EXPRs that are not
marked as location wrappers.  If such NON_LVALUE_EXPRs tsubsted exprs
undergo another round of tsubsting, say for constraint checking, or
even for another round of specialization, they will be rejected by
tsubst_copy_and_build.

This patch arranges for suppress_location_wrappers to be saved and
reset when pushing to the top level, and restored when popping from
it.


for  gcc/cp/ChangeLog

        PR c++/87768
        * cp-tree.h (saved_scope): Add suppress_location_wrappers.
        * name-lookup.c (do_push_to_top_level): Save and reset it.
        (do_pop_from_top_level): Restore it.

for  gcc/testsuite/ChangeLog

        PR c++/87768
        * g++.dg/concepts/pr87768.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/concepts/pr87768.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/name-lookup.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-629535-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 07:37:34 2019
Return-Path: <gcc-bugs-return-629535-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120228 invoked by alias); 17 Jan 2019 07:37:33 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 120111 invoked by uid 48); 17 Jan 2019 07:37:27 -0000
From: "aoliva at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/87768] [8 Regression] ICE in tsubst_copy_and_build, at cp/pt.c:19002 when using concepts
Date: Thu, 17 Jan 2019 07: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.2.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: aoliva at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: aoliva at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: assigned_to short_desc
Message-ID: <bug-87768-4-JOIY0YlSCo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87768-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87768-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: 2019-01/txt/msg02344.txt.bz2
Content-length: 851

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

Alexandre Oliva <aoliva at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |aoliva at gcc dot gnu.org
            Summary|[8/9 Regression] ICE in     |[8 Regression] ICE in
                   |tsubst_copy_and_build, at   |tsubst_copy_and_build, at
                   |cp/pt.c:19002 when using    |cp/pt.c:19002 when using
                   |concepts                    |concepts

--- Comment #4 from Alexandre Oliva <aoliva at gcc dot gnu.org> ---
Fixed in the trunk

Submitted patches and discussion starting at:
https://gcc.gnu.org/ml/gcc-patches/2018-12/msg01782.html
https://gcc.gnu.org/ml/gcc-patches/2019-01/msg00979.html
>From gcc-bugs-return-629536-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 07:38:09 2019
Return-Path: <gcc-bugs-return-629536-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121255 invoked by alias); 17 Jan 2019 07:38:09 -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 121069 invoked by uid 48); 17 Jan 2019 07:38:04 -0000
From: "aoliva at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/86648] [9 Regression] ICE on class template argument deduction
Date: Thu, 17 Jan 2019 07:38: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: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: aoliva at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: aoliva at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-86648-4-lG0ZQFJO99@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86648-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86648-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: 2019-01/txt/msg02345.txt.bz2
Content-length: 428

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

Alexandre Oliva <aoliva at gcc dot gnu.org> changed:

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

--- Comment #8 from Alexandre Oliva <aoliva at gcc dot gnu.org> ---
Fixed
>From gcc-bugs-return-629537-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 07:51:14 2019
Return-Path: <gcc-bugs-return-629537-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22574 invoked by alias); 17 Jan 2019 07:51: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 22485 invoked by uid 48); 17 Jan 2019 07:51:09 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/88684] Please make SANITIZER_NON_UNIQUE_TYPEINFO a runtime flag (or always true)
Date: Thu, 17 Jan 2019 07:51: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88684-4-iFArNpaNKR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88684-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88684-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: 2019-01/txt/msg02346.txt.bz2
Content-length: 565

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

--- Comment #12 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Rafael Avila de Espindola from comment #11)
> (In reply to Martin Liška from comment #10)
> > > That said, I'm willing to ack it for GCC9 even then if upstream comes up
> > > with something or if they don't care, eventually as a GCC only tweak.
> > 
> > Works for me. Note that so far there has been no reply to my patch.
> 
> You might want to CC:
>  Filipe Cabecinhas <me@filcab.net>

I've just done that, thanks.
>From gcc-bugs-return-629540-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 08:05:52 2019
Return-Path: <gcc-bugs-return-629540-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92892 invoked by alias); 17 Jan 2019 08:05: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 92754 invoked by uid 55); 17 Jan 2019 08:05:47 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/86214] [8/9 Regression] Strongly increased stack usage
Date: Thu, 17 Jan 2019 08: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.1.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86214-4-KmNBDxgnU0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86214-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86214-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: 2019-01/txt/msg02349.txt.bz2
Content-length: 451

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

--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Jan 17 08:05:12 2019
New Revision: 268009

URL: https://gcc.gnu.org/viewcvs?rev=268009&root=gcc&view=rev
Log:
        PR tree-optimization/86214
        * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
        if x == y.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cfgexpand.c
>From gcc-bugs-return-629539-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 08:05:39 2019
Return-Path: <gcc-bugs-return-629539-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92073 invoked by alias); 17 Jan 2019 08:05: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 91907 invoked by uid 48); 17 Jan 2019 08:05:33 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/88870] [7/8 Regression] ICE: Segmentation fault (in df_worklist_propagate_backward)
Date: Thu, 17 Jan 2019 08:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-88870-4-a6K6fm8oUm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88870-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88870-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: 2019-01/txt/msg02348.txt.bz2
Content-length: 604

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[7/8/9 Regression] ICE:     |[7/8 Regression] ICE:
                   |Segmentation fault (in      |Segmentation fault (in
                   |df_worklist_propagate_backw |df_worklist_propagate_backw
                   |ard)                        |ard)

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed on the trunk so far.
>From gcc-bugs-return-629538-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 08:05:05 2019
Return-Path: <gcc-bugs-return-629538-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90703 invoked by alias); 17 Jan 2019 08:05:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 90571 invoked by uid 55); 17 Jan 2019 08:05:00 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/88870] [7/8/9 Regression] ICE: Segmentation fault (in df_worklist_propagate_backward)
Date: Thu, 17 Jan 2019 08:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88870-4-goX0EoAWXT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88870-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88870-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: 2019-01/txt/msg02347.txt.bz2
Content-length: 680

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Jan 17 08:04:28 2019
New Revision: 268008

URL: https://gcc.gnu.org/viewcvs?rev=268008&root=gcc&view=rev
Log:
        PR rtl-optimization/88870
        * dce.c (deletable_insn_p): Never delete const/pure calls that can
        throw if we can't alter the cfg or delete dead exceptions.
        (mark_insn): Don't call find_call_stack_args for such calls.

        * gcc.dg/pr88870.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr88870.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/dce.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-629541-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 08:11:11 2019
Return-Path: <gcc-bugs-return-629541-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 97852 invoked by alias); 17 Jan 2019 08:11: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 97683 invoked by uid 48); 17 Jan 2019 08:10:58 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/88886] [9 Regression] ice in get_constant, at c-family/c-format.c:292
Date: Thu, 17 Jan 2019 08:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-on-invalid-code, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority target_milestone
Message-ID: <bug-88886-4-5truZWrBMu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88886-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88886-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: 2019-01/txt/msg02350.txt.bz2
Content-length: 345

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
   Target Milestone|---                         |9.0
>From gcc-bugs-return-629542-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 08:14:45 2019
Return-Path: <gcc-bugs-return-629542-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101084 invoked by alias); 17 Jan 2019 08:14: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 100908 invoked by uid 48); 17 Jan 2019 08:14:40 -0000
From: "umesh.kalappa0 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88877] rs6000 emits signed extension for unsigned int  type(__floatunsidf).
Date: Thu, 17 Jan 2019 08:14: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.1.0
X-Bugzilla-Keywords: ABI
X-Bugzilla-Severity: normal
X-Bugzilla-Who: umesh.kalappa0 at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88877-4-jD4aum4qNr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88877-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88877-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: 2019-01/txt/msg02351.txt.bz2
Content-length: 814

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

--- Comment #11 from Umesh Kalappa <umesh.kalappa0 at gmail dot com> ---
>>To make slightly better code we could make the soft float routines be
prototyped?

having the prototype also no luck here like 
$cat test.c


#include <stdio.h>
double __floatunsidf(unsigned int );
int main () {
unsigned int x=-1;
double d=x;
printf("%lf",d); 
return 0;
}

$./ccppc -mcpu=e6500 -mabi=elfv2 -msoft-float -m64 test.c

$./a.out
9223372036854775810.000000

while Expected output is:
4294967295.000000

>>Maybe it is because not many people use soft-float with 64bit which explains why this has not been seen before.

But we do have this case ,where we ended up using the soft float and any
suggestions on @kamllesh fix ,where we don't promote for libcalls ?
>From gcc-bugs-return-629543-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 08:19:52 2019
Return-Path: <gcc-bugs-return-629543-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105969 invoked by alias); 17 Jan 2019 08:19: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 105891 invoked by uid 48); 17 Jan 2019 08:19:47 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/88882] gcc generates wrong debug information at -O1
Date: Thu, 17 Jan 2019 08:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: wrong-debug
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 version everconfirmed
Message-ID: <bug-88882-4-xbmi2OYYPC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88882-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88882-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: 2019-01/txt/msg02352.txt.bz2
Content-length: 1848

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-debug
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-01-17
            Version|unknown                     |9.0
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
The fact that l == 2 initially has been completely elided in the IL without
retaining a # DEBUG l = NULL.  CCP does this when the basic-block containing
the debug stmts is elided.

+Removing basic block 4
 main ()
 {
   int l;
@@ -8,7 +9,6 @@
   int c.1_2;
   int _3;
   int c.2_4;
-  int _11;

   <bb 2> :
   # DEBUG BEGIN_STMT
@@ -19,35 +19,27 @@
   if (b.0_1 != 0)
     goto <bb 3>; [INV]
   else
-    goto <bb 4>; [INV]
+    goto <bb 5>; [INV]

   <bb 4> :
   # DEBUG BEGIN_STMT
-  l_7 = 2;
-  # DEBUG l => l_7
-  # DEBUG BEGIN_STMT
-  goto <bb 6>; [INV]
-
-  <bb 5> :
-  # DEBUG BEGIN_STMT
   optimize_me_not ();

Or rather it is likely CFG cleanup which is faced with

<bb 3> :
# DEBUG BEGIN_STMT
b.0_1 = b;
if (b.0_1 != 0)
  goto <bb 3>; [INV]
else
  goto <bb 4>; [INV]

<bb 4> :
# DEBUG BEGIN_STMT
# DEBUG l => 2
# DEBUG BEGIN_STMT
goto <bb 6>; [INV]

<bb 6> :
c.2_4 = c;
if (c.2_4 <= 1)
  goto <bb 5>; [INV]
else
  goto <bb 7>; [INV]

note how it cannot move the debug stmts to neither the predecessor nor
the successor but it has to elide the forwarder for compare-debug
reasons.  If we knew that l didn't have a value before we could have
moved it to the predecessor though.

Hard one.

Well - allow DEBUG stmts on edges ;)
>From gcc-bugs-return-629544-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 08:27:17 2019
Return-Path: <gcc-bugs-return-629544-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114105 invoked by alias); 17 Jan 2019 08:27:17 -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 113942 invoked by uid 48); 17 Jan 2019 08:27:12 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/86214] [8/9 Regression] Strongly increased stack usage
Date: Thu, 17 Jan 2019 08:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.1.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86214-4-1MO2t28qHU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86214-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86214-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: 2019-01/txt/msg02353.txt.bz2
Content-length: 650

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

--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Short testcase that shows what's going on on the #c7 testcase:
typedef __SIZE_TYPE__ size_t;
struct A { A (); ~A (); int a; void qux (const char *); };
int bar (char *);

static inline __attribute__((always_inline)) A
foo ()
{
  char b[8192];
  int x = bar (b);
  A s;
  if (x > 0 && (size_t) x < sizeof b)
    s.qux (b);
  return s;
}

void
baz ()
{
  A a;
  foo (); foo (); foo (); foo (); foo ();
  foo (); foo (); foo (); foo (); foo ();
  foo (); foo (); foo (); foo (); foo ();
  foo (); foo (); foo (); foo (); foo ();
}
>From gcc-bugs-return-629545-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 08:37:13 2019
Return-Path: <gcc-bugs-return-629545-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53608 invoked by alias); 17 Jan 2019 08: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 53503 invoked by uid 55); 17 Jan 2019 08:37:08 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88760] GCC unrolling is suboptimal
Date: Thu, 17 Jan 2019 08:37: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: 9.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenther at suse dot de
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88760-4-g3QP1joOnm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88760-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88760-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: 2019-01/txt/msg02354.txt.bz2
Content-length: 1987

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

--- Comment #13 from rguenther at suse dot de <rguenther at suse dot de> ---
On Wed, 16 Jan 2019, ktkachov at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88760
> 
> --- Comment #11 from ktkachov at gcc dot gnu.org ---
> Thank you all for the input.
> 
> Just to add a bit of data.
> I've instrumented 510.parest_r to count the number of loop iterations to get a
> feel for how much of the unrolled loop is spent in the actual unrolled part
> rather than the prologue/peeled part. Overall, the hot function itself is
> entered 290M times. The distribution of loop iteration counts is:
> 
> Frequency iter:
> 92438870  36
> 87028560  54
> 20404571  24
> 17312960  62
> 14237184  72
> 13403904  108
> 7574437   102
> 7574420   70
> 5564881   40
> 4328249   64
> 4328240   46
> 3142656   48
> 2666496   124
> 1248176   8
> 1236641   16
> 1166592   204
> 1166592   140
> 1134392   4
>  857088   80
>  666624   92
>  666624   128
>  618320   30
>  613056   1
>  234464   2
>  190464   32
>   95232   60
>   84476   20
>   48272   10
>    6896   5
> 
> So the two most common iteration counts are 36 and 54. For an 8x unrolled loop
> that's 4 and 6 iterations spent in the prologue with 4 and 6 times going around
> the 8x unrolled loop respectively.
> 
> As an experiment I hacked the AArch64 assembly of the function generated with
> -funroll-loops to replace the peeled prologue version with a simple
> non-unrolled loop. That gave a sizeable speedup on two AArch64 platforms: >7%.
> 
> So beyond the vectorisation point Richard S. made above, maybe it's worth
> considering replacing the peeled prologue with a simple loop instead?
> Or at least add that as a distinct unrolling strategy and work to come up with
> an analysis that would allow us to choose one over the other?

Patches welcome ;)

Usually the peeling is done to improve branch prediction on the
prologue/epilogue.
>From gcc-bugs-return-629546-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 08:45:49 2019
Return-Path: <gcc-bugs-return-629546-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 104254 invoked by alias); 17 Jan 2019 08:45:48 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 93437 invoked by uid 55); 17 Jan 2019 08:45:40 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/86736] [9 regression] g++.dg/asan/pr81021.C   -O2 -flto -flto-partition=none ICE at dwarf2out.c:31111
Date: Thu, 17 Jan 2019 08:45: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: 9.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: P1
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86736-4-MOyeuTmfNQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86736-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86736-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: 2019-01/txt/msg02355.txt.bz2
Content-length: 520

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

--- Comment #14 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Thu Jan 17 08:45:00 2019
New Revision: 268010

URL: https://gcc.gnu.org/viewcvs?rev=268010&root=gcc&view=rev
Log:
2019-01-17  Richard Biener  <rguenther@suse.de>

        PR lto/86736
        * dwarf2out.c (want_pubnames): Never generate pubnames sections
        and friends for the LTO part of debug info.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/dwarf2out.c
>From gcc-bugs-return-629548-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 08:46:29 2019
Return-Path: <gcc-bugs-return-629548-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26333 invoked by alias); 17 Jan 2019 08:46: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 17756 invoked by uid 48); 17 Jan 2019 08:46:24 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/86549] [8/9 Regression] -flto -g0 vs. -g issues
Date: Thu, 17 Jan 2019 08:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-on-valid-code, lto
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-86549-4-6U4GbXs9Ih@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86549-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86549-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: 2019-01/txt/msg02357.txt.bz2
Content-length: 524

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

Bug 86736 Summary: [9 regression] g++.dg/asan/pr81021.C   -O2 -flto -flto-partition=none ICE at dwarf2out.c:31111
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86736

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-629547-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 08:46:28 2019
Return-Path: <gcc-bugs-return-629547-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25832 invoked by alias); 17 Jan 2019 08:46: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 15575 invoked by uid 48); 17 Jan 2019 08:46:23 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/86736] [9 regression] g++.dg/asan/pr81021.C   -O2 -flto -flto-partition=none ICE at dwarf2out.c:31111
Date: Thu, 17 Jan 2019 08:46: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: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-86736-4-GQsWB9fba3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86736-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86736-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: 2019-01/txt/msg02356.txt.bz2
Content-length: 430

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

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

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

--- Comment #15 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-629550-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 08:51:39 2019
Return-Path: <gcc-bugs-return-629550-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28308 invoked by alias); 17 Jan 2019 08:51: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 28219 invoked by uid 55); 17 Jan 2019 08:51:35 -0000
From: "xguo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88489] [9 Regression] FAIL: gcc.target/i386/avx512f-vfixupimmss-2.c execution test
Date: Thu, 17 Jan 2019 08:51: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: xguo 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88489-4-l4Iwc9NVYL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88489-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88489-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: 2019-01/txt/msg02359.txt.bz2
Content-length: 1170

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

--- Comment #7 from xuepeng guo <xguo at gcc dot gnu.org> ---
Author: xguo
Date: Thu Jan 17 08:51:01 2019
New Revision: 268011

URL: https://gcc.gnu.org/viewcvs?rev=268011&root=gcc&view=rev
Log:
gcc/ChangeLog:
2019-01-17  Wei Xiao  <wei3.xiao@intel.com>

        PR target/88794
        Revert:
        2018-12-15  Jakub Jelinek  <jakub@redhat.com>

        PR target/88489
        * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
        (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
        instead of UNSPEC_FIXUPIMM.

gcc/testsuite/ChangeLog:
2019-01-17  Wei Xiao  <wei3.xiao@intel.com>

        PR target/88794
        Revert:
        2018-12-15  Jakub Jelinek  <jakub@redhat.com>

        PR target/88489
        * gcc.target/i386/avx512vl-vfixupimmsd-2.c: New test.
        * gcc.target/i386/avx512vl-vfixupimmss-2.c: New test.

Removed:
    trunk/gcc/testsuite/gcc.target/i386/avx512vl-vfixupimmsd-2.c
    trunk/gcc/testsuite/gcc.target/i386/avx512vl-vfixupimmss-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/sse.md
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-629549-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 08:51:39 2019
Return-Path: <gcc-bugs-return-629549-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28298 invoked by alias); 17 Jan 2019 08:51: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 28212 invoked by uid 55); 17 Jan 2019 08:51:35 -0000
From: "xguo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88794] [9 Regression] fixupimm intrinsics are unusable
Date: Thu, 17 Jan 2019 08:51: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: xguo at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88794-4-6Xfilm7pFg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88794-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88794-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: 2019-01/txt/msg02358.txt.bz2
Content-length: 1170

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

--- Comment #2 from xuepeng guo <xguo at gcc dot gnu.org> ---
Author: xguo
Date: Thu Jan 17 08:51:01 2019
New Revision: 268011

URL: https://gcc.gnu.org/viewcvs?rev=268011&root=gcc&view=rev
Log:
gcc/ChangeLog:
2019-01-17  Wei Xiao  <wei3.xiao@intel.com>

        PR target/88794
        Revert:
        2018-12-15  Jakub Jelinek  <jakub@redhat.com>

        PR target/88489
        * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
        (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
        instead of UNSPEC_FIXUPIMM.

gcc/testsuite/ChangeLog:
2019-01-17  Wei Xiao  <wei3.xiao@intel.com>

        PR target/88794
        Revert:
        2018-12-15  Jakub Jelinek  <jakub@redhat.com>

        PR target/88489
        * gcc.target/i386/avx512vl-vfixupimmsd-2.c: New test.
        * gcc.target/i386/avx512vl-vfixupimmss-2.c: New test.

Removed:
    trunk/gcc/testsuite/gcc.target/i386/avx512vl-vfixupimmsd-2.c
    trunk/gcc/testsuite/gcc.target/i386/avx512vl-vfixupimmss-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/sse.md
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-629551-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 08:53:43 2019
Return-Path: <gcc-bugs-return-629551-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34514 invoked by alias); 17 Jan 2019 08:53:43 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 32508 invoked by uid 48); 17 Jan 2019 08:53:39 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/86214] [8/9 Regression] Strongly increased stack usage
Date: Thu, 17 Jan 2019 08:53: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.1.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86214-4-qrbkPO6mn0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86214-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86214-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: 2019-01/txt/msg02360.txt.bz2
Content-length: 426

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

--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #11)
> The workaround for MySQL, at least for -O2, would be to move logger:msg
> definition out from the class, so it is not inline, then at least gcc trunk
> doesn't want to inline it and you don't run into this.

Or just add -fconserve-stack to the g++ options.
>From gcc-bugs-return-629552-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 08:58:29 2019
Return-Path: <gcc-bugs-return-629552-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52746 invoked by alias); 17 Jan 2019 08:58: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 52640 invoked by uid 48); 17 Jan 2019 08:58:24 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/86214] [8/9 Regression] Strongly increased stack usage
Date: Thu, 17 Jan 2019 08:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.1.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86214-4-NN0VYALJuM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86214-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86214-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: 2019-01/txt/msg02361.txt.bz2
Content-length: 761

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

--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Ah, the #c13 testcase shows the issue, but in the early inliner, not in IPA
inliner like is triggered on the #c7 testcase.
This modified testcase triggers it in the IPA inliner:
typedef __SIZE_TYPE__ size_t;
struct A { A (); ~A (); int a; void qux (const char *); };
int bar (char *);

static inline A
foo ()
{
  char b[8192];
  int x = bar (b);
  A s;
  if (x > 0 && (size_t) x < sizeof b)
    s.qux (b);
  return s;
}

void
baz ()
{
  A a;
  char c[1024];
  bar (c);
  foo (); foo (); foo (); foo (); foo ();
  foo (); foo (); foo (); foo (); foo ();
  foo (); foo (); foo (); foo (); foo ();
  foo (); foo (); foo (); foo (); foo ();
}
>From gcc-bugs-return-629553-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 09:04:03 2019
Return-Path: <gcc-bugs-return-629553-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76540 invoked by alias); 17 Jan 2019 09:04:02 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 76419 invoked by uid 48); 17 Jan 2019 09:03:58 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/87187] FAIL: gfortran.dg/short_circuiting_3.f90   -g -flto  (internal compiler error) on darwin
Date: Thu, 17 Jan 2019 09:04: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: 9.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 cc
Message-ID: <bug-87187-4-L6UHnEAiEB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87187-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87187-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: 2019-01/txt/msg02362.txt.bz2
Content-length: 614

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
                 CC|                            |rguenth at gcc dot gnu.org

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
I can't reproduce this the way I suggested.  Can you check if this still
happens on darwin?  If so, can you paste the compile command from
testsuite/gfortran/gfortran.log?
>From gcc-bugs-return-629555-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 09:34:54 2019
Return-Path: <gcc-bugs-return-629555-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103067 invoked by alias); 17 Jan 2019 09:34:53 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 103009 invoked by uid 48); 17 Jan 2019 09:34:49 -0000
From: "kretz at kde dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/24073] (vector float){a, b, 0, 0} code gen is not good
Date: Thu, 17 Jan 2019 09:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.1.0
X-Bugzilla-Keywords: missed-optimization, ssemmx
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: kretz at kde dot org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-24073-4-6wfbMCPKCs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-24073-4@http.gcc.gnu.org/bugzilla/>
References: <bug-24073-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: 2019-01/txt/msg02364.txt.bz2
Content-length: 488

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

Matthias Kretz <kretz at kde dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kretz at kde dot org

--- Comment #8 from Matthias Kretz <kretz at kde dot org> ---
I believe the issue is resolved by now. See https://godbolt.org/z/urg7ri (add
-mavx and/or add more variants to test).
>From gcc-bugs-return-629554-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 09:34:39 2019
Return-Path: <gcc-bugs-return-629554-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102286 invoked by alias); 17 Jan 2019 09:34: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 102198 invoked by uid 55); 17 Jan 2019 09:34:33 -0000
From: "xguo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88794] [9 Regression] fixupimm intrinsics are unusable
Date: Thu, 17 Jan 2019 09:34: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: xguo at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88794-4-PL3HwemBKg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88794-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88794-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: 2019-01/txt/msg02363.txt.bz2
Content-length: 967

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

--- Comment #3 from xuepeng guo <xguo at gcc dot gnu.org> ---
Author: xguo
Date: Thu Jan 17 09:34:00 2019
New Revision: 268012

URL: https://gcc.gnu.org/viewcvs?rev=268012&root=gcc&view=rev
Log:
2019-01-17  Wei Xiao  <wei3.xiao@intel.com>

        PR target/88794
        Revert:
        2018-11-12  Wei Xiao  <wei3.xiao@intel.com>

        * config/i386/sse.md: Combine VFIXUPIMM* patterns
        (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
        (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
        (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
        (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
        (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
        (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/sse.md
>From gcc-bugs-return-629556-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 09:55:35 2019
Return-Path: <gcc-bugs-return-629556-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35766 invoked by alias); 17 Jan 2019 09:55:35 -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 20628 invoked by uid 55); 17 Jan 2019 09:55:29 -0000
From: "xguo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88794] [9 Regression] fixupimm intrinsics are unusable
Date: Thu, 17 Jan 2019 09:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: xguo at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88794-4-QnrY6zE1jW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88794-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88794-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: 2019-01/txt/msg02365.txt.bz2
Content-length: 5403

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

--- Comment #4 from xuepeng guo <xguo at gcc dot gnu.org> ---
Author: xguo
Date: Thu Jan 17 09:54:56 2019
New Revision: 268013

URL: https://gcc.gnu.org/viewcvs?rev=268013&root=gcc&view=rev
Log:
gcc/ChangeLog
2019-01-17  Wei Xiao  <wei3.xiao@intel.com>

        PR target/88794
        Revert:

        2018-11-06  Wei Xiao  <wei3.xiao@intel.com>

        * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
        (_mm512_fixupimm_round_pd): Update parameters and builtin.
        (_mm512_maskz_fixupimm_round_pd): Ditto.
        (_mm512_fixupimm_round_ps): Ditto.
        (_mm512_maskz_fixupimm_round_ps): Ditto.
        (_mm_fixupimm_round_sd): Ditto.
        (_mm_maskz_fixupimm_round_sd): Ditto.
        (_mm_fixupimm_round_ss): Ditto.
        (_mm_maskz_fixupimm_round_ss): Ditto.
        (_mm512_fixupimm_pd): Ditto.
        (_mm512_maskz_fixupimm_pd): Ditto.
        (_mm512_fixupimm_ps): Ditto.
        (_mm512_maskz_fixupimm_ps): Ditto.
        (_mm_fixupimm_sd): Ditto.
        (_mm_maskz_fixupimm_sd): Ditto.
        (_mm_fixupimm_ss): Ditto.
        (_mm_maskz_fixupimm_ss): Ditto.
        (_mm512_mask_fixupimm_round_pd): Update builtin.
        (_mm512_mask_fixupimm_round_ps): Ditto.
        (_mm_mask_fixupimm_round_sd): Ditto.
        (_mm_mask_fixupimm_round_ss): Ditto.
        (_mm512_mask_fixupimm_pd): Ditto.
        (_mm512_mask_fixupimm_ps): Ditto.
        (_mm_mask_fixupimm_sd): Ditto.
        (_mm_mask_fixupimm_ss): Ditto.
        * config/i386/avx512vlintrin.h:
        (_mm256_fixupimm_pd): Update parameters and builtin.
        (_mm256_maskz_fixupimm_pd): Ditto.
        (_mm256_fixupimm_ps): Ditto.
        (_mm256_maskz_fixupimm_ps): Ditto.
        (_mm_fixupimm_pd): Ditto.
        (_mm_maskz_fixupimm_pd): Ditto.
        (_mm_fixupimm_ps): Ditto.
        (_mm_maskz_fixupimm_ps): Ditto.
        (_mm256_mask_fixupimm_pd): Update builtin.
        (_mm256_mask_fixupimm_ps): Ditto.
        (_mm_mask_fixupimm_pd): Ditto.
        (_mm_mask_fixupimm_ps): Ditto.
        * config/i386/i386-builtin-types.def: Add new types and remove useless
ones.
        * config/i386/i386-builtin.def: Update builtin definitions.
        * config/i386/i386.c: Handle new builtin types and remove useless ones.
        * config/i386/sse.md: Update VFIXUPIMM* patterns.
        (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
        (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
        (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
        (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
        (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
        (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
        * config/i386/subst.md:
        (round_saeonly_sd_mask_operand4): Add new subst_attr.
        (round_saeonly_sd_mask_op4): Ditto.
        (round_saeonly_expand_operand5): Ditto.
        (round_saeonly_expand): Update.

gcc/testsuite/ChangeLog
2019-01-17  Wei Xiao  <wei3.xiao@intel.com>

        PR target/88794
        Revert:
        2018-11-06  Wei Xiao  <wei3.xiao@intel.com>

        * gcc.target/i386/avx-1.c: Update tests for VFIXUPIMM* intrinsics.
        * gcc.target/i386/avx512f-vfixupimmpd-1.c: Ditto.
        * gcc.target/i386/avx512f-vfixupimmpd-2.c: Ditto.
        * gcc.target/i386/avx512f-vfixupimmps-1.c: Ditto.
        * gcc.target/i386/avx512f-vfixupimmsd-1.c: Ditto.
        * gcc.target/i386/avx512f-vfixupimmsd-2.c: Ditto.
        * gcc.target/i386/avx512f-vfixupimmss-1.c: Ditto.
        * gcc.target/i386/avx512f-vfixupimmss-2.c: Ditto.
        * gcc.target/i386/avx512vl-vfixupimmpd-1.c: Ditto.
        * gcc.target/i386/avx512vl-vfixupimmps-1.c: Ditto.
        * gcc.target/i386/sse-13.c: Ditto.
        * gcc.target/i386/sse-14.c: Ditto.
        * gcc.target/i386/sse-22.c: Ditto.
        * gcc.target/i386/sse-23.c: Ditto.
        * gcc.target/i386/testimm-10.c: Ditto.
        * gcc.target/i386/testround-1.c: Ditto.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/avx512fintrin.h
    trunk/gcc/config/i386/avx512vlintrin.h
    trunk/gcc/config/i386/i386-builtin-types.def
    trunk/gcc/config/i386/i386-builtin.def
    trunk/gcc/config/i386/i386.c
    trunk/gcc/config/i386/sse.md
    trunk/gcc/config/i386/subst.md
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/i386/avx-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-vfixupimmpd-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-vfixupimmpd-2.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-vfixupimmps-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-vfixupimmps-2.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-vfixupimmsd-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-vfixupimmsd-2.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-vfixupimmss-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-vfixupimmss-2.c
    trunk/gcc/testsuite/gcc.target/i386/avx512vl-vfixupimmpd-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512vl-vfixupimmps-1.c
    trunk/gcc/testsuite/gcc.target/i386/sse-13.c
    trunk/gcc/testsuite/gcc.target/i386/sse-14.c
    trunk/gcc/testsuite/gcc.target/i386/sse-22.c
    trunk/gcc/testsuite/gcc.target/i386/sse-23.c
    trunk/gcc/testsuite/gcc.target/i386/testimm-10.c
    trunk/gcc/testsuite/gcc.target/i386/testround-1.c
>From gcc-bugs-return-629557-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 10:17:40 2019
Return-Path: <gcc-bugs-return-629557-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19232 invoked by alias); 17 Jan 2019 10:17: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 19132 invoked by uid 48); 17 Jan 2019 10:17:36 -0000
From: "krebbel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88856] [8/9 Regression] gfortran producing wrong code with -funroll-loops
Date: Thu, 17 Jan 2019 10:17: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.2.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: krebbel 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.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88856-4-IRWa4kA0TL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88856-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88856-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: 2019-01/txt/msg02366.txt.bz2
Content-length: 640

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

--- Comment #3 from Andreas Krebbel <krebbel at gcc dot gnu.org> ---
I've tried building scipy 1.1.0 from github on a Fedora installation. The build
already uses -funroll-loops. But I couldn't reproduce the problem with the
resulting binary.

gcc version 8.0.1 20180324

Aurelien already tracked it down to a miscompilation of
scipy/optimize/minpack/qrsolv.f

This source file appears to contain just a single function (qrsolv) which is
not too big. I think I can work with that after being able to reproduce the
problem.

As Jakub mentioned the exact compiler cmdline would be good.
>From gcc-bugs-return-629559-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 10:18:57 2019
Return-Path: <gcc-bugs-return-629559-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21624 invoked by alias); 17 Jan 2019 10:18: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 21556 invoked by uid 48); 17 Jan 2019 10:18:53 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88889] [9 Regression] New valgrind warning since r261039
Date: Thu, 17 Jan 2019 10:18: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_reconfirmed_on cc cf_known_to_work target_milestone cf_known_to_fail
Message-ID: <bug-88889-4-dK5iJjsvgf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88889-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88889-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: 2019-01/txt/msg02368.txt.bz2
Content-length: 538

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2019-1-17
                 CC|                            |qinzhao at gcc dot gnu.org
      Known to work|                            |8.2.0
   Target Milestone|---                         |9.0
      Known to fail|                            |9.0
>From gcc-bugs-return-629558-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 10:18:20 2019
Return-Path: <gcc-bugs-return-629558-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20572 invoked by alias); 17 Jan 2019 10:18: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 20514 invoked by uid 48); 17 Jan 2019 10:18:16 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88889] New: [9 Regression] New valgrind warning since r261039
Date: Thu, 17 Jan 2019 10:18: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-88889-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: 2019-01/txt/msg02367.txt.bz2
Content-length: 1747

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

            Bug ID: 88889
           Summary: [9 Regression] New valgrind warning since r261039
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
  Target Milestone: ---

I've just isolated a test-case from curl package and there's a new valgrind
error:

$ cat lib1560.c
void
__attribute__((noipa))
updateurl(const char *p)
{
  char part[16];
  if(1 == __builtin_sscanf(p, "%1[^=]=", part)) {
    {
      __builtin_printf ("part:%s\n", part);
      int what = __builtin_strcmp("1234567", part);
      if(!what)
        __builtin_abort ();
    }
  }
}

int main()
{
  updateurl("a=");
  return 0;
}

$ gcc lib1560.c -O2 -g && valgrind ./a.out 
==4115== Memcheck, a memory error detector
==4115== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==4115== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info
==4115== Command: ./a.out
==4115== 
part:a
==4115== Conditional jump or move depends on uninitialised value(s)
==4115==    at 0x40119D: updateurl (lib1560.c:9)
==4115==    by 0x40106D: main (lib1560.c:18)

we correctly emit:
what_7 = __builtin_strcmp_eq ("1234567", &part, 8);

which is transformed into following assembly:

        movabsq $15540725856023089, %rax
        cmpq    %rax, (%rsp)

That's correct transformation, but as part[2:] is uninitialized, valgrind
complains about comparison of the uninitialized bytes of 'part'.

What to do with that?
>From gcc-bugs-return-629560-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 10:56:34 2019
Return-Path: <gcc-bugs-return-629560-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100996 invoked by alias); 17 Jan 2019 10:56: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 100924 invoked by uid 48); 17 Jan 2019 10:56:29 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/87187] FAIL: gfortran.dg/short_circuiting_3.f90   -g -flto  (internal compiler error) on darwin
Date: Thu, 17 Jan 2019 10:56: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: 9.0
X-Bugzilla-Keywords:
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-87187-4-YJaia4a4kW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87187-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87187-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: 2019-01/txt/msg02369.txt.bz2
Content-length: 1119

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

--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> I can't reproduce this the way I suggested.  Can you check if this still
> happens on darwin?  If so, can you paste the compile command from
> testsuite/gfortran/gfortran.log?

% gfc /opt/gcc/_clean/gcc/testsuite/gfortran.dg/short_circuiting_3.f90 -g -flto
-O2
lto1: internal compiler error: in gen_subprogram_die, at dwarf2out.c:22795
% gfc -v
Using built-in specs.
COLLECT_GCC=gfc
COLLECT_LTO_WRAPPER=/opt/gcc/gcc9w/libexec/gcc/x86_64-apple-darwin18.2.0/9.0.0/lto-wrapper
Target: x86_64-apple-darwin18.2.0
Configured with: ../work/configure --prefix=/opt/gcc/gcc9w
--enable-languages=c,c++,fortran,objc,obj-c++,ada,lto --with-gmp=/opt/mp-new
--with-system-zlib --with-isl=/opt/mp-new --enable-lto --enable-plugin
--with-arch=corei7 --with-cpu=corei7
--with-sysroot=/Applications/Xcode-6.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
Thread model: posix
gcc version 9.0.0 20190117 (experimental) [trunk revision 268011p8] (GCC)
>From gcc-bugs-return-629561-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 10:58:12 2019
Return-Path: <gcc-bugs-return-629561-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102685 invoked by alias); 17 Jan 2019 10:58: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 102620 invoked by uid 48); 17 Jan 2019 10:58:08 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/88871] [9 regression] ICE segmentation fault in f951
Date: Thu, 17 Jan 2019 10:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88871-4-CyPrEkRAud@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88871-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88871-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: 2019-01/txt/msg02370.txt.bz2
Content-length: 183

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

--- Comment #11 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
The patch in comment 10 fixes the ICEs for me. Thanks.
>From gcc-bugs-return-629562-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 11:10:40 2019
Return-Path: <gcc-bugs-return-629562-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11628 invoked by alias); 17 Jan 2019 11:10: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 11544 invoked by uid 48); 17 Jan 2019 11:10:35 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/86214] [8/9 Regression] Strongly increased stack usage
Date: Thu, 17 Jan 2019 11:10: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.1.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-86214-4-IbeoxmwTp1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86214-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86214-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: 2019-01/txt/msg02371.txt.bz2
Content-length: 443

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

--- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 45449
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45449&action=edit
gcc9-pr86214.patch

Untested patch.  Not 100% sure if there must be just one landing pad, will see
during bootstrap/regtest.  If there must be at most one, the second field can
go and it can just clear the first field.
>From gcc-bugs-return-629563-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 11:11:42 2019
Return-Path: <gcc-bugs-return-629563-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12960 invoked by alias); 17 Jan 2019 11:11:42 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 12809 invoked by uid 48); 17 Jan 2019 11:11:38 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/88788] [9 Regression] Infinite loop in malloc_candidate_p_1 since r264838
Date: Thu, 17 Jan 2019 11:11: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: 9.0
X-Bugzilla-Keywords: compile-time-hog, needs-reduction
X-Bugzilla-Severity: normal
X-Bugzilla-Who: asolokha at gmx dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: prathamesh3492 at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88788-4-AMwmsODvE6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88788-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88788-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: 2019-01/txt/msg02372.txt.bz2
Content-length: 137

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

--- Comment #17 from Arseny Solokha <asolokha at gmx dot com> ---
Is it fixed now?
>From gcc-bugs-return-629564-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 11:32:00 2019
Return-Path: <gcc-bugs-return-629564-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78245 invoked by alias); 17 Jan 2019 11:32:00 -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 77988 invoked by uid 48); 17 Jan 2019 11:31:50 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88889] [9 Regression] New valgrind warning since r261039
Date: Thu, 17 Jan 2019 11:32: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc everconfirmed
Message-ID: <bug-88889-4-edFaKCDA4h@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88889-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88889-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: 2019-01/txt/msg02373.txt.bz2
Content-length: 1194

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |mark at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Indeed, the generated code looks correct, on the other side for valgrind it
will be terribly hard to differentiate this case from when the source is
  unsigned long long *p = (unsigned long long *) &part[0];
  if (*p == 0x37363534333231)
    __builtin_abort ();
where it wants to complain loudly.  The only way I see is some on the side
data, debuginfo (if it contains information that the cmpq %rax, (%rsp) comes
from inlined strcmp), or whatever other way we can tell valgrind about this.
For this inlined strcmp case it would want to look at the bytes from memory
until first '\0' inclusive and ignore any differences afterwards.
>From gcc-bugs-return-629565-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 11:39:37 2019
Return-Path: <gcc-bugs-return-629565-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89239 invoked by alias); 17 Jan 2019 11:39: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 89186 invoked by uid 48); 17 Jan 2019 11:39:32 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/88881] std::filesystem::status gives bad results on mingw32
Date: Thu, 17 Jan 2019 11:39: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: 9.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:
Message-ID: <bug-88881-4-xTB9Y52niV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88881-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88881-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: 2019-01/txt/msg02374.txt.bz2
Content-length: 468

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

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #3)
> The "nonexistent-path/.." part is reported as
> https://sourceforge.net/p/mingw-w64/bugs/782/

And is apparently a feature not a bug. That's just how paths work on Windows.
Go figure.

So the remaining problem is the trailing slash, which is fixed in mingw-w64
v6.0.0, and I have a workaround for.
>From gcc-bugs-return-629566-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 11:43:22 2019
Return-Path: <gcc-bugs-return-629566-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113273 invoked by alias); 17 Jan 2019 11:43: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 113154 invoked by uid 48); 17 Jan 2019 11:43:17 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88889] [9 Regression] New valgrind warning since r261039
Date: Thu, 17 Jan 2019 11:43: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88889-4-99LEcgeeLi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88889-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88889-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: 2019-01/txt/msg02375.txt.bz2
Content-length: 968

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

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed with:

$ gcc lib1560.c -O2 && valgrind --expensive-definedness-checks=yes ./a.out
==15329== Memcheck, a memory error detector
==15329== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==15329== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info
==15329== Command: ./a.out
==15329== 
part:a
==15329== 
==15329== HEAP SUMMARY:
==15329==     in use at exit: 0 bytes in 0 blocks
==15329==   total heap usage: 1 allocs, 1 frees, 1,024 bytes allocated
==15329== 
==15329== All heap blocks were freed -- no leaks are possible
==15329== 
==15329== For counts of detected and suppressed errors, rerun with: -v
==15329== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
>From gcc-bugs-return-629567-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 11:52:38 2019
Return-Path: <gcc-bugs-return-629567-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70967 invoked by alias); 17 Jan 2019 11:52: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 70876 invoked by uid 48); 17 Jan 2019 11:52:33 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88889] [9 Regression] New valgrind warning since r261039
Date: Thu, 17 Jan 2019 11:52: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88889-4-VyLZyonYQI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88889-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88889-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: 2019-01/txt/msg02376.txt.bz2
Content-length: 1453

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
On the other side, I wonder how many real-world bugs can it find if valgrind
has this strict behavior, isn't the most common case of bugs where all of the
bytes are uninitialized, or none of them are?
Do we want to flag
  char buf[16];
  memcpy (buf, "abcd", 4);
  return memcmp (buf, "defghijk", 8);
as error?  Depending on how is memcmp expanded or library implemented, it will
either read one byte at a time (then it will not be flagged as an error), 4
bytes at a time (also not flagged as an error) or 8 bytes at a time (then it is
flagged as an error).
So, wonder if valgrind couldn't by default handle comparisons where the first
few bytes (in memory ordering) of the compared value are defined and then have
some undefined ones by trying to find out if regardless of what value would the
undefined bytes the comparison would be non-equal silently and have some extra
option to make it emit even those errors at the expense of some false
positives.
Because, say in the memcmp case, if the first 4 bytes are defined and are not
equal to the first bytes of the other value, then it will be non-equal
regardless of what the other bytes contain.  Now, this should be only done if
the comparison is consumed as equality comparison by the conditional jump, if
it is >/>=/</<=, then obviously all bytes matter.
>From gcc-bugs-return-629568-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 11:54:11 2019
Return-Path: <gcc-bugs-return-629568-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 72764 invoked by alias); 17 Jan 2019 11:54: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 72684 invoked by uid 48); 17 Jan 2019 11:54:06 -0000
From: "jseward at acm dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88889] [9 Regression] New valgrind warning since r261039
Date: Thu, 17 Jan 2019 11:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jseward at acm dot 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-88889-4-NAm0Bc33eq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88889-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88889-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: 2019-01/txt/msg02377.txt.bz2
Content-length: 1322

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

jseward at acm dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jseward at acm dot org

--- Comment #4 from jseward at acm dot org ---
This seems to me to be another rerun of the movie where a program does
integer equality on partially defined operands, and still produces a
defined result.  Memcheck can already deal with this, but doesn't do so
for 64-bit compares on amd64 by default, since it's expensive.

In memcheck/mc_translate.c, around line 8354, find this

#     if defined(VGA_x86)
      mce.dlbo.dl_Add32           = DLauto;
      mce.dlbo.dl_CmpEQ32_CmpNE32 = DLexpensive;
#     elif defined(VGA_amd64)
      mce.dlbo.dl_Add64           = DLauto;
      mce.dlbo.dl_CmpEQ32_CmpNE32 = DLexpensive;
#     elif defined(VGA_ppc64le)
      // Needed by (at least) set_AV_CR6() in the front end.                    
      mce.dlbo.dl_CmpEQ64_CmpNE64 = DLexpensive;
#     endif

and add to the VGA_amd64 case:

      mce.dlbo.dl_CmpEQ64_CmpNE64 = DLexpensive;

That should make it run clean even without using
--expensive-definedness-checks=yes.  Does it?
>From gcc-bugs-return-629569-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 11:55:25 2019
Return-Path: <gcc-bugs-return-629569-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75132 invoked by alias); 17 Jan 2019 11:55: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 75053 invoked by uid 48); 17 Jan 2019 11:55:20 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88889] [9 Regression] New valgrind warning since r261039
Date: Thu, 17 Jan 2019 11:55: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88889-4-JyOu4m9Sfr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88889-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88889-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: 2019-01/txt/msg02378.txt.bz2
Content-length: 308

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

--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
> 
> That should make it run clean even without using
> --expensive-definedness-checks=yes.  Does it?

Yes, as mentioned in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88889#c2
>From gcc-bugs-return-629571-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 11:57:36 2019
Return-Path: <gcc-bugs-return-629571-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78453 invoked by alias); 17 Jan 2019 11:57: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 78330 invoked by uid 55); 17 Jan 2019 11:57:31 -0000
From: "nathan at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/86610] [8/9 Regression] non-const operator erroneously called in lambda in templated function
Date: Thu, 17 Jan 2019 11:57: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.1.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nathan at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86610-4-zTftMvhNHJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86610-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86610-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: 2019-01/txt/msg02380.txt.bz2
Content-length: 696

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

--- Comment #7 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Author: nathan
Date: Thu Jan 17 11:56:58 2019
New Revision: 268016

URL: https://gcc.gnu.org/viewcvs?rev=268016&root=gcc&view=rev
Log:
[PR c++/86610] lambda captures in templates

https://gcc.gnu.org/ml/gcc-patches/2019-01/msg00948.html
        PR c++/86610
        * semantics.c (process_outer_var_ref): Only skip dependent types
        in templates.

        PR c++/86610
        * g++.dg/cpp0x/pr86610.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/pr86610.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-629570-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 11:57:18 2019
Return-Path: <gcc-bugs-return-629570-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77437 invoked by alias); 17 Jan 2019 11:57: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 77360 invoked by uid 48); 17 Jan 2019 11:57:13 -0000
From: "nathan at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/86610] [8/9 Regression] non-const operator erroneously called in lambda in templated function
Date: Thu, 17 Jan 2019 11:57: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.1.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nathan at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-86610-4-hmclH0wHGI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86610-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86610-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: 2019-01/txt/msg02379.txt.bz2
Content-length: 434

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

Nathan Sidwell <nathan at gcc dot gnu.org> changed:

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

--- Comment #6 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Fixed r268016
>From gcc-bugs-return-629572-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 12:00:58 2019
Return-Path: <gcc-bugs-return-629572-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82828 invoked by alias); 17 Jan 2019 12:00: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 82491 invoked by uid 48); 17 Jan 2019 12:00:43 -0000
From: "jseward at acm dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88889] [9 Regression] New valgrind warning since r261039
Date: Thu, 17 Jan 2019 12:00:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jseward at acm dot 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88889-4-epewQH1czy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88889-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88889-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: 2019-01/txt/msg02381.txt.bz2
Content-length: 452

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

--- Comment #6 from jseward at acm dot org ---
(In reply to Martin Liška from comment #5)
> > 
> > That should make it run clean even without using
> > --expensive-definedness-checks=yes.  Does it?
> 
> Yes, as mentioned in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88889#c2

Confusion .. #c2 isn't about fixing it without the use of 
--expensive-definedness-checks=, afaics.
>From gcc-bugs-return-629573-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 12:02:19 2019
Return-Path: <gcc-bugs-return-629573-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85036 invoked by alias); 17 Jan 2019 12:02: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 84956 invoked by uid 48); 17 Jan 2019 12:02:14 -0000
From: "jseward at acm dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88889] [9 Regression] New valgrind warning since r261039
Date: Thu, 17 Jan 2019 12:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jseward at acm dot 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88889-4-2LdKtavfrt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88889-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88889-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: 2019-01/txt/msg02382.txt.bz2
Content-length: 906

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

--- Comment #7 from jseward at acm dot org ---
(In reply to Jakub Jelinek from comment #3)
> Because, say in the memcmp case, if the first 4 bytes are defined and are
> not equal to the first bytes of the other value, then it will be non-equal
> regardless of what the other bytes contain.  Now, this should be only done
> if the comparison is consumed as equality comparison by the conditional
> jump, if it is >/>=/</<=, then obviously all bytes matter.

The core observation is: for == and !=, if it is possible to find two 
corresponding bits that are different and both defined, then the result
of the comparison is defined (because == says "No" and != says "Yes")

For <, <=, >, >= etc, Memcheck has various levels of sophistication.  For
example it knows that |value <signed 0| simply returns the top bit of |value|.
>From gcc-bugs-return-629574-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 12:03:18 2019
Return-Path: <gcc-bugs-return-629574-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86460 invoked by alias); 17 Jan 2019 12:03: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 86383 invoked by uid 48); 17 Jan 2019 12:03:13 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88889] [9 Regression] New valgrind warning since r261039
Date: Thu, 17 Jan 2019 12: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88889-4-BngWb4kuLd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88889-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88889-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: 2019-01/txt/msg02383.txt.bz2
Content-length: 609

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

--- Comment #8 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to jseward from comment #6)
> (In reply to Martin Liška from comment #5)
> > > 
> > > That should make it run clean even without using
> > > --expensive-definedness-checks=yes.  Does it?
> > 
> > Yes, as mentioned in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88889#c2
> 
> Confusion .. #c2 isn't about fixing it without the use of 
> --expensive-definedness-checks=, afaics.

Yes, the valgrind error is gone with --expensive-definedness-checks=yes.
>From gcc-bugs-return-629575-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 12:06:46 2019
Return-Path: <gcc-bugs-return-629575-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92237 invoked by alias); 17 Jan 2019 12:06:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 91523 invoked by uid 55); 17 Jan 2019 12:06:39 -0000
From: "tnfchris at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88851] [9 Regression] SVE Stack clash and r263173 use conflicting registers
Date: Thu, 17 Jan 2019 12:06: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tnfchris 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88851-4-hNrJ9TN1V5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88851-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88851-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: 2019-01/txt/msg02384.txt.bz2
Content-length: 879

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

--- Comment #1 from Tamar Christina <tnfchris at gcc dot gnu.org> ---
Author: tnfchris
Date: Thu Jan 17 12:06:04 2019
New Revision: 268017

URL: https://gcc.gnu.org/viewcvs?rev=268017&root=gcc&view=rev
Log:
Rename stack-clash protection CFA register to avoid clash

gcc/ChangeLog:

        PR target/88851
        * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
        * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space):
Use
        it and document registers.

gcc/testsuite/ChangeLog:

        PR target/88851
        * gcc.target/aarch64/stack-check-cfa-3.c: Update test.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/aarch64/aarch64.c
    trunk/gcc/config/aarch64/aarch64.md
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/aarch64/stack-check-cfa-3.c
>From gcc-bugs-return-629576-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 12:07:31 2019
Return-Path: <gcc-bugs-return-629576-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93509 invoked by alias); 17 Jan 2019 12:07: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 93438 invoked by uid 48); 17 Jan 2019 12:07:21 -0000
From: "tnfchris at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88851] [9 Regression] SVE Stack clash and r263173 use conflicting registers
Date: Thu, 17 Jan 2019 12: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tnfchris 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-88851-4-sHhIVm6rPt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88851-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88851-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: 2019-01/txt/msg02385.txt.bz2
Content-length: 442

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

Tamar Christina <tnfchris at gcc dot gnu.org> changed:

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

--- Comment #2 from Tamar Christina <tnfchris at gcc dot gnu.org> ---
Fixed in trunk.
>From gcc-bugs-return-629577-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 12:33:40 2019
Return-Path: <gcc-bugs-return-629577-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78025 invoked by alias); 17 Jan 2019 12:33: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 77122 invoked by uid 48); 17 Jan 2019 12:33:32 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88889] [9 Regression] New valgrind warning since r261039
Date: Thu, 17 Jan 2019 12:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88889-4-EUgX4C2Dw6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88889-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88889-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: 2019-01/txt/msg02386.txt.bz2
Content-length: 823

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

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Testcase that shows this isn't just about cmpq, but also cmpl and cmpw on
x86_64:

extern int strcmp (const char *, const char *);
extern void abort (void);

__attribute__((noipa, noinline, noclone)) void
foo (char *p)
{
  *p = '\0';
}

__attribute__((noipa, noinline, noclone)) int
bar (void)
{
  char b[16];
  foo (b);
  return strcmp (b, "abcdefg") != 0;
}

__attribute__((noipa, noinline, noclone)) int
baz (void)
{
  char b[16];
  foo (b);
  return strcmp (b, "abc") != 0;
}

__attribute__((noipa, noinline, noclone)) int
qux (void)
{
  char b[16];
  foo (b);
  return strcmp (b, "a") != 0;
}

int
main ()
{
  if (bar () != 1 || baz () != 1 || qux () != 1)
    abort ();
  return 0;
}
>From gcc-bugs-return-629578-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 12:38:02 2019
Return-Path: <gcc-bugs-return-629578-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88269 invoked by alias); 17 Jan 2019 12:38:01 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 87873 invoked by uid 48); 17 Jan 2019 12:37:55 -0000
From: "ibuclaw at gdcproject dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug d/87824] x86_64-linux multilib issues
Date: Thu, 17 Jan 2019 12:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: d
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ibuclaw at gdcproject dot org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ibuclaw at gdcproject dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-87824-4-AbOdEOZ7cT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87824-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87824-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: 2019-01/txt/msg02387.txt.bz2
Content-length: 1287

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

--- Comment #19 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
On another look, (In reply to Iain Buclaw from comment #15)
> Still to do are:
> 
> - runnable/cppa.d: (Remove struct __c_{u}long detection and tests)
> - runnable/eh.d: (Have -fno-reorder-blocks-and-partitions default for D)
> - runnable/nulltype.d (Set TYPE_TRANSPARENT_AGGR for D associative arrays)
> 
> I'm still unsure about setting TYPE_TRANSPARENT_AGGR, it seems like its more
> masking something else on x86.  Though as I've said, associative arrays are
> just a `struct{void*}` and treated as if it were a pointer anyway.

On another look, the D language implementation is treating `typeof(null)
function()` as being covariant with `int[int] function()`.

The former is a function that returns `void*`, the latter returns
`struct{void*}`.

There is no difference on x86_64, but on others the difference is subtle.

---
ret_typeof_null:
        mov     eax, 0
        ret

ret_aa_null:
        mov     eax, DWORD PTR 4[esp]
        mov     DWORD PTR [eax], 0
        ret     4
---

I'm going to send a change upstream that these types should not be covariant,
rather than changing the ABI of associative arrays by setting
TYPE_TRANSPARENT_AGGR.
>From gcc-bugs-return-629579-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 12:38:03 2019
Return-Path: <gcc-bugs-return-629579-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88432 invoked by alias); 17 Jan 2019 12:38: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 87949 invoked by uid 48); 17 Jan 2019 12:37:58 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/49330] Integer arithmetic on addresses optimised with pointer arithmetic rules
Date: Thu, 17 Jan 2019 12:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 4.6.1
X-Bugzilla-Keywords: alias, wrong-code
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:
Message-ID: <bug-49330-4-e2dikhqQMO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-49330-4@http.gcc.gnu.org/bugzilla/>
References: <bug-49330-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: 2019-01/txt/msg02388.txt.bz2
Content-length: 1212

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

--- Comment #26 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #25)
> When considering the patch from comment#18 additional data is that only
> 95802 out of 636160 disambiguations that ultimately require base_alias_check
> involve non-CONST_INT_P "other" operand.  That is out of 9531871 total
> cases that would run into base_alias_check, or 1%.
> 
> This is w/o "fixing" DSE (the simple patch of course miscompiles things).

Sorting by invoking pass this is

    236 combine
   8138 cse1
   8404 cse2
   1423 cse_local
 144964 dse1
  83650 dse2
    350 ira
  32000 postreload
  32758 sched2
  75866 vartrack

so the majority comes from DSE (note the above numbers are for the full
boostrap so not comparable to the numbers quoted which are just for
stage3-gcc/*.o)

From CSE I also see the weird

(mem:TF (plus:SI (reg/f:SI 7 sp)
        (scratch:SI)) [0  S16 A8])
 vs. (mem/c:TF (plus:SI (reg/f:SI 19 frame)
        (const_int -16 [0xfffffffffffffff0])) [1  S16 A128])

what's this (scratch:SI)!?  Anyway, I wonder how with unknown scratch
value base_alias_check can figure out the above do not alias.
>From gcc-bugs-return-629580-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 12:38:48 2019
Return-Path: <gcc-bugs-return-629580-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90192 invoked by alias); 17 Jan 2019 12:38:48 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 90110 invoked by uid 48); 17 Jan 2019 12:38:44 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/88788] [9 Regression] Infinite loop in malloc_candidate_p_1 since r264838
Date: Thu, 17 Jan 2019 12:38: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: 9.0
X-Bugzilla-Keywords: compile-time-hog, needs-reduction
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: prathamesh3492 at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-88788-4-6DTU6QTQ98@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88788-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88788-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: 2019-01/txt/msg02389.txt.bz2
Content-length: 430

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

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

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

--- Comment #18 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-629581-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 12:40:40 2019
Return-Path: <gcc-bugs-return-629581-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93117 invoked by alias); 17 Jan 2019 12:40: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 93032 invoked by uid 48); 17 Jan 2019 12:40:36 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libbacktrace/88890] New: libbacktrace on 32-bit system with _FILE_OFFSET_BITS == 64
Date: Thu, 17 Jan 2019 12:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libbacktrace
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vries 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-88890-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: 2019-01/txt/msg02390.txt.bz2
Content-length: 2393

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

            Bug ID: 88890
           Summary: libbacktrace on 32-bit system with _FILE_OFFSET_BITS
                    == 64
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libbacktrace
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vries at gcc dot gnu.org
                CC: ian at gcc dot gnu.org
  Target Milestone: ---

In libbacktrace we use views to load portions of files into memory:
...
extern int backtrace_get_view (struct backtrace_state *state, int descriptor,
                               off_t offset, size_t size,
                               backtrace_error_callback error_callback,
                               void *data, struct backtrace_view *view);
...

One example using this function is:
...
  off_t min_offset;
  off_t max_offset;

  ...

  /* Read all the debug sections in a single view, since they are               
     probably adjacent in the file.  We never release this view.  */

  min_offset = 0;
  max_offset = 0;
  for (i = 0; i < (int) DEBUG_MAX; ++i)
    {
      off_t end;

      if (sections[i].size == 0)
        continue;
      if (min_offset == 0 || sections[i].offset < min_offset)
        min_offset = sections[i].offset;
      end = sections[i].offset + sections[i].size;
      if (end > max_offset)
        max_offset = end;
    }
  if (min_offset == 0 || max_offset == 0)
    {
      if (!backtrace_close (descriptor, error_callback, data))
        goto fail;
      return 1;
    }

  if (!backtrace_get_view (state, descriptor, min_offset,
                           max_offset - min_offset,
                           error_callback, data, &debug_view))
    goto fail;
  debug_view_valid = 1;
...

In the case of a 32-bit system with _FILE_OFFSET_BITS == 64, well have size_t
32-bit unsigned and off_t 64-bit signed, so the max_offset - min_offset
argument for the size parameter may be bigger than the size_t type of the size
parameter allows.

ISTM that the easiest way to fix this, is to change the type of the size
parameter to off_t, and to figure out in the implementation of
backtrace_get_view whether the value of size fits in size_t, and if not, return
with failure.
>From gcc-bugs-return-629582-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 12:59:08 2019
Return-Path: <gcc-bugs-return-629582-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16864 invoked by alias); 17 Jan 2019 12:59:08 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 16756 invoked by uid 48); 17 Jan 2019 12:59:03 -0000
From: "nathan at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/86610] [8/9 Regression] non-const operator erroneously called in lambda in templated function
Date: Thu, 17 Jan 2019 12:59: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.1.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nathan at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86610-4-nsYKl7FVNX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86610-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86610-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: 2019-01/txt/msg02391.txt.bz2
Content-length: 141

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

--- Comment #8 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Fixed gcc-8 r268029
>From gcc-bugs-return-629583-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 12:59:27 2019
Return-Path: <gcc-bugs-return-629583-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17750 invoked by alias); 17 Jan 2019 12:59: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 17661 invoked by uid 55); 17 Jan 2019 12:59:22 -0000
From: "nathan at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/86610] [8/9 Regression] non-const operator erroneously called in lambda in templated function
Date: Thu, 17 Jan 2019 12:59: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.1.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nathan at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86610-4-MaV0JqK5sw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86610-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86610-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: 2019-01/txt/msg02392.txt.bz2
Content-length: 760

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

--- Comment #9 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Author: nathan
Date: Thu Jan 17 12:58:50 2019
New Revision: 268029

URL: https://gcc.gnu.org/viewcvs?rev=268029&root=gcc&view=rev
Log:
[PR c++/86610] lambda captures in templates

https://gcc.gnu.org/ml/gcc-patches/2019-01/msg00948.html
        PR c++/86610
        * semantics.c (process_outer_var_ref): Only skip dependent types
        in templates.

        PR c++/86610
        * g++.dg/cpp0x/pr86610.C: New.

Added:
    branches/gcc-8-branch/gcc/testsuite/g++.dg/cpp0x/pr86610.C
Modified:
    branches/gcc-8-branch/gcc/cp/ChangeLog
    branches/gcc-8-branch/gcc/cp/semantics.c
    branches/gcc-8-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-629584-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 13:03:36 2019
Return-Path: <gcc-bugs-return-629584-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59870 invoked by alias); 17 Jan 2019 13:03:35 -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 59263 invoked by uid 48); 17 Jan 2019 13:03:30 -0000
From: "linux at carewolf dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/88475] -E -fdirectives-only clashes with raw strings
Date: Thu, 17 Jan 2019 13:03: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: linux at carewolf dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-88475-4-T9EsEI97mQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88475-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88475-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: 2019-01/txt/msg02393.txt.bz2
Content-length: 458

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

Allan Jensen <linux at carewolf dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |linux at carewolf dot com

--- Comment #1 from Allan Jensen <linux at carewolf dot com> ---
I also see this with Debian's gcc 8.2.0 (gcc version 8.2.0 (Debian 8.2.0-14))
>From gcc-bugs-return-629585-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 13:06:23 2019
Return-Path: <gcc-bugs-return-629585-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73248 invoked by alias); 17 Jan 2019 13:06: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 70714 invoked by uid 48); 17 Jan 2019 13:06:19 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88889] [9 Regression] New valgrind warning since r261039
Date: Thu, 17 Jan 2019 13:06: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: MOVED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-88889-4-MDctBWCwLl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88889-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88889-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: 2019-01/txt/msg02394.txt.bz2
Content-length: 509

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

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

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

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Anyway, closing, as this can be dealt with in valgrind apparently without extra
gcc help.
>From gcc-bugs-return-629586-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 13:13:21 2019
Return-Path: <gcc-bugs-return-629586-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120488 invoked by alias); 17 Jan 2019 13:13:21 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 120206 invoked by uid 48); 17 Jan 2019 13:13:16 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88734] [8/9 Regression] AArch64's ACLE intrinsics give an ICE instead of compile error when option mismatch.
Date: Thu, 17 Jan 2019 13:13: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: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88734-4-HueVpD7WoZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88734-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88734-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: 2019-01/txt/msg02395.txt.bz2
Content-length: 3202

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
+FAIL: gcc.target/aarch64/sha2_1.c (test for excess errors)
+UNRESOLVED: gcc.target/aarch64/sha2_1.c scan-assembler-times
sha512h\\\\tq[0-9]+, q[0-9]+, v[0-9]+.2d 1
+UNRESOLVED: gcc.target/aarch64/sha2_1.c scan-assembler-times
sha512h2\\\\tq[0-9]+, q[0-9]+, v[0-9]+.2d 1
+UNRESOLVED: gcc.target/aarch64/sha2_1.c scan-assembler-times
sha512su0\\\\tv[0-9]+.2d, v[0-9]+.2d 1
+UNRESOLVED: gcc.target/aarch64/sha2_1.c scan-assembler-times
sha512su1\\\\tv[0-9]+.2d, v[0-9]+.2d, v[0-9]+.2d 1
+FAIL: gcc.target/aarch64/sha2_2.c (test for excess errors)
+UNRESOLVED: gcc.target/aarch64/sha2_2.c scan-assembler-times
sha512h\\\\tq[0-9]+, q[0-9]+, v[0-9]+.2d 1
+UNRESOLVED: gcc.target/aarch64/sha2_2.c scan-assembler-times
sha512h2\\\\tq[0-9]+, q[0-9]+, v[0-9]+.2d 1
+UNRESOLVED: gcc.target/aarch64/sha2_2.c scan-assembler-times
sha512su0\\\\tv[0-9]+.2d, v[0-9]+.2d 1
+UNRESOLVED: gcc.target/aarch64/sha2_2.c scan-assembler-times
sha512su1\\\\tv[0-9]+.2d, v[0-9]+.2d, v[0-9]+.2d 1
+FAIL: gcc.target/aarch64/sha2_3.c (test for excess errors)
+UNRESOLVED: gcc.target/aarch64/sha2_3.c scan-assembler-times
sha512h\\\\tq[0-9]+, q[0-9]+, v[0-9]+.2d 1
+UNRESOLVED: gcc.target/aarch64/sha2_3.c scan-assembler-times
sha512h2\\\\tq[0-9]+, q[0-9]+, v[0-9]+.2d 1
+UNRESOLVED: gcc.target/aarch64/sha2_3.c scan-assembler-times
sha512su0\\\\tv[0-9]+.2d, v[0-9]+.2d 1
+UNRESOLVED: gcc.target/aarch64/sha2_3.c scan-assembler-times
sha512su1\\\\tv[0-9]+.2d, v[0-9]+.2d, v[0-9]+.2d 1
+FAIL: gcc.target/aarch64/sha3_1.c (test for excess errors)
+UNRESOLVED: gcc.target/aarch64/sha3_1.c scan-assembler-times
eor3\\\\tv[0-9]+.16b, v[0-9]+.16b, v[0-9]+.16b, v[0-9]+.16b 8
+UNRESOLVED: gcc.target/aarch64/sha3_1.c scan-assembler-times
rax1\\\\tv[0-9]+.2d, v[0-9]+.2d, v[0-9]+.2d 1
+UNRESOLVED: gcc.target/aarch64/sha3_1.c scan-assembler-times
xar\\\\tv[0-9]+.2d, v[0-9]+.2d, v[0-9]+.2d, 15 1
+UNRESOLVED: gcc.target/aarch64/sha3_1.c scan-assembler-times
bcax\\\\tv[0-9]+.16b, v[0-9]+.16b, v[0-9]+.16b, v[0-9]+.16b 8
+FAIL: gcc.target/aarch64/sha3_2.c (test for excess errors)
+UNRESOLVED: gcc.target/aarch64/sha3_2.c scan-assembler-times
eor3\\\\tv[0-9]+.16b, v[0-9]+.16b, v[0-9]+.16b, v[0-9]+.16b 8
+UNRESOLVED: gcc.target/aarch64/sha3_2.c scan-assembler-times
rax1\\\\tv[0-9]+.2d, v[0-9]+.2d, v[0-9]+.2d 1
+UNRESOLVED: gcc.target/aarch64/sha3_2.c scan-assembler-times
xar\\\\tv[0-9]+.2d, v[0-9]+.2d, v[0-9]+.2d, 15 1
+UNRESOLVED: gcc.target/aarch64/sha3_2.c scan-assembler-times
bcax\\\\tv[0-9]+.16b, v[0-9]+.16b, v[0-9]+.16b, v[0-9]+.16b 8
+FAIL: gcc.target/aarch64/sha3_3.c (test for excess errors)
+UNRESOLVED: gcc.target/aarch64/sha3_3.c scan-assembler-times
eor3\\\\tv[0-9]+.16b, v[0-9]+.16b, v[0-9]+.16b, v[0-9]+.16b 8
+UNRESOLVED: gcc.target/aarch64/sha3_3.c scan-assembler-times
rax1\\\\tv[0-9]+.2d, v[0-9]+.2d, v[0-9]+.2d 1
+UNRESOLVED: gcc.target/aarch64/sha3_3.c scan-assembler-times
xar\\\\tv[0-9]+.2d, v[0-9]+.2d, v[0-9]+.2d, 15 1
+UNRESOLVED: gcc.target/aarch64/sha3_3.c scan-assembler-times
bcax\\\\tv[0-9]+.16b, v[0-9]+.16b, v[0-9]+.16b, v[0-9]+.16b 8

regresses with the patch, let me have a look.
>From gcc-bugs-return-629587-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 13:17:54 2019
Return-Path: <gcc-bugs-return-629587-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109815 invoked by alias); 17 Jan 2019 13:17:53 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 109717 invoked by uid 48); 17 Jan 2019 13:17:47 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/33430] Improve -finit-*: Initialization of derived types, equivalenced variables, allocated arrays
Date: Thu, 17 Jan 2019 13:17: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.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-33430-4-P9v9yFQT15@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-33430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-33430-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: 2019-01/txt/msg02396.txt.bz2
Content-length: 228

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

--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> It would also make a lot of sense to do this for allocated
> arrays, as well.

Tracked by pr51310.
>From gcc-bugs-return-629588-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 13:25:03 2019
Return-Path: <gcc-bugs-return-629588-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120787 invoked by alias); 17 Jan 2019 13:25:03 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 120461 invoked by uid 48); 17 Jan 2019 13:24:58 -0000
From: "wilco at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88760] GCC unrolling is suboptimal
Date: Thu, 17 Jan 2019 13:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wilco at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88760-4-GJdcWMHQl9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88760-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88760-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: 2019-01/txt/msg02397.txt.bz2
Content-length: 1057

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

--- Comment #14 from Wilco <wilco at gcc dot gnu.org> ---
(In reply to rguenther@suse.de from comment #13)

> Usually the peeling is done to improve branch prediction on the
> prologue/epilogue.

Modern branch predictors do much better on a loop than with this kind of code:

        ands    x12, x11, 7
        beq     .L70
        cmp     x12, 1
        beq     .L55
        cmp     x12, 2
        beq     .L57
        cmp     x12, 3
        beq     .L59
        cmp     x12, 4
        beq     .L61
        cmp     x12, 5
        beq     .L63
        cmp     x12, 6
        bne     .L72

That's way too many branches close together so most predictors will hit the
maximum branches per fetch block limit and not predict them.

If you wanted to peel it would have to be like:

if (n & 4)
  do 4 iterations
if (n & 2)
  do 2 iterations
if (n & 1)
  do 1 iteration

However that's still way too much code explosion for little or no gain. The
only case where this makes sense is in a handwritten memcpy.
>From gcc-bugs-return-629589-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 13:26:09 2019
Return-Path: <gcc-bugs-return-629589-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121970 invoked by alias); 17 Jan 2019 13:26:09 -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 121916 invoked by uid 48); 17 Jan 2019 13:26:05 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/51310] -finit-bla doesn't initialize *all* items of type bla to the requested constant.
Date: Thu, 17 Jan 2019 13:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: toon at moene dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-51310-4-EAOCw4KjTP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-51310-4@http.gcc.gnu.org/bugzilla/>
References: <bug-51310-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: 2019-01/txt/msg02398.txt.bz2
Content-length: 259

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

--- Comment #11 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Yes, leave it for the time being - I will see if I can do something 
> about it (or unassign, if not).

OK.

See also pr33430.
>From gcc-bugs-return-629590-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 13:27:22 2019
Return-Path: <gcc-bugs-return-629590-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125639 invoked by alias); 17 Jan 2019 13:27:21 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 125584 invoked by uid 48); 17 Jan 2019 13:27:17 -0000
From: "fw at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88892] New: Double-to-float conversion uses wrong rounding mode when followed by memcpy
Date: Thu, 17 Jan 2019 13:27: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.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fw at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcctarget
Message-ID: <bug-88892-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: 2019-01/txt/msg02399.txt.bz2
Content-length: 1178

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

            Bug ID: 88892
           Summary: Double-to-float conversion uses wrong rounding mode
                    when followed by memcpy
           Product: gcc
           Version: 8.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: fw at gcc dot gnu.org
  Target Milestone: ---
            Target: powerpc64le-redhat-linux-gnu

With gcc-8.2.1-6.fc28.ppc64le, this code

void
f (double d, char *target)
{
  float f = d;
  __builtin_memcpy (target, &f, sizeof (f));
}

results (with -O2) in (omitting the unwinding information):

f:
        stfs 1,0(4)
        blr

This is incorrect because stfs rounds to zero.  An frsp instruction is missing
before the stfs (and would be emitted without the memcpy).

(GCC documents that the default rounding mode “is round-to-zero for all
floating point to integer conversions, and round-to-nearest for all other
arithmetic truncations”; see -frounding-mode.)

Found by the Python testsuite: https://bugs.python.org/issue35752
>From gcc-bugs-return-629591-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 13:31:02 2019
Return-Path: <gcc-bugs-return-629591-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8654 invoked by alias); 17 Jan 2019 13:31:02 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 8552 invoked by uid 48); 17 Jan 2019 13:30:56 -0000
From: "tnfchris at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88734] [8/9 Regression] AArch64's ACLE intrinsics give an ICE instead of compile error when option mismatch.
Date: Thu, 17 Jan 2019 13: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: 8.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tnfchris at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88734-4-YXBTQa8HR9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88734-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88734-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: 2019-01/txt/msg02400.txt.bz2
Content-length: 926

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

--- Comment #6 from Tamar Christina <tnfchris at gcc dot gnu.org> ---
Yes, I noticed them as well as was taking a look.

I don't quite understand what was going on before and why they passed but the
option is wrong. Those intrinsics and are all sha3 extensions.

diff --git a/gcc/config/aarch64/arm_neon.h b/gcc/config/aarch64/arm_neon.h
index 4d50af6..f405a32 100644
--- a/gcc/config/aarch64/arm_neon.h
+++ b/gcc/config/aarch64/arm_neon.h
@@ -33137,7 +33137,7 @@ vsm4ekeyq_u32 (uint32x4_t __a, uint32x4_t __b)
 #pragma GCC pop_options

 #pragma GCC push_options
-#pragma GCC target ("arch=armv8.2-a+crypto")
+#pragma GCC target ("arch=armv8.2-a+sha3")

 __extension__ extern __inline uint64x2_t
 __attribute__ ((__always_inline__, __gnu_inline__, __artificial__))

--
should fix it. I really don't understand the behavior when you use ((..))  by
accident though.
>From gcc-bugs-return-629592-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 13:38:46 2019
Return-Path: <gcc-bugs-return-629592-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16908 invoked by alias); 17 Jan 2019 13:38:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 16822 invoked by uid 55); 17 Jan 2019 13:38:41 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88760] GCC unrolling is suboptimal
Date: Thu, 17 Jan 2019 13: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: 9.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenther at suse dot de
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88760-4-vbgkRIjvGl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88760-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88760-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: 2019-01/txt/msg02401.txt.bz2
Content-length: 2062

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

--- Comment #15 from rguenther at suse dot de <rguenther at suse dot de> ---
On Thu, 17 Jan 2019, wilco at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88760
> 
> --- Comment #14 from Wilco <wilco at gcc dot gnu.org> ---
> (In reply to rguenther@suse.de from comment #13)
> 
> > Usually the peeling is done to improve branch prediction on the
> > prologue/epilogue.
> 
> Modern branch predictors do much better on a loop than with this kind of code:
> 
>         ands    x12, x11, 7
>         beq     .L70
>         cmp     x12, 1
>         beq     .L55
>         cmp     x12, 2
>         beq     .L57
>         cmp     x12, 3
>         beq     .L59
>         cmp     x12, 4
>         beq     .L61
>         cmp     x12, 5
>         beq     .L63
>         cmp     x12, 6
>         bne     .L72
> 
> That's way too many branches close together so most predictors will hit the
> maximum branches per fetch block limit and not predict them.
> 
> If you wanted to peel it would have to be like:
> 
> if (n & 4)
>   do 4 iterations
> if (n & 2)
>   do 2 iterations
> if (n & 1)
>   do 1 iteration
> 
> However that's still way too much code explosion for little or no gain. The
> only case where this makes sense is in a handwritten memcpy.

Classic peeling would be

  do 1 iteration
  if (n == 1) exit
  do 1 iteration
  if (n == 2) exit
...

which is what I refered to for branch prediction.  Your & prompts me
to a way to do sth similar as duffs device, turning the loop into a nest.

 head:
   if (n == 0) exit;
   <1 iteration>
   if (n & 1)
     n -= 1, goto head;
   <1 iteration>
   if (n & 2)
     n -= 2, goto head;
   <2 iterations>
   if (n & 4)
     n -= 4, goto head;
   <4 iterations>
   n -= 8, goto head;

the inner loop tests should become well-predicted quickly.

But as always - more branches make it more likely that one is
mispredicted.  For a single non-unrolled loop you usually only
get the actual exit mispredicted.
>From gcc-bugs-return-629593-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 13:42:58 2019
Return-Path: <gcc-bugs-return-629593-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27235 invoked by alias); 17 Jan 2019 13:42: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 27156 invoked by uid 55); 17 Jan 2019 13:42:53 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libbacktrace/82857] libbacktrace: please support binaries stripped with dwz -m (following the .gnu_debugaltlink)
Date: Thu, 17 Jan 2019 13:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libbacktrace
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vries at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82857-4-avTpVTV6EM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82857-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82857-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: 2019-01/txt/msg02402.txt.bz2
Content-length: 783

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

--- Comment #8 from Tom de Vries <vries at gcc dot gnu.org> ---
Author: vries
Date: Thu Jan 17 13:42:20 2019
New Revision: 268031

URL: https://gcc.gnu.org/viewcvs?rev=268031&root=gcc&view=rev
Log:
[libbacktrace] Handle DW_FORM_GNU_ref_alt

Handle DW_FORM_GNU_ref_alt which references the .debug_info section in the
.gnu_debugaltlink file.

2019-01-17  Tom de Vries  <tdevries@suse.de>

        PR libbacktrace/82857
        * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_REF_ALT_INFO.
        (read_attribute): Handle DW_FORM_GNU_ref_alt using
        ATTR_VAL_REF_ALT_INFO.
        (read_referenced_name_from_attr): Handle DW_FORM_GNU_ref_alt.

Modified:
    trunk/libbacktrace/ChangeLog
    trunk/libbacktrace/dwarf.c
>From gcc-bugs-return-629594-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 13:43:10 2019
Return-Path: <gcc-bugs-return-629594-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28041 invoked by alias); 17 Jan 2019 13:43: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 27930 invoked by uid 55); 17 Jan 2019 13:43:04 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libbacktrace/82857] libbacktrace: please support binaries stripped with dwz -m (following the .gnu_debugaltlink)
Date: Thu, 17 Jan 2019 13:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libbacktrace
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vries at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82857-4-1Y4uLuPUhm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82857-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82857-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: 2019-01/txt/msg02403.txt.bz2
Content-length: 863

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

--- Comment #9 from Tom de Vries <vries at gcc dot gnu.org> ---
Author: vries
Date: Thu Jan 17 13:42:30 2019
New Revision: 268032

URL: https://gcc.gnu.org/viewcvs?rev=268032&root=gcc&view=rev
Log:
[libbacktrace] Add btest_dwz test-case

Add test-case to verify that libbacktrace can read debug info that was
compressed with dwz.

2019-01-17  Tom de Vries  <tdevries@suse.de>

        PR libbacktrace/82857
        * configure.ac (DWZ): Set with AC_CHECK_PROG.
        (HAVE_DWZ): Set with AM_CONDITIONAL.
        * configure: Regenerate.
        * Makefile.am (TESTS): Add btest_dwz.
        * Makefile.in: Regenerate.

Modified:
    trunk/libbacktrace/ChangeLog
    trunk/libbacktrace/Makefile.am
    trunk/libbacktrace/Makefile.in
    trunk/libbacktrace/configure
    trunk/libbacktrace/configure.ac
>From gcc-bugs-return-629595-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 13:53:36 2019
Return-Path: <gcc-bugs-return-629595-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82236 invoked by alias); 17 Jan 2019 13:53: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 82159 invoked by uid 48); 17 Jan 2019 13:53:30 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libbacktrace/82857] libbacktrace: please support binaries stripped with dwz -m (following the .gnu_debugaltlink)
Date: Thu, 17 Jan 2019 13:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libbacktrace
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
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: vries at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution assigned_to target_milestone
Message-ID: <bug-82857-4-gwvYr1pnBJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82857-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82857-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: 2019-01/txt/msg02404.txt.bz2
Content-length: 790

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

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
           Assignee|unassigned at gcc dot gnu.org      |vries at gcc dot gnu.org
   Target Milestone|---                         |9.0

--- Comment #10 from Tom de Vries <vries at gcc dot gnu.org> ---
Patches implementing complete feature and test-case committed, marking
resolved-fixed.

There's an additional test-case in review (
https://gcc.gnu.org/ml/gcc-patches/2018-12/msg00644.html ), but that's not
worth keeping this PR open for.
>From gcc-bugs-return-629596-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 14:08:33 2019
Return-Path: <gcc-bugs-return-629596-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88280 invoked by alias); 17 Jan 2019 14:08:33 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 88185 invoked by uid 48); 17 Jan 2019 14:08:28 -0000
From: "wilco at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88760] GCC unrolling is suboptimal
Date: Thu, 17 Jan 2019 14: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: 9.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wilco at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88760-4-QGHusfyQEQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88760-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88760-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: 2019-01/txt/msg02405.txt.bz2
Content-length: 1218

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

--- Comment #16 from Wilco <wilco at gcc dot gnu.org> ---
(In reply to rguenther@suse.de from comment #15)

> which is what I refered to for branch prediction.  Your & prompts me
> to a way to do sth similar as duffs device, turning the loop into a nest.
> 
>  head:
>    if (n == 0) exit;
>    <1 iteration>
>    if (n & 1)
>      n -= 1, goto head;
>    <1 iteration>
>    if (n & 2)
>      n -= 2, goto head;
>    <2 iterations>
>    if (n & 4)
>      n -= 4, goto head;
>    <4 iterations>
>    n -= 8, goto head;
> 
> the inner loop tests should become well-predicted quickly.
> 
> But as always - more branches make it more likely that one is
> mispredicted.  For a single non-unrolled loop you usually only
> get the actual exit mispredicted.

Yes the overlapping the branches for the tail loop and the main loop will
result in more mispredictions. And there are still 4 branches for an 8x
unrolled loop, blocking optimizations and scheduling. So Duff's device is
always inefficient - the above loop is much faster like this:

if (n & 1)
 do 1 iteration
if (n & 2)
 do 2 iterations
if (n >= 4)
 do
  4 iterations
 while ((n -= 4) > 0)
>From gcc-bugs-return-629597-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 14:10:48 2019
Return-Path: <gcc-bugs-return-629597-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95322 invoked by alias); 17 Jan 2019 14:10:48 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 95242 invoked by uid 48); 17 Jan 2019 14:10:44 -0000
From: "tnfchris at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88850] [9 Regression] Hard register coming out of expand causing reload to fail.
Date: Thu, 17 Jan 2019 14:10: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: 9.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tnfchris 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords
Message-ID: <bug-88850-4-F54RPQwqae@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88850-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88850-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: 2019-01/txt/msg02406.txt.bz2
Content-length: 752

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

Tamar Christina <tnfchris at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code

--- Comment #1 from Tamar Christina <tnfchris at gcc dot gnu.org> ---
The function __builtin_neon_vuzpv8qi is undefined since the builtin was
removed, hence the call being emitted.  The testcase hides this by passing
`-Wno-implicit-function-declaration`.

The testcase was a reduced case from pr51968.  There is still an issue here
that the hard register shouldn't have been emitted, but I'll fix the testcase
in pr51968 in the meantime.
>From gcc-bugs-return-629598-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 14:13:25 2019
Return-Path: <gcc-bugs-return-629598-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 123332 invoked by alias); 17 Jan 2019 14:13: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 119872 invoked by uid 48); 17 Jan 2019 14:13:19 -0000
From: "mcccs at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/83531] Build broken on macOS 10.13.2
Date: Thu, 17 Jan 2019 14:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 5.5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mcccs at gmx 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-83531-4-HqbXz1JRO1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83531-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83531-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: 2019-01/txt/msg02407.txt.bz2
Content-length: 510

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

--- Comment #6 from MCCCS <mcccs at gmx dot com> ---
After reading your comment, I noticed that
there were two things I forgot to mention:

1 - availability.h is the file where
"API_AVAILABLE" is defined for Clang.

2 - the part of the file the patch
changes is 1:1 copied from
AvailabilityInternal.h, so someone
must've forgotten to replace after
pasting.

But yes, there's no need to hurry
to fix it. It's existed since
October 2017; no one has noticed.
>From gcc-bugs-return-629599-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 14:23:56 2019
Return-Path: <gcc-bugs-return-629599-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57035 invoked by alias); 17 Jan 2019 14:23: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 55356 invoked by uid 48); 17 Jan 2019 14:23:52 -0000
From: "fw at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88892] [8/9 Regression] Double-to-float conversion uses wrong rounding mode when followed by memcpy
Date: Thu, 17 Jan 2019 14:23: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.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fw 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: keywords short_desc
Message-ID: <bug-88892-4-S38kr1Jm1C@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88892-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88892-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: 2019-01/txt/msg02408.txt.bz2
Content-length: 698

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

Florian Weimer <fw at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
            Summary|Double-to-float conversion  |[8/9 Regression]
                   |uses wrong rounding mode    |Double-to-float conversion
                   |when followed by memcpy     |uses wrong rounding mode
                   |                            |when followed by memcpy

--- Comment #1 from Florian Weimer <fw at gcc dot gnu.org> ---
Does not reproduce with gcc-7.3.1-6.fc27.ppc64le.
>From gcc-bugs-return-629600-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 14:31:18 2019
Return-Path: <gcc-bugs-return-629600-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59154 invoked by alias); 17 Jan 2019 14:31: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 56441 invoked by uid 48); 17 Jan 2019 14:31:14 -0000
From: "dje at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88892] [8/9 Regression] Double-to-float conversion uses wrong rounding mode when followed by memcpy
Date: Thu, 17 Jan 2019 14: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: 8.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dje 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-88892-4-8Z4HWAVFig@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88892-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88892-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: 2019-01/txt/msg02409.txt.bz2
Content-length: 779

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

David Edelsohn <dje at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-01-17
                 CC|                            |bergner at gcc dot gnu.org,
                   |                            |dje at gcc dot gnu.org,
                   |                            |segher at gcc dot gnu.org,
                   |                            |wschmidt at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from David Edelsohn <dje at gcc dot gnu.org> ---
Confirmed.
>From gcc-bugs-return-629601-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 14:39:53 2019
Return-Path: <gcc-bugs-return-629601-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74129 invoked by alias); 17 Jan 2019 14:39:53 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 74059 invoked by uid 48); 17 Jan 2019 14:39:48 -0000
From: "bugzilla@poradnik-webmastera.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/71659] _xgetbv intrinsic missing
Date: Thu, 17 Jan 2019 14:39: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: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: bugzilla@poradnik-webmastera.com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-71659-4-opBJv3oOiG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71659-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71659-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: 2019-01/txt/msg02410.txt.bz2
Content-length: 827

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

Daniel Fruzynski <bugzilla@poradnik-webmastera.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@poradnik-webmaster
                   |                            |a.com

--- Comment #4 from Daniel Fruzynski <bugzilla@poradnik-webmastera.com> ---
This intrinsics was added in gcc 8. Initial implementation was buggy (see
r85684) and was fixed in 8.2 However there is one more issue here: Intel
Intrinsics Guide says that it should be available by including <immintrin.h>,
however in gcc you need to include <xsaveintrin.h>.

Additionally there are no defines for XFEATURE_ENABLED_MASK and possible output
values.
>From gcc-bugs-return-629602-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 14:41:16 2019
Return-Path: <gcc-bugs-return-629602-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77844 invoked by alias); 17 Jan 2019 14:41: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 77782 invoked by uid 48); 17 Jan 2019 14:41:12 -0000
From: "bugzilla@poradnik-webmastera.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/71659] _xgetbv intrinsic missing
Date: Thu, 17 Jan 2019 14:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: bugzilla@poradnik-webmastera.com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-71659-4-lwE4t4WW3Z@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71659-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71659-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: 2019-01/txt/msg02411.txt.bz2
Content-length: 146

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

--- Comment #5 from Daniel Fruzynski <bugzilla@poradnik-webmastera.com> ---
I meant pr85684
>From gcc-bugs-return-629603-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 14:48:07 2019
Return-Path: <gcc-bugs-return-629603-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5437 invoked by alias); 17 Jan 2019 14:48:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 5253 invoked by uid 48); 17 Jan 2019 14:48:00 -0000
From: "Predelnik at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/88893] New: Forward declaring of enum class with visibility results in -Wattributes false positive.
Date: Thu, 17 Jan 2019 14:48: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: Predelnik at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-88893-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: 2019-01/txt/msg02412.txt.bz2
Content-length: 1181

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

            Bug ID: 88893
           Summary: Forward declaring of enum class with visibility
                    results in -Wattributes false positive.
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Predelnik at gmail dot com
  Target Milestone: ---

The following program 

enum class azaza;
enum class __attribute__ ((visibility ("default"))) azaza
{
};

compiled with no arguments gives:
<source>:2:53: warning: type attributes ignored after type is already defined
[-Wattributes]

    2 | enum class __attribute__ ((visibility ("default"))) azaza

      |                                                     ^~~~~

Since making enum classes visible may be needed w.r.t libc++ type_info
behavior. This warning turns out to be a bit annoying in this case since
clang++ compiles code fine.

This problem was partially fixed in
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43407
But with forward declaration old behavior still shows through.
>From gcc-bugs-return-629604-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 14:49:40 2019
Return-Path: <gcc-bugs-return-629604-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7042 invoked by alias); 17 Jan 2019 14:49: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 7002 invoked by uid 48); 17 Jan 2019 14:49:36 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libbacktrace/88894] New: [libbacktrace] share abbrevs between units
Date: Thu, 17 Jan 2019 14:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libbacktrace
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vries 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-88894-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: 2019-01/txt/msg02413.txt.bz2
Content-length: 784

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

            Bug ID: 88894
           Summary: [libbacktrace] share abbrevs between units
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libbacktrace
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vries at gcc dot gnu.org
                CC: ian at gcc dot gnu.org
  Target Milestone: ---

For each compilation unit we parse in build_address_map, we call read_abbrevs,
to parse the abbrevs, and store the parsed representation in memory.

However, multiple compilation units can share the same abbrev offset, and in
the current setup we would parse and store such an abbrev twice, which is
inefficient.
>From gcc-bugs-return-629605-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 14:49:53 2019
Return-Path: <gcc-bugs-return-629605-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7989 invoked by alias); 17 Jan 2019 14:49:53 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 7908 invoked by uid 48); 17 Jan 2019 14:49:50 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libbacktrace/88894] [libbacktrace] share abbrevs between units
Date: Thu, 17 Jan 2019 14:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libbacktrace
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: vries 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: keywords bug_severity
Message-ID: <bug-88894-4-g424aowWCM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88894-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88894-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: 2019-01/txt/msg02414.txt.bz2
Content-length: 366

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

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
           Severity|normal                      |enhancement
>From gcc-bugs-return-629606-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 15:08:59 2019
Return-Path: <gcc-bugs-return-629606-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108284 invoked by alias); 17 Jan 2019 15:08:59 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 107579 invoked by uid 48); 17 Jan 2019 15:08:52 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/88845] ICE in lra_set_insn_recog_data, at lra.c:1010
Date: Thu, 17 Jan 2019 15:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher 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-88845-4-FkiMUt6w51@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88845-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88845-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: 2019-01/txt/msg02415.txt.bz2
Content-length: 538

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

--- Comment #3 from Segher Boessenkool <segher at gcc dot gnu.org> ---
(In reply to Peter Bergner from comment #2)
> Thinking about this, insn 14 doesn't look legal to me for ppc, since FP
> values in our FP regs are actually stored as 64-bit quantities, even for
> SFmode, so copying a 32-bit SImode value over to a 64-bit wide reg holding a
> SFmode value doesn't make sense, correct?

It looks fine to me?  It may need going via memory to implement, but it is
a valid construct?
>From gcc-bugs-return-629607-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 15:18:34 2019
Return-Path: <gcc-bugs-return-629607-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117690 invoked by alias); 17 Jan 2019 15:18:33 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 114905 invoked by uid 55); 17 Jan 2019 15:18:28 -0000
From: "tnfchris at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88850] [9 Regression] Hard register coming out of expand causing reload to fail.
Date: Thu, 17 Jan 2019 15:18: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: 9.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tnfchris 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88850-4-P1PuzS7BkZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88850-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88850-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: 2019-01/txt/msg02416.txt.bz2
Content-length: 502

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

--- Comment #2 from Tamar Christina <tnfchris at gcc dot gnu.org> ---
Author: tnfchris
Date: Thu Jan 17 15:17:57 2019
New Revision: 268033

URL: https://gcc.gnu.org/viewcvs?rev=268033&root=gcc&view=rev
Log:
Fix Arm testcase by using NEON.

gcc/testsuite/ChangeLog:

        PR target/88850
        * gcc.target/arm/pr51968.c: Use neon intrinsics.


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/arm/pr51968.c
>From gcc-bugs-return-629608-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 15:32:46 2019
Return-Path: <gcc-bugs-return-629608-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9739 invoked by alias); 17 Jan 2019 15:32: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 7824 invoked by uid 55); 17 Jan 2019 15:32:37 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/88881] std::filesystem::status gives bad results on mingw32
Date: Thu, 17 Jan 2019 15:32: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: 9.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:
Message-ID: <bug-88881-4-kZSKyKl9mN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88881-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88881-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: 2019-01/txt/msg02417.txt.bz2
Content-length: 1884

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

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Thu Jan 17 15:31:59 2019
New Revision: 268034

URL: https://gcc.gnu.org/viewcvs?rev=268034&root=gcc&view=rev
Log:
PR libstdc++/88881 adjust filesystem::status and tests for mingw semantics

On Windows stat("foo/bar/../.") will resolve to "foo" even if that is a
non-directory and "foo/bar" does not exist. This is the expected
behaviour and consistent with boost::filesystem, so don't try to correct
it. The only unwanted behaviour is that stat("baz/") fails due to a
mingw bug (fixed in mingw-w64 v6.0.0) so add a workaround.

        PR libstdc++/88881
        * src/c++17/fs_ops.cc (canonical(const path&, error_code&))
        [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize path, to match behaviour
        of filesystem::exists.
        (create_directories(const path&, error_code&)): Add assertions.
        (status(const path&, error_code&)) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]:
        Add workaround for bug in _wstat for paths with trailing slash.
        * testsuite/27_io/filesystem/operations/create_directories.cc: Adjust
        for expected behaviour on mingw.
        * testsuite/experimental/filesystem/operations/create_directories.cc:
        Likewise.
        * testsuite/27_io/filesystem/operations/temp_directory_path.cc: Use
        "TMP" instead of "TMPDIR" and clean environment before each test. Do
        not test permissions on mingw targets.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/src/c++17/fs_ops.cc
   
trunk/libstdc++-v3/testsuite/27_io/filesystem/operations/create_directories.cc
   
trunk/libstdc++-v3/testsuite/27_io/filesystem/operations/temp_directory_path.cc
   
trunk/libstdc++-v3/testsuite/experimental/filesystem/operations/create_directories.cc
>From gcc-bugs-return-629609-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 15:32:46 2019
Return-Path: <gcc-bugs-return-629609-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9793 invoked by alias); 17 Jan 2019 15:32:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 8187 invoked by uid 55); 17 Jan 2019 15:32:38 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/88884] std::filesystem::absolute("//") does not produce an absolute path on mingw
Date: Thu, 17 Jan 2019 15:32: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi 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-88884-4-1uiZooYVhE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88884-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88884-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: 2019-01/txt/msg02418.txt.bz2
Content-length: 700

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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Thu Jan 17 15:32:05 2019
New Revision: 268035

URL: https://gcc.gnu.org/viewcvs?rev=268035&root=gcc&view=rev
Log:
PR libstdc++/88884 fix filesystem::absolute("//") for mingw

        PR libstdc++/88884
        * src/c++17/fs_ops.cc (absolute(const path&, error_code&)): Do nothing
        if the path is already absolute.
        [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize root-directory.
        [!_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Pass error_code to current_path.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/src/c++17/fs_ops.cc
>From gcc-bugs-return-629610-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 15:34:09 2019
Return-Path: <gcc-bugs-return-629610-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18502 invoked by alias); 17 Jan 2019 15:34:09 -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 18373 invoked by uid 48); 17 Jan 2019 15:34:05 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/88884] std::filesystem::absolute("//") does not produce an absolute path on mingw
Date: Thu, 17 Jan 2019 15:34: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-88884-4-9sJApWO0Zu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88884-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88884-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: 2019-01/txt/msg02419.txt.bz2
Content-length: 486

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

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

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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
fixed on trunk
>From gcc-bugs-return-629611-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 15:34:38 2019
Return-Path: <gcc-bugs-return-629611-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20377 invoked by alias); 17 Jan 2019 15:34: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 19594 invoked by uid 48); 17 Jan 2019 15:34:32 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/88881] std::filesystem::status gives bad results on mingw32
Date: Thu, 17 Jan 2019 15:34: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-88881-4-vHJqxsridp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88881-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88881-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: 2019-01/txt/msg02420.txt.bz2
Content-length: 486

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |9.0

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
fixed on trunk
>From gcc-bugs-return-629612-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 15:47:37 2019
Return-Path: <gcc-bugs-return-629612-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8960 invoked by alias); 17 Jan 2019 15:47: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 8819 invoked by uid 48); 17 Jan 2019 15:47:32 -0000
From: "fw at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88892] [8/9 Regression] Double-to-float conversion uses wrong rounding mode when followed by memcpy
Date: Thu, 17 Jan 2019 15:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fw at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88892-4-hmspat1k6R@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88892-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88892-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: 2019-01/txt/msg02421.txt.bz2
Content-length: 238

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

--- Comment #3 from Florian Weimer <fw at gcc dot gnu.org> ---
Started with r253210.  I don't think the new pattern is used in this case, so
maybe this is a pre-existing latent bug.
>From gcc-bugs-return-629613-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 15:58:52 2019
Return-Path: <gcc-bugs-return-629613-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29171 invoked by alias); 17 Jan 2019 15:58: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 29046 invoked by uid 48); 17 Jan 2019 15:58:48 -0000
From: "fw at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88892] [8/9 Regression] Double-to-float conversion uses wrong rounding mode when followed by memcpy
Date: Thu, 17 Jan 2019 15:58: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.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fw at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88892-4-cyGMHZlaYC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88892-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88892-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: 2019-01/txt/msg02422.txt.bz2
Content-length: 204

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

--- Comment #4 from Florian Weimer <fw at gcc dot gnu.org> ---
Eh, forget what I wrote.  The pattern *is* used.  r253210 looks definitely to
blame.
>From gcc-bugs-return-629614-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 16:08:13 2019
Return-Path: <gcc-bugs-return-629614-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84342 invoked by alias); 17 Jan 2019 16:08: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 84251 invoked by uid 48); 17 Jan 2019 16:08:08 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88892] [8/9 Regression] Double-to-float conversion uses wrong rounding mode when followed by memcpy
Date: Thu, 17 Jan 2019 16:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-88892-4-qFZ7GktvNA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88892-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88892-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: 2019-01/txt/msg02423.txt.bz2
Content-length: 719

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

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

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

--- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> ---
This is one of the reasons -Wfloat-conversion exists: 

$ gcc -c -Wall -Wextra -Wfloat-conversion -Wdouble-promotion
-Wunsuffixed-float-constants -pedantic -O2 88892.c
88892.c: In function 'f':
88892.c:4:13: warning: conversion from 'double' to 'float' may change value
[-Wfloat-conversion]
   float f = d;
             ^
$
>From gcc-bugs-return-629616-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 16:16:33 2019
Return-Path: <gcc-bugs-return-629616-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118651 invoked by alias); 17 Jan 2019 16:16:33 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 117965 invoked by uid 48); 17 Jan 2019 16:16:12 -0000
From: "fw at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88892] [8/9 Regression] Double-to-float conversion uses wrong rounding mode when followed by memcpy
Date: Thu, 17 Jan 2019 16:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fw at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88892-4-THSeZUDW54@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88892-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88892-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: 2019-01/txt/msg02425.txt.bz2
Content-length: 582

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

--- Comment #6 from Florian Weimer <fw at gcc dot gnu.org> ---
(In reply to Eric Gallager from comment #5)
> This is one of the reasons -Wfloat-conversion exists: 
> 
> $ gcc -c -Wall -Wextra -Wfloat-conversion -Wdouble-promotion
> -Wunsuffixed-float-constants -pedantic -O2 88892.c
> 88892.c: In function 'f':
> 88892.c:4:13: warning: conversion from 'double' to 'float' may change value
> [-Wfloat-conversion]
>    float f = d;
>              ^
> $

Rounding is expected, but GCC does not use the right rounding mode.
>From gcc-bugs-return-629615-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 16:16:29 2019
Return-Path: <gcc-bugs-return-629615-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118168 invoked by alias); 17 Jan 2019 16:16: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 117877 invoked by uid 48); 17 Jan 2019 16:16:08 -0000
From: "scott.a.mayo at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/88895] New: unnecessary warnings in unreachable code (shift)
Date: Thu, 17 Jan 2019 16:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: scott.a.mayo at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-88895-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: 2019-01/txt/msg02424.txt.bz2
Content-length: 5050

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

            Bug ID: 88895
           Summary: unnecessary warnings in unreachable code (shift)
           Product: gcc
           Version: 7.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: scott.a.mayo at gmail dot com
  Target Milestone: ---

Created attachment 45450
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45450&action=edit
processed .cpp

The compiler complains about shift operations that are undefined, when the code
in question is going to be unreachable anyway, at points that should be obvious
even without optimization. Basically, g++ is warning about undefined shifts too
early; it should wait until code generation and see what unreachable code is
weeded out.

The attachment shows a standard idiom for packing arbitrary integer types into
buffer in big endian fashion, regardless of the endianness of the platform. g++
generates the correct code (which melts down to a single instruction!) but
along the way it's squawking.

I realize it's easier to warn earlier in the process, but I'm trying to enforce
0 tolerance for warnings, and having to turn off this warning is onerous since
the code is a template, wants to live in a header, so turning off the warning
the obvious way also turns it off in places it may be wanted. This is a big
deal in safety-critical code.

g++:
gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04) 
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.3.0-27ubuntu1~18.04' --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

Command line: 
g++ -O3 -Wall StopWhining.cpp

Warnings:
StopWhining.cpp: In instantiation of ‘void PackRule::pack(void*, T) const [with
T = unsigned int]’:
StopWhining.cpp:75:34:   required from here
StopWhining.cpp:33:63: warning: right shift count >= width of type
[-Wshift-count-overflow]
             case 8: tobyte[sizeof(T) - 8] = (unsigned char)(v >> 56);
//waterfall
                                                            ~~~^~~~~~
StopWhining.cpp:34:63: warning: right shift count >= width of type
[-Wshift-count-overflow]
             case 7: tobyte[sizeof(T) - 7] = (unsigned char)(v >> 48);
                                                            ~~~^~~~~~
StopWhining.cpp:35:63: warning: right shift count >= width of type
[-Wshift-count-overflow]
             case 6: tobyte[sizeof(T) - 6] = (unsigned char)(v >> 40);
                                                            ~~~^~~~~~
StopWhining.cpp:36:63: warning: right shift count >= width of type
[-Wshift-count-overflow]
             case 5: tobyte[sizeof(T) - 5] = (unsigned char)(v >> 32);
                                                            ~~~^~~~~~
StopWhining.cpp: In instantiation of ‘T PackRule::unpack(const void*, T*) const
[with T = unsigned int]’:
StopWhining.cpp:77:21:   required from here
StopWhining.cpp:58:63: warning: left shift count >= width of type
[-Wshift-count-overflow]
             case 8: v |= (0xffU & (T)frombyte[sizeof(T) - 8]) << 56;
//waterfall
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
StopWhining.cpp:59:63: warning: left shift count >= width of type
[-Wshift-count-overflow]
             case 7: v |= (0xffU & (T)frombyte[sizeof(T) - 7]) << 48;
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
StopWhining.cpp:60:63: warning: left shift count >= width of type
[-Wshift-count-overflow]
             case 6: v |= (0xffU & (T)frombyte[sizeof(T) - 6]) << 40;
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
StopWhining.cpp:61:63: warning: left shift count >= width of type
[-Wshift-count-overflow]
             case 5: v |= (0xffU & (T)frombyte[sizeof(T) - 5]) << 32;

.ii attached
>From gcc-bugs-return-629617-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 16:19:56 2019
Return-Path: <gcc-bugs-return-629617-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12247 invoked by alias); 17 Jan 2019 16:19: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 12156 invoked by uid 48); 17 Jan 2019 16:19:51 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/88893] Forward declaring of enum class with visibility results in -Wattributes false positive.
Date: Thu, 17 Jan 2019 16:19: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc see_also everconfirmed cf_known_to_fail
Message-ID: <bug-88893-4-yfNZ7IHc3Q@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88893-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88893-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: 2019-01/txt/msg02426.txt.bz2
Content-length: 953

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-01-17
                 CC|                            |msebor at gcc dot gnu.org
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=43407
     Ever confirmed|0                           |1
      Known to fail|                            |4.4.7, 4.8.5, 4.9.4, 5.4.0,
                   |                            |6.4.0, 7.3.0, 8.2.0, 9.0

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed.  The example has been rejected since scoped enums were introduced so
this is not a regression.
>From gcc-bugs-return-629618-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 16:34:33 2019
Return-Path: <gcc-bugs-return-629618-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76574 invoked by alias); 17 Jan 2019 16:34:33 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 76478 invoked by uid 55); 17 Jan 2019 16:34:27 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88800] Spurious -Werror=array-bounds for non-taken branch
Date: Thu, 17 Jan 2019 16:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.2.1
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88800-4-TyqNGwRFn4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88800-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88800-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: 2019-01/txt/msg02427.txt.bz2
Content-length: 1829

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

--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Thu Jan 17 16:33:55 2019
New Revision: 268037

URL: https://gcc.gnu.org/viewcvs?rev=268037&root=gcc&view=rev
Log:
PR tree-optimization/88800 - Spurious -Werror=array-bounds for non-taken branch

gcc/ChangeLog:

        PR tree-optimization/88800
        * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
        NO_WARNING bit here.  Avoid folding out-of-bounds calls.
        * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
        redundant argument.  Add new argument and issue diagnostics under
        its control.  Detect out-of-bounds access even with warnings
        disabled.
        (check_bounds_or_overlap): Change return type.  Add argument.
        (wrestrict_dom_walker::check_call): Adjust.
        * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
        * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
        check_bounds_or_overlap's return value.
        (handle_builtin_stxncpy): Same.
        (handle_builtin_strcat): Same.

gcc/testsuite/ChangeLog:

        PR tree-optimization/88800
        * c-c++-common/Wrestrict.c: Adjust.
        * gcc.dg/Warray-bounds-37.c: New test.
        * gcc.dg/builtin-memcpy-2.c: New test.
        * gcc.dg/builtin-memcpy.c: New test.


Added:
    trunk/gcc/testsuite/gcc.dg/Warray-bounds-37.c
    trunk/gcc/testsuite/gcc.dg/builtin-memcpy-2.c
    trunk/gcc/testsuite/gcc.dg/builtin-memcpy.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimple-fold.c
    trunk/gcc/gimple-ssa-warn-restrict.c
    trunk/gcc/gimple-ssa-warn-restrict.h
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/c-c++-common/Wrestrict.c
    trunk/gcc/tree-ssa-strlen.c
>From gcc-bugs-return-629619-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 16:35:31 2019
Return-Path: <gcc-bugs-return-629619-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 83196 invoked by alias); 17 Jan 2019 16:35: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 83100 invoked by uid 48); 17 Jan 2019 16:35:26 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88800] [8 Regression] Spurious -Werror=array-bounds for non-taken branch
Date: Thu, 17 Jan 2019 16:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.2.1
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-88800-4-nwfgaNqYYn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88800-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88800-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: 2019-01/txt/msg02428.txt.bz2
Content-length: 562

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[8/9 Regression] Spurious   |[8 Regression] Spurious
                   |-Werror=array-bounds for    |-Werror=array-bounds for
                   |non-taken branch            |non-taken branch

--- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> ---
Fixed via r268037 on the trunk (GCC 9).
>From gcc-bugs-return-629621-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 16:52:47 2019
Return-Path: <gcc-bugs-return-629621-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118272 invoked by alias); 17 Jan 2019 16:52:47 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 118193 invoked by uid 48); 17 Jan 2019 16:52:43 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/85741] [meta-bug] bogus/missing -Wformat-overflow
Date: Thu, 17 Jan 2019 16:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: meta-bug
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-85741-4-jTzlAselFL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85741-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85741-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: 2019-01/txt/msg02430.txt.bz2
Content-length: 490

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

Bug 80537 Summary: missing -Wformat-overflow on POSIX %C conversion specification
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80537

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-629620-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 16:52:47 2019
Return-Path: <gcc-bugs-return-629620-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118260 invoked by alias); 17 Jan 2019 16:52:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 118178 invoked by uid 48); 17 Jan 2019 16:52:42 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/80537] missing -Wformat-overflow on POSIX %C conversion specification
Date: Thu, 17 Jan 2019 16:52: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: diagnostic, missed-optimization, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_known_to_work resolution cf_known_to_fail
Message-ID: <bug-80537-4-M5fHesZSGy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80537-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80537-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: 2019-01/txt/msg02429.txt.bz2
Content-length: 636

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to work|                            |9.0
         Resolution|---                         |FIXED
      Known to fail|                            |7.3.0, 8.2.0

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
Fixed by r263612 for GCC 9.  Unlike bug 86853 this is not considered a
regression so resolving as fixed.
>From gcc-bugs-return-629622-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 16:53:53 2019
Return-Path: <gcc-bugs-return-629622-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119878 invoked by alias); 17 Jan 2019 16:53: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 119824 invoked by uid 48); 17 Jan 2019 16:53:49 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88892] [8/9 Regression] Double-to-float conversion uses wrong rounding mode when followed by memcpy
Date: Thu, 17 Jan 2019 16:53: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.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_gcctarget
Message-ID: <bug-88892-4-TtwLbfJACk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88892-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88892-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: 2019-01/txt/msg02431.txt.bz2
Content-length: 521

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|powerpc64le-redhat-linux-gn |powerpc64*-*-*
                   |u                           |

--- Comment #7 from Segher Boessenkool <segher at gcc dot gnu.org> ---
This needs -mcpu=power8 to fail.  This can be the default for your compiler,
of course.
>From gcc-bugs-return-629623-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 16:59:34 2019
Return-Path: <gcc-bugs-return-629623-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11162 invoked by alias); 17 Jan 2019 16:59: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 11107 invoked by uid 48); 17 Jan 2019 16:59:30 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/88815] [9 Regression] is_constexpr (based on narrowing conversion and expression SFINAE) broken
Date: Thu, 17 Jan 2019 16:59: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: 9.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-88815-4-RWxkoZWoOp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88815-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88815-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: 2019-01/txt/msg02432.txt.bz2
Content-length: 616

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

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

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

--- Comment #10 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Further work suggest we should perhaps handle compound literals  specially in
instantiation_dependent_uneval_expression_p.  No need to introduce walk_tree
etc.
>From gcc-bugs-return-629624-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 17:07:58 2019
Return-Path: <gcc-bugs-return-629624-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91701 invoked by alias); 17 Jan 2019 17:07: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 91577 invoked by uid 55); 17 Jan 2019 17:07:52 -0000
From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/88699] [9 Regression] tree check fail: expected function_decl, have using_decl in add_method, at cp/class.c:1137
Date: Thu, 17 Jan 2019 17:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dmalcolm at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88699-4-w7xcg03nrq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88699-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88699-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: 2019-01/txt/msg02433.txt.bz2
Content-length: 1115

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

--- Comment #8 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Author: dmalcolm
Date: Thu Jan 17 17:07:20 2019
New Revision: 268041

URL: https://gcc.gnu.org/viewcvs?rev=268041&root=gcc&view=rev
Log:
C++: Fix ICE when adding overloaded operator via using_decl (PR c++/88699)

PR c++/88699 reports an ICE within this assertion in add_method:

  gcc_assert (!current_fns || !DECL_DESTRUCTOR_P (method));

when adding an overloaded operator to a class via a using_decl, due to
DECL_DESTRUCTOR_P requiring a FUNCTION_DECL, but "method" being a
USING_DECL.

This patch weakens the assertion to avoid testing DECL_DESTRUCTOR_P
for the case where "via_using" is true, fixing the ICE.

gcc/cp/ChangeLog:
        PR c++/88699
        * class.c (add_method): Don't use DECL_DESTRUCTOR_P on
        USING_DECLs.

gcc/testsuite/ChangeLog:
        PR c++/88699
        * g++.dg/template/pr88699.C: New test.


Added:
    trunk/gcc/testsuite/g++.dg/template/pr88699.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/class.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-629625-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 17:09:41 2019
Return-Path: <gcc-bugs-return-629625-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94436 invoked by alias); 17 Jan 2019 17:09:41 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 94239 invoked by uid 48); 17 Jan 2019 17:09:37 -0000
From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/88699] [9 Regression] tree check fail: expected function_decl, have using_decl in add_method, at cp/class.c:1137
Date: Thu, 17 Jan 2019 17:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dmalcolm at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-88699-4-kQ3ESz9AHx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88699-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88699-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: 2019-01/txt/msg02434.txt.bz2
Content-length: 450

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

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

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

--- Comment #9 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Should be fixed by r268041.
>From gcc-bugs-return-629626-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 17:11:40 2019
Return-Path: <gcc-bugs-return-629626-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98020 invoked by alias); 17 Jan 2019 17:11: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 97994 invoked by uid 48); 17 Jan 2019 17:11:35 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/77293] __builtin_object_size inconsistent for multidimensional arrays
Date: Thu, 17 Jan 2019 17:11: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.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed cf_known_to_fail
Message-ID: <bug-77293-4-cDk2s2Yzn2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77293-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77293-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: 2019-01/txt/msg02435.txt.bz2
Content-length: 566

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-01-17
     Ever confirmed|0                           |1
      Known to fail|                            |7.3.0, 8.2.0, 9.0

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirming based on comment #1.
>From gcc-bugs-return-629627-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 17:14:22 2019
Return-Path: <gcc-bugs-return-629627-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109574 invoked by alias); 17 Jan 2019 17:14:22 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 109525 invoked by uid 89); 17 Jan 2019 17:14:18 -0000
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: =?ISO-8859-1?Q?Yes, score=5.7 required=5.0 testsºYES_60,BODY_8BITS,GARBLED_BODY,GIT_PATCH_2,HK_RANDOM_ENVFROM,HTML_MESSAGE,KAM_LAZY_DOMAIN_SECURITY,MISSING_MID,RCVD_IN_PBL,RCVD_IN_XBL autolearn=no version=3.3.2 spammy=Hx-spam-relays-external:SKY-20150219JSJ, H*r:SKY-20150219JSJ, H*RU:SKY-20150219JSJ, 禾å?X-HELO: tokp.com
Received: from Unknown (HELO tokp.com) (61.132.170.244) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 17 Jan 2019 17:14:17 +0000
Received: from SKY-20150219JSJ ([127.0.0.1]) by localhost via TCP with ESMTPA; Fri, 18 Jan 2019 01:13:26 +0800
MIME-Version: 1.0
From: wlqfwxw <sz66886688@.com>
Sender: wlqfwxw <wlqfwxw@tokp.com>
To: gcc-bugs@gcc.gnu.org
Reply-To: wlqfwxw <sz66886688@.com>
Date: Thu, 17 Jan 2019 17:14:00 -0000
Subject: =?utf-8?B?Z2NjLWJ1Z3NAZ2NjLmdudS5vcmfmjIc=?Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: base64
X-SW-Source: 2019-01/txt/msg02436.txt.bz2
Content-length: 814

Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7DQorKysrKysrKysrKysr
KysrKysrKysrKysrKysrKysmbmJzcDsNCiZuYnNwOyZuYnNwOyZuYnNwOyZu
YnNwOyZuYnNwOyDvvIjlip7vvIkmbmJzcDsmbmJzcDsmbmJzcDsmbmJzcDsm
bmJzcDsg77yI5LyB77yJJm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7
Jm5ic3A7IO+8iOemvuWFke+8iQ0KJm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7
Jm5ic3A7IO+8iOeQhu+8iSZuYnNwOyZuYnNwOyZuYnNwOyZuYnNwOyZuYnNw
OyDvvIjkuJrvvIkmbmJzcDsmbmJzcDsmbmJzcDsmbmJzcDsmbmJzcDsmbmJz
cDsmbmJzcDsg77yI5qCX77yJDQombmJzcDsmbmJzcDsmbmJzcDsmbmJzcDsm
bmJzcDsmbmJzcDsmbmJzcDsmbmJzcDsg6K+mIOeUte+8mmwzNuKAlDg2ODfi
gJQ0OTQ277yM546LJm5ic3A7Jm5ic3A7IOeUnw0KJm5ic3A7Jm5ic3A7Jm5i
c3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7ICggUSApJm5ic3A7
KCZuYnNwOyBRICnvvJoxMTPigJQ0ODnigJQxNTc4DQotLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0KZ2NjLWJ1Z3NAZ2Nj
LmdudS5vcmcmbmJzcDsg
>From gcc-bugs-return-629628-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 17:19:20 2019
Return-Path: <gcc-bugs-return-629628-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26316 invoked by alias); 17 Jan 2019 17:19: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 26235 invoked by uid 48); 17 Jan 2019 17:19:14 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/88895] unnecessary warnings in unreachable code (shift)
Date: Thu, 17 Jan 2019 17:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-88895-4-Mu7kh88oUC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88895-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88895-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: 2019-01/txt/msg02437.txt.bz2
Content-length: 523

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

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

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

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
So just write it so that you don't invoke UB even there?
Like case 8: tobyte[sizeof(T) - 8] = (unsigned char)(v >> (56 % (sizeof(T) *
8)));
?
>From gcc-bugs-return-629630-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 17:27:43 2019
Return-Path: <gcc-bugs-return-629630-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43445 invoked by alias); 17 Jan 2019 17:27:43 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 43354 invoked by uid 48); 17 Jan 2019 17:27:38 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88892] [8/9 Regression] Double-to-float conversion uses wrong rounding mode when followed by memcpy
Date: Thu, 17 Jan 2019 17:27: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.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88892-4-1cM8krRfVm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88892-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88892-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: 2019-01/txt/msg02439.txt.bz2
Content-length: 271

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

--- Comment #8 from Segher Boessenkool <segher at gcc dot gnu.org> ---
So we should use the current rounding mode for any float_trunc?  So we can use
float store instructions for it only with some fast-math option?
>From gcc-bugs-return-629629-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 17:27:03 2019
Return-Path: <gcc-bugs-return-629629-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42280 invoked by alias); 17 Jan 2019 17:27:02 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 39816 invoked by uid 48); 17 Jan 2019 17:26:56 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/88895] unnecessary warnings in unreachable code (shift)
Date: Thu, 17 Jan 2019 17:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.3.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc component everconfirmed
Message-ID: <bug-88895-4-YrnsuDniI4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88895-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88895-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: 2019-01/txt/msg02438.txt.bz2
Content-length: 1524

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-01-17
                 CC|                            |msebor at gcc dot gnu.org
          Component|c++                         |c
     Ever confirmed|0                           |1

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed.  The warning is not specific to C++ but triggers for C code as well
(see the example below).  The reason for the false positive is that the warning
is implemented in  the front-ends and doesn't benefit from any control flow
analysis, and so it triggers before the switch statement has been optimized and
the unreachable labels eliminated.  To avoid it the warning would have to be
deferred until quite a bit later.

$ cat u.c && gcc -S -Wall -Wextra -Wpedantic u.c
static inline int f (int i)
{
  switch (sizeof i)
  {
    case 8: return i >> 56;
    case 4: return i >> 24;
    case 2: return i >> 8;
    case 1: return i;
  }
}

int g (int i)
{
  return f (i);
}
u.c: In function ‘f’:
u.c:5:22: warning: right shift count >= width of type [-Wshift-count-overflow]
    5 |     case 8: return i >> 56;
      |                      ^~
>From gcc-bugs-return-629631-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 17:29:19 2019
Return-Path: <gcc-bugs-return-629631-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45144 invoked by alias); 17 Jan 2019 17:29: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 45067 invoked by uid 48); 17 Jan 2019 17:29:14 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/88895] unnecessary -Wshift-count-overflow in unreachable code (shift)
Date: Thu, 17 Jan 2019 17:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.3.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: see_also short_desc
Message-ID: <bug-88895-4-yLcR7Xg489@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88895-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88895-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: 2019-01/txt/msg02440.txt.bz2
Content-length: 685

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=67866
            Summary|unnecessary warnings in     |unnecessary
                   |unreachable code (shift)    |-Wshift-count-overflow in
                   |                            |unreachable code (shift)

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
See also bug 67866.
>From gcc-bugs-return-629632-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 17:33:49 2019
Return-Path: <gcc-bugs-return-629632-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59848 invoked by alias); 17 Jan 2019 17:33: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 59790 invoked by uid 48); 17 Jan 2019 17:33:45 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88892] [8/9 Regression] Double-to-float conversion uses wrong rounding mode when followed by memcpy
Date: Thu, 17 Jan 2019 17:33: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.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88892-4-8oH4rewBul@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88892-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88892-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: 2019-01/txt/msg02441.txt.bz2
Content-length: 577

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

--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Segher Boessenkool from comment #8)
> So we should use the current rounding mode for any float_trunc?  So we can
> use
> float store instructions for it only with some fast-math option?

No, the default is the following:
This is round-to-zero for all floating point to integer conversions, and
round-to-nearest for all other arithmetic truncations. 

https://gcc.gnu.org/onlinedocs/gcc-8.2.0/gcc/Optimize-Options.html#index-frounding-math
>From gcc-bugs-return-629633-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 17:35:33 2019
Return-Path: <gcc-bugs-return-629633-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66976 invoked by alias); 17 Jan 2019 17:35:33 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 66894 invoked by uid 55); 17 Jan 2019 17:35:29 -0000
From: "joseph at codesourcery dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88892] [8/9 Regression] Double-to-float conversion uses wrong rounding mode when followed by memcpy
Date: Thu, 17 Jan 2019 17: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.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: joseph at codesourcery 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88892-4-Ml1qNGB2sp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88892-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88892-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: 2019-01/txt/msg02442.txt.bz2
Content-length: 556

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

--- Comment #10 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
Use of stfs on a double-precision value without frsp first is worse than 
simply using the wrong rounding mode; in the case of overflow it does a 
bitwise defined operation which is pretty useless in floating-point terms 
(other than to make load/store of a single-precision NaN, even an sNaN, 
keep the bit-pattern unchanged) (and in the case of an exponent below -149 
the results are undefined).
>From gcc-bugs-return-629634-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 17:43:38 2019
Return-Path: <gcc-bugs-return-629634-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80929 invoked by alias); 17 Jan 2019 17:43: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 80848 invoked by uid 55); 17 Jan 2019 17:43:33 -0000
From: "scott.a.mayo at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/88895] unnecessary -Wshift-count-overflow in unreachable code (shift)
Date: Thu, 17 Jan 2019 17:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.3.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: scott.a.mayo 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88895-4-ekdxnxOBPd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88895-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88895-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: 2019-01/txt/msg02443.txt.bz2
Content-length: 1407

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

--- Comment #4 from Scott <scott.a.mayo at gmail dot com> ---
Um... yes, that would kill the warning; but then I'd be writing

/* The modulo operation is meaningless and will be optimized out, I 
promise. It's here

because there's a specific compiler, g++ 7.3.0, that can't figure out 
that the code

is unreachable, and then generates freaky warnings over it. The only way 
known

to shut up g++ without turning off the warning entirely is to do the modulo,

which is harmless for code that's kept and doesn't matter in code that's 
discarded.

*/


No. I work with people who will rightly complain about a meaningless 
operator. As a workaround it's cute, but it's not going to pass code 
review and it should not need to be there.

On 1/17/19 12:19 PM, jakub at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88895
>
> Jakub Jelinek <jakub at gcc dot gnu.org> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                   CC|                            |jakub at gcc dot gnu.org
>
> --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
> So just write it so that you don't invoke UB even there?
> Like case 8: tobyte[sizeof(T) - 8] = (unsigned char)(v >> (56 % (sizeof(T) *
> 8)));
> ?
>
>From gcc-bugs-return-629635-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 18:12:18 2019
Return-Path: <gcc-bugs-return-629635-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13409 invoked by alias); 17 Jan 2019 18:12:17 -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 12633 invoked by uid 48); 17 Jan 2019 18:12:12 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/65873] Failure to inline always_inline memcpy
Date: Thu, 17 Jan 2019 18:12: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: 5.1.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords priority cc cf_known_to_work cf_known_to_fail
Message-ID: <bug-65873-4-kB2TcQqYHg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65873-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65873-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: 2019-01/txt/msg02444.txt.bz2
Content-length: 882

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
           Priority|P1                          |P3
                 CC|                            |msebor at gcc dot gnu.org
      Known to work|                            |4.9.4, 5.2.0, 6.3.0
      Known to fail|                            |5.1.0

--- Comment #16 from Martin Sebor <msebor at gcc dot gnu.org> ---
This seems fixed (as per comment 9 and comment 11) but perhaps it's being kept
open because the fix was just a workaround?  In any case, it doesn't seem like
a P1 so I'll take the liberty to downgrade it to P3 and let others decide if it
should be resolved.
>From gcc-bugs-return-629636-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 18:30:53 2019
Return-Path: <gcc-bugs-return-629636-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78560 invoked by alias); 17 Jan 2019 18:30: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 78239 invoked by uid 48); 17 Jan 2019 18:30:43 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/88273] [8/9 Regression] warning: 'memcpy' offset [-527, -529] is out of the bounds [0, 16] of object 'vrsave' with type 'union <anonymous>' [-Warray-bounds]
Date: Thu, 17 Jan 2019 18:30: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.2.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-88273-4-9hRcc9tG5a@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88273-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88273-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: 2019-01/txt/msg02445.txt.bz2
Content-length: 379

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |msebor at gcc dot gnu.org
>From gcc-bugs-return-629637-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 20:14:36 2019
Return-Path: <gcc-bugs-return-629637-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17788 invoked by alias); 17 Jan 2019 20:14:35 -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 17704 invoked by uid 48); 17 Jan 2019 20:14:24 -0000
From: "daniel.f.starke at freenet dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88896] New: [8/9 Regression] integer overflow check optimized away
Date: Thu, 17 Jan 2019 20:14: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.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: daniel.f.starke at freenet dot de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-88896-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: 2019-01/txt/msg02446.txt.bz2
Content-length: 1912

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

            Bug ID: 88896
           Summary: [8/9 Regression] integer overflow check optimized away
           Product: gcc
           Version: 8.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: daniel.f.starke at freenet dot de
  Target Milestone: ---

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

Using built-in specs.
COLLECT_GCC=E:\msys\mingw64-64\bin\gcc.exe
COLLECT_LTO_WRAPPER=e:/msys/mingw64-64/bin/../libexec/gcc/x86_64-w64-mingw32/8.2.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../../src/gcc-8.2.0/configure --host=x86_64-w64-mingw32
--enable-languages=c,c++ --enable-seh-exceptions --enable-threads=posix
--disable-nls --disable-shared --enable-static --enable-fully-dynamic-string
--enable-lto --enable-plugins --enable-libgomp --with-dwarf2
--enable-mingw-wildcard=platform --disable-win32-registry
--enable-version-specific-runtime-libs --prefix=/mingw64-64
--with-sysroot=/mingw64-64 --target=x86_64-w64-mingw32 --enable-targets=all
--enable-checking=release --with-gmp=/usr/new-gcc/lib/gmp-5.0.5
--with-mpfr=/usr/new-gcc/lib/mpfr-2.4.2 --with-mpc=/usr/new-gcc/lib/mpc-0.9
--with-isl=/usr/new-gcc/lib/isl-0.18 --with-cloog=/usr/new-gcc/lib/cloog-0.18.4
--with-host-libstdcxx='-lstdc++ -lsupc++' --disable-cloog-version-check
--enable-cloog-backend=isl
Thread model: posix
gcc version 8.2.0 (GCC) 

Using GCC 8.2.0 instead of 7.3.0 produces with -O2 code with an integer
overflow check optimized away. Compare the attached output for test.c:81 in
7.3.0.S and 8.2.0.S. While 7.3.0.S still contains a comparison and conditional
jump, 8.2.0.S does not.
>From gcc-bugs-return-629638-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 20:34:07 2019
Return-Path: <gcc-bugs-return-629638-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53152 invoked by alias); 17 Jan 2019 20:34: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 53089 invoked by uid 48); 17 Jan 2019 20:34:02 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88892] [8/9 Regression] Double-to-float conversion uses wrong rounding mode when followed by memcpy
Date: Thu, 17 Jan 2019 20:34: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.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88892-4-RCeLKwJBHa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88892-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88892-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: 2019-01/txt/msg02447.txt.bz2
Content-length: 236

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

--- Comment #11 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Good point.  So we cannot use stfs (etc.) as float_truncate+store ever, not
even with full fast math options.
>From gcc-bugs-return-629639-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 20:37:09 2019
Return-Path: <gcc-bugs-return-629639-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57806 invoked by alias); 17 Jan 2019 20:37:09 -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 57719 invoked by uid 55); 17 Jan 2019 20:37:05 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/86740] [8/9 Regression] ICE with hana and nested lambdas (likely a regression, tsubst_copy, at cp/pt.c:15325)
Date: Thu, 17 Jan 2019 20: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: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86740-4-io5k8dfNFy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86740-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86740-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: 2019-01/txt/msg02448.txt.bz2
Content-length: 785

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

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Jan 17 20:36:31 2019
New Revision: 268046

URL: https://gcc.gnu.org/viewcvs?rev=268046&root=gcc&view=rev
Log:
        PR c++/86740, ICE with constexpr if and nested generic lambdas.

When we partially instantiate the constexpr if, we walk through its body to
see what it uses from the enclosing local_specializations.  That walk was
overlooking the use of 'count' in the captures of the innermost lambda,
because we weren't walking into the capture list.

        * tree.c (cp_walk_subtrees): Handle LAMBDA_EXPR.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1z/constexpr-if25.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/tree.c
>From gcc-bugs-return-629640-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 20:41:26 2019
Return-Path: <gcc-bugs-return-629640-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71798 invoked by alias); 17 Jan 2019 20:41: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 71717 invoked by uid 48); 17 Jan 2019 20:41:20 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/88895] unnecessary -Wshift-count-overflow in unreachable code (shift)
Date: Thu, 17 Jan 2019 20:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.3.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: glisse at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88895-4-g3cnAUmvm1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88895-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88895-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: 2019-01/txt/msg02449.txt.bz2
Content-length: 631

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

--- Comment #5 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Martin Sebor from comment #2)
> The warning is not specific to C++ but triggers for C code as well

True, but C++ templates somehow make this different. In C, you could use the
preprocessor to test for the size of int. In C++, expecting the compiler to
silently get rid of useless cases (like x<0 tests when the function is
instantiated with an unsigned type for x) is normal in templates.
Starting with C++17 you could use if constexpr, although the lack of switch
constexpr makes it less readable.
>From gcc-bugs-return-629641-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 20:47:37 2019
Return-Path: <gcc-bugs-return-629641-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80505 invoked by alias); 17 Jan 2019 20:47: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 77806 invoked by uid 48); 17 Jan 2019 20:47:32 -0000
From: "thomasanderson at google dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81107] operator new(size_t) can't have hidden visibility
Date: Thu, 17 Jan 2019 20:47: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: thomasanderson at google dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-81107-4-goFDZOOhVu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81107-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81107-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: 2019-01/txt/msg02450.txt.bz2
Content-length: 246

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

--- Comment #1 from Thomas Anderson <thomasanderson at google dot com> ---
Clang solved this recently by adding a -fvisibility-global-new-delete-hidden
option:
https://reviews.llvm.org/D53787
>From gcc-bugs-return-629642-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 20:58:28 2019
Return-Path: <gcc-bugs-return-629642-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99977 invoked by alias); 17 Jan 2019 20:58: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 99877 invoked by uid 48); 17 Jan 2019 20:58:23 -0000
From: "rafael at espindo dot la" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/88897] New: Bogus maybe-uninitialized warning on class field
Date: Thu, 17 Jan 2019 20:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rafael at espindo dot la
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-88897-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: 2019-01/txt/msg02451.txt.bz2
Content-length: 1029

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

            Bug ID: 88897
           Summary: Bogus maybe-uninitialized warning on class field
           Product: gcc
           Version: 8.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rafael at espindo dot la
  Target Milestone: ---

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

Compiling the attached testcase with "g++ -c -O1 -Wall test.ii" produces

test.ii:631:7: warning: ‘<anonymous>.seastar::temporary_buffer::_buffer’ may be
used uninitialized in this function [-Wmaybe-uninitialized]
 class temporary_buffer {

But in the reduced testcase the only constructor of temporary_buffer is out of
line, so the compiler has no way of knowing if it is initialized or not.

The warning goes away with -O2 or with very minor changes to the source code.
>From gcc-bugs-return-629643-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 21:06:06 2019
Return-Path: <gcc-bugs-return-629643-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121418 invoked by alias); 17 Jan 2019 21:06: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 118663 invoked by uid 48); 17 Jan 2019 21:06:01 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/86740] [8 Regression] ICE with hana and nested lambdas (likely a regression, tsubst_copy, at cp/pt.c:15325)
Date: Thu, 17 Jan 2019 21:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_known_to_work short_desc cf_known_to_fail
Message-ID: <bug-86740-4-7d6U0kSus4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86740-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86740-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: 2019-01/txt/msg02452.txt.bz2
Content-length: 775

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |9.0
            Summary|[8/9 Regression] ICE with   |[8 Regression] ICE with
                   |hana and nested lambdas     |hana and nested lambdas
                   |(likely a regression,       |(likely a regression,
                   |tsubst_copy, at             |tsubst_copy, at
                   |cp/pt.c:15325)              |cp/pt.c:15325)
      Known to fail|9.0                         |

--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed on trunk so far.
>From gcc-bugs-return-629644-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 21:10:24 2019
Return-Path: <gcc-bugs-return-629644-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19541 invoked by alias); 17 Jan 2019 21:10: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 19431 invoked by uid 48); 17 Jan 2019 21:10:18 -0000
From: "simon at pushface dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/50502] GNAT fails to compile a modification of B37101A ACATS test
Date: Thu, 17 Jan 2019 21:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 4.6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: simon at pushface dot 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: cc
Message-ID: <bug-50502-4-nevHtob2uz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-50502-4@http.gcc.gnu.org/bugzilla/>
References: <bug-50502-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: 2019-01/txt/msg02453.txt.bz2
Content-length: 2085

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

simon at pushface dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simon at pushface dot org

--- Comment #2 from simon at pushface dot org ---
OK (that is, this test code fails to compile for the expected reason,
rather than giving ICE) with 8.1.0 on x86_64-apple-darwin.

$ gnatmake -v b37101a.adb

GNATMAKE 8.1.0
Copyright (C) 1992-2018, Free Software Foundation, Inc.
  "b37101a.ali" being checked ...
  -> "b37101a.ali" missing.
gcc -c b37101a.adb
b37101a.adb:11:37: subtype mark required in this context
End of compilation
gnatmake: "b37101a.adb" Compilation error

In fact, it also succeeds with 4.8.1, & probably intermediate releases
too.

This may be down to the fact that the erroring line is (in 9.0.0)

   function Ekind (E : Entity_Id) return Entity_Kind is
   begin
      pragma Assert (Nkind (E) in N_Entity);          -- <<<<<<<<<<<
      return N_To_E (Nodes.Table (E + 1).Nkind);
   end Ekind;

i.e. an assertion which is disabled in release compilers, because it
ICEs in much the same way as the original with 9.0.0 20181103 & 20190115:

gcc -c b37101a.adb
+===========================GNAT BUG DETECTED==============================+
| 9.0.0 20190115 (experimental) (x86_64-apple-darwin15) Assert_Failure
atree.adb:994|
| Error detected at b37101a.adb:11:37                                      |

HOWEVER! The real b37101a.adb, from ACATS 4.1, fails to compile for the 
expected reaons,

$ gnatmake -v b37101a.adb 

GNATMAKE 9.0.0 20190115 (experimental)
Copyright (C) 1992-2019, Free Software Foundation, Inc.
  "b37101a.ali" being checked ...
  -> "b37101a.ali" missing.
gcc -c b37101a.adb
b37101a.adb:61:24: discriminants must have a discrete or access type
b37101a.adb:63:24: discriminants must have a discrete or access type
etc etc
>From gcc-bugs-return-629645-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 21:51:25 2019
Return-Path: <gcc-bugs-return-629645-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50878 invoked by alias); 17 Jan 2019 21:51:24 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 50543 invoked by uid 48); 17 Jan 2019 21:51:19 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/88787] [9 regression] C++ constexpr seems to not get expanded
Date: Thu, 17 Jan 2019 21:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-88787-4-FEd12vBbSz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88787-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88787-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: 2019-01/txt/msg02454.txt.bz2
Content-length: 429

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

Jason Merrill <jason at gcc dot gnu.org> changed:

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

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Alex, does your patch for bug 88146 also fix this?
>From gcc-bugs-return-629646-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 21:53:42 2019
Return-Path: <gcc-bugs-return-629646-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56708 invoked by alias); 17 Jan 2019 21:53:42 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 56560 invoked by uid 48); 17 Jan 2019 21:53:35 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/88875] [9 regression] initializer_list and explicit ctor
Date: Thu, 17 Jan 2019 21: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: 9.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc assigned_to
Message-ID: <bug-88875-4-npmCsF2KGL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88875-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88875-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: 2019-01/txt/msg02455.txt.bz2
Content-length: 452

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |jason at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |jason at gcc dot gnu.org
>From gcc-bugs-return-629647-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 22:04:43 2019
Return-Path: <gcc-bugs-return-629647-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100611 invoked by alias); 17 Jan 2019 22:04:43 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 100530 invoked by uid 48); 17 Jan 2019 22:04:39 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88892] [8/9 Regression] Double-to-float conversion uses wrong rounding mode when followed by memcpy
Date: Thu, 17 Jan 2019 22:04: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.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: segher at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-88892-4-AqadQWkIZO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88892-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88892-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: 2019-01/txt/msg02456.txt.bz2
Content-length: 470

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

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

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

--- Comment #12 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Okay, mine.
>From gcc-bugs-return-629648-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 22:26:19 2019
Return-Path: <gcc-bugs-return-629648-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121362 invoked by alias); 17 Jan 2019 22:26: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 110110 invoked by uid 48); 17 Jan 2019 22:26:13 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/88294] [9 Regression] ICE on (invalid) C++11 code: in tsubst_copy, at cp/pt.c:15391
Date: Thu, 17 Jan 2019 22:26: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: 9.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc assigned_to
Message-ID: <bug-88294-4-qA6Z0eHhhY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88294-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88294-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: 2019-01/txt/msg02457.txt.bz2
Content-length: 452

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |jason at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |jason at gcc dot gnu.org
>From gcc-bugs-return-629649-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 22:35:36 2019
Return-Path: <gcc-bugs-return-629649-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107942 invoked by alias); 17 Jan 2019 22:35: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 107813 invoked by uid 48); 17 Jan 2019 22:35:31 -0000
From: "pthaugen at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/85103] [8/9 Regression] Performance regressions on SPEC with r257582
Date: Thu, 17 Jan 2019 22:35: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: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pthaugen at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-85103-4-RwWJsLeJoF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85103-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85103-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: 2019-01/txt/msg02458.txt.bz2
Content-length: 1433

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

--- Comment #21 from Pat Haugen <pthaugen at gcc dot gnu.org> ---
> Knowing what inline decision matters for VPR, I can try to fix it too.

Gathering some perf data, the hot functions for various revisions are as
follows. All other functions report < 0.5% of execution time.

r257581
-------
samples  %        image name               symbol name
577871   57.8700  vpr_base.temp_32         try_route
402207   40.2784  vpr_base.temp_32         get_heap_head



r257582
-------
samples  %        image name               symbol name
428249   40.9911  vpr_base.pat_test_32     try_route
402768   38.5521  vpr_base.pat_test_32     get_heap_head
189358   18.1249  vpr_base.pat_test_32     node_to_heap.part.0



r267727 (after patches that fixed bzip2 went in)
-------
samples  %        image name               symbol name
493998   45.9797  vpr_base.pat_base_32     try_route
416389   38.7561  vpr_base.pat_base_32     get_heap_head
140727   13.0984  vpr_base.pat_base_32     add_to_heap

So from the above we can see that r257582 stopped inlining node_to_heap() into
try_route(). In r267727, node_to_heap() is again being inlined into
try_route(), but add_to_heap() is no longer inlined into node_to_heap(), which
is the only caller of add_to_heap(). So it appears the needed inlining is
getting the chain node_to_heap()->add_to_heap() to both get inlined into
try_route again.
>From gcc-bugs-return-629650-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 22:53:24 2019
Return-Path: <gcc-bugs-return-629650-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76623 invoked by alias); 17 Jan 2019 22:53:24 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 76494 invoked by uid 55); 17 Jan 2019 22:53:18 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/88273] [8/9 Regression] warning: 'memcpy' offset [-527, -529] is out of the bounds [0, 16] of object 'vrsave' with type 'union <anonymous>' [-Warray-bounds]
Date: Thu, 17 Jan 2019 22:53: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.2.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88273-4-qTU2ATkM8a@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88273-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88273-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: 2019-01/txt/msg02459.txt.bz2
Content-length: 813

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

--- Comment #11 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Thu Jan 17 22:52:47 2019
New Revision: 268048

URL: https://gcc.gnu.org/viewcvs?rev=268048&root=gcc&view=rev
Log:
PR middle-end/88273 - [8/9 Regression] warning: 'memcpy' offset [-527, -529]
is out of the bounds [0, 16]

gcc/ChangeLog:

        PR middle-end/88273
        * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
        Handle anti-ranges the same as no range at all.

gcc/testsuite/ChangeLog:

        PR middle-end/88273
        * gcc.dg/Warray-bounds-38.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/Warray-bounds-38.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimple-ssa-warn-restrict.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-629651-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 22:58:19 2019
Return-Path: <gcc-bugs-return-629651-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87131 invoked by alias); 17 Jan 2019 22:58: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 87068 invoked by uid 48); 17 Jan 2019 22:58:14 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/88273] [8 Regression] warning: 'memcpy' offset [-527, -529] is out of the bounds [0, 16] of object 'vrsave' with type 'union <anonymous>' [-Warray-bounds]
Date: Thu, 17 Jan 2019 22:58: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.2.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc cf_known_to_fail
Message-ID: <bug-88273-4-1XYdLMMuA8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88273-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88273-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: 2019-01/txt/msg02460.txt.bz2
Content-length: 874

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[8/9 Regression] warning:   |[8 Regression] warning:
                   |'memcpy' offset [-527,      |'memcpy' offset [-527,
                   |-529] is out of the bounds  |-529] is out of the bounds
                   |[0, 16] of object 'vrsave'  |[0, 16] of object 'vrsave'
                   |with type 'union            |with type 'union
                   |<anonymous>'                |<anonymous>'
                   |[-Warray-bounds]            |[-Warray-bounds]
      Known to fail|9.0                         |

--- Comment #12 from Martin Sebor <msebor at gcc dot gnu.org> ---
Fixed via r268048 for GCC 9.
>From gcc-bugs-return-629652-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 23:29:14 2019
Return-Path: <gcc-bugs-return-629652-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84803 invoked by alias); 17 Jan 2019 23:29: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 84741 invoked by uid 48); 17 Jan 2019 23:29:09 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88896] [8/9 Regression] integer overflow check optimized away
Date: Thu, 17 Jan 2019 23:29: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.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-88896-4-pM1eMxHL8l@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88896-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88896-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: 2019-01/txt/msg02461.txt.bz2
Content-length: 827

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

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 #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r251141, but it seems your testcase is invalid:
test.c:72:101: runtime error: signed integer overflow: 35792640 * 60 cannot be
represented in type 'int'
Guess you want to e.g. change * 365 to * 365U or * (uint32_t) 365, so that all
the arithmetics is done in uint32_t type when you want to support up to
uint32_t max.
>From gcc-bugs-return-629653-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 23:30:14 2019
Return-Path: <gcc-bugs-return-629653-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86162 invoked by alias); 17 Jan 2019 23:30: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 85966 invoked by uid 48); 17 Jan 2019 23:30:02 -0000
From: "kargl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/88898] New: [Regression 9] gomp is broken by r268045
Date: Thu, 17 Jan 2019 23:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: kargl at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-88898-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: 2019-01/txt/msg02462.txt.bz2
Content-length: 501

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

            Bug ID: 88898
           Summary: [Regression 9] gomp is broken by r268045
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kargl at gcc dot gnu.org
  Target Milestone: ---

It seems the recent commit r268045 is causing 5 regressions with gomp and
fortran.
>From gcc-bugs-return-629654-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 23:32:04 2019
Return-Path: <gcc-bugs-return-629654-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90666 invoked by alias); 17 Jan 2019 23:32: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 90558 invoked by uid 48); 17 Jan 2019 23:31:59 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/58200] Option fcheck is misleadingly located in option descriptions
Date: Thu, 17 Jan 2019 23:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: dominiq at lps dot ens.fr
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-58200-4-hCXMXn5nYD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58200-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58200-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: 2019-01/txt/msg02463.txt.bz2
Content-length: 1242

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

--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> With most portable compilers, code generation options are traditionally
> used for variations in the target interface, and not to introduce
> functionality.  Worse, the top-level entry says:
>
>     2.9 Options for code generation conventions

Looking at the content of the 2.9 section, I see (at least) three subsets of
options:
(1) those for code generation conventions
(2) frontend optimizations
(3) options enabling runtime diagnostics

A quick and lazy fix would be to replace "Options for code generation
conventions" with "Other options for code generation".

IMO it would be better to add new sections for (2) and (3), put (2) after 2.3
and () after 2.5.

Does this sound OK?

If yes, I'ld like to also move -ffpe-trap=list, -ffpe-summary=list, and
-fno-backtrace from 2.5 to the new section "options enabling runtime
diagnostics".

I'ld also like to move the options -fdefault*, -finteger* and -freal* to a new
section "Options changing the kind of variables", after the new section
"Frontend optimizations", and reverse their order: -finteger* and -freal*
before -fdefault*.

Comments welcomed.
>From gcc-bugs-return-629655-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 23:34:25 2019
Return-Path: <gcc-bugs-return-629655-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92630 invoked by alias); 17 Jan 2019 23:34: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 92578 invoked by uid 48); 17 Jan 2019 23:34:21 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/58200] Option fcheck is misleadingly located in option descriptions
Date: Thu, 17 Jan 2019 23:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: dominiq at lps dot ens.fr
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-58200-4-Rwv0SLvnrT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58200-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58200-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: 2019-01/txt/msg02464.txt.bz2
Content-length: 329

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

--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> IMO it would be better to add new sections for (2) and (3), put (2) after 2.3
> and () after 2.5.

IMO it would be better to add new sections for (2) and (3), put (2) after 2.3
and (3) after 2.5.
>From gcc-bugs-return-629656-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 23:35:19 2019
Return-Path: <gcc-bugs-return-629656-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94249 invoked by alias); 17 Jan 2019 23:35: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 94145 invoked by uid 55); 17 Jan 2019 23:35:14 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88734] [8/9 Regression] AArch64's ACLE intrinsics give an ICE instead of compile error when option mismatch.
Date: Thu, 17 Jan 2019 23: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: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88734-4-2sy9vMF0E3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88734-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88734-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: 2019-01/txt/msg02465.txt.bz2
Content-length: 573

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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Jan 17 23:34:42 2019
New Revision: 268049

URL: https://gcc.gnu.org/viewcvs?rev=268049&root=gcc&view=rev
Log:
        PR target/88734
        * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
        (("..."))) with ("...").  Use arch=armv8.2-a+sha3 instead of
        arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/aarch64/arm_neon.h
>From gcc-bugs-return-629657-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 23:37:07 2019
Return-Path: <gcc-bugs-return-629657-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95805 invoked by alias); 17 Jan 2019 23:37: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 95735 invoked by uid 48); 17 Jan 2019 23:37:01 -0000
From: "kargl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/88898] [Regression 9] gomp is broken by r268045
Date: Thu, 17 Jan 2019 23:37: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: kargl 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-88898-4-TAtaufaRZP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88898-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88898-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: 2019-01/txt/msg02466.txt.bz2
Content-length: 4090

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

--- Comment #1 from kargl at gcc dot gnu.org ---
The five failures are

FAIL: gfortran.dg/gomp/declare-simd-2.f90   -O   (test for warnings, line 3)
FAIL: gfortran.dg/gomp/declare-simd-2.f90   -O   (test for warnings, line 15)
Running /safe/sgk/gcc/gccx/gcc/testsuite/gfortran.dg/gomp/gomp.exp ...
FAIL: gfortran.dg/gomp/pr79154-1.f90   -O   (test for warnings, line 4)
FAIL: gfortran.dg/gomp/pr79154-1.f90   -O   (test for warnings, line 23)
Running /safe/sgk/gcc/gccx/gcc/testsuite/gfortran.dg/graphite/graphite.exp ...
FAIL: gfortran.dg/gomp/pr83977.f90   -O   (test for warnings, line 4)

The log for the declare-simd-2.f90 failure does not contain much info 

spawn -ignore SIGHUP /safe/sgk/gcc/objx/gcc/testsuite/gfortran/../../gfortran
-B/safe/sgk/gcc/objx/gcc/testsuite/gfortran/../../
-B/safe/sgk/gcc/objx/x86_64-unknown-freebsd13.0/./libgfortran/
/safe/sgk/gcc/gccx/gcc/testsuite/gfortran.dg/gomp/declare-simd-2.f90
-fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers
-fdiagnostics-color=never -O -fopenmp -Wno-hsa -S -o declare-simd-2.s
FAIL: gfortran.dg/gomp/declare-simd-2.f90   -O   (test for warnings, line 3)
FAIL: gfortran.dg/gomp/declare-simd-2.f90   -O   (test for warnings, line 15)
PASS: gfortran.dg/gomp/declare-simd-2.f90   -O  (test for excess errors)
testcase /safe/sgk/gcc/gccx/gcc/testsuite/gfortran.dg/gomp/gomp.exp completed
in
 0 seconds

The log for pr79154-1.f90 shows

spawn -ignore SIGHUP /safe/sgk/gcc/objx/gcc/testsuite/gfortran/../../gfortran
-B
/safe/sgk/gcc/objx/gcc/testsuite/gfortran/../../
-B/safe/sgk/gcc/objx/x86_64-unk
nown-freebsd13.0/./libgfortran/
/safe/sgk/gcc/gccx/gcc/testsuite/gfortran.dg/gom
p/pr79154-1.f90 -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers
-
fdiagnostics-color=never -O -fopenmp -Wno-hsa -S -o pr79154-1.s
FAIL: gfortran.dg/gomp/pr79154-1.f90   -O   (test for warnings, line 4)
PASS: gfortran.dg/gomp/pr79154-1.f90   -O   (test for bogus messages, line 5)
PASS: gfortran.dg/gomp/pr79154-1.f90   -O   (test for bogus messages, line 13)
PASS: gfortran.dg/gomp/pr79154-1.f90   -O   (test for bogus messages, line 19)
FAIL: gfortran.dg/gomp/pr79154-1.f90   -O   (test for warnings, line 23)
PASS: gfortran.dg/gomp/pr79154-1.f90   -O   (test for bogus messages, line 24)
PASS: gfortran.dg/gomp/pr79154-1.f90   -O   (test for bogus messages, line 29)
Executing on host: /safe/sgk/gcc/objx/gcc/testsuite/gfortran/../../gfortran
-B/safe/sgk/gcc/objx/gcc/testsuite/gfortran/../../
-B/safe/sgk/gcc/objx/x86_64-unknown-freebsd13.0/./libgfortran/
offload_gcn72945.c    -fno-diagnostics-show-caret
-fno-diagnostics-show-line-numbers -fdiagnostics-color=never 
-foffload=amdgcn-unknown-amdhsa -S -o offload_gcn72945.s    (timeout = 300)
spawn -ignore SIGHUP /safe/sgk/gcc/objx/gcc/testsuite/gfortran/../../gfortran
-B/safe/sgk/gcc/objx/gcc/testsuite/gfortran/../../
-B/safe/sgk/gcc/objx/x86_64-unknown-freebsd13.0/./libgfortran/
offload_gcn72945.c -fno-diagnostics-show-caret
-fno-diagnostics-show-line-numbers -fdiagnostics-color=never
-foffload=amdgcn-unknown-amdhsa -S -o offload_gcn72945.s
gfortran: fatal error: GCC is not configured to support amdgcn-unknown-amdhsa
as offload target
compilation terminated.
compiler exited with status 1
PASS: gfortran.dg/gomp/pr79154-1.f90   -O  (test for excess errors)

The last failure is
spawn -ignore SIGHUP /safe/sgk/gcc/objx/gcc/testsuite/gfortran/../../gfortran
-B/safe/sgk/gcc/objx/gcc/testsuite/gfortran/../../
-B/safe/sgk/gcc/objx/x86_64-unknown-freebsd13.0/./libgfortran/
offload_gcn73178.c -fno-diagnostics-show-caret
-fno-diagnostics-show-line-numbers -fdiagnostics-color=never
-foffload=amdgcn-unknown-amdhsa -S -o offload_gcn73178.s
gfortran: fatal error: GCC is not configured to support amdgcn-unknown-amdhsa
as offload target
compilation terminated.
compiler exited with status 1
PASS: gfortran.dg/gomp/pr83977.f90   -O  (test for excess errors)
testcase /safe/sgk/gcc/gccx/gcc/testsuite/gfortran.dg/gomp/gomp.exp completed
in 0 seconds
>From gcc-bugs-return-629658-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 23:42:46 2019
Return-Path: <gcc-bugs-return-629658-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101122 invoked by alias); 17 Jan 2019 23:42:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 101075 invoked by uid 48); 17 Jan 2019 23:42:42 -0000
From: "kargl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/88898] [Regression 9] gomp is broken by r268045
Date: Thu, 17 Jan 2019 23:42: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: kargl 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-88898-4-ABuURqViSh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88898-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88898-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: 2019-01/txt/msg02467.txt.bz2
Content-length: 373

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

--- Comment #2 from kargl at gcc dot gnu.org ---
In looking at the failures in the log, I see

gfortran: fatal error: GCC is not configured to support amdgcn-unknown-amdhsa
as offload target


This may be du to a commit by  Andrew Stubbs  <ams@codesourcery.com>,
but bugzilla won't allow me to add Andrew to CC list.
>From gcc-bugs-return-629659-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 23:46:30 2019
Return-Path: <gcc-bugs-return-629659-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109406 invoked by alias); 17 Jan 2019 23:46: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 108036 invoked by uid 48); 17 Jan 2019 23:46:26 -0000
From: "ams at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/88898] [Regression 9] gomp is broken by r268045
Date: Thu, 17 Jan 2019 23:46: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: ams 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: cc
Message-ID: <bug-88898-4-LxRHS8XVbT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88898-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88898-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: 2019-01/txt/msg02468.txt.bz2
Content-length: 398

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

Andrew Stubbs <ams at gcc dot gnu.org> changed:

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

--- Comment #3 from Andrew Stubbs <ams at gcc dot gnu.org> ---
I'll take a look tomorrow.
>From gcc-bugs-return-629660-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 23:48:52 2019
Return-Path: <gcc-bugs-return-629660-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112889 invoked by alias); 17 Jan 2019 23:48: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 112678 invoked by uid 48); 17 Jan 2019 23:48:33 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/35930] -pedantic: Check for -stdù5/f2003/f2008
Date: Thu, 17 Jan 2019 23:48: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.4.0
X-Bugzilla-Keywords: documentation
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-35930-4-Gj3buSauBW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-35930-4@http.gcc.gnu.org/bugzilla/>
References: <bug-35930-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: 2019-01/txt/msg02469.txt.bz2
Content-length: 949

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

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> I understood -pedantic such that it gives warnings if a construct
> does not match the Fortran standard. Currently, it seems to be partially
> used such but also used to warn for non-Fortran-95 (!) constructs.

While experimenting with pr88190 it is not how it works. The current behavior
is more or less

-std=f* gives errors for all the gfortran extensions with/without
-pedantic(-errors),

-std=gnu (default) accepts (most if not all) gfortran extensions, using
-pedantic gives warnings for (some) extensions that do not give without it (see
gfortran.dg/comma_format_extension_4.f),

-std=legacy accepts all gfortran extensions without any warning, unless
-pedantic is used.

>           This should be used in conjunction with -std=f95,
>           -std=f2003, or -std=f2008.

is definitively wrong.
>From gcc-bugs-return-629661-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 23:55:45 2019
Return-Path: <gcc-bugs-return-629661-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119362 invoked by alias); 17 Jan 2019 23:55: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 119262 invoked by uid 48); 17 Jan 2019 23:55:39 -0000
From: "sje at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/88898] [Regression 9] gomp is broken by r268045
Date: Thu, 17 Jan 2019 23:55: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: sje 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: cc
Message-ID: <bug-88898-4-0E9wOPseQo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88898-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88898-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: 2019-01/txt/msg02470.txt.bz2
Content-length: 947

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

Steve Ellcey <sje at gcc dot gnu.org> changed:

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

--- Comment #4 from Steve Ellcey <sje at gcc dot gnu.org> ---
I think this is my fault.  My patch shouldn't have affected x86 at all but I
see my build/test on x86 only tested C and C++, I didn't have Fortran
configured in
when I checked for regressions.

The problem is the warnings I added to the Fortran tests, like:

-function f1 (a, b, c, d, e, f)
+function f1 (a, b, c, d, e, f) ! { dg-warning "GCC does not currently support
mixed size types for 'simd' functions" }

I didn't add a '{ target aarch64-*-* }' clause to the messages.  I will work on
a patch, it is only the tests that should need to be changed, not the compiler.
>From gcc-bugs-return-629662-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 17 23:57:00 2019
Return-Path: <gcc-bugs-return-629662-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120837 invoked by alias); 17 Jan 2019 23:56: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 120743 invoked by uid 48); 17 Jan 2019 23:56:55 -0000
From: "kargl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/88898] [Regression 9] gomp is broken by r268045
Date: Thu, 17 Jan 2019 23:56: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: kargl 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_gcchost
Message-ID: <bug-88898-4-oTuSgM4KYi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88898-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88898-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: 2019-01/txt/msg02471.txt.bz2
Content-length: 717

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

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
               Host|                            |x86_64-*-freebsd

--- Comment #5 from kargl at gcc dot gnu.org ---
My configure command is

../gccx/configure --prefix=$HOME/work/x --enable-languages=c,fortran \
  --enable-bootstrap --disable-nls

This is on FreeBSD.

FreeBSD 13.0-CURRENT r343025 HPC amd64
FreeBSD clang version 7.0.1 (tags/RELEASE_701/final 349250) (based on LLVM
7.0.1)
VT(vga): text 80x25
CPU: AMD FX(tm)-8350 Eight-Core Processor            (4018.34-MHz K8-class CPU)
>From gcc-bugs-return-629663-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 00:01:41 2019
Return-Path: <gcc-bugs-return-629663-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129526 invoked by alias); 18 Jan 2019 00:01: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 128572 invoked by uid 48); 18 Jan 2019 00:00:55 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/41650] [Cleanup] Use gfc_expr_attr in resolve_allocate_expr/resolve_deallocate_expr
Date: Fri, 18 Jan 2019 00:01: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.5.0
X-Bugzilla-Keywords:
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: bug_status
Message-ID: <bug-41650-4-4sSTt4IieG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41650-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41650-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: 2019-01/txt/msg02472.txt.bz2
Content-length: 397

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

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

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

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Is this still valid?
>From gcc-bugs-return-629664-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 00:02:20 2019
Return-Path: <gcc-bugs-return-629664-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1838 invoked by alias); 18 Jan 2019 00:02: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 1030 invoked by uid 55); 18 Jan 2019 00:02:02 -0000
From: "sgk at troutmask dot apl.washington.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/9] local class and -O1
Date: Fri, 18 Jan 2019 00: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: unknown
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sgk at troutmask dot apl.washington.edu
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 3.0.x
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-9-4-ISrBy4qFjx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-9-4@http.gcc.gnu.org/bugzilla/>
References: <bug-9-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: 2019-01/txt/msg02473.txt.bz2
Content-length: 642

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

--- Comment #8 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Thu, Jan 17, 2019 at 11:55:38PM +0000, sje at gcc dot gnu.org wrote:
> 
> --- Comment #4 from Steve Ellcey <sje at gcc dot gnu.org> ---
> I think this is my fault.  My patch shouldn't have affected x86 at all but I
> see my build/test on x86 only tested C and C++, I didn't have Fortran
> configured in when I checked for regressions.
> 

Thanks for the quick reply.  Your commit and Andrew's
came in about the same time.  I haven't had a chance
to backout different revisions to narrow down the
issue.
>From gcc-bugs-return-629665-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 00:18:17 2019
Return-Path: <gcc-bugs-return-629665-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95628 invoked by alias); 18 Jan 2019 00:18:17 -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 95567 invoked by uid 48); 18 Jan 2019 00:18:13 -0000
From: "emsr at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/88334] Implement P0482R6, C++20 char8_t.
Date: Fri, 18 Jan 2019 00:18: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: emsr 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-88334-4-G0f9OE1SVx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88334-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88334-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: 2019-01/txt/msg02474.txt.bz2
Content-length: 179

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

--- Comment #2 from emsr at gcc dot gnu.org ---
It looks like this went in.
If so we should check it off on the status page.
>From gcc-bugs-return-629666-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 00:37:58 2019
Return-Path: <gcc-bugs-return-629666-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29741 invoked by alias); 18 Jan 2019 00:37: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 29664 invoked by uid 48); 18 Jan 2019 00:37:53 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/49108] Support constructors tied to a variable
Date: Fri, 18 Jan 2019 00:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.7.0
X-Bugzilla-Keywords: missed-optimization
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: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-49108-4-yuagKQOnp5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-49108-4@http.gcc.gnu.org/bugzilla/>
References: <bug-49108-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: 2019-01/txt/msg02475.txt.bz2
Content-length: 673

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2019-01-18
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
The code in comment 0 is rejected with

    4 |     integer :: a[*]
      |                   1
Error: Variable 'a' at (1) is a coarray and is not ALLOCATABLE, SAVE nor a
dummy argument
>From gcc-bugs-return-629667-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 00:38:50 2019
Return-Path: <gcc-bugs-return-629667-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30965 invoked by alias); 18 Jan 2019 00:38: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 30893 invoked by uid 48); 18 Jan 2019 00:38:45 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/88895] unnecessary -Wshift-count-overflow in unreachable code (shift)
Date: Fri, 18 Jan 2019 00:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.3.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88895-4-NHM1Kfg9aO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88895-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88895-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: 2019-01/txt/msg02476.txt.bz2
Content-length: 1648

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

--- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> ---
The C++ solution to this kind of problem is to use template specialization. 
It's a been a while since I wrote any real C++ code but this seems to work and
avoids the warnings

class PackRule
{
  template <class T, unsigned N>
  struct Packer;
public:
  const unsigned short offset_;
  const unsigned char width_;

  inline PackRule(const unsigned short offset, const unsigned char width) :
    offset_(offset), width_(width) {}

  template <typename T>
  inline void pack (void* to, const T v) const
  {
    unsigned char* tobyte = (unsigned char*)to + offset_;
    Packer<T, sizeof (T)>::pack (tobyte, v);
  }

  template<typename T>
  inline T unpack (const void* from, T* output) const
  {
    const unsigned char* frombyte = (const unsigned char*)from + offset_;
    return *output = Packer<T, sizeof (T)>::unpack (frombyte);
  }
};

template <class T, unsigned N>
struct PackRule::Packer
{
  static void pack (unsigned char *p, T x)
  {
    p[sizeof (T) - N] = (unsigned char)(x >> (N - 1) * __CHAR_BIT__);
    Packer<T, N - 1>::pack (p, x);
  }

  static T unpack (const unsigned char *p)
  {
    T x = (0xffU & (T)p[sizeof(T) - N]) << ((N - 1) * __CHAR_BIT__);
    return x | Packer<T, N - 1>::unpack (p);
  }
};

template <class T>
struct PackRule::Packer<T, 0>
{
  static void pack (unsigned char*, T) { }
  static T unpack (const unsigned char*) { return T (); }
};

int main ()
{
  PackRule p(0, 4);
  unsigned char buf[4];
  p.pack (buf, (unsigned int)444);
  unsigned int t;
  p.unpack (buf, &t);
}
>From gcc-bugs-return-629668-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 00:39:44 2019
Return-Path: <gcc-bugs-return-629668-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32221 invoked by alias); 18 Jan 2019 00:39:43 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 32147 invoked by uid 48); 18 Jan 2019 00:39:37 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/45776] Full implementation of variable definition contexts (and related checks)
Date: Fri, 18 Jan 2019 00:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: accepts-invalid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: domob at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-45776-4-fPoCvgaNjV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-45776-4@http.gcc.gnu.org/bugzilla/>
References: <bug-45776-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: 2019-01/txt/msg02477.txt.bz2
Content-length: 735

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |janus at gcc dot gnu.org,
                   |                            |paulthomas2 at wanadoo dot fr

--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> This implemented all IO related checks (items 5-10), so only missing
> are now 14 and 15 which are the LOCK/UNLOCK related ones.  These depend
> on implementation of locks in PR 18918, so I'm waiting for that now.

I think this PR should be closed as FIXED.
>From gcc-bugs-return-629669-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 00:42:18 2019
Return-Path: <gcc-bugs-return-629669-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37549 invoked by alias); 18 Jan 2019 00:42:17 -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 37338 invoked by uid 55); 18 Jan 2019 00:42:13 -0000
From: "sje at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/88898] [Regression 9] gomp is broken by r268045
Date: Fri, 18 Jan 2019 00:42: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: sje 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-88898-4-lU5bMDMkFn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88898-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88898-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: 2019-01/txt/msg02478.txt.bz2
Content-length: 741

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

--- Comment #6 from Steve Ellcey <sje at gcc dot gnu.org> ---
Author: sje
Date: Fri Jan 18 00:41:40 2019
New Revision: 268054

URL: https://gcc.gnu.org/viewcvs?rev=268054&root=gcc&view=rev
Log:
2018-01-17  Steve Ellcey  <sellcey@cavium.com>

        PR fortran/88898
        * gfortran.dg/gomp/declare-simd-2.f90: Add aarch64 target specifier to
        warning checks.
        * gfortran.dg/gomp/pr79154-1.f90: Ditto.
        * gfortran.dg/gomp/pr83977.f90: Ditto.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/gomp/declare-simd-2.f90
    trunk/gcc/testsuite/gfortran.dg/gomp/pr79154-1.f90
    trunk/gcc/testsuite/gfortran.dg/gomp/pr83977.f90
>From gcc-bugs-return-629670-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 00:55:17 2019
Return-Path: <gcc-bugs-return-629670-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31066 invoked by alias); 18 Jan 2019 00:55:17 -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 27199 invoked by uid 55); 18 Jan 2019 00:55:13 -0000
From: "sgk at troutmask dot apl.washington.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/9] local class and -O1
Date: Fri, 18 Jan 2019 00:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sgk at troutmask dot apl.washington.edu
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 3.0.x
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-9-4-aAh1uMS7eN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-9-4@http.gcc.gnu.org/bugzilla/>
References: <bug-9-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: 2019-01/txt/msg02479.txt.bz2
Content-length: 1119

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

--- Comment #9 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Fri, Jan 18, 2019 at 12:42:12AM +0000, sje at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88898
> 
> --- Comment #6 from Steve Ellcey <sje at gcc dot gnu.org> ---
> Author: sje
> Date: Fri Jan 18 00:41:40 2019
> New Revision: 268054
> 
> URL: https://gcc.gnu.org/viewcvs?rev=268054&root=gcc&view=rev
> Log:
> 2018-01-17  Steve Ellcey  <sellcey@cavium.com>
> 
>         PR fortran/88898
>         * gfortran.dg/gomp/declare-simd-2.f90: Add aarch64 target specifier to
>         warning checks.
>         * gfortran.dg/gomp/pr79154-1.f90: Ditto.
>         * gfortran.dg/gomp/pr83977.f90: Ditto.
> 
> Modified:
>     trunk/gcc/testsuite/ChangeLog
>     trunk/gcc/testsuite/gfortran.dg/gomp/declare-simd-2.f90
>     trunk/gcc/testsuite/gfortran.dg/gomp/pr79154-1.f90
>     trunk/gcc/testsuite/gfortran.dg/gomp/pr83977.f90
> 

I can confirm that the patch has fixed the regression.
Do you want to close the PR or would you rather have
me do it?
>From gcc-bugs-return-629671-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 00:58:22 2019
Return-Path: <gcc-bugs-return-629671-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57381 invoked by alias); 18 Jan 2019 00:58: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 57278 invoked by uid 55); 18 Jan 2019 00:58:15 -0000
From: "scott.a.mayo at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/88895] unnecessary -Wshift-count-overflow in unreachable code (shift)
Date: Fri, 18 Jan 2019 00:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.3.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: scott.a.mayo 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88895-4-B1lFn5wbag@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88895-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88895-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: 2019-01/txt/msg02480.txt.bz2
Content-length: 2816

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

--- Comment #7 from Scott <scott.a.mayo at gmail dot com> ---
While that's brilliant,

1) I don't lack for ways to code around the problem, but whether or not 
I do, g++ nonetheless has a problem here.
2) At a guess, the recursive solution is avoiding the warnings because 
the compiler is unable to figure out if the shifts are a problem, which 
probably means it can't optimize your solution. I could probably have 
hidden the size of the shifts with less code than your specializations uses:

     volatile unsigned int q = 56; //now the compiler can't assume the 
shift is a problem
     (T)v << q;

or
     (T)v * (((uintmax_t)1 << 56))

but there goes hope of optimization, too. And for what I'm doing 
optimization is essential.

I'm not looking for ways to code work around a warning. I'm just asking 
for a bugfix in the compiler.

On 1/17/19 7:38 PM, msebor at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88895
>
> --- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> ---
> The C++ solution to this kind of problem is to use template specialization.
> It's a been a while since I wrote any real C++ code but this seems to work and
> avoids the warnings
>
> class PackRule
> {
>    template <class T, unsigned N>
>    struct Packer;
> public:
>    const unsigned short offset_;
>    const unsigned char width_;
>
>    inline PackRule(const unsigned short offset, const unsigned char width) :
>      offset_(offset), width_(width) {}
>
>    template <typename T>
>    inline void pack (void* to, const T v) const
>    {
>      unsigned char* tobyte = (unsigned char*)to + offset_;
>      Packer<T, sizeof (T)>::pack (tobyte, v);
>    }
>
>    template<typename T>
>    inline T unpack (const void* from, T* output) const
>    {
>      const unsigned char* frombyte = (const unsigned char*)from + offset_;
>      return *output = Packer<T, sizeof (T)>::unpack (frombyte);
>    }
> };
>
> template <class T, unsigned N>
> struct PackRule::Packer
> {
>    static void pack (unsigned char *p, T x)
>    {
>      p[sizeof (T) - N] = (unsigned char)(x >> (N - 1) * __CHAR_BIT__);
>      Packer<T, N - 1>::pack (p, x);
>    }
>
>    static T unpack (const unsigned char *p)
>    {
>      T x = (0xffU & (T)p[sizeof(T) - N]) << ((N - 1) * __CHAR_BIT__);
>      return x | Packer<T, N - 1>::unpack (p);
>    }
> };
>
> template <class T>
> struct PackRule::Packer<T, 0>
> {
>    static void pack (unsigned char*, T) { }
>    static T unpack (const unsigned char*) { return T (); }
> };
>
> int main ()
> {
>    PackRule p(0, 4);
>    unsigned char buf[4];
>    p.pack (buf, (unsigned int)444);
>    unsigned int t;
>    p.unpack (buf, &t);
> }
>
>From gcc-bugs-return-629672-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 03:18:19 2019
Return-Path: <gcc-bugs-return-629672-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74479 invoked by alias); 18 Jan 2019 03:18: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 74364 invoked by uid 48); 18 Jan 2019 03:18:14 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/64081] [7/8/9 Regression] r217827/8 prevents RTL loop unroll
Date: Fri, 18 Jan 2019 03:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: deferred, missed-optimization, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_file_loc
Message-ID: <bug-64081-4-TSzbi3vzWo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64081-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: 2019-01/txt/msg02481.txt.bz2
Content-length: 935

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                URL|                            |https://gcc.gnu.org/ml/gcc-
                   |                            |patches/2017-02/msg00691.ht
                   |                            |ml

--- Comment #64 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Jeffrey A. Law from comment #61)
> Punting to gcc-8.  The patch needs additional work and Aldy is poking at
> something else at this point.  The Aldy's analysis of the AIX issue should
> allow this to be pushed forward in the gcc-8 development cycle.

Even if the patch needs additional work, it's still a patch, so I'm adding the
"patch" keyword
>From gcc-bugs-return-629674-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 03:21:18 2019
Return-Path: <gcc-bugs-return-629674-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98116 invoked by alias); 18 Jan 2019 03:21: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 96519 invoked by uid 48); 18 Jan 2019 03:21:14 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/88895] unnecessary -Wshift-count-overflow in unreachable code (shift)
Date: Fri, 18 Jan 2019 03:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.3.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88895-4-zuF6cCyeFr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88895-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88895-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: 2019-01/txt/msg02483.txt.bz2
Content-length: 754

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

--- Comment #8 from Martin Sebor <msebor at gcc dot gnu.org> ---
I agree that GCC would do a better by running -Wshift-count-overflow later (but
that carries a risk of false positives as well).  That's also why I
acknowledged the report.

Both solutions appear to be optimized equally well.  The recursive approach
doesn't trigger the warning because it avoids the invalid shifts.  It starts
recursion at the point where sizeof (int) == 4 and not when sizeof (int) == 8
as the test case, and scales to integers of any size.  It does exactly as much
work as is necessary for the type it's instantiated on.  I didn't show it so
much as a workaround but rather as a better way to code it.
>From gcc-bugs-return-629673-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 03:21:17 2019
Return-Path: <gcc-bugs-return-629673-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 97917 invoked by alias); 18 Jan 2019 03:21:17 -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 96127 invoked by uid 48); 18 Jan 2019 03:21:13 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/69558] [7/8 Regression] glib2 warning pragmas stopped working
Date: Fri, 18 Jan 2019 03:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: deferred
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-69558-4-KONAwueFgT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69558-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69558-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: 2019-01/txt/msg02482.txt.bz2
Content-length: 1601

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

--- Comment #26 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Bernd Edlinger from comment #25)
> Author: edlinger
> Date: Wed Jul 18 19:36:01 2018
> New Revision: 262861
> 
> URL: https://gcc.gnu.org/viewcvs?rev=262861&root=gcc&view=rev
> Log:
> libcpp:
> 2018-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
> 
>         PR 69558
>         * macro.c (enter_macro_context): Change the location info for builtin
>         macros and _Pragma from location of the closing parenthesis to
> location
>         of the macro expansion point.
> 
> testsuite:
> 2018-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
> 
>         PR 69558
>         * c-c++-common/cpp/diagnostic-pragma-2.c: New test.
>         * c-c++-common/pr69558.c: Remove xfail.
>         * gcc.dg/cpp/builtin-macro-1.c: Adjust test expectations.
>         * gcc.dg/pr61817-1.c: Likewise.
>         * gcc.dg/pr61817-2.c: Likewise.
>         * g++.dg/plugin/pragma_plugin.c: Warn at expansion_point_location.
> 
> Added:
>     trunk/gcc/testsuite/c-c++-common/cpp/diagnostic-pragma-2.c
> Modified:
>     trunk/gcc/testsuite/ChangeLog
>     trunk/gcc/testsuite/c-c++-common/pr69558.c
>     trunk/gcc/testsuite/g++.dg/plugin/pragma_plugin.c
>     trunk/gcc/testsuite/gcc.dg/cpp/builtin-macro-1.c
>     trunk/gcc/testsuite/gcc.dg/pr61817-1.c
>     trunk/gcc/testsuite/gcc.dg/pr61817-2.c
>     trunk/libcpp/ChangeLog
>     trunk/libcpp/macro.c

So this still needs to be backported to the 7 and 8 branches before this bug
can be closed, correct?
>From gcc-bugs-return-629675-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 03:31:47 2019
Return-Path: <gcc-bugs-return-629675-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7005 invoked by alias); 18 Jan 2019 03:31:47 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 6505 invoked by uid 55); 18 Jan 2019 03:30:59 -0000
From: "ian at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/88202] FAIL: runtime/pprof
Date: Fri, 18 Jan 2019 03:31: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ian at gcc dot gnu.org
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-88202-4-swRGbdonyH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88202-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88202-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: 2019-01/txt/msg02484.txt.bz2
Content-length: 535

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

--- Comment #1 from ian at gcc dot gnu.org <ian at gcc dot gnu.org> ---
Author: ian
Date: Fri Jan 18 03:29:38 2019
New Revision: 268057

URL: https://gcc.gnu.org/viewcvs?rev=268057&root=gcc&view=rev
Log:
        PR go/88202
    runtime: in sigprof, skip to sigtrampgo if we don't find sigtramp

    Fixes https://gcc.gnu.org/PR88202

    Reviewed-on: https://go-review.googlesource.com/c/158218

Modified:
    trunk/gcc/go/gofrontend/MERGE
    trunk/libgo/go/runtime/proc.go
>From gcc-bugs-return-629676-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 03:59:00 2019
Return-Path: <gcc-bugs-return-629676-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 2086 invoked by alias); 18 Jan 2019 03:59:00 -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 1969 invoked by uid 55); 18 Jan 2019 03:58:55 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/86205] [9 Regression] ICE on valid C++11 code: in type_dependent_expression_p, at cp/pt.c:25193
Date: Fri, 18 Jan 2019 03:59: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: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86205-4-YlbgFjo0Ue@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86205-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86205-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: 2019-01/txt/msg02485.txt.bz2
Content-length: 932

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

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Jan 18 03:58:22 2019
New Revision: 268058

URL: https://gcc.gnu.org/viewcvs?rev=268058&root=gcc&view=rev
Log:
        PR c++/86205 - ICE with ?: of throw and template-id.

My patch for 64372 removed a bogus lvalue-rvalue conversion for one arm of a
?: expression where the other arm is a throw.  But we still need to require
any overload to be resolved, even though we aren't getting that from
decay_conversion anymore.

        * pt.c (resolve_nondeduced_context_or_error): Split out from...
        * typeck.c (decay_conversion): ...here.
        * call.c (build_conditional_expr_1): Use it.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/cond2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/typeck.c
>From gcc-bugs-return-629677-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 04:16:12 2019
Return-Path: <gcc-bugs-return-629677-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29502 invoked by alias); 18 Jan 2019 04:16: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 29415 invoked by uid 48); 18 Jan 2019 04:16:07 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/88202] FAIL: runtime/pprof
Date: Fri, 18 Jan 2019 04:16: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ian at airs dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-88202-4-60dGHqBsnf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88202-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88202-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: 2019-01/txt/msg02486.txt.bz2
Content-length: 419

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

Ian Lance Taylor <ian at airs dot com> changed:

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

--- Comment #2 from Ian Lance Taylor <ian at airs dot com> ---
Fixed.
>From gcc-bugs-return-629679-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 04:46:51 2019
Return-Path: <gcc-bugs-return-629679-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21832 invoked by alias); 18 Jan 2019 04:46: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 21389 invoked by uid 48); 18 Jan 2019 04:46:45 -0000
From: "rafael at espindo dot la" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/88897] Bogus maybe-uninitialized warning on class field
Date: Fri, 18 Jan 2019 04:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rafael at espindo dot la
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-88897-4-n2FWYfrLJc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88897-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88897-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: 2019-01/txt/msg02488.txt.bz2
Content-length: 343

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

--- Comment #1 from Rafael Avila de Espindola <rafael at espindo dot la> ---
Created attachment 45453
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45453&action=edit
reduced the test a bit more

It now compiles with older gcc too.

The warning is there in gcc 7, but not gcc 6.
>From gcc-bugs-return-629678-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 04:46:04 2019
Return-Path: <gcc-bugs-return-629678-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20347 invoked by alias); 18 Jan 2019 04:46: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 19884 invoked by uid 48); 18 Jan 2019 04:45:23 -0000
From: "daniel.f.starke at freenet dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88896] [8/9 Regression] integer overflow check optimized away
Date: Fri, 18 Jan 2019 04:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: daniel.f.starke at freenet dot de
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-88896-4-gDToJrlsEM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88896-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88896-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: 2019-01/txt/msg02487.txt.bz2
Content-length: 220

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

--- Comment #2 from Daniel Starke <daniel.f.starke at freenet dot de> ---
You are right. So you are saying that the compiler actually checks all cases of
the loop?
>From gcc-bugs-return-629680-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 05:55:52 2019
Return-Path: <gcc-bugs-return-629680-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77740 invoked by alias); 18 Jan 2019 05:55: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 77669 invoked by uid 48); 18 Jan 2019 05:55:48 -0000
From: "mscfd at gmx dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/88899] New: Derived type IO in conjunction with openmp fails with invalid memory read
Date: Fri, 18 Jan 2019 05:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mscfd at gmx dot 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-88899-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: 2019-01/txt/msg02489.txt.bz2
Content-length: 1993

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

            Bug ID: 88899
           Summary: Derived type IO in conjunction with openmp fails with
                    invalid memory read
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mscfd at gmx dot net
  Target Milestone: ---

The code below fails with an invalid memory read. The derivated type IO
write(formatted) is declared but not used. Without this line the code runs
fine. Without the openmp loop it also runs fine.
Unfortunately, this bug makes derived type IO in parallelised code unusable.

module mod

implicit none
private

public work

type, public :: t
   real, dimension(:), allocatable :: r
contains
   procedure :: set
   generic :: assignment(=) => set

   ! comment out this write(formatted) declaration, and it runs fine
   generic :: write(formatted) => write_formatted
   procedure :: write_formatted
end type t

contains

subroutine work(a)
   class(t), intent(out) :: a
   a = [0.1, -0.3]
end subroutine work

subroutine set(self, r)
   class(t), intent(out) :: self
   real, dimension(:), intent(in) :: r
   self%r = r
end subroutine set

subroutine write_formatted(dtv, unit, iotype, v_list, iostat, iomsg)
   class(t),              intent(in)    :: dtv
   integer,               intent(in)    :: unit
   character(len=*),      intent(in)    :: iotype
   integer, dimension(:), intent(in)    :: v_list
   integer,               intent(out)   :: iostat
   character(len=*),      intent(inout) :: iomsg
   write(unit, '(a)', iostat=iostat, iomsg=iomsg) 'formatted'
end subroutine write_formatted

end module mod


program dt_io

use mod
implicit none

type(t) :: x
integer :: i

!$omp parallel do default(shared) private(i, x)
do i = 1,1000000
   call work(x)
end do
!$omp end parallel do

end program dt_io
>From gcc-bugs-return-629681-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 05:57:44 2019
Return-Path: <gcc-bugs-return-629681-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84096 invoked by alias); 18 Jan 2019 05:57:44 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 84012 invoked by uid 48); 18 Jan 2019 05:57:39 -0000
From: "mscfd at gmx dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/88899] Derived type IO in conjunction with openmp fails with invalid memory read
Date: Fri, 18 Jan 2019 05:57: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mscfd at gmx dot 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-88899-4-Q9VL7lDQMa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88899-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88899-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: 2019-01/txt/msg02490.txt.bz2
Content-length: 2363

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

--- Comment #1 from martin <mscfd at gmx dot net> ---
With sufficiently many threads (at least 5 or 6 for me) the address santizer
gives (for gfortran-9, compiled a few weeks ago):

==3485==ERROR: AddressSanitizer: attempting double-free on 0x6020001956d0 in
thread T4:
    #0 0x7f72705a7280 in __interceptor_free (/usr/lib64/libasan.so.5+0xeb280)
    #1 0x401935 in __mod_MOD___final_mod_T
/home/mstein/code/forcomp_bugs/dt_io_2.f90:43
    #2 0x402fb1 in __mod_MOD_work /home/mstein/code/forcomp_bugs/dt_io_2.f90:21
    #3 0x40362a in MAIN__._omp_fn.0
/home/mstein/code/forcomp_bugs/dt_io_2.f90:56
    #4 0x7f726faeb83d  (/usr/lib64/libgomp.so.1+0x1783d)
    #5 0x7f726f465558 in start_thread (/lib64/libpthread.so.0+0x7558)
    #6 0x7f726f19c81e in __GI___clone (/lib64/libc.so.6+0xf881e)

0x6020001956d0 is located 0 bytes inside of 8-byte region
[0x6020001956d0,0x6020001956d8)
freed by thread T2 here:
    #0 0x7f72705a7280 in __interceptor_free (/usr/lib64/libasan.so.5+0xeb280)
    #1 0x401935 in __mod_MOD___final_mod_T
/home/mstein/code/forcomp_bugs/dt_io_2.f90:43
    #2 0x402fb1 in __mod_MOD_work /home/mstein/code/forcomp_bugs/dt_io_2.f90:21
    #3 0x40362a in MAIN__._omp_fn.0
/home/mstein/code/forcomp_bugs/dt_io_2.f90:56
    #4 0x7f726faeb83d  (/usr/lib64/libgomp.so.1+0x1783d)

previously allocated by thread T2 here:
    #0 0x7f72705a7600 in malloc (/usr/lib64/libasan.so.5+0xeb600)
    #1 0x402a17 in __mod_MOD_set /home/mstein/code/forcomp_bugs/dt_io_2.f90:29
    #2 0x4032a0 in __mod_MOD_work /home/mstein/code/forcomp_bugs/dt_io_2.f90:23
    #3 0x40362a in MAIN__._omp_fn.0
/home/mstein/code/forcomp_bugs/dt_io_2.f90:56
    #4 0x7f726faeb83d  (/usr/lib64/libgomp.so.1+0x1783d)

Thread T4 created by T0 here:
    #0 0x7f7270508620 in pthread_create (/usr/lib64/libasan.so.5+0x4c620)
    #1 0x7f726faebe39  (/usr/lib64/libgomp.so.1+0x17e39)
    #2 0x7f726fae2d59 in GOMP_parallel (/usr/lib64/libgomp.so.1+0xed59)

Thread T2 created by T0 here:
    #0 0x7f7270508620 in pthread_create (/usr/lib64/libasan.so.5+0x4c620)
    #1 0x7f726faebe39  (/usr/lib64/libgomp.so.1+0x17e39)
    #2 0x7f726fae2d59 in GOMP_parallel (/usr/lib64/libgomp.so.1+0xed59)

SUMMARY: AddressSanitizer: double-free (/usr/lib64/libasan.so.5+0xeb280) in
__interceptor_free
==3485==ABORTING
>From gcc-bugs-return-629682-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 06:02:39 2019
Return-Path: <gcc-bugs-return-629682-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89227 invoked by alias); 18 Jan 2019 06:02: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 89155 invoked by uid 48); 18 Jan 2019 06:02:35 -0000
From: "mscfd at gmx dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/88899] Derived type IO in conjunction with openmp fails with invalid memory read
Date: Fri, 18 Jan 2019 06:02: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mscfd at gmx dot 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: cf_known_to_fail
Message-ID: <bug-88899-4-DXlod2iJBe@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88899-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88899-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: 2019-01/txt/msg02491.txt.bz2
Content-length: 357

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

martin <mscfd at gmx dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |8.2.1

--- Comment #2 from martin <mscfd at gmx dot net> ---
Related to PR 88768.
>From gcc-bugs-return-629683-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 06:04:57 2019
Return-Path: <gcc-bugs-return-629683-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91568 invoked by alias); 18 Jan 2019 06:04: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 91526 invoked by uid 48); 18 Jan 2019 06:04:53 -0000
From: "mscfd at gmx dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/88768] Derived type io in conjunction with allocatable component and recursion fails
Date: Fri, 18 Jan 2019 06:04: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.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mscfd at gmx dot net
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88768-4-PCCLONYmI9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88768-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88768-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: 2019-01/txt/msg02492.txt.bz2
Content-length: 230

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

--- Comment #3 from martin <mscfd at gmx dot net> ---
I have opened a separate PR 88899 for the openmp related invalid memory read,
but I guess it might have the same cause.
>From gcc-bugs-return-629684-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 06:07:35 2019
Return-Path: <gcc-bugs-return-629684-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94295 invoked by alias); 18 Jan 2019 06:07: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 94247 invoked by uid 48); 18 Jan 2019 06:07:30 -0000
From: "daniel.f.starke at freenet dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88896] [8/9 Regression] integer overflow check optimized away
Date: Fri, 18 Jan 2019 06:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: daniel.f.starke at freenet dot de
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-88896-4-FgNFiswZ20@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88896-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88896-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: 2019-01/txt/msg02493.txt.bz2
Content-length: 152

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

--- Comment #3 from Daniel Starke <daniel.f.starke at freenet dot de> ---
Never mind my question.
>From gcc-bugs-return-629685-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 06:24:55 2019
Return-Path: <gcc-bugs-return-629685-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128326 invoked by alias); 18 Jan 2019 06:24:54 -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 128219 invoked by uid 48); 18 Jan 2019 06:24:45 -0000
From: "juergen.reuter at desy dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/88871] [9 regression] ICE segmentation fault in f951
Date: Fri, 18 Jan 2019 06:24: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: juergen.reuter at desy dot de
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88871-4-M0Nt20xrdS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88871-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88871-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: 2019-01/txt/msg02494.txt.bz2
Content-length: 230

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

--- Comment #12 from Jürgen Reuter <juergen.reuter at desy dot de> ---
I can also confirm that with the provided patch our code completely compiles,
and all tests work.
>From gcc-bugs-return-629686-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 07:21:31 2019
Return-Path: <gcc-bugs-return-629686-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67889 invoked by alias); 18 Jan 2019 07:21: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 67795 invoked by uid 48); 18 Jan 2019 07:21:26 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/88897] Bogus maybe-uninitialized warning on class field
Date: Fri, 18 Jan 2019 07:21: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.2.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88897-4-JJ1dvADQ1R@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88897-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88897-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: 2019-01/txt/msg02495.txt.bz2
Content-length: 314

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Some of the time, the uninitialized is due to using the object after the
lifetime of the object has gone out of scope.  I have not checked if that is
the case here but I would not be suprised.
>From gcc-bugs-return-629687-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 07:41:44 2019
Return-Path: <gcc-bugs-return-629687-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1664 invoked by alias); 18 Jan 2019 07:41: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 1587 invoked by uid 55); 18 Jan 2019 07:41:37 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/88587] ICE in expand_debug_locations, at cfgexpand.c:5450
Date: Fri, 18 Jan 2019 07:41: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.2.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88587-4-OeigxagIyC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88587-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88587-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: 2019-01/txt/msg02496.txt.bz2
Content-length: 1514

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

--- Comment #12 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Fri Jan 18 07:41:05 2019
New Revision: 268060

URL: https://gcc.gnu.org/viewcvs?rev=268060&root=gcc&view=rev
Log:
Reset proper type on vector types (PR middle-end/88587).

2019-01-18  Martin Liska  <mliska@suse.cz>
            Richard Biener  <rguenther@suse.de>

        PR middle-end/88587
        * cgraph.h (create_version_clone_with_body): Add new argument
        with attributes.
        * cgraphclones.c (cgraph_node::create_version_clone): Add
        DECL_ATTRIBUTES to a newly created decl.  And call
        valid_attribute_p so that proper cl_target_optimization_node
        is set for the newly created declaration.
        * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
        for declaration.
        (expand_target_clones): Do not call valid_attribute_p, it must
        be already done.
        * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
        vector types.
2019-01-18  Martin Liska  <mliska@suse.cz>

        PR middle-end/88587
        * g++.target/i386/pr88587.C: New test.
        * gcc.target/i386/mvc13.c: New test.

Added:
    trunk/gcc/testsuite/g++.target/i386/pr88587.C
    trunk/gcc/testsuite/gcc.target/i386/mvc13.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cgraph.h
    trunk/gcc/cgraphclones.c
    trunk/gcc/multiple_target.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-inline.c
>From gcc-bugs-return-629688-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 07:49:12 2019
Return-Path: <gcc-bugs-return-629688-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17132 invoked by alias); 18 Jan 2019 07:49:09 -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 16774 invoked by uid 48); 18 Jan 2019 07:48:35 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/88587] ICE in expand_debug_locations, at cfgexpand.c:5450
Date: Fri, 18 Jan 2019 07:49: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.2.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-88587-4-FN5PdBpMJC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88587-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88587-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: 2019-01/txt/msg02497.txt.bz2
Content-length: 443

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

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

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

--- Comment #13 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed on trunk.
>From gcc-bugs-return-629689-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 07:59:57 2019
Return-Path: <gcc-bugs-return-629689-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28829 invoked by alias); 18 Jan 2019 07:59: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 28772 invoked by uid 48); 18 Jan 2019 07:59:53 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/88900] New: [9 Regression] 502.gcc_r SPEC benchmark miscompiles with LTO and PGO
Date: Fri, 18 Jan 2019 07:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ipa
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: needs-bisection, needs-reduction
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-88900-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: 2019-01/txt/msg02498.txt.bz2
Content-length: 878

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

            Bug ID: 88900
           Summary: [9 Regression] 502.gcc_r SPEC benchmark miscompiles
                    with LTO and PGO
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: needs-bisection, needs-reduction
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

Can be seen on a Ryzen machine and Haswell with following flags:

OPTIMIZE    = -Ofast -march=native -g -flto=8
CXXOPTIMIZE  = -fpermissive
FOPTIMIZE    = -std=legacy

PASS1_OPTIMIZE    = -fprofile-generate
PASS2_OPTIMIZE    = -fprofile-use -fprofile-correction

I'm bisecting problematic revision.
>From gcc-bugs-return-629690-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 08:00:56 2019
Return-Path: <gcc-bugs-return-629690-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30562 invoked by alias); 18 Jan 2019 08:00: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 30039 invoked by uid 48); 18 Jan 2019 08:00:23 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/88900] [9 Regression] 502.gcc_r SPEC benchmark miscompiles with LTO and PGO
Date: Fri, 18 Jan 2019 08:00: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: 9.0
X-Bugzilla-Keywords: needs-bisection, needs-reduction
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority bug_status cf_reconfirmed_on cf_known_to_work blocked target_milestone everconfirmed cf_known_to_fail
Message-ID: <bug-88900-4-d2o9tQZuqx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88900-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88900-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: 2019-01/txt/msg02499.txt.bz2
Content-length: 824

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-01-18
      Known to work|                            |8.2.0
             Blocks|                            |26163
   Target Milestone|---                         |9.0
     Ever confirmed|0                           |1
      Known to fail|                            |9.0


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26163
[Bug 26163] [meta-bug] missed optimization in SPEC (2k17, 2k and 2k6 and 95)
>From gcc-bugs-return-629691-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 08:13:05 2019
Return-Path: <gcc-bugs-return-629691-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127858 invoked by alias); 18 Jan 2019 08:13:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 127777 invoked by uid 48); 18 Jan 2019 08:13:01 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88896] [8/9 Regression] integer overflow check optimized away
Date: Fri, 18 Jan 2019 08: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.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:
Message-ID: <bug-88896-4-NLHkd4vkZY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88896-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88896-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: 2019-01/txt/msg02500.txt.bz2
Content-length: 460

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The compiler optimizes the program with the assumption that undefined behavior
doesn't happen.  So, e.g. it can remove loop condition if it proves that
undefined behavior happens before the last iteration and many other
possibilities.
Use -fsanitize=undefined to discover the UB if unsure (though that doesn't
catch e.g. aliasing bugs).
>From gcc-bugs-return-629692-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 08:23:37 2019
Return-Path: <gcc-bugs-return-629692-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8657 invoked by alias); 18 Jan 2019 08:23: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 8602 invoked by uid 48); 18 Jan 2019 08:23:33 -0000
From: "dominik.strasser@onespin-solutions.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/88901] New: [9.0 Regression] ICE when using -fsanitize=pointer-compare
Date: Fri, 18 Jan 2019 08:23: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominik.strasser@onespin-solutions.com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-88901-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: 2019-01/txt/msg02501.txt.bz2
Content-length: 972

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

            Bug ID: 88901
           Summary: [9.0 Regression] ICE when using
                    -fsanitize=pointer-compare
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dominik.strasser@onespin-solutions.com
  Target Milestone: ---

Created attachment 45454
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45454&action=edit
Source code triggering the crash

The attached sourced code yields a
t.C:4:50: internal compiler error: tree check: did not expect class 'type',
have 'type' (template_type_parm) in contains_placeholder_p, at tree.c:3795
when "-fsanitize=address -fsanitize=pointer-compare" is used.
gcc 8.2 works fine.

g++ -c -fsanitize=address -fsanitize=pointer-compare   t.C

This is g++ from git 2019/01/17
>From gcc-bugs-return-629693-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 08:25:33 2019
Return-Path: <gcc-bugs-return-629693-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10733 invoked by alias); 18 Jan 2019 08:25: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 10216 invoked by uid 48); 18 Jan 2019 08:24:51 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/88898] [Regression 9] gomp is broken by r268045
Date: Fri, 18 Jan 2019 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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-88898-4-b2UoyFzH1e@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88898-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88898-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: 2019-01/txt/msg02502.txt.bz2
Content-length: 438

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

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

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

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed I assume.
>From gcc-bugs-return-629694-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 08:29:22 2019
Return-Path: <gcc-bugs-return-629694-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14368 invoked by alias); 18 Jan 2019 08:29:21 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 14305 invoked by uid 48); 18 Jan 2019 08:29:17 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88892] [8/9 Regression] Double-to-float conversion uses wrong rounding mode when followed by memcpy
Date: Fri, 18 Jan 2019 08: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.2.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: segher at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority target_milestone
Message-ID: <bug-88892-4-ybluCQpPlt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88892-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88892-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: 2019-01/txt/msg02503.txt.bz2
Content-length: 345

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
   Target Milestone|---                         |8.3
>From gcc-bugs-return-629695-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 08:30:36 2019
Return-Path: <gcc-bugs-return-629695-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16167 invoked by alias); 18 Jan 2019 08:30:33 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 15802 invoked by uid 48); 18 Jan 2019 08:30:04 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/88901] [9 Regression] ICE when using -fsanitize=pointer-compare
Date: Fri, 18 Jan 2019 08:30: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: 9.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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc component target_milestone short_desc
Message-ID: <bug-88901-4-IPSpTw5vlC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88901-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88901-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: 2019-01/txt/msg02504.txt.bz2
Content-length: 937

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 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
          Component|c++                         |sanitizer
   Target Milestone|---                         |9.0
            Summary|[9.0 Regression] ICE when   |[9 Regression] ICE when
                   |using                       |using
                   |-fsanitize=pointer-compare  |-fsanitize=pointer-compare
>From gcc-bugs-return-629696-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 08:42:54 2019
Return-Path: <gcc-bugs-return-629696-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110515 invoked by alias); 18 Jan 2019 08:42:53 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 107783 invoked by uid 48); 18 Jan 2019 08:42:49 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/88901] [9 Regression] ICE when using -fsanitize=pointer-compare
Date: Fri, 18 Jan 2019 08:42: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed
Message-ID: <bug-88901-4-tXN12LSgvq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88901-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88901-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: 2019-01/txt/msg02505.txt.bz2
Content-length: 586

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2019-01-18
           Assignee|unassigned at gcc dot gnu.org      |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Let me take a look.
>From gcc-bugs-return-629697-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 09:14:55 2019
Return-Path: <gcc-bugs-return-629697-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113004 invoked by alias); 18 Jan 2019 09:14: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 112960 invoked by uid 55); 18 Jan 2019 09:14:51 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88489] [9 Regression] FAIL: gcc.target/i386/avx512f-vfixupimmss-2.c execution test
Date: Fri, 18 Jan 2019 09:14: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88489-4-8QDHKVM08q@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88489-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88489-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: 2019-01/txt/msg02506.txt.bz2
Content-length: 661

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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Jan 18 09:14:18 2019
New Revision: 268063

URL: https://gcc.gnu.org/viewcvs?rev=268063&root=gcc&view=rev
Log:
        Reapply:
        2018-12-15  Jakub Jelinek  <jakub@redhat.com>

        PR target/88489
        * gcc.target/i386/avx512vl-vfixupimmsd-2.c: New test.
        * gcc.target/i386/avx512vl-vfixupimmss-2.c: New test.

Added:
    trunk/gcc/testsuite/gcc.target/i386/avx512vl-vfixupimmsd-2.c
    trunk/gcc/testsuite/gcc.target/i386/avx512vl-vfixupimmss-2.c
Modified:
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-629698-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 09:16:51 2019
Return-Path: <gcc-bugs-return-629698-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115202 invoked by alias); 18 Jan 2019 09:16: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 115103 invoked by uid 55); 18 Jan 2019 09:16:44 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88734] [8/9 Regression] AArch64's ACLE intrinsics give an ICE instead of compile error when option mismatch.
Date: Fri, 18 Jan 2019 09:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88734-4-sW8gUstR3r@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88734-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88734-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: 2019-01/txt/msg02507.txt.bz2
Content-length: 460

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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Jan 18 09:15:36 2019
New Revision: 268064

URL: https://gcc.gnu.org/viewcvs?rev=268064&root=gcc&view=rev
Log:
        PR target/88734
        * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
        (("..."))) with ("...").

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/arm/arm_neon.h
>From gcc-bugs-return-629699-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 09:18:15 2019
Return-Path: <gcc-bugs-return-629699-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117603 invoked by alias); 18 Jan 2019 09:18: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 117517 invoked by uid 48); 18 Jan 2019 09:18:11 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/88714] [9 regression] bootstrap comparison failure on armv7l since r265398
Date: Fri, 18 Jan 2019 09:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-88714-4-Ctg23ERrI1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88714-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88714-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: 2019-01/txt/msg02508.txt.bz2
Content-length: 507

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

--- Comment #26 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 45455
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45455&action=edit
gcc9-pr88714.patch

I needed a temporary solution for our distro packages and with this patch
armv7hl passes profiledbootstrap.  That said, I think preserving the
MEM_ALIAS_SET and MEM_EXPR is important for proper scheduling etc. decisions
and so it would be better to add new patterns.
>From gcc-bugs-return-629700-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 09:21:18 2019
Return-Path: <gcc-bugs-return-629700-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120235 invoked by alias); 18 Jan 2019 09:21: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 120206 invoked by uid 55); 18 Jan 2019 09:21:13 -0000
From: "clyon at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/85596] aarch64 --with-multilib-list documentation missing
Date: Fri, 18 Jan 2019 09: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: documentation
X-Bugzilla-Severity: normal
X-Bugzilla-Who: clyon at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-85596-4-8RD61AYwR8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85596-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85596-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: 2019-01/txt/msg02509.txt.bz2
Content-length: 540

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

--- Comment #2 from Christophe Lyon <clyon at gcc dot gnu.org> ---
Author: clyon
Date: Fri Jan 18 09:20:41 2019
New Revision: 268065

URL: https://gcc.gnu.org/viewcvs?rev=268065&root=gcc&view=rev
Log:
PR target/85596 Add --with-multilib-list doc for aarch64

2019-01-18  Christophe Lyon  <christophe.lyon@linaro.org>

        PR target/85596
        * doc/install.texi (with-multilib-list): Document for aarch64.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/doc/install.texi
>From gcc-bugs-return-629701-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 09:23:54 2019
Return-Path: <gcc-bugs-return-629701-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6194 invoked by alias); 18 Jan 2019 09:23:54 -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 6124 invoked by uid 48); 18 Jan 2019 09:23:49 -0000
From: "clyon at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/85596] aarch64 --with-multilib-list documentation missing
Date: Fri, 18 Jan 2019 09:23: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: documentation
X-Bugzilla-Severity: normal
X-Bugzilla-Who: clyon at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: clyon at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc assigned_to
Message-ID: <bug-85596-4-nrmiqzm8lZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85596-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85596-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: 2019-01/txt/msg02510.txt.bz2
Content-length: 614

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

Christophe Lyon <clyon at gcc dot gnu.org> changed:

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

--- Comment #3 from Christophe Lyon <clyon at gcc dot gnu.org> ---
Fixed on trunk.

Since this is reported against gcc-8, shall I backport it to gcc-8-branch?
>From gcc-bugs-return-629702-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 09:24:55 2019
Return-Path: <gcc-bugs-return-629702-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7579 invoked by alias); 18 Jan 2019 09:24: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 7212 invoked by uid 48); 18 Jan 2019 09:24:16 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88734] [8 Regression] AArch64's ACLE intrinsics give an ICE instead of compile error when option mismatch.
Date: Fri, 18 Jan 2019 09:24: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: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-88734-4-aPHkgqe9Dv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88734-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88734-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: 2019-01/txt/msg02511.txt.bz2
Content-length: 633

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[8/9 Regression] AArch64's  |[8 Regression] AArch64's
                   |ACLE intrinsics give an ICE |ACLE intrinsics give an ICE
                   |instead of compile error    |instead of compile error
                   |when option mismatch.       |when option mismatch.

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Should be fixed on the trunk now.
>From gcc-bugs-return-629703-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 09:50:12 2019
Return-Path: <gcc-bugs-return-629703-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91337 invoked by alias); 18 Jan 2019 09:50: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 91260 invoked by uid 48); 18 Jan 2019 09:50:07 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/88902] New: [9 Regression] ICE: Segmentation fault (in DFS::DFS_write_tree_body)
Date: Fri, 18 Jan 2019 09:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: GC, ice-on-valid-code, lto
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 cc target_milestone
Message-ID: <bug-88902-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: 2019-01/txt/msg02512.txt.bz2
Content-length: 3422

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

            Bug ID: 88902
           Summary: [9 Regression] ICE: Segmentation fault (in
                    DFS::DFS_write_tree_body)
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: GC, ice-on-valid-code, lto
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

gfortran-9.0.0-alpha20190113 snapshot (r267906) ICEs when compiling
gcc/testsuite/gfortran.dg/pr50069_2.f90 w/ -flto --param ggc-min-heapsize=0:

% powerpc-e300c3-linux-gnu-gfortran-9.0.0-alpha20190113 -flto --param
ggc-min-heapsize=0 -c gcc/testsuite/gfortran.dg/pr50069_2.f90
during IPA pass: fnsummary
gcc/testsuite/gfortran.dg/pr50069_2.f90:11: internal compiler error:
Segmentation fault
   11 | end function reverse
      | 
0xd9fad6 crash_signal
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190113/work/gcc-9-20190113/gcc/toplev.c:326
0xc46ef8 DFS::DFS_write_tree_body(output_block*, tree_node*, DFS::sccs*, bool)
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190113/work/gcc-9-20190113/gcc/lto-streamer-out.c:759
0xc4f69d DFS::DFS(output_block*, tree_node*, bool, bool, bool)
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190113/work/gcc-9-20190113/gcc/lto-streamer-out.c:587
0xc50620 lto_output_tree(output_block*, tree_node*, bool, bool)
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190113/work/gcc-9-20190113/gcc/lto-streamer-out.c:1628
0xc47ebc write_global_stream
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190113/work/gcc-9-20190113/gcc/lto-streamer-out.c:2511
0xc47ebc lto_output_decl_state_streams(output_block*, lto_out_decl_state*)
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190113/work/gcc-9-20190113/gcc/lto-streamer-out.c:2558
0xc4e504 produce_asm_for_decls()
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190113/work/gcc-9-20190113/gcc/lto-streamer-out.c:2898
0xcc1927 write_lto
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190113/work/gcc-9-20190113/gcc/passes.c:2596
0xcc5290 ipa_write_summaries_1
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190113/work/gcc-9-20190113/gcc/passes.c:2657
0xcc5290 ipa_write_summaries()
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190113/work/gcc-9-20190113/gcc/passes.c:2720
0x9813fc ipa_passes
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190113/work/gcc-9-20190113/gcc/cgraphunit.c:2530
0x9813fc symbol_table::compile()
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190113/work/gcc-9-20190113/gcc/cgraphunit.c:2618
0x983db8 symbol_table::finalize_compilation_unit()
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190113/work/gcc-9-20190113/gcc/cgraphunit.c:2863

(While my target here is powerpc, the ICE not target-specific.)
>From gcc-bugs-return-629704-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 09:58:18 2019
Return-Path: <gcc-bugs-return-629704-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16677 invoked by alias); 18 Jan 2019 09:58:17 -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 16569 invoked by uid 55); 18 Jan 2019 09:58:13 -0000
From: "clyon at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug inline-asm/52813] %rsp in clobber list is silently ignored
Date: Fri, 18 Jan 2019 09:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: inline-asm
X-Bugzilla-Version: 4.6.1
X-Bugzilla-Keywords: patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: clyon at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-52813-4-8OjhNrIxAl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-52813-4@http.gcc.gnu.org/bugzilla/>
References: <bug-52813-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: 2019-01/txt/msg02513.txt.bz2
Content-length: 551

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

--- Comment #9 from Christophe Lyon <clyon at gcc dot gnu.org> ---
Author: clyon
Date: Fri Jan 18 09:57:41 2019
New Revision: 268066

URL: https://gcc.gnu.org/viewcvs?rev=268066&root=gcc&view=rev
Log:
[ARM][testsuite] follow-up to PR target/52813 and target/11807 fix.

2019-01-18  Christophe Lyon  <christophe.lyon@linaro.org>

        * gcc.target/arm/pr77904.c: Add dg-warning for sp clobber.


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/arm/pr77904.c
>From gcc-bugs-return-629705-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 09:59:08 2019
Return-Path: <gcc-bugs-return-629705-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19404 invoked by alias); 18 Jan 2019 09:59: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 19336 invoked by uid 48); 18 Jan 2019 09:59:03 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/88902] [9 Regression] ICE: Segmentation fault (in DFS::DFS_write_tree_body)
Date: Fri, 18 Jan 2019 09:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: GC, ice-on-valid-code, lto, needs-bisection
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_known_to_work keywords cf_reconfirmed_on cf_gcchost everconfirmed target_milestone cf_known_to_fail
Message-ID: <bug-88902-4-2lWtlHfexf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88902-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88902-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: 2019-01/txt/msg02514.txt.bz2
Content-length: 813

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |8.2.0
           Keywords|                            |needs-bisection
   Last reconfirmed|                            |2019-01-18
               Host|                            |x86_64-pc-linux-gnu
     Ever confirmed|0                           |1
   Target Milestone|---                         |9.0
      Known to fail|                            |9.0

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed on x86_64, let me bisect that.
>From gcc-bugs-return-629706-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 10:08:05 2019
Return-Path: <gcc-bugs-return-629706-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40301 invoked by alias); 18 Jan 2019 10:08:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 40181 invoked by uid 55); 18 Jan 2019 10:08:01 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/86214] [8/9 Regression] Strongly increased stack usage
Date: Fri, 18 Jan 2019 10: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.1.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86214-4-lTMlfQ27eh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86214-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86214-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: 2019-01/txt/msg02515.txt.bz2
Content-length: 1050

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

--- Comment #17 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Jan 18 10:07:27 2019
New Revision: 268067

URL: https://gcc.gnu.org/viewcvs?rev=268067&root=gcc&view=rev
Log:
        PR tree-optimization/86214
        * tree-inline.h (struct copy_body_data): Add
        add_clobbers_to_eh_landing_pads member.
        * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
        (copy_edges_for_bb): Call it if EH edge destination is <
        id->add_clobbers_to_eh_landing_pads.  Fix a comment typo.
        (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
        if flag_stack_reuse != SR_NONE and clear it afterwards.

        * g++.dg/opt/pr86214-1.C: New test.
        * g++.dg/opt/pr86214-2.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/opt/pr86214-1.C
    trunk/gcc/testsuite/g++.dg/opt/pr86214-2.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-inline.c
    trunk/gcc/tree-inline.h
>From gcc-bugs-return-629707-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 10:16:06 2019
Return-Path: <gcc-bugs-return-629707-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69883 invoked by alias); 18 Jan 2019 10:16:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 69520 invoked by uid 48); 18 Jan 2019 10:15:55 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/86214] [8 Regression] Strongly increased stack usage
Date: Fri, 18 Jan 2019 10: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.1.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-86214-4-xvMW9dU84P@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86214-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86214-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: 2019-01/txt/msg02516.txt.bz2
Content-length: 512

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[8/9 Regression] Strongly   |[8 Regression] Strongly
                   |increased stack usage       |increased stack usage

--- Comment #18 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Should be fixed now on the trunk.
Likely not going to backport.
>From gcc-bugs-return-629708-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 10:21:16 2019
Return-Path: <gcc-bugs-return-629708-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70288 invoked by alias); 18 Jan 2019 10:21: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 70147 invoked by uid 48); 18 Jan 2019 10:21:11 -0000
From: "hubicka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/65873] Failure to inline always_inline memcpy
Date: Fri, 18 Jan 2019 10:21: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: 5.1.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hubicka at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-65873-4-Sg8DNek7qQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65873-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65873-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: 2019-01/txt/msg02517.txt.bz2
Content-length: 424

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

--- Comment #17 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
The underlying problem of inlining across target/optimization boundary not
being fully reliable is still there. I am not quite sure how we would want to
fix it w/o allowing to attach different optimization parameters to
regions/statements within one function which would be a lot of work to
implement.
>From gcc-bugs-return-629709-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 10:27:36 2019
Return-Path: <gcc-bugs-return-629709-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55252 invoked by alias); 18 Jan 2019 10:27:35 -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 55119 invoked by uid 48); 18 Jan 2019 10:27:31 -0000
From: "steinar+gcc at gunderson dot no" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/86214] [8 Regression] Strongly increased stack usage
Date: Fri, 18 Jan 2019 10:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.1.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: steinar+gcc at gunderson dot no
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86214-4-1tHmuZmhKU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86214-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86214-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: 2019-01/txt/msg02518.txt.bz2
Content-length: 251

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

--- Comment #19 from Steinar H. Gunderson <steinar+gcc at gunderson dot no> ---
Thanks for fixing. IIRC we just added a noinline attribute somewhere in the
code, so we already have a workaround.
>From gcc-bugs-return-629710-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 10:28:42 2019
Return-Path: <gcc-bugs-return-629710-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57080 invoked by alias); 18 Jan 2019 10:28: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 57000 invoked by uid 48); 18 Jan 2019 10:28:35 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88903] New: [8/9 Regression] wrong-code with SLP vectorized shift
Date: Fri, 18 Jan 2019 10:28: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.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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-88903-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: 2019-01/txt/msg02519.txt.bz2
Content-length: 1561

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

            Bug ID: 88903
           Summary: [8/9 Regression] wrong-code with SLP vectorized shift
           Product: gcc
           Version: 8.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

int x[1024];

void __attribute__((noinline)) foo()
{
  for (int i = 0; i < 512; ++i)
    {
      x[2*i] = x[2*i] << (i+1);
      x[2*i+1] = x[2*i+1] << (i+1);
    }
}

int main()
{
  for (int i = 0; i < 1024; ++i)
    x[i] = i;
  foo ();
  for (int i = 0; i < 1024; ++i)
    if (x[i] != i << (i/2+1))
      __builtin_abort ();
  return 0;
}

is vectorized using a scalar shift because

      /* In SLP, need to check whether the shift count is the same,
         in loops if it is a constant or invariant, it is always
         a scalar shift.  */
      if (slp_node)
        {
          vec<stmt_vec_info> stmts = SLP_TREE_SCALAR_STMTS (slp_node);
          stmt_vec_info slpstmt_info;

          FOR_EACH_VEC_ELT (stmts, k, slpstmt_info)
            {
              gassign *slpstmt = as_a <gassign *> (slpstmt_info->stmt);
              if (!operand_equal_p (gimple_assign_rhs2 (slpstmt), op1, 0))
                scalar_shift_arg = false;
            }
        }

only checks the scalar stmts covering half of the vector elements missing
that the other two will use a different shift value.
>From gcc-bugs-return-629711-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 10:29:01 2019
Return-Path: <gcc-bugs-return-629711-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58028 invoked by alias); 18 Jan 2019 10:29:00 -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 57888 invoked by uid 48); 18 Jan 2019 10:28:56 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88903] [8/9 Regression] wrong-code with SLP vectorized shift
Date: Fri, 18 Jan 2019 10:29: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.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority bug_status cf_reconfirmed_on assigned_to target_milestone everconfirmed
Message-ID: <bug-88903-4-Lwmg7UXHve@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88903-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88903-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: 2019-01/txt/msg02520.txt.bz2
Content-length: 674

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2019-01-18
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
   Target Milestone|---                         |8.3
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mine.
>From gcc-bugs-return-629712-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 10:41:21 2019
Return-Path: <gcc-bugs-return-629712-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79113 invoked by alias); 18 Jan 2019 10:41:21 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 79039 invoked by uid 48); 18 Jan 2019 10:41:17 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/88901] ICE when using -fsanitize=pointer-compare
Date: Fri, 18 Jan 2019 10:41: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to short_desc cf_known_to_fail
Message-ID: <bug-88901-4-F4t1OccZu0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88901-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88901-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: 2019-01/txt/msg02521.txt.bz2
Content-length: 801

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEW
           Assignee|marxin at gcc dot gnu.org          |unassigned at gcc dot gnu.org
            Summary|[9 Regression] ICE when     |ICE when using
                   |using                       |-fsanitize=pointer-compare
                   |-fsanitize=pointer-compare  |
      Known to fail|                            |8.2.0, 9.0

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
It's there since the beginning, so started with r255404.
Jakub can you please take a look?
>From gcc-bugs-return-629713-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 10:49:33 2019
Return-Path: <gcc-bugs-return-629713-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113136 invoked by alias); 18 Jan 2019 10:49:32 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 98422 invoked by uid 48); 18 Jan 2019 10:48:43 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/84842] [7/8/9 Regression] ICE in verify_target_availability, at sel-sched.c:1569
Date: Fri, 18 Jan 2019 10:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: asolokha at gmx dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-84842-4-JE2Rx2NXzk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-84842-4@http.gcc.gnu.org/bugzilla/>
References: <bug-84842-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: 2019-01/txt/msg02522.txt.bz2
Content-length: 431

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

--- Comment #16 from Arseny Solokha <asolokha at gmx dot com> ---
(In reply to Arseny Solokha from comment #15)
> Finally.

As of r267906 it doesn't ICE for me anymore, but
gcc/testsuite/gfortran.dg/dependency_36.f90 does:

% powerpc-e300c3-linux-gnu-gfortran-9.0.0-alpha20190113 -m32 -mcpu=power8 -O2
-fselective-scheduling2 -c gcc/testsuite/gfortran.dg/dependency_36.f90
>From gcc-bugs-return-629714-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 10:52:07 2019
Return-Path: <gcc-bugs-return-629714-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74029 invoked by alias); 18 Jan 2019 10:52: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 73942 invoked by uid 48); 18 Jan 2019 10:52:02 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/88900] [9 Regression] 502.gcc_r SPEC benchmark miscompiles with LTO and PGO
Date: Fri, 18 Jan 2019 10:52: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: 9.0
X-Bugzilla-Keywords: needs-bisection, needs-reduction
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-88900-4-EvP0iEk9UT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88900-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88900-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: 2019-01/txt/msg02523.txt.bz2
Content-length: 490

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

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

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

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
What a surprise, started with r267883. I'll carry on bisection with --param
inline-unit-growth=40.
>From gcc-bugs-return-629715-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 11:01:23 2019
Return-Path: <gcc-bugs-return-629715-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85901 invoked by alias); 18 Jan 2019 11:01: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 84914 invoked by uid 48); 18 Jan 2019 11:00:42 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/88901] ICE when using -fsanitize=pointer-compare
Date: Fri, 18 Jan 2019 11:01: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to attachments.created
Message-ID: <bug-88901-4-o5fX3cw2Mq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88901-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88901-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: 2019-01/txt/msg02524.txt.bz2
Content-length: 578

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

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

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 45456
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45456&action=edit
gcc9-pr88901.patch

Untested fix.
>From gcc-bugs-return-629716-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 11:02:25 2019
Return-Path: <gcc-bugs-return-629716-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88024 invoked by alias); 18 Jan 2019 11:02: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 87975 invoked by uid 48); 18 Jan 2019 11:02:21 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88903] [8/9 Regression] wrong-code with SLP vectorized shift
Date: Fri, 18 Jan 2019 11:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-88903-4-RCyG18T43v@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88903-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88903-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: 2019-01/txt/msg02525.txt.bz2
Content-length: 410

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

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

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

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r248909.
>From gcc-bugs-return-629718-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 11:04:28 2019
Return-Path: <gcc-bugs-return-629718-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90957 invoked by alias); 18 Jan 2019 11:04: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 90853 invoked by uid 48); 18 Jan 2019 11:04:21 -0000
From: "tschwinge at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgomp/87835] nvptx offloading: libgomp.oacc-c-c++-common/asyncwait-1.c execution test intermittently fails at -O2
Date: Fri, 18 Jan 2019 11:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libgomp
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: openacc
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tschwinge 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: attachments.created
Message-ID: <bug-87835-4-Ygc2QnM584@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87835-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87835-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: 2019-01/txt/msg02527.txt.bz2
Content-length: 3183

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

--- Comment #3 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Created attachment 45457
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45457&action=edit
[WIP] libgomp.oacc-c-c++-common/asyncwait-1.c debug

(In reply to Tom de Vries from comment #2)
> (In reply to Tom de Vries from comment #1)
> > (In reply to Thomas Schwinge from comment #0)
> > > After r264397 "[nvptx] Remove use of CUDA unified memory in libgomp", I'm
> > > seeing (intermittently only, and only on some systems):
> > 
> > I see the failure reproduced consistently with a Quadro M1200.

Oh, good -- in a way ;-) -- that it's consistently reproducable for you.  For
me, the failure is rather rare.

> > > I have not yet analyzed what's causing this, but I have some ideas about
> > > pending patches that might cure it.

Unfortunately, the patches I've been thinking of either are on trunk already,
or can't possibly be related to this problem.

The 'async'/'wait' clauses/directives in the test case look correct.

> do you intend to address this before stage4 closes?

I'd like to, yes.


Here is my current status.


With "-O2":

    [...]
      nvptx_exec: kernel main$_omp_fn$37: launch gangs=32, workers=1,
vectors=32
      nvptx_exec: kernel main$_omp_fn$37: finished
      GOACC_data_end: restore mappings
      GOACC_data_end: mappings restored
    [abort]

In addition to "main$_omp_fn$37", sometimes also seen with "main$_omp_fn$25",
"main$_omp_fn$29", "main$_omp_fn$33".

So far only seen with OpenACC 'kernels' constructs, but not with the very
similar 'parallel' ones earlier in the file.

For example, without "DEBUG_K":

    [...]
      nvptx_exec: kernel main$_omp_fn$37: launch gangs=32, workers=1,
vectors=32
      nvptx_exec: kernel main$_omp_fn$37: finished
    GOACC_wait -2 1
    goacc_wait -2 1
    goacc_wait   1
      GOACC_data_end: restore mappings
      GOACC_data_end: mappings restored
    1007 c[64] 0
    1019 e[64] 13
    1007 c[65] 0
    1019 e[65] 13
    1007 c[66] 0
    1019 e[66] 13
    [...]
    1007 c[125] 0
    1019 e[125] 13
    1007 c[126] 0
    1019 e[126] 13
    1007 c[127] 0
    1019 e[127] 13

With "DEBUG_K":

    [...]
      nvptx_exec: kernel main$_omp_fn$37: launch gangs=1, workers=1, vectors=32
      nvptx_exec: kernel main$_omp_fn$37: finished
    GOACC_wait -2 1
    goacc_wait -2 1
    goacc_wait   1
    966 c[64] 0
    966 c[65] 0
    966 c[66] 0
    [...]
    966 c[125] 0
    966 c[126] 0
    966 c[127] 0

So, the compute kernel ("main$_omp_fn$37") doesn't find the "c" array properly
initialized, even though they're enqueued on the same 'async', so have to
execute in proper order by definition.

I've only ever seen this with the "c" array.

Sometimes that's starting already with index 0 (often seen with
"main$_omp_fn$29"), or as late as index 100 (rarely).


When running under "valgrind", repeatedly until there's an "abort", that
doesn't print anything suspicious.


Might this perhaps be a latent issue in OpenACC 'kernels' plus 'async', now
uncovered by the r264397 "[nvptx] Remove use of CUDA unified memory in libgomp"
commit?
>From gcc-bugs-return-629717-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 11:04:15 2019
Return-Path: <gcc-bugs-return-629717-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90176 invoked by alias); 18 Jan 2019 11:04: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 90088 invoked by uid 48); 18 Jan 2019 11:04:10 -0000
From: "matmal01 at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/88904] New: Basic block incorrectly skipped in jump threading.
Date: Fri, 18 Jan 2019 11:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: matmal01 at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-88904-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: 2019-01/txt/msg02526.txt.bz2
Content-length: 2068

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

            Bug ID: 88904
           Summary: Basic block incorrectly skipped in jump threading.
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: matmal01 at gcc dot gnu.org
  Target Milestone: ---

When compiling the attached code, with an arm-none-eabi cross compiler from
trunk, 

arm-none-eabi-gcc -march=armv6-m -S test.c -o test.s -Os

incorrect assembly is generated, which leads to the second assert always being
triggered.


This happens since revision r266734 which introduced a new pass running
jump-threading just after reload.

For the attached testcase this triggers a latent bug in the `thread_jump`
function.

The combine pass can modify a jump_insn so that its pattern is of the form
(parallel [
    (set (pc) ...)
    (clobber (scratch))])

which after reload can end up in the form 
(parallel [
    (set (pc) (if_then_else (<something including (reg N)) ...))
    (clobber (reg N))])
where 'N' is the same register.

The `thread_jump` function does not account for this possibility occurring at
the last insn of a basic block.
When checking to see what modifications the basic block makes to registers
(using `mark_effect`), it records that the block doesn't overall set (reg N)
since it is clobbered in the last insn.
It then incorrectly deduces from this fact that the jump condition using (reg
N) is not affected by the execution of the basic block and can hence be skipped
(using `mentions_nonequal_regs`).


I am currently working on a patch, but reporting upstream so it's on peoples
radar.


n.b. I am currently looking into how `onlyjump_p` is used elsewhere to see
whether it should account for the possibility of a CLOBBER in a PARALLEL
pattern or whether the fix should be constrained to how the `thread_jump`
function calculates what registers are used in the final jump condition.
>From gcc-bugs-return-629719-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 11:05:19 2019
Return-Path: <gcc-bugs-return-629719-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93389 invoked by alias); 18 Jan 2019 11:05: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 93264 invoked by uid 48); 18 Jan 2019 11:05:13 -0000
From: "matmal01 at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/88904] Basic block incorrectly skipped in jump threading.
Date: Fri, 18 Jan 2019 11:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: matmal01 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: attachments.created
Message-ID: <bug-88904-4-dNP0o1g452@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88904-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88904-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: 2019-01/txt/msg02528.txt.bz2
Content-length: 247

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

--- Comment #1 from Matthew Malcomson <matmal01 at gcc dot gnu.org> ---
Created attachment 45458
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45458&action=edit
Problematic testcase
>From gcc-bugs-return-629720-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 11:07:19 2019
Return-Path: <gcc-bugs-return-629720-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96744 invoked by alias); 18 Jan 2019 11:07: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 96645 invoked by uid 48); 18 Jan 2019 11:07:13 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88794] [9 Regression] fixupimm intrinsics are unusable
Date: Fri, 18 Jan 2019 11: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-88794-4-jnNkNSferB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88794-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88794-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: 2019-01/txt/msg02529.txt.bz2
Content-length: 427

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

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

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed now.
>From gcc-bugs-return-629721-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 11:10:36 2019
Return-Path: <gcc-bugs-return-629721-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101238 invoked by alias); 18 Jan 2019 11:10:35 -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 101157 invoked by uid 48); 18 Jan 2019 11:10:31 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88903] [7/8/9 Regression] wrong-code with SLP vectorized shift
Date: Fri, 18 Jan 2019 11:10: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.2.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords target_milestone short_desc
Message-ID: <bug-88903-4-50R6dAdBui@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88903-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88903-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: 2019-01/txt/msg02530.txt.bz2
Content-length: 1149

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
   Target Milestone|8.3                         |7.5
            Summary|[8/9 Regression] wrong-code |[7/8/9 Regression]
                   |with SLP vectorized shift   |wrong-code with SLP
                   |                            |vectorized shift

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Variant that also fails with GCC 7 (no SLP induction support):

int x[1024];
int y[1024];
int z[1024];

void __attribute__((noinline)) foo()
{
  for (int i = 0; i < 512; ++i)
    {
      x[2*i] = x[2*i] << y[2*i];
      x[2*i+1] = x[2*i+1] << y[2*i];
      z[2*i] = y[2*i];
      z[2*i+1] = y[2*i+1];
    }
}

int main()
{
  for (int i = 0; i < 1024; ++i)
    x[i] = i, y[i] = i % 8;
  foo ();
  for (int i = 0; i < 1024; ++i)
    if (x[i] != i << ((i & ~1) % 8))
      __builtin_abort ();
  return 0;
}
>From gcc-bugs-return-629722-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 11:21:19 2019
Return-Path: <gcc-bugs-return-629722-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126929 invoked by alias); 18 Jan 2019 11:21: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 126832 invoked by uid 48); 18 Jan 2019 11:21:14 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/88902] [8/9 Regression] ICE: Segmentation fault (in DFS::DFS_write_tree_body)
Date: Fri, 18 Jan 2019 11:21: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: 9.0
X-Bugzilla-Keywords: GC, ice-on-valid-code, lto, needs-bisection
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc cf_known_to_work short_desc cf_known_to_fail
Message-ID: <bug-88902-4-tK9cK1O8Kw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88902-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88902-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: 2019-01/txt/msg02531.txt.bz2
Content-length: 798

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lkrupp at gcc dot gnu.org
      Known to work|8.2.0                       |
            Summary|[9 Regression] ICE:         |[8/9 Regression] ICE:
                   |Segmentation fault (in      |Segmentation fault (in
                   |DFS::DFS_write_tree_body)   |DFS::DFS_write_tree_body)
      Known to fail|                            |8.2.0

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
So it's there since the fix of PR50069 (r244601). Thus I guess it's a Fortran
error.
>From gcc-bugs-return-629723-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 11:23:14 2019
Return-Path: <gcc-bugs-return-629723-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128846 invoked by alias); 18 Jan 2019 11:23: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 128781 invoked by uid 48); 18 Jan 2019 11:23:09 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88903] [7/8/9 Regression] wrong-code with SLP vectorized shift
Date: Fri, 18 Jan 2019 11: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.2.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88903-4-go4ISmWFvp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88903-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88903-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: 2019-01/txt/msg02532.txt.bz2
Content-length: 732

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

--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with:

SVN revision: r224221
Author: rguenth
2015-06-08  Richard Biener  <rguenther@suse.de>

        * tree-vect-stmts.c (vectorizable_load): Compute the pointer
        adjustment for gaps at the end of a SLP load group properly.
        * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
        all permutations we can generate.
        (vect_transform_slp_perm_load): Use the correct group-size.

        * gcc.dg/vect/slp-perm-10.c: New testcase.
        * gcc.dg/vect/slp-23.c: Adjust.
        * gcc.dg/torture/pr53366-2.c: Also verify cross-iteration
        vector pointer update.
>From gcc-bugs-return-629724-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 11:27:05 2019
Return-Path: <gcc-bugs-return-629724-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109877 invoked by alias); 18 Jan 2019 11:27: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 109763 invoked by uid 48); 18 Jan 2019 11:26:59 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/88902] [8/9 Regression] ICE: Segmentation fault (in DFS::DFS_write_tree_body)
Date: Fri, 18 Jan 2019 11: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: 9.0
X-Bugzilla-Keywords: GC, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords component
Message-ID: <bug-88902-4-mZb8OWgmyJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88902-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88902-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: 2019-01/txt/msg02533.txt.bz2
Content-length: 2115

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|lto, needs-bisection        |
          Component|lto                         |fortran

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
So the FE creates an identifier node:

$ (gdb) p debug_tree((tree_node *) 0x7ffff6d340c8)
 <identifier_node 0x7ffff6d340c8 (null)>

which is then removed by GGC:

Old value = IDENTIFIER_NODE
New value = 2779096485
__memset_avx2_unaligned_erms () at
../sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:166
166             VZEROUPPER
(gdb) bt
#0  __memset_avx2_unaligned_erms () at
../sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:166
#1  0x000000000098f8f5 in poison_pages () at ../../gcc/ggc-page.c:2113
#2  0x000000000098fa79 in ggc_collect () at ../../gcc/ggc-page.c:2208
#3  0x0000000000e66c14 in execute_one_pass (pass=<opt_pass* 0x2826790
"omplower"(12)>) at ../../gcc/passes.c:2479
#4  0x0000000000e66c6a in execute_pass_list_1 (pass=<opt_pass* 0x2826790
"omplower"(12)>) at ../../gcc/passes.c:2494
#5  0x0000000000e66cf3 in execute_pass_list (fn=0x7ffff6d35000, pass=<opt_pass*
0x2803b80 "*warn_unused_result"(-1)>) at ../../gcc/passes.c:2505
#6  0x0000000000a42c3b in cgraph_node::analyze (this=<cgraph_node*
0x7ffff6d3b000 "reverse">) at ../../gcc/cgraphunit.c:637
#7  0x0000000000a4448d in analyze_functions (first_time=true) at
../../gcc/cgraphunit.c:1087
#8  0x0000000000a48d6c in symbol_table::finalize_compilation_unit
(this=0x7ffff6b56100) at ../../gcc/cgraphunit.c:2562
#9  0x0000000000f8b7ee in compile_file () at ../../gcc/toplev.c:488
#10 0x0000000000f8dcf1 in do_compile () at ../../gcc/toplev.c:1983
#11 0x0000000000f8dfce in toplev::main (this=0x7fffffffd9de, argc=16,
argv=0x7fffffffdad8) at ../../gcc/toplev.c:2117
#12 0x0000000001b75230 in main (argc=16, argv=0x7fffffffdad8) at
../../gcc/main.c:39

So the tree is somehow lost.
>From gcc-bugs-return-629725-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 11:30:56 2019
Return-Path: <gcc-bugs-return-629725-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 2174 invoked by alias); 18 Jan 2019 11:30: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 1290 invoked by uid 48); 18 Jan 2019 11:30:04 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/58200] Option fcheck is misleadingly located in option descriptions
Date: Fri, 18 Jan 2019 11:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: dominiq at lps dot ens.fr
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-58200-4-TpTJgAipzd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58200-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58200-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: 2019-01/txt/msg02534.txt.bz2
Content-length: 195

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

--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
RFA posted at https://gcc.gnu.org/ml/fortran/2019-01/msg00142.html.
>From gcc-bugs-return-629727-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 11:36:59 2019
Return-Path: <gcc-bugs-return-629727-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15214 invoked by alias); 18 Jan 2019 11:36:58 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 11527 invoked by uid 48); 18 Jan 2019 11:36:55 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88903] [7/8/9 Regression] wrong-code with SLP vectorized shift
Date: Fri, 18 Jan 2019 11:36: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.2.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88903-4-CVJTBPvJrk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88903-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88903-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: 2019-01/txt/msg02536.txt.bz2
Content-length: 173

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

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
In the end a mistake of the PR48616 fix (r172638).
>From gcc-bugs-return-629726-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 11:36:29 2019
Return-Path: <gcc-bugs-return-629726-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8830 invoked by alias); 18 Jan 2019 11:36: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 8716 invoked by uid 55); 18 Jan 2019 11:36:22 -0000
From: "hubicka at ucw dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/88900] [9 Regression] 502.gcc_r SPEC benchmark miscompiles with LTO and PGO
Date: Fri, 18 Jan 2019 11:36: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: 9.0
X-Bugzilla-Keywords: needs-bisection, needs-reduction
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hubicka at ucw dot cz
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88900-4-H7QLNJDzcw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88900-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88900-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: 2019-01/txt/msg02535.txt.bz2
Content-length: 324

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

--- Comment #2 from Jan Hubicka <hubicka at ucw dot cz> ---
> What a surprise, started with r267883. I'll carry on bisection with --param
> inline-unit-growth=40.

Well, I guess I can't claim that this is not gcc bug but it is the
benchmark that is broken :)

Honza
>From gcc-bugs-return-629728-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 11:50:34 2019
Return-Path: <gcc-bugs-return-629728-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48752 invoked by alias); 18 Jan 2019 11:50: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 48692 invoked by uid 55); 18 Jan 2019 11:50:28 -0000
From: "rearnsha at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88799] [8/9 Regression] Arm -mcpu=PROCESSOR does not result in assembly directives for .arch and .arch_extension
Date: Fri, 18 Jan 2019 11:50: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.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rearnsha at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88799-4-kit7T6P0gQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88799-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88799-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: 2019-01/txt/msg02537.txt.bz2
Content-length: 2121

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

--- Comment #2 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
Author: rearnsha
Date: Fri Jan 18 11:49:56 2019
New Revision: 268072

URL: https://gcc.gnu.org/viewcvs?rev=268072&root=gcc&view=rev
Log:
PR target/88799 Add +mp and +sec extensions to ARMv7-a

Most armv7-a implementations support a number of basic extensions to
the architecture which are not particularly important to the compiler,
but can matter if code contains inline assembly.  This patch adds
support for these extensions, based on the capabilities that GAS
already provides for the appropriate CPUs.  For the purposes of
multilib selection we ignore these extensions entirely and map the
extended architecture versions down to the base versions we have
already support for.

gcc:
        PR target/88799
        * config/arm/arm-cpus.in (mp): New feature.
        (sec): New feature.
        (fgroup ARMv7ve): Add mp and sec features.
        (arch armv7-a): Add options to allow mp and sec extensions.
        (cpu generic-armv7-a): Add options to allow mp and sec extensions.
        (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
        extenstions to the base architecture.
        (cpu cortex-a8): Add sec extension to the base architecture.
        (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
        * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
        variants down to the base v7-a varaint.
        * config/arm/t-multilib (v7_a_arch_variants): New variable.
        * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
        of permitted extensions for -march=armv7-a and for
        -mcpu=generic-armv7-a.

testsuite:
        * gcc.target/arm/multilib.exp (config "aprofile"): Add tests for
        mp and sec extensions to armv7-a.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/arm/arm-cpus.in
    trunk/gcc/config/arm/t-aprofile
    trunk/gcc/config/arm/t-multilib
    trunk/gcc/doc/invoke.texi
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/arm/multilib.exp
>From gcc-bugs-return-629729-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 11:54:47 2019
Return-Path: <gcc-bugs-return-629729-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56715 invoked by alias); 18 Jan 2019 11:54:47 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 56601 invoked by uid 48); 18 Jan 2019 11:54:43 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/88902] ICE: Segmentation fault (in DFS::DFS_write_tree_body)
Date: Fri, 18 Jan 2019 11:54: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: 9.0
X-Bugzilla-Keywords: GC, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88902-4-36lAPeZzZD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88902-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88902-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: 2019-01/txt/msg02538.txt.bz2
Content-length: 377

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The problem is that gfc_add_decl_to_parent_function is called multiple times on
<var_decl 0x7ffff7ffbab0 ..__result> and thus for that VAR_DECL DECL_CHAIN
(decl) == decl (or in theory there could be longer loop, but any loop in
DECL_CHAIN is invalid).
>From gcc-bugs-return-629730-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 11:55:52 2019
Return-Path: <gcc-bugs-return-629730-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59108 invoked by alias); 18 Jan 2019 11:55: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 59005 invoked by uid 48); 18 Jan 2019 11:55:47 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/88902] ICE: Segmentation fault (in DFS::DFS_write_tree_body)
Date: Fri, 18 Jan 2019 11:55: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: 9.0
X-Bugzilla-Keywords: GC, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-88902-4-Gm4OqL7dHX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88902-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88902-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: 2019-01/txt/msg02539.txt.bz2
Content-length: 1588

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

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

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
--- gcc/fortran/trans-decl.c.jj 2019-01-16 09:35:08.000000000 +0100
+++ gcc/fortran/trans-decl.c    2019-01-18 12:52:45.205618524 +0100
@@ -1572,13 +1572,17 @@ gfc_get_symbol_decl (gfc_symbol * sym)
          if (VAR_P (length) && DECL_FILE_SCOPE_P (length))
            {
              /* Add the string length to the same context as the symbol.  */
-             if (DECL_CONTEXT (sym->backend_decl) == current_function_decl)
-               gfc_add_decl_to_function (length);
-             else
-               gfc_add_decl_to_parent_function (length);
+             if (DECL_CONTEXT (length) == NULL_TREE)
+               {
+                 if (DECL_CONTEXT (sym->backend_decl)
+                     == current_function_decl)
+                   gfc_add_decl_to_function (length);
+                 else
+                   gfc_add_decl_to_parent_function (length);
+               }

-             gcc_assert (DECL_CONTEXT (sym->backend_decl) ==
-                           DECL_CONTEXT (length));
+             gcc_assert (DECL_CONTEXT (sym->backend_decl)
+                         == DECL_CONTEXT (length));

              gfc_defer_symbol_init (sym);
            }

fixes this.
>From gcc-bugs-return-629731-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 11:59:05 2019
Return-Path: <gcc-bugs-return-629731-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79399 invoked by alias); 18 Jan 2019 11:59:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 76590 invoked by uid 48); 18 Jan 2019 11:59:00 -0000
From: "zsojka at seznam dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88905] New: [8/9 Regression] ICE: in decompose, at rtl.h:2253 with -mabm and __builtin_popcountll
Date: Fri, 18 Jan 2019 11:59: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: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: zsojka at seznam dot cz
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget attachments.created
Message-ID: <bug-88905-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: 2019-01/txt/msg02540.txt.bz2
Content-length: 3258

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

            Bug ID: 88905
           Summary: [8/9 Regression] ICE: in decompose, at rtl.h:2253 with
                    -mabm and __builtin_popcountll
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: i686-pc-linux-gnu

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

Compiler output:
$ i686-pc-linux-gnu-gcc -Og -fno-tree-ccp -mabm testcase.c
during RTL pass: cse1
testcase.c: In function 'foo':
testcase.c:16:1: internal compiler error: in decompose, at rtl.h:2266
   16 | }
      | ^
0xc79fa0 wi::int_traits<std::pair<rtx_def*, machine_mode> >::decompose(long*,
unsigned int, std::pair<rtx_def*, machine_mode> const&)
        /repo/gcc-trunk/gcc/rtl.h:2264
0xc79fa0 wide_int_ref_storage<false,
true>::wide_int_ref_storage<std::pair<rtx_def*, machine_mode>
>(std::pair<rtx_def*, machine_mode> const&)
        /repo/gcc-trunk/gcc/wide-int.h:1004
0xc79fa0 generic_wide_int<wide_int_ref_storage<false, true>
>::generic_wide_int<std::pair<rtx_def*, machine_mode> >(std::pair<rtx_def*,
machine_mode> const&)
        /repo/gcc-trunk/gcc/wide-int.h:780
0xc79fa0 simplify_const_unary_operation(rtx_code, machine_mode, rtx_def*,
machine_mode)
        /repo/gcc-trunk/gcc/simplify-rtx.c:1797
0xc74320 simplify_unary_operation(rtx_code, machine_mode, rtx_def*,
machine_mode)
        /repo/gcc-trunk/gcc/simplify-rtx.c:873
0x16d8047 fold_rtx
        /repo/gcc-trunk/gcc/cse.c:3347
0x16da79a canonicalize_insn
        /repo/gcc-trunk/gcc/cse.c:4489
0x16da79a cse_insn
        /repo/gcc-trunk/gcc/cse.c:4581
0x16e1838 cse_extended_basic_block
        /repo/gcc-trunk/gcc/cse.c:6662
0x16e1838 cse_main
        /repo/gcc-trunk/gcc/cse.c:6841
0x16e2806 rest_of_handle_cse
        /repo/gcc-trunk/gcc/cse.c:7678
0x16e2806 execute
        /repo/gcc-trunk/gcc/cse.c:7721
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.


$ i686-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-i686/bin/i686-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-268059-checking-yes-rtl-df-extra-i686/bin/../libexec/gcc/i686-pc-linux-gnu/9.0.0/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--with-cloog --with-ppl --with-isl --with-sysroot=/usr/i686-pc-linux-gnu
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=i686-pc-linux-gnu --with-ld=/usr/bin/i686-pc-linux-gnu-ld
--with-as=/usr/bin/i686-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-268059-checking-yes-rtl-df-extra-i686
Thread model: posix
gcc version 9.0.0 20190118 (experimental) (GCC)
>From gcc-bugs-return-629732-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 12:05:27 2019
Return-Path: <gcc-bugs-return-629732-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125949 invoked by alias); 18 Jan 2019 12:05: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 121864 invoked by uid 48); 18 Jan 2019 12:05:22 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/88902] ICE: Segmentation fault (in DFS::DFS_write_tree_body)
Date: Fri, 18 Jan 2019 12:05: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: 9.0
X-Bugzilla-Keywords: GC, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to attachments.created
Message-ID: <bug-88902-4-P4Qv5VKKqZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88902-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88902-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: 2019-01/txt/msg02541.txt.bz2
Content-length: 585

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

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

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

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

Full untested patch.
>From gcc-bugs-return-629733-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 12:13:59 2019
Return-Path: <gcc-bugs-return-629733-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11697 invoked by alias); 18 Jan 2019 12:13:58 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 8782 invoked by uid 48); 18 Jan 2019 12:13:54 -0000
From: "zsojka at seznam dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88906] New: wrong code with -march=k6 -minline-all-stringops -minline-stringops-dynamically -mmemcpy-strategy=libcall:-1:align and vector argument
Date: Fri, 18 Jan 2019 12:13: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: 9.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: zsojka at seznam dot cz
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget attachments.created
Message-ID: <bug-88906-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: 2019-01/txt/msg02542.txt.bz2
Content-length: 1858

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

            Bug ID: 88906
           Summary: wrong code with -march=k6 -minline-all-stringops
                    -minline-stringops-dynamically
                    -mmemcpy-strategy=libcall:-1:align and vector argument
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: i686-pc-linux-gnu

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

Output:
$ i686-pc-linux-gnu-gcc -O -march=k6 -minline-all-stringops
-minline-stringops-dynamically -mmemcpy-strategy=libcall:-1:align testcase.c
-Wno-psabi
$ ./a.out 
Aborted

v[] contains garbage

$ i686-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-i686/bin/i686-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-268059-checking-yes-rtl-df-extra-i686/bin/../libexec/gcc/i686-pc-linux-gnu/9.0.0/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--with-cloog --with-ppl --with-isl --with-sysroot=/usr/i686-pc-linux-gnu
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=i686-pc-linux-gnu --with-ld=/usr/bin/i686-pc-linux-gnu-ld
--with-as=/usr/bin/i686-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-268059-checking-yes-rtl-df-extra-i686
Thread model: posix
gcc version 9.0.0 20190118 (experimental) (GCC)
>From gcc-bugs-return-629734-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 12:17:59 2019
Return-Path: <gcc-bugs-return-629734-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39709 invoked by alias); 18 Jan 2019 12:17:58 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 39589 invoked by uid 48); 18 Jan 2019 12:17:55 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88905] [8/9 Regression] ICE: in decompose, at rtl.h:2253 with -mabm and __builtin_popcountll
Date: Fri, 18 Jan 2019 12:17: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: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority target_milestone
Message-ID: <bug-88905-4-IERpgiZPPC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88905-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88905-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: 2019-01/txt/msg02543.txt.bz2
Content-length: 345

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
   Target Milestone|---                         |8.3
>From gcc-bugs-return-629735-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 12:19:10 2019
Return-Path: <gcc-bugs-return-629735-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42414 invoked by alias); 18 Jan 2019 12:19:09 -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 42356 invoked by uid 48); 18 Jan 2019 12:19:06 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/88904] [9 Regression] Basic block incorrectly skipped in jump threading.
Date: Fri, 18 Jan 2019 12:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: major
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords cf_gcctarget priority target_milestone short_desc
Message-ID: <bug-88904-4-CO6YA0Toar@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88904-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88904-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: 2019-01/txt/msg02544.txt.bz2
Content-length: 681

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
             Target|                            |arm-none-eabi
           Priority|P3                          |P1
   Target Milestone|---                         |9.0
            Summary|Basic block incorrectly     |[9 Regression] Basic block
                   |skipped in jump threading.  |incorrectly skipped in jump
                   |                            |threading.
>From gcc-bugs-return-629736-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 12:32:04 2019
Return-Path: <gcc-bugs-return-629736-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112408 invoked by alias); 18 Jan 2019 12:32: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 112291 invoked by uid 48); 18 Jan 2019 12:31:59 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88850] [9 Regression] Hard register coming out of expand causing reload to fail.
Date: Fri, 18 Jan 2019 12:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-88850-4-aX6HIDoOQY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88850-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88850-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: 2019-01/txt/msg02545.txt.bz2
Content-length: 1516

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

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

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
typedef __builtin_neon_qi int8x8_t __attribute__ ((__vector_size__ (8)));
void bar (int8x8_t *, int8x8_t, int8x8_t);

void
foo (int8x8_t z, int8x8_t x, int8x8_t v)
{
  bar (&v, z, x);
}

ICEs too with these options and so does:
typedef __builtin_neon_qi int8x8_t __attribute__ ((__vector_size__ (8)));
void bar (int8x8_t, int8x8_t);

void
foo (int8x8_t x, int8x8_t y)
{
  bar (y, x);
}

The last one works with x, y because the *neon_movv8qi instructions are
eliminated by fwprop1.

In any case, this looks like a target bug to me, there is nothing wrong in how
the expansion works here, saving hard registers in which the parameters are
passed into pseudos and then loading the hard registers in which callee expects
parameters from the pseudos is the usual thing.  If the *neon_movv8qi
instructions need -mfloat-abi=hard or whatever else, then guess
__builtin_neon_qi vectors can't be passed where gcc wants to pass them unless
that condition is met - if there are no instructions to move those data from/to
these registers or to/from memory, then those registers can't be really used
period.  Or just error if user does this?
>From gcc-bugs-return-629737-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 12:34:47 2019
Return-Path: <gcc-bugs-return-629737-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4314 invoked by alias); 18 Jan 2019 12:34:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 2789 invoked by uid 48); 18 Jan 2019 12:34:41 -0000
From: "Peter.Georg at physik dot uni-regensburg.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/88907] New: Variadic template function deduction failure.
Date: Fri, 18 Jan 2019 12:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: Peter.Georg at physik dot uni-regensburg.de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-88907-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: 2019-01/txt/msg02546.txt.bz2
Content-length: 1834

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

            Bug ID: 88907
           Summary: Variadic template function deduction failure.
           Product: gcc
           Version: 8.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Peter.Georg at physik dot uni-regensburg.de
  Target Milestone: ---

Created attachment 45462
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45462&action=edit
Code to reproduce bug including possible work-arounds

GCC fails to compile the following code due to alleged ambiguous function call.

```
#include <utility>
template<class T, int... Ns>
class Base
{
};

template<class... Ts, int... Ns>
void error(Base<Ts, Ns...> const &... args)
{
}

template<class... Ts,
    class = std::enable_if_t<
        std::conjunction<std::is_class<std::remove_reference_t<Ts>>...>{}>>
void error(Ts &&... args)
{
}

int main()
{
    Base<int, 4, 4> const a;
    error(a);
}
```

The code is also attached or see: https://godbolt.org/z/GuW-YC

I.e. call to error(Base<int, 4, 4> const &) is ambiguous for GCC.
In my opinion, and e.g. clang agrees with me, the first function is clearly
more specialized and thus should be chosen.

There are two possible work-arounds (both are included in the attached code):
#1: Add an extra function error that takes exactly one parameter of Type
Base<T, Ns...> const &
#2: Remove the default template parameter (SFINAE) from the second error
function

I started I discussion about this (I wasn't sure it is a bug at first) and a
related clang bug (https://bugs.llvm.org/show_bug.cgi?id=40305) here:
https://stackoverflow.com/questions/54236545/why-is-it-an-ambigious-function-call-using-gcc-template-deduction-failing
>From gcc-bugs-return-629738-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 12:43:42 2019
Return-Path: <gcc-bugs-return-629738-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34955 invoked by alias); 18 Jan 2019 12:43:41 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 32193 invoked by uid 48); 18 Jan 2019 12:43:37 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBmb3J0cmFuLzg4OTA4XSBOZXc6IFs5IFJlZ3Jlc3Npb25dIElDRSBp?= =?UTF-8?B?biB0cmVlIGNoZWNrOiBleHBlY3RlZCB0cmVlIHRoYXQgY29udGFpbnMg4oCY?= =?UTF-8?B?ZGVjbCBjb21tb27igJkgc3RydWN0dXJlLCBoYXZlIOKAmGluZGlyZWN0X3Jl?= =?UTF-8?B?ZuKAmSBpbiBnZmNfY29udl9nZmNfZGVzY190b19jZmlfZGVzYywgYXQgZm9y?= =?UTF-8?B?dHJhbi90cmFucy1leHByLmM6NDkyNw==?Date: Fri, 18 Jan 2019 12:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-88908-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: 2019-01/txt/msg02547.txt.bz2
Content-length: 2918

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

            Bug ID: 88908
           Summary: [9 Regression] ICE in tree check: expected tree that
                    contains ‘decl common’ structure, have ‘indirect_ref’
                    in gfc_conv_gfc_desc_to_cfi_desc, at
                    fortran/trans-expr.c:4927
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
  Target Milestone: ---

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

It's reduced from mvapich2 package. Unfortunately one needs 2 Fortran modules:

$ gfortran accumulate_f08ts.f90 -I. -O3 -c
accumulate_f08ts.f90:39:0:

   39 |             target_disp, target_count, target_datatype%MPI_VAL,
op%MPI_VAL, win%MPI_VAL)
      | 
internal compiler error: tree check: expected tree that contains ‘decl common’
structure, have ‘indirect_ref’ in gfc_conv_gfc_desc_to_cfi_desc, at
fortran/trans-expr.c:4927
0x6f1f4c tree_contains_struct_check_failed(tree_node const*,
tree_node_structure_enum, char const*, int, char const*)
        /home/marxin/Programming/gcc/gcc/tree.c:9983
0x5e1447 contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
        /home/marxin/Programming/gcc/gcc/tree.h:3290
0x5e1447 gfc_conv_gfc_desc_to_cfi_desc
        /home/marxin/Programming/gcc/gcc/fortran/trans-expr.c:4927
0x8af782 gfc_conv_procedure_call(gfc_se*, gfc_symbol*, gfc_actual_arglist*,
gfc_expr*, vec<tree_node*, va_gc, vl_embed>*)
        /home/marxin/Programming/gcc/gcc/fortran/trans-expr.c:5785
0x8b1f6a gfc_conv_expr(gfc_se*, gfc_expr*)
        /home/marxin/Programming/gcc/gcc/fortran/trans-expr.c:8228
0x8bb3e3 gfc_trans_assignment_1
        /home/marxin/Programming/gcc/gcc/fortran/trans-expr.c:10437
0x877577 trans_code
        /home/marxin/Programming/gcc/gcc/fortran/trans.c:1822
0x8edb73 gfc_trans_if_1
        /home/marxin/Programming/gcc/gcc/fortran/trans-stmt.c:1448
0x8f68aa gfc_trans_if(gfc_code*)
        /home/marxin/Programming/gcc/gcc/fortran/trans-stmt.c:1479
0x877447 trans_code
        /home/marxin/Programming/gcc/gcc/fortran/trans.c:1910
0x8a3f15 gfc_generate_function_code(gfc_namespace*)
        /home/marxin/Programming/gcc/gcc/fortran/trans-decl.c:6526
0x82b58e translate_all_program_units
        /home/marxin/Programming/gcc/gcc/fortran/parse.c:6134
0x82b58e gfc_parse_file()
        /home/marxin/Programming/gcc/gcc/fortran/parse.c:6337
0x8745af gfc_be_parse_file
        /home/marxin/Programming/gcc/gcc/fortran/f95-lang.c:204

Hope it will be possible to reproduce without source code of the modules.
>From gcc-bugs-return-629739-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 12:43:58 2019
Return-Path: <gcc-bugs-return-629739-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38599 invoked by alias); 18 Jan 2019 12:43:57 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 38567 invoked by uid 48); 18 Jan 2019 12:43:54 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBmb3J0cmFuLzg4OTA4XSBbOSBSZWdyZXNzaW9uXSBJQ0UgaW4gdHJl?= =?UTF-8?B?ZSBjaGVjazogZXhwZWN0ZWQgdHJlZSB0aGF0IGNvbnRhaW5zIOKAmGRlY2wg?= =?UTF-8?B?Y29tbW9u4oCZIHN0cnVjdHVyZSwgaGF2ZSDigJhpbmRpcmVjdF9yZWbigJkg?= =?UTF-8?B?aW4gZ2ZjX2NvbnZfZ2ZjX2Rlc2NfdG9fY2ZpX2Rlc2MsIGF0IGZvcnRyYW4v?= =?UTF-8?B?dHJhbnMtZXhwci5jOjQ5Mjc=?Date: Fri, 18 Jan 2019 12:43: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: 9.0
X-Bugzilla-Keywords: ice-on-valid-code, needs-bisection
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin 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 cf_known_to_work everconfirmed cf_known_to_fail
Message-ID: <bug-88908-4-pDyMyx2krq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88908-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88908-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: 2019-01/txt/msg02548.txt.bz2
Content-length: 579

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |needs-bisection
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-01-18
      Known to work|                            |8.2.0
     Ever confirmed|0                           |1
      Known to fail|                            |9.0
>From gcc-bugs-return-629740-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 12:46:13 2019
Return-Path: <gcc-bugs-return-629740-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44459 invoked by alias); 18 Jan 2019 12:46: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 44392 invoked by uid 48); 18 Jan 2019 12:46:09 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/88757] [9 Regression] GCC wrongly treats dependent name as a type when it should be treated as a value
Date: Fri, 18 Jan 2019 12:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority
Message-ID: <bug-88757-4-rhkX9gbtr2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88757-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88757-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: 2019-01/txt/msg02549.txt.bz2
Content-length: 289

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
>From gcc-bugs-return-629741-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 13:05:14 2019
Return-Path: <gcc-bugs-return-629741-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33411 invoked by alias); 18 Jan 2019 13:05: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 33335 invoked by uid 48); 18 Jan 2019 13:05:10 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/88334] Implement P0482R6, C++20 char8_t.
Date: Fri, 18 Jan 2019 13:05: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: redi 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-88334-4-VPHym2xzow@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88334-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88334-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: 2019-01/txt/msg02550.txt.bz2
Content-length: 155

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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The library patches aren't in yet.
>From gcc-bugs-return-629742-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 13:05:56 2019
Return-Path: <gcc-bugs-return-629742-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34908 invoked by alias); 18 Jan 2019 13:05: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 34721 invoked by uid 55); 18 Jan 2019 13:05:51 -0000
From: "hjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/88664] [9 Regression] False positive -Waddress-of-packed-member
Date: Fri, 18 Jan 2019 13:05: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: 9.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88664-4-Pe3LXakpS6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88664-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88664-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: 2019-01/txt/msg02551.txt.bz2
Content-length: 2184

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

--- Comment #8 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Fri Jan 18 13:05:18 2019
New Revision: 268075

URL: https://gcc.gnu.org/viewcvs?rev=268075&root=gcc&view=rev
Log:
c-family: Update unaligned adress of packed member check

Check unaligned pointer conversion and strip NOPS.

gcc/c-family/

        PR c/51628
        PR c/88664
        * c-common.h (warn_for_address_or_pointer_of_packed_member):
        Remove the boolean argument.
        * c-warn.c (check_address_of_packed_member): Renamed to ...
        (check_address_or_pointer_of_packed_member): This.  Also
        warn pointer conversion.
        (check_and_warn_address_of_packed_member): Renamed to ...
        (check_and_warn_address_or_pointer_of_packed_member): This.
        Also warn pointer conversion.
        (warn_for_address_or_pointer_of_packed_member): Remove the
        boolean argument.  Don't check pointer conversion here.

gcc/c

        PR c/51628
        PR c/88664
        * c-typeck.c (convert_for_assignment): Upate the
        warn_for_address_or_pointer_of_packed_member call.

gcc/cp

        PR c/51628
        PR c/88664
        * call.c (convert_for_arg_passing): Upate the
        warn_for_address_or_pointer_of_packed_member call.
        * typeck.c (convert_for_assignment): Likewise.

gcc/testsuite/

        PR c/51628
        PR c/88664
        * c-c++-common/pr51628-33.c: New test.
        * c-c++-common/pr51628-35.c: New test.
        * c-c++-common/pr88664-1.c: Likewise.
        * c-c++-common/pr88664-2.c: Likewise.
        * gcc.dg/pr51628-34.c: Likewise.

Added:
    trunk/gcc/testsuite/c-c++-common/pr51628-33.c
    trunk/gcc/testsuite/c-c++-common/pr51628-35.c
    trunk/gcc/testsuite/c-c++-common/pr88664-1.c
    trunk/gcc/testsuite/c-c++-common/pr88664-2.c
    trunk/gcc/testsuite/gcc.dg/pr51628-34.c
Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-common.h
    trunk/gcc/c-family/c-warn.c
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-typeck.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-629743-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 13:05:58 2019
Return-Path: <gcc-bugs-return-629743-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35201 invoked by alias); 18 Jan 2019 13:05:58 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 34820 invoked by uid 55); 18 Jan 2019 13:05:53 -0000
From: "hjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/51628] __attribute__((packed)) is unsafe in some cases (i.e. add -Waddress-of-packed-member, etc.)
Date: Fri, 18 Jan 2019 13:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 4.5.1
X-Bugzilla-Keywords: diagnostic, patch, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-51628-4-WLSuqFd10Y@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-51628-4@http.gcc.gnu.org/bugzilla/>
References: <bug-51628-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: 2019-01/txt/msg02552.txt.bz2
Content-length: 2185

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

--- Comment #61 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Fri Jan 18 13:05:18 2019
New Revision: 268075

URL: https://gcc.gnu.org/viewcvs?rev=268075&root=gcc&view=rev
Log:
c-family: Update unaligned adress of packed member check

Check unaligned pointer conversion and strip NOPS.

gcc/c-family/

        PR c/51628
        PR c/88664
        * c-common.h (warn_for_address_or_pointer_of_packed_member):
        Remove the boolean argument.
        * c-warn.c (check_address_of_packed_member): Renamed to ...
        (check_address_or_pointer_of_packed_member): This.  Also
        warn pointer conversion.
        (check_and_warn_address_of_packed_member): Renamed to ...
        (check_and_warn_address_or_pointer_of_packed_member): This.
        Also warn pointer conversion.
        (warn_for_address_or_pointer_of_packed_member): Remove the
        boolean argument.  Don't check pointer conversion here.

gcc/c

        PR c/51628
        PR c/88664
        * c-typeck.c (convert_for_assignment): Upate the
        warn_for_address_or_pointer_of_packed_member call.

gcc/cp

        PR c/51628
        PR c/88664
        * call.c (convert_for_arg_passing): Upate the
        warn_for_address_or_pointer_of_packed_member call.
        * typeck.c (convert_for_assignment): Likewise.

gcc/testsuite/

        PR c/51628
        PR c/88664
        * c-c++-common/pr51628-33.c: New test.
        * c-c++-common/pr51628-35.c: New test.
        * c-c++-common/pr88664-1.c: Likewise.
        * c-c++-common/pr88664-2.c: Likewise.
        * gcc.dg/pr51628-34.c: Likewise.

Added:
    trunk/gcc/testsuite/c-c++-common/pr51628-33.c
    trunk/gcc/testsuite/c-c++-common/pr51628-35.c
    trunk/gcc/testsuite/c-c++-common/pr88664-1.c
    trunk/gcc/testsuite/c-c++-common/pr88664-2.c
    trunk/gcc/testsuite/gcc.dg/pr51628-34.c
Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-common.h
    trunk/gcc/c-family/c-warn.c
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-typeck.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-629744-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 13:10:01 2019
Return-Path: <gcc-bugs-return-629744-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40005 invoked by alias); 18 Jan 2019 13:10:01 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 39960 invoked by uid 48); 18 Jan 2019 13:09:56 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88906] wrong code with -march=k6 -minline-all-stringops -minline-stringops-dynamically -mmemcpy-strategy=libcall:-1:align and vector argument
Date: Fri, 18 Jan 2019 13:10: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: 9.0
X-Bugzilla-Keywords: needs-bisection, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin 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-88906-4-VN5sqTY6Wt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88906-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88906-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: 2019-01/txt/msg02553.txt.bz2
Content-length: 648

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |needs-bisection
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-01-18
                 CC|                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, let me bisect that.
>From gcc-bugs-return-629745-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 13:11:38 2019
Return-Path: <gcc-bugs-return-629745-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41593 invoked by alias); 18 Jan 2019 13:11: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 41547 invoked by uid 48); 18 Jan 2019 13:11:32 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88905] [8/9 Regression] ICE: in decompose, at rtl.h:2253 with -mabm and __builtin_popcountll
Date: Fri, 18 Jan 2019 13: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: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-88905-4-uowcVGoet2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88905-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88905-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: 2019-01/txt/msg02554.txt.bz2
Content-length: 583

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-01-18
                 CC|                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, let me bisect that.
>From gcc-bugs-return-629746-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 13:12:00 2019
Return-Path: <gcc-bugs-return-629746-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42561 invoked by alias); 18 Jan 2019 13:12:00 -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 42343 invoked by uid 48); 18 Jan 2019 13:11:56 -0000
From: "zsojka at seznam dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88906] wrong code with -march=k6 -minline-all-stringops -minline-stringops-dynamically -mmemcpy-strategy=libcall:-1:align and vector argument
Date: Fri, 18 Jan 2019 13:12: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: 9.0
X-Bugzilla-Keywords: needs-bisection, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: zsojka at seznam dot cz
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88906-4-p3vc4m0FhZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88906-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88906-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: 2019-01/txt/msg02555.txt.bz2
Content-length: 272

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

--- Comment #2 from Zdenek Sojka <zsojka at seznam dot cz> ---
I was getting either wrong code with 5+, or ICE with 4.9, or unknown compiler
argument with 4.8 -> I didn't find any gcc version where this was working.
>From gcc-bugs-return-629748-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 13:13:59 2019
Return-Path: <gcc-bugs-return-629748-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102017 invoked by alias); 18 Jan 2019 13:13:58 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 100827 invoked by uid 55); 18 Jan 2019 13:13:53 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88903] [7/8 Regression] wrong-code with SLP vectorized shift
Date: Fri, 18 Jan 2019 13: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.2.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88903-4-5pwbpoQ96y@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88903-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88903-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: 2019-01/txt/msg02557.txt.bz2
Content-length: 812

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

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Fri Jan 18 13:13:21 2019
New Revision: 268076

URL: https://gcc.gnu.org/viewcvs?rev=268076&root=gcc&view=rev
Log:
2019-01-18  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/88903
        * tree-vect-stmts.c (vectorizable_shift): Verify we see all
        scalar stmts a SLP shift amount is composed of when detecting
        shifts by scalars.

        * gcc.dg/vect/pr88903-1.c: New testcase.
        * gcc.dg/vect/pr88903-2.c: Likewise.

Added:
    trunk/gcc/testsuite/gcc.dg/vect/pr88903-1.c
    trunk/gcc/testsuite/gcc.dg/vect/pr88903-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vect-stmts.c
>From gcc-bugs-return-629747-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 13:13:54 2019
Return-Path: <gcc-bugs-return-629747-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101166 invoked by alias); 18 Jan 2019 13:13:53 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 97846 invoked by uid 48); 18 Jan 2019 13:13:47 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88903] [7/8 Regression] wrong-code with SLP vectorized shift
Date: Fri, 18 Jan 2019 13: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.2.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_known_to_work short_desc cf_known_to_fail
Message-ID: <bug-88903-4-JA9DPBNH9C@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88903-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88903-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: 2019-01/txt/msg02556.txt.bz2
Content-length: 648

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |9.0
            Summary|[7/8/9 Regression]          |[7/8 Regression] wrong-code
                   |wrong-code with SLP         |with SLP vectorized shift
                   |vectorized shift            |
      Known to fail|                            |7.4.0, 8.2.0

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed on trunk sofar.
>From gcc-bugs-return-629749-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 13:16:21 2019
Return-Path: <gcc-bugs-return-629749-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19490 invoked by alias); 18 Jan 2019 13: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 18121 invoked by uid 48); 18 Jan 2019 13:15:44 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/88664] [9 Regression] False positive -Waddress-of-packed-member
Date: Fri, 18 Jan 2019 13:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-88664-4-zsZhOpvkZe@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88664-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88664-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: 2019-01/txt/msg02558.txt.bz2
Content-length: 415

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

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

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

--- Comment #9 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed.
>From gcc-bugs-return-629750-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 13:17:05 2019
Return-Path: <gcc-bugs-return-629750-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20644 invoked by alias); 18 Jan 2019 13:17:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 20514 invoked by uid 48); 18 Jan 2019 13:17:00 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/88846] [9 Regression] pr69776-2.c failure on 32 bit AIX
Date: Fri, 18 Jan 2019 13:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority cc
Message-ID: <bug-88846-4-1uGDtL7Yyh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88846-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88846-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: 2019-01/txt/msg02559.txt.bz2
Content-length: 1059

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |vmakarov at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Seems entirely like RA bug to me.  The MEM_ALIAS_SET on the REG_EQUIV is
correct, it is the mode of the memory the SET_DEST of the insn is going to be
stored into.  What is weird is that it is added to an instruction before it is
stored there, and if that is reasonable, it should actually only use it if it
moves the store from where it has actually been done to where it wants with no
other memory accesses that would prevent that (in this case there are ones that
conflict with it, so it must not do that).  Probably latent before though.
>From gcc-bugs-return-629751-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 13:26:13 2019
Return-Path: <gcc-bugs-return-629751-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35450 invoked by alias); 18 Jan 2019 13:26: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 35383 invoked by uid 55); 18 Jan 2019 13:26:09 -0000
From: "rearnsha at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88799] [8/9 Regression] Arm -mcpu=PROCESSOR does not result in assembly directives for .arch and .arch_extension
Date: Fri, 18 Jan 2019 13:26: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.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rearnsha at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88799-4-KacyokAo2w@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88799-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88799-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: 2019-01/txt/msg02560.txt.bz2
Content-length: 2259

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

--- Comment #3 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
Author: rearnsha
Date: Fri Jan 18 13:25:37 2019
New Revision: 268077

URL: https://gcc.gnu.org/viewcvs?rev=268077&root=gcc&view=rev
Log:
[arm] PR target/88799 Add +mp and +sec extensions to ARMv7-a (gcc-8 backport)

Most armv7-a implementations support a number of basic extensions to
the architecture which are not particularly important to the compiler,
but can matter if code contains inline assembly.  This patch adds
support for these extensions, based on the capabilities that GAS
already provides for the appropriate CPUs.  For the purposes of
multilib selection we ignore these extensions entirely and map the
extended architecture versions down to the base versions we have
already support for.

gcc:
        PR target/88799
        * config/arm/arm-cpus.in (mp): New feature.
        (sec): New feature.
        (fgroup ARMv7ve): Add mp and sec features.
        (arch armv7-a): Add options to allow mp and sec extensions.
        (cpu generic-armv7-a): Add options to allow mp and sec extensions.
        (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
        extenstions to the base architecture.
        (cpu cortex-a8): Add sec extension to the base architecture.
        (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
        * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
        variants down to the base v7-a varaint.
        * config/arm/t-multilib (v7_a_arch_variants): New variable.
        * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
        of permitted extensions for -march=armv7-a and for
        -mcpu=generic-armv7-a.

testsuite:
        * gcc.target/arm/multilib.exp (config "aprofile"): Add tests for
        mp and sec extensions to armv7-a.


Modified:
    branches/gcc-8-branch/gcc/ChangeLog
    branches/gcc-8-branch/gcc/config/arm/arm-cpus.in
    branches/gcc-8-branch/gcc/config/arm/t-aprofile
    branches/gcc-8-branch/gcc/config/arm/t-multilib
    branches/gcc-8-branch/gcc/doc/invoke.texi
    branches/gcc-8-branch/gcc/testsuite/ChangeLog
    branches/gcc-8-branch/gcc/testsuite/gcc.target/arm/multilib.exp
>From gcc-bugs-return-629752-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 13:27:35 2019
Return-Path: <gcc-bugs-return-629752-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55697 invoked by alias); 18 Jan 2019 13:27:35 -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 53239 invoked by uid 48); 18 Jan 2019 13:27:31 -0000
From: "rearnsha at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88799] [8/9 Regression] Arm -mcpu=PROCESSOR does not result in assembly directives for .arch and .arch_extension
Date: Fri, 18 Jan 2019 13:27: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.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rearnsha 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.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-88799-4-FCZykhrlmP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88799-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88799-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: 2019-01/txt/msg02561.txt.bz2
Content-length: 461

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

Richard Earnshaw <rearnsha at gcc dot gnu.org> changed:

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

--- Comment #4 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
Fixed on trunk and gcc-8 branch.
>From gcc-bugs-return-629753-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 13:34:14 2019
Return-Path: <gcc-bugs-return-629753-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121682 invoked by alias); 18 Jan 2019 13:34: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 121601 invoked by uid 48); 18 Jan 2019 13:34:09 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88850] [9 Regression] Hard register coming out of expand causing reload to fail.
Date: Fri, 18 Jan 2019 13:34: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: 9.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-88850-4-6NLnFzu43V@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88850-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88850-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: 2019-01/txt/msg02562.txt.bz2
Content-length: 2548

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-01-18
                 CC|                            |vmakarov at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r266385, which changed the cost:
-    r113: preferred VFP_REGS, alternative NO_REGS, allocno VFP_REGS
-    r112: preferred VFP_REGS, alternative NO_REGS, allocno VFP_REGS
+    r113: preferred GENERAL_REGS, alternative ALL_REGS, allocno ALL_REGS
+    r112: preferred GENERAL_REGS, alternative ALL_REGS, allocno ALL_REGS

-  a0(r113,l0) costs: LO_REGS:34000,34000 HI_REGS:34000,34000
CALLER_SAVE_REGS:34000,34000 GENERAL_REGS:34000,34000 VFP_D0_D7_REGS:4000,4000
VFP_LO_REGS:4000,4000 VFP_HI_REGS:4000,4000 VFP_REGS:4000,4000
ALL_REGS:34000,34000 MEM:24000,24000
-  a1(r112,l0) costs: LO_REGS:34000,34000 HI_REGS:34000,34000
CALLER_SAVE_REGS:34000,34000 GENERAL_REGS:34000,34000 VFP_D0_D7_REGS:4000,4000
VFP_LO_REGS:4000,4000 VFP_HI_REGS:4000,4000 VFP_REGS:4000,4000
ALL_REGS:34000,34000 MEM:24000,24000
+  a0(r113,l0) costs: GENERAL_REGS:4000,4000 VFP_D0_D7_REGS:60000,60000
VFP_LO_REGS:60000,60000 VFP_HI_REGS:60000,60000 VFP_REGS:60000,60000
ALL_REGS:30000,30000 MEM:40000,40000
+  a1(r112,l0) costs: GENERAL_REGS:4000,4000 VFP_D0_D7_REGS:60000,60000
VFP_LO_REGS:60000,60000 VFP_HI_REGS:60000,60000 VFP_REGS:60000,60000
ALL_REGS:30000,30000 MEM:40000,40000

We have:
(insn 13 4 14 2 (set (reg:V8QI 112)
        (reg:V8QI 0 r0 [ x ])) "pr88850-2.c":6:1 936 {*neon_movv8qi}
     (expr_list:REG_DEAD (reg:V8QI 0 r0 [ x ])
        (nil)))
(insn 14 13 7 2 (set (reg:V8QI 113)
        (reg:V8QI 2 r2 [ y ])) "pr88850-2.c":6:1 936 {*neon_movv8qi}
     (expr_list:REG_DEAD (reg:V8QI 2 r2 [ y ])
        (nil)))
(insn 7 14 8 2 (set (reg:V8QI 2 r2)
        (reg:V8QI 112)) "pr88850-2.c":7:3 936 {*neon_movv8qi}
     (expr_list:REG_DEAD (reg:V8QI 112)
        (nil)))
(insn 8 7 9 2 (set (reg:V8QI 0 r0)
        (reg:V8QI 113)) "pr88850-2.c":7:3 936 {*neon_movv8qi}
     (expr_list:REG_DEAD (reg:V8QI 113)
        (nil)))
and the move instructions don't have alternatives for GPR to GPR move, that can
be done only through a VFP_REGS register.
>From gcc-bugs-return-629754-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 13:39:36 2019
Return-Path: <gcc-bugs-return-629754-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128660 invoked by alias); 18 Jan 2019 13:39: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 128514 invoked by uid 48); 18 Jan 2019 13:39:32 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88909] New: struct builtin_description doesn't support ix86_isa_flags2
Date: Fri, 18 Jan 2019 13:39: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcctarget
Message-ID: <bug-88909-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: 2019-01/txt/msg02563.txt.bz2
Content-length: 1512

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

            Bug ID: 88909
           Summary: struct builtin_description doesn't support
                    ix86_isa_flags2
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
                CC: crazylht at gmail dot com, ubizjak at gmail dot com
  Target Milestone: ---
            Target: i386,x86-64

There are

struct builtin_description
{
  const HOST_WIDE_INT mask; 
  const enum insn_code icode;
  const char *const name; 
  const enum ix86_builtins code; 
  const enum rtx_code comparison;
  const int flag; 
};

Since "mask" is used for both ix86_isa_flags and ix86_isa_flags2, we wind up
with

BDESC (OPTION_MASK_ISA_PTWRITE, CODE_FOR_ptwritedi, "__builtin_ia32_ptwrite64",
IX86_BUILTIN_PTWRITE64, UNKNOWN, (int) VOID_FTYPE_UINT64)

and

static inline tree
def_builtin2 (HOST_WIDE_INT mask, const char *name,
              enum ix86_builtin_func_type tcode,
              enum ix86_builtins code)
{
  tree decl = NULL_TREE;

  if (tcode == VOID_FTYPE_UINT64)
    {
      if (!TARGET_64BIT)
        return decl;
      ix86_builtins_isa[(int) code].isa = OPTION_MASK_ISA_64BIT;
    }
  ix86_builtins_isa[(int) code].isa2 = mask;

We should add "const HOST_WIDE_INT mask2;" to struct builtin_description
to handle it properly.
>From gcc-bugs-return-629755-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 13:49:04 2019
Return-Path: <gcc-bugs-return-629755-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67090 invoked by alias); 18 Jan 2019 13:49: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 66656 invoked by uid 48); 18 Jan 2019 13:48:55 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/88900] [9 Regression] 502.gcc_r SPEC benchmark miscompiles with LTO and PGO
Date: Fri, 18 Jan 2019 13:49: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: 9.0
X-Bugzilla-Keywords: needs-bisection, needs-reduction
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-88900-4-vHcGqTK86c@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88900-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88900-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: 2019-01/txt/msg02564.txt.bz2
Content-length: 401

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

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

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

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
Is this the same as PR 87214?
>From gcc-bugs-return-629756-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 14:03:28 2019
Return-Path: <gcc-bugs-return-629756-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126837 invoked by alias); 18 Jan 2019 14:03: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 126770 invoked by uid 48); 18 Jan 2019 14:03:24 -0000
From: "amodra at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88877] rs6000 emits signed extension for unsigned int  type(__floatunsidf).
Date: Fri, 18 Jan 2019 14:03: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.1.0
X-Bugzilla-Keywords: ABI
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amodra at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88877-4-aHZfbjiw10@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88877-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88877-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: 2019-01/txt/msg02565.txt.bz2
Content-length: 253

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

--- Comment #12 from Alan Modra <amodra at gmail dot com> ---
I suspect that the patch in comment #1 will break libcalls in other situations,
eg.

void f1 (int y)
{
  extern double d;
  d = y;
}
>From gcc-bugs-return-629757-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 14:07:51 2019
Return-Path: <gcc-bugs-return-629757-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1752 invoked by alias); 18 Jan 2019 14:07: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 1671 invoked by uid 48); 18 Jan 2019 14:07:47 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/88900] [9 Regression] 502.gcc_r SPEC benchmark miscompiles with LTO and PGO
Date: Fri, 18 Jan 2019 14:07: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: 9.0
X-Bugzilla-Keywords: needs-bisection, needs-reduction
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88900-4-uAn3iJYJBX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88900-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88900-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: 2019-01/txt/msg02566.txt.bz2
Content-length: 315

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

--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to H.J. Lu from comment #3)
> Is this the same as PR 87214?

No, this one is probably related to RPO VN, I'm not finished with bisection.
And it also happens on non-avx512 targets.
>From gcc-bugs-return-629758-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 14:08:01 2019
Return-Path: <gcc-bugs-return-629758-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 2501 invoked by alias); 18 Jan 2019 14:08:00 -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 2419 invoked by uid 48); 18 Jan 2019 14:07:56 -0000
From: "tnfchris at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88850] [9 Regression] Hard register coming out of expand causing reload to fail.
Date: Fri, 18 Jan 2019 14:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tnfchris at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88850-4-3ywNwvbl9l@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88850-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88850-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: 2019-01/txt/msg02567.txt.bz2
Content-length: 645

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

--- Comment #5 from Tamar Christina <tnfchris at gcc dot gnu.org> ---
So yeah it seems that there are three issues here:

1) We should probably have an r -> r alternative for *neon_mov.
2) The costs are now flipped from what they were before, for some reason the
VFP regs are now way more expensive.
3) reload shouldn't have ICEd since it says

r113: preferred GENERAL_REGS, alternative ALL_REGS, allocno ALL_REGS

so it hasn't excluded ALL_REGS as an alternative, which should have either
a) used the VPF register again or
b) spilled the register since we have a m -> r and r -> m pattern.
>From gcc-bugs-return-629759-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 14:34:22 2019
Return-Path: <gcc-bugs-return-629759-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10588 invoked by alias); 18 Jan 2019 14:34: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 10523 invoked by uid 55); 18 Jan 2019 14:34:18 -0000
From: "hjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/88587] ICE in expand_debug_locations, at cfgexpand.c:5450
Date: Fri, 18 Jan 2019 14:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 8.2.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88587-4-2lniIqenif@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88587-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88587-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: 2019-01/txt/msg02568.txt.bz2
Content-length: 844

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

--- Comment #14 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Fri Jan 18 14:33:46 2019
New Revision: 268079

URL: https://gcc.gnu.org/viewcvs?rev=268079&root=gcc&view=rev
Log:
Update PR middle-end/88587 tests

It is wrong to use -m32 in dg-options.  { target ia32 } should be used
instead.  Also add -fno-pic to g++.target/i386/pr88587.C since it is
invalid with PIC.

        PR middle-end/88587
        * g++.target/i386/pr88587.C (dg-do): Add { target ia32 }.
        (dg-options): Replace -m32 with -fno-pic.
        * gcc.target/i386/mvc13.c (dg-do): Add { target ia32 }.
        (dg-options): Remove -m32.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.target/i386/pr88587.C
    trunk/gcc/testsuite/gcc.target/i386/mvc13.c
>From gcc-bugs-return-629760-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 14:39:24 2019
Return-Path: <gcc-bugs-return-629760-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41722 invoked by alias); 18 Jan 2019 14:39: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 41677 invoked by uid 48); 18 Jan 2019 14:39:19 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/88910] New: FAIL: gcc.target/i386/pr88414.c 1 blank line(s) in output
Date: Fri, 18 Jan 2019 14:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-88910-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: 2019-01/txt/msg02569.txt.bz2
Content-length: 2035

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

            Bug ID: 88910
           Summary: FAIL: gcc.target/i386/pr88414.c 1 blank line(s) in
                    output
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

Executing on host: /export/gnu/import/git/gcc-test-intel64/bld/gcc/xgcc
-B/export/gnu/import/git/gcc-test-intel64/bld/gcc/
/export/gnu/import/git/gcc-test-intel64/src-trunk/gcc/testsuite/gcc.target/i386/pr88414.c
 -fpic -mcmodel=medium   -fno-diagnostics-show-caret
-fno-diagnostics-show-line-numbers -fdiagnostics-color=never   -O1 -ftrapv -S
-o pr88414.s    (timeout = 300)
spawn -ignore SIGHUP /export/gnu/import/git/gcc-test-intel64/bld/gcc/xgcc
-B/export/gnu/import/git/gcc-test-intel64/bld/gcc/
/export/gnu/import/git/gcc-test-intel64/src-trunk/gcc/testsuite/gcc.target/i386/pr88414.c
-fpic -mcmodel=medium -fno-diagnostics-show-caret
-fno-diagnostics-show-line-numbers -fdiagnostics-color=never -O1 -ftrapv -S -o
pr88414.s^M
/export/gnu/import/git/gcc-test-intel64/src-trunk/gcc/testsuite/gcc.target/i386/pr88414.c:
In function 'foo':^M
/export/gnu/import/git/gcc-test-intel64/src-trunk/gcc/testsuite/gcc.target/i386/pr88414.c:15:7:
error: 'asm' operand has impossible constraints^M
during RTL pass: reload^M
/export/gnu/import/git/gcc-test-intel64/src-trunk/gcc/testsuite/gcc.target/i386/pr88414.c:25:1:
internal compiler error: Maximum number of LRA assignment passes is achieved
(30)^M
^M
0xbf590d lra_assign(bool&)^M
        ../../src-trunk/gcc/lra-assigns.c:1695^M
0xbf02cd lra(_IO_FILE*)^M
        ../../src-trunk/gcc/lra.c:2521^M
0xba7e71 do_reload^M
        ../../src-trunk/gcc/ira.c:5475^M
0xba7e71 execute^M
        ../../src-trunk/gcc/ira.c:5659^M
Please submit a full bug report,^M
with preprocessed source if appropriate.^M
>From gcc-bugs-return-629761-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 14:48:56 2019
Return-Path: <gcc-bugs-return-629761-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66746 invoked by alias); 18 Jan 2019 14:48: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 66633 invoked by uid 48); 18 Jan 2019 14:48:49 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/88899] Derived type IO in conjunction with openmp fails with invalid memory read
Date: Fri, 18 Jan 2019 14:48: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-88899-4-NQnkyU1xYq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88899-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88899-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: 2019-01/txt/msg02570.txt.bz2
Content-length: 521

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-01-18
     Ever confirmed|0                           |1

--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed from 7.4 up to trunk (9.0).
>From gcc-bugs-return-629762-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 14:49:37 2019
Return-Path: <gcc-bugs-return-629762-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68347 invoked by alias); 18 Jan 2019 14:49: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 68306 invoked by uid 48); 18 Jan 2019 14:49:32 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug driver/88911] New: No "did you mean" for incorrect -dumpspecs option
Date: Fri, 18 Jan 2019 14:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: driver
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: redi 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 keywords bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-88911-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: 2019-01/txt/msg02571.txt.bz2
Content-length: 1529

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

            Bug ID: 88911
           Summary: No "did you mean" for incorrect -dumpspecs option
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: enhancement
          Priority: P3
         Component: driver
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
  Target Milestone: ---

tmp$ g++ q.cc -dump-spec
cc1plus: warning: unrecognized gcc debugging option: u
cc1plus: warning: unrecognized gcc debugging option: m
cc1plus: warning: unrecognized gcc debugging option: -
cc1plus: warning: unrecognized gcc debugging option: s
cc1plus: warning: unrecognized gcc debugging option: e
cc1plus: warning: unrecognized gcc debugging option: c
tmp$ g++ q.cc -dump-specs
cc1plus: warning: unrecognized gcc debugging option: u
cc1plus: warning: unrecognized gcc debugging option: m
cc1plus: warning: unrecognized gcc debugging option: -
cc1plus: warning: unrecognized gcc debugging option: s
cc1plus: warning: unrecognized gcc debugging option: e
cc1plus: warning: unrecognized gcc debugging option: c
cc1plus: warning: unrecognized gcc debugging option: s
tmp$ g++ q.cc -fdump-spec
cc1plus: error: unrecognized command line option '-fdump-spec'
tmp$ g++ q.cc -fdump-specs
cc1plus: error: unrecognized command line option '-fdump-specs'
tmp$ g++14 q.cc -fdumpspecs
g++: error: unrecognized command line option '-fdumpspecs'; did you mean
'-dumpspecs'?

Aha!
>From gcc-bugs-return-629763-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 14:50:43 2019
Return-Path: <gcc-bugs-return-629763-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69600 invoked by alias); 18 Jan 2019 14:50:42 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 69571 invoked by uid 48); 18 Jan 2019 14:50:38 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug driver/88911] No "did you mean" for incorrect -dumpspecs option
Date: Fri, 18 Jan 2019 14:50: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: 9.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: redi 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-88911-4-55DS2bv9M0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88911-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88911-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: 2019-01/txt/msg02572.txt.bz2
Content-length: 315

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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #0)
> tmp$ g++14 q.cc -fdumpspecs

Oops, ignore the "14" there, it's just a shell alias I use, but I missed one
instance that I meant to change to "g++"
>From gcc-bugs-return-629764-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 15:06:58 2019
Return-Path: <gcc-bugs-return-629764-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125902 invoked by alias); 18 Jan 2019 15:06:58 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 122437 invoked by uid 48); 18 Jan 2019 15:06:52 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/87064] [9 regression] libgomp.oacc-fortran/reduction-3.f90 fails starting with r263751
Date: Fri, 18 Jan 2019 15:06: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: 9.0
X-Bugzilla-Keywords: openacc, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc component
Message-ID: <bug-87064-4-tE5YdJh1Vn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87064-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87064-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: 2019-01/txt/msg02573.txt.bz2
Content-length: 5502

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dje at gcc dot gnu.org,
                   |                            |meissner at gcc dot gnu.org,
                   |                            |segher at gcc dot gnu.org
          Component|libgomp                     |target

--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Seems to be a powerpc64le backend bug or RA bug.
Reduced testcase for -fopenacc -O1:
program reduction_3
  implicit none
  integer, parameter    :: n = 10, vl = 32
  integer               :: i
  double precision      :: vresult, rv
  double precision, parameter :: e = 0.001
  double precision, dimension (n) :: array
  do i = 1, n
     array(i) = i
  end do
  rv = 0
  vresult = 0
  !$acc parallel vector_length(vl) copy(rv)
  !$acc loop reduction(max:rv) vector
  do i = 1, n
     rv = max (rv, array(i))
  end do
  !$acc end parallel
  do i = 1, n
     vresult = max (vresult, array(i))
  end do
  if (abs (rv - vresult) .ge. e) STOP 11
end program reduction_3

In *.optimized it looks all correct:
  <bb 3> [local count: 437450368]:
  # vect_M.23_45 = PHI <vect_cst__39(2), vect_M.27_34(3)>
  # ivtmp.34_3 = PHI <ivtmp.34_43(2), ivtmp.34_4(3)>
  _2 = (void *) ivtmp.34_3;
  vect__28.26_44 = MEM[base: _2, offset: 0B];
  vect_M.27_34 = MAX_EXPR <vect__28.26_44, vect_M.23_45>;
  ivtmp.34_4 = ivtmp.34_3 + 16;
  if (ivtmp.34_4 != _25)
    goto <bb 3>; [80.00%]
  else
    goto <bb 4>; [20.00%]

  <bb 4> [local count: 437450371]:
  stmp_M.28_8 = .REDUC_MAX (vect_M.27_34);
  *_10 = stmp_M.28_8;
and the loop indeed iterates properly and we end up with { 10.0, 9.0 } vector
which REDUC_MAX ifn should reduce to 10.0.
During early RTL opts it also looks correct:
(insn 20 19 21 4 (parallel [
            (set (reg:V2DF 134)
                (smax:V2DF (vec_concat:V2DF (vec_select:DF (reg:V2DF 128 [
vect_M.23 ])
                            (parallel [
                                    (const_int 1 [0x1])
                                ]))
                        (vec_select:DF (reg:V2DF 128 [ vect_M.23 ])
                            (parallel [
                                    (const_int 0 [0])
                                ])))
                    (reg:V2DF 128 [ vect_M.23 ])))
            (clobber (scratch:V2DF))
        ]) 1330 {vsx_reduc_smax_v2df}
     (nil))
(insn 21 20 22 4 (set (reg:DF 123 [ stmp_M.28 ])
        (vec_select:DF (reg:V2DF 134)
            (parallel [
                    (const_int 0 [0])
                ]))) 1219 {vsx_extract_v2df}
     (nil))
Then combine turns that into:
(insn 21 20 22 4 (parallel [
            (set (reg:DF 123 [ stmp_M.28 ])
                (vec_select:DF (smax:V2DF (vec_concat:V2DF (vec_select:DF
(reg:V2DF 128 [ vect_M.23 ])
                                (parallel [
                                        (const_int 1 [0x1])
                                    ]))
                            (vec_select:DF (reg:V2DF 128 [ vect_M.23 ])
                                (parallel [
                                        (const_int 0 [0])
                                    ])))
                        (reg:V2DF 128 [ vect_M.23 ]))
                    (parallel [
                            (const_int 1 [0x1])
                        ])))
            (clobber (scratch:DF))
        ]) 1336 {*vsx_reduc_smax_v2df_scalar}
     (expr_list:REG_DEAD (reg:V2DF 128 [ vect_M.23 ])
        (nil)))
That is then split into:
(insn 34 20 35 4 (set (reg:DF 137)
        (vec_select:DF (reg:V2DF 128 [ vect_M.23 ])
            (parallel [
                    (const_int 1 [0x1])
                ]))) -1
     (nil))
(insn 35 34 22 4 (set (reg:DF 123 [ stmp_M.28 ])
        (smax:DF (subreg:DF (reg:V2DF 128 [ vect_M.23 ]) 8)
            (reg:DF 137))) -1
     (nil))
at which point I'm already not sure if it is correct or not.  As I said, at
least
in the debugger it shows that the input to this .REDUC_MAX contains the value {
10, 9 }
is the vec_select extracting the second elt (i.e. 9.0) and (subreg 8) also the
second one?
In the end, that is what happens, the resulting assembly is:
   0x000000001000086c <+32>:    lxvd2x  vs0,0,r9
   0x0000000010000870 <+36>:    addi    r8,r1,-16
   0x0000000010000874 <+40>:    lxvd2x  vs12,0,r8
   0x0000000010000878 <+44>:    xxswapd vs12,vs12
   0x000000001000087c <+48>:    xvmaxdp vs0,vs12,vs0
   0x0000000010000880 <+52>:    xxswapd vs0,vs0
   0x0000000010000884 <+56>:    stxvd2x vs0,0,r8
   0x0000000010000888 <+60>:    xxswapd vs0,vs0
   0x000000001000088c <+64>:    addi    r9,r9,16
   0x0000000010000890 <+68>:    bdnz    0x1000086c <MAIN__._omp_fn.0+32>
=> 0x0000000010000894 <+72>:    lfd     f12,-8(r1)
   0x0000000010000898 <+76>:    xsmaxdp vs0,vs12,vs0
   0x000000001000089c <+80>:    stfd    f0,0(r10)
   0x00000000100008a0 <+84>:    blr
and at that point
x/2fg $r1-16
0x3fffffffed90: 10      9
p $vs0.v2_double
$6 = {10, 9}
p $vs12.v2_double
$7 = {8, 7}
Now, the lfd loads into f12 the second element (i.e. 9), in the debugger it
shows
p $vs12.v2_double
$8 = {0, 9}
after the lfd insn, and xsmaxdp {10, 9}, {0, 9} gives {0, 9} and that is what
we store.
So, does vsx_reduc_smax_v2df_scalar expander need adjustments for
little-endian?
>From gcc-bugs-return-629765-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 15:09:15 2019
Return-Path: <gcc-bugs-return-629765-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 424 invoked by alias); 18 Jan 2019 15:09: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 382 invoked by uid 48); 18 Jan 2019 15:09:10 -0000
From: "sje at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/88912] New: Fortran compiler segfaults when pre-include file is not found
Date: Fri, 18 Jan 2019 15:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sje at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-88912-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: 2019-01/txt/msg02574.txt.bz2
Content-length: 2172

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

            Bug ID: 88912
           Summary: Fortran compiler segfaults when pre-include file is
                    not found
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sje at gcc dot gnu.org
  Target Milestone: ---

I am using the new -pre-include=<file> option with Fortran and when the file I
am trying to preinclude does not exist the compiler segfaults.

% install/usr/bin/gfortran -fpre-include=/tmp/foo.h -Ofast -S  x.f90
<built-in>: internal compiler error: Segmentation fault
0xcb1f37 crash_signal
        /home/sellcey/gcc-vect-fortran/src/gcc/gcc/toplev.c:326
0x6ca5dc load_file
        /home/sellcey/gcc-vect-fortran/src/gcc/gcc/fortran/scanner.c:2481
0x6ca76b gfc_new_file()
        /home/sellcey/gcc-vect-fortran/src/gcc/gcc/fortran/scanner.c:2681
0x6f0b97 gfc_init
        /home/sellcey/gcc-vect-fortran/src/gcc/gcc/fortran/f95-lang.c:250
0x6164b3 lang_dependent_init
        /home/sellcey/gcc-vect-fortran/src/gcc/gcc/toplev.c:1929
0x6164b3 do_compile
        /home/sellcey/gcc-vect-fortran/src/gcc/gcc/toplev.c:2161
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.



% install/usr/bin/gfortran -v
Using built-in specs.
COLLECT_GCC=install/usr/bin/gfortran
COLLECT_LTO_WRAPPER=/home/sellcey/gcc-vect-fortran/install/usr/libexec/gcc/aarch64-linux-gnu/9.0.0/lto-wrapper
Target: aarch64-linux-gnu
Configured with: /home/sellcey/gcc-vect-fortran/src/gcc/configure
--prefix=/home/sellcey/gcc-vect-fortran/install/usr --target=aarch64-linux-gnu
--host=aarch64-linux-gnu --build=aarch64-linux-gnu
--enable-gnu-indirect-function
--with-sysroot=/home/sellcey/gcc-vect-fortran/install
--enable-languages=c,c++,fortran --disable-libsanitizer --disable-bootstrap
--enable-threads --enable-shared
Thread model: posix
gcc version 9.0.0 20190117 (experimental) (GCC)
>From gcc-bugs-return-629766-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 15:14:27 2019
Return-Path: <gcc-bugs-return-629766-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4498 invoked by alias); 18 Jan 2019 15:14: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 4436 invoked by uid 48); 18 Jan 2019 15:14:21 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/88912] Fortran compiler segfaults when pre-include file is not found
Date: Fri, 18 Jan 2019 15:14: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc assigned_to everconfirmed
Message-ID: <bug-88912-4-aRP3I7ICze@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88912-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88912-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: 2019-01/txt/msg02575.txt.bz2
Content-length: 647

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2019-01-18
                 CC|                            |marxin at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Mine.
>From gcc-bugs-return-629767-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 15:19:02 2019
Return-Path: <gcc-bugs-return-629767-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10129 invoked by alias); 18 Jan 2019 15:19:02 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 10038 invoked by uid 48); 18 Jan 2019 15:18:58 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/86926] [8/9 Regression] ICE for a recursive generic lambda
Date: Fri, 18 Jan 2019 15:19: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: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-86926-4-12uJYrQyoy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86926-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86926-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: 2019-01/txt/msg02576.txt.bz2
Content-length: 495

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

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

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

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed by r267859.  I'll add the testcase.
>From gcc-bugs-return-629768-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 15:31:54 2019
Return-Path: <gcc-bugs-return-629768-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91244 invoked by alias); 18 Jan 2019 15:31:53 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 91016 invoked by uid 48); 18 Jan 2019 15:31:47 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/88900] [9 Regression] 502.gcc_r SPEC benchmark miscompiles with LTO and PGO
Date: Fri, 18 Jan 2019 15:31: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: 9.0
X-Bugzilla-Keywords: needs-reduction
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status assigned_to
Message-ID: <bug-88900-4-WCFu35mIh1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88900-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88900-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: 2019-01/txt/msg02577.txt.bz2
Content-length: 4723

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|needs-bisection             |
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |marxin at gcc dot gnu.org

--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r263875:

Setting Up Run Directories
  Setting up 502.gcc_r refrate (ref) peak gcc7-m64 (1 copy):
run_peak_refrate_gcc7-m64.0002
Running Benchmarks
  Running 502.gcc_r refrate (ref) peak gcc7-m64 (1 copy) [2019-01-18 15:34:36]
Error with '/home/marxin/Programming/cpu2017/bin/specinvoke -d
/home/marxin/Programming/cpu2017/benchspec/CPU/502.gcc_r/run/run_peak_refrate_gcc7-m64.0002
-f compare.cmd -E -e compare.err -o compare.stdout'; no non-empty output files
exist
  Command returned exit code 1
****************************************
Contents of gcc-pp.opts-O2_-finline-limit_36000_-fpic.err
****************************************
gcc-pp.c: In function 'fibheap_delete_node':
gcc-pp.c:19958:49: warning: overflow in implicit constant conversion
gcc-pp.c: In function 'htab_mod_1':
gcc-pp.c:25469:7: warning: right shift count >= width of type
gcc-pp.c: At top level:
gcc-pp.c:463503:13: warning: 'compute_transp' used but never defined
gcc-pp.c:463518:12: warning: 'one_cprop_pass' used but never defined
gcc-pp.c:463534:12: warning: 'one_pre_gcse_pass' used but never defined
gcc-pp.c:463542:12: warning: 'one_code_hoisting_pass' used but never defined
gcc-pp.c:463551:25: warning: 'find_rtx_in_ldst' used but never defined
gcc-pp.c:463579:13: warning: 'store_motion' used but never defined
gcc-pp.c:463582:13: warning: 'free_modify_mem_tables' used but never defined
gcc-pp.c:463588:22: warning: 'is_too_expensive' used but never defined

****************************************
****************************************
Contents of
gcc-pp.opts-O3_-finline-limit_0_-fif-conversion_-fif-conversion2.err
****************************************
gcc-pp.c: In function 'fibheap_delete_node':
gcc-pp.c:19958:49: warning: overflow in implicit constant conversion
gcc-pp.c: In function 'htab_mod_1':
gcc-pp.c:25469:7: warning: right shift count >= width of type
gcc-pp.c: At top level:
gcc-pp.c:463503:13: warning: 'compute_transp' used but never defined
gcc-pp.c:463518:12: warning: 'one_cprop_pass' used but never defined
gcc-pp.c:463534:12: warning: 'one_pre_gcse_pass' used but never defined
gcc-pp.c:463542:12: warning: 'one_code_hoisting_pass' used but never defined
gcc-pp.c:463551:25: warning: 'find_rtx_in_ldst' used but never defined
gcc-pp.c:463579:13: warning: 'store_motion' used but never defined
gcc-pp.c:463582:13: warning: 'free_modify_mem_tables' used but never defined
gcc-pp.c:463588:22: warning: 'is_too_expensive' used but never defined

****************************************
****************************************
Contents of gcc-smaller.opts-O3_-fipa-pta.err
****************************************
gcc-smaller.c: In function 'fibheap_delete_node':
gcc-smaller.c:19958:49: warning: overflow in implicit constant conversion
gcc-smaller.c: In function 'htab_mod_1':
gcc-smaller.c:25469:7: warning: right shift count >= width of type

****************************************
****************************************
Contents of ref32.opts-O3_-fselective-scheduling_-fselective-scheduling2.err
****************************************
ref32.c:6213:17: warning: conflicting types for built-in function 'imaxabs'

****************************************
****************************************
Contents of ref32.opts-O5.err
****************************************
ref32.c:6213:17: warning: conflicting types for built-in function 'imaxabs'

****************************************
*** Miscompare of gcc-smaller.opts-O3_-fipa-pta.s; for details see
   
/home/marxin/Programming/cpu2017/benchspec/CPU/502.gcc_r/run/run_peak_refrate_gcc7-m64.0002/gcc-smaller.opts-O3_-fipa-pta.s.mis
*** Miscompare of gcc-pp.opts-O2_-finline-limit_36000_-fpic.s; for details see
   
/home/marxin/Programming/cpu2017/benchspec/CPU/502.gcc_r/run/run_peak_refrate_gcc7-m64.0002/gcc-pp.opts-O2_-finline-limit_36000_-fpic.s.mis
*** Miscompare of
gcc-pp.opts-O3_-finline-limit_0_-fif-conversion_-fif-conversion2.s; for details
see
   
/home/marxin/Programming/cpu2017/benchspec/CPU/502.gcc_r/run/run_peak_refrate_gcc7-m64.0002/gcc-pp.opts-O3_-finline-limit_0_-fif-conversion_-fif-conversion2.s.mis

I'll work on that next week and I'll try find the problem.
>From gcc-bugs-return-629769-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 15:33:41 2019
Return-Path: <gcc-bugs-return-629769-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92869 invoked by alias); 18 Jan 2019 15:33: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 92754 invoked by uid 48); 18 Jan 2019 15:33:36 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/88912] Fortran compiler segfaults when pre-include file is not found
Date: Fri, 18 Jan 2019 15:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-88912-4-3oj6HxJ8BK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88912-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88912-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: 2019-01/txt/msg02578.txt.bz2
Content-length: 602

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

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

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Note, f951 I think supports just a single of these options, so it is certainly
not recommended to use it for users, as the driver will add its option too on
targets where it is supported and override whatever user wrote.
>From gcc-bugs-return-629770-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 15:43:11 2019
Return-Path: <gcc-bugs-return-629770-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73345 invoked by alias); 18 Jan 2019 15:43: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 73275 invoked by uid 48); 18 Jan 2019 15:43:05 -0000
From: "sje at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/88912] Fortran compiler segfaults when pre-include file is not found
Date: Fri, 18 Jan 2019 15:43: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sje at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88912-4-5kBNVeYLc5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88912-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88912-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: 2019-01/txt/msg02579.txt.bz2
Content-length: 299

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

--- Comment #3 from Steve Ellcey <sje at gcc dot gnu.org> ---
It is quite possible I am using the option incorrectly (though that should not
result in a segfault of course).  Should some other flag be adding this to the
command line for me?
>From gcc-bugs-return-629771-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 15:50:35 2019
Return-Path: <gcc-bugs-return-629771-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84209 invoked by alias); 18 Jan 2019 15:50: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 84150 invoked by uid 48); 18 Jan 2019 15:50:29 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/86926] [8/9 Regression] ICE for a recursive generic lambda
Date: Fri, 18 Jan 2019 15:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86926-4-a5KuMwhJrO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86926-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86926-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: 2019-01/txt/msg02580.txt.bz2
Content-length: 140

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

--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
But 8 still ICEs.
>From gcc-bugs-return-629772-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 15:52:31 2019
Return-Path: <gcc-bugs-return-629772-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88002 invoked by alias); 18 Jan 2019 15:52: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 87929 invoked by uid 48); 18 Jan 2019 15:52:27 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/88912] Fortran compiler segfaults when pre-include file is not found
Date: Fri, 18 Jan 2019 15:52: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88912-4-KU16gIrgB8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88912-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88912-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: 2019-01/txt/msg02581.txt.bz2
Content-length: 299

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
#define TARGET_F951_OPTIONS "%{!nostdinc:\
  %:fortran-preinclude-file(-fpre-include= math-vector-fortran.h finclude%s/)}"
in config/gnu-user.h adds that if the file is found.
>From gcc-bugs-return-629773-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 16:01:53 2019
Return-Path: <gcc-bugs-return-629773-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119428 invoked by alias); 18 Jan 2019 16:01:53 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 119343 invoked by uid 48); 18 Jan 2019 16:01:48 -0000
From: "yangyibiao at nju dot edu.cn" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/37845] gcc ignores FP_CONTRACT pragma set to OFF
Date: Fri, 18 Jan 2019 16:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.4.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: yangyibiao at nju dot edu.cn
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: cc attachments.created
Message-ID: <bug-37845-4-bMaQa2jQQw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-37845-4@http.gcc.gnu.org/bugzilla/>
References: <bug-37845-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: 2019-01/txt/msg02582.txt.bz2
Content-length: 2596

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

Yibiao Yang <yangyibiao at nju dot edu.cn> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yangyibiao at nju dot edu.cn

--- Comment #7 from Yibiao Yang <yangyibiao at nju dot edu.cn> ---
Created attachment 45464
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45464&action=edit
[GCOV] Wrong frequencies when a global variable is in a while expression in
gcov

$ 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.3.0-27ubuntu1~18.04' --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.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04)

$ cat small.c
int b;

void main()
{
    int c = 0;
    while (b) {
        c = 1;
    }
}

$ gcc small.c --coverage; ./a.out; gcov small.c; cat small.c.gcov
File 'small.c'
Lines executed:80.00% of 5
Creating 'small.c.gcov'

        -:    0:Source:small.c
        -:    0:Graph:small.gcno
        -:    0:Data:small.gcda
        -:    0:Runs:1
        -:    0:Programs:1
        -:    1:int b;
        -:    2:
        1:    3:void main()
        -:    4:{
        1:    5:    int c = 0;
        2:    6:    while (b) {
    #####:    7:        c = 1;
        -:    8:    }
        1:    9:}


We can find that Line #6 is wrongly marked as executed twice.
>From gcc-bugs-return-629774-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 16:04:55 2019
Return-Path: <gcc-bugs-return-629774-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31122 invoked by alias); 18 Jan 2019 16:04: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 31057 invoked by uid 48); 18 Jan 2019 16:04:50 -0000
From: "yangyibiao at nju dot edu.cn" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug gcov-profile/88913] New: [GCOV] Wrong frequencies when a global variable is in a while expression in gcov
Date: Fri, 18 Jan 2019 16:04: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: 7.3.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 cc target_milestone
Message-ID: <bug-88913-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: 2019-01/txt/msg02583.txt.bz2
Content-length: 2563

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

            Bug ID: 88913
           Summary: [GCOV] Wrong frequencies when a global variable is in
                    a while expression in gcov
           Product: gcc
           Version: 7.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: gcov-profile
          Assignee: unassigned at gcc dot gnu.org
          Reporter: yangyibiao at nju dot edu.cn
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

$ 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.3.0-27ubuntu1~18.04' --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.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04)

$ cat small.c
int b;

void main()
{
    int c = 0;
    while (b) {
        c = 1;
    }
}

$ gcc small.c --coverage; ./a.out; gcov small.c; cat small.c.gcov
File 'small.c'
Lines executed:80.00% of 5
Creating 'small.c.gcov'

        -:    0:Source:small.c
        -:    0:Graph:small.gcno
        -:    0:Data:small.gcda
        -:    0:Runs:1
        -:    0:Programs:1
        -:    1:int b;
        -:    2:
        1:    3:void main()
        -:    4:{
        1:    5:    int c = 0;
        2:    6:    while (b) {
    #####:    7:        c = 1;
        -:    8:    }
        1:    9:}


We can find that Line #6 is wrongly marked as executed twice.
>From gcc-bugs-return-629775-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 16:09:12 2019
Return-Path: <gcc-bugs-return-629775-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38852 invoked by alias); 18 Jan 2019 16:09: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 38762 invoked by uid 48); 18 Jan 2019 16:09:06 -0000
From: "yangyibiao at nju dot edu.cn" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug gcov-profile/88914] New: [GCOV] Wrong frequencies when unreachable statements within the body of the for loop in gcov
Date: Fri, 18 Jan 2019 16:09: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: 7.3.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 cc target_milestone
Message-ID: <bug-88914-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: 2019-01/txt/msg02584.txt.bz2
Content-length: 3088

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

            Bug ID: 88914
           Summary: [GCOV] Wrong frequencies when unreachable statements
                    within the body of the for loop in gcov
           Product: gcc
           Version: 7.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: gcov-profile
          Assignee: unassigned at gcc dot gnu.org
          Reporter: yangyibiao at nju dot edu.cn
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

$ 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.3.0-27ubuntu1~18.04' --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.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04)

$ cat small.c
int bar(a) { return a*a + 1; }

int main()
{
    for (int i = 0; i < 10; i++) {
        if (bar(i)) {
            continue;
        }

        if (i == 0) {
            abort();
        } else {
            exit(0);
        }
    }
}

$ gcc small.c -w --coverage; ./a.out; gcov small.c; cat small.c.gcov
File 'small.c'
Lines executed:62.50% of 8
Creating 'small.c.gcov'

        -:    0:Source:small.c
        -:    0:Graph:small.gcno
        -:    0:Data:small.gcda
        -:    0:Runs:1
        -:    0:Programs:1
       10:    1:int bar(a) { return a*a + 1; }
        -:    2:
        1:    3:int main()
        -:    4:{
       22:    5:    for (int i = 0; i < 10; i++) {
       10:    6:        if (bar(i)) {
       10:    7:            continue;
        -:    8:        }
        -:    9:
    #####:   10:        if (i == 0) {
    #####:   11:            abort();
        -:   12:        } else {
    #####:   13:            exit(0);
        -:   14:        }
        -:   15:    }
        -:   16:}



We can found that Line #5 is wrongly marked as executed much more times. 

When Line #10 to Line #14 are removed. The result is correct.
>From gcc-bugs-return-629776-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 16:31:38 2019
Return-Path: <gcc-bugs-return-629776-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85850 invoked by alias); 18 Jan 2019 16:31: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 82890 invoked by uid 48); 18 Jan 2019 16:31:33 -0000
From: "ktkachov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88915] New: Try smaller vectorisation factors in scalar fallback
Date: Fri, 18 Jan 2019 16:31: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: 9.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ktkachov 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 keywords bug_severity priority component assigned_to reporter blocked target_milestone
Message-ID: <bug-88915-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: 2019-01/txt/msg02585.txt.bz2
Content-length: 3138

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

            Bug ID: 88915
           Summary: Try smaller vectorisation factors in scalar fallback
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ktkachov at gcc dot gnu.org
            Blocks: 53947
  Target Milestone: ---

The get_ref hot function in 525.x264_r inlines a hot helper that performs a
vector average:
void pixel_avg( unsigned char *dst, int i_dst_stride,
                               unsigned char *src1, int i_src1_stride,
                               unsigned char *src2, int i_src2_stride,
                               int i_width, int i_height )
 {
     for( int y = 0; y < i_height; y++ )
     {
         for( int x = 0; x < i_width; x++ )
             dst[x] = ( src1[x] + src2[x] + 1 ) >> 1;
         dst += i_dst_stride;
         src1 += i_src1_stride;
         src2 += i_src2_stride;
     }
 }

GCC 9 already knows how to generate vector average instructions (PR 85694).
For aarch64 it generates a 16x vectorised loop.
Runtime profiling of the arguments to this function, however, show that the
>50% of the time the i_width has value 8 during runtime and therefore the
vector loop is skipped in favour of a scalar fallback:
32.07%  40ed2c          ldrb    w3, [x0,x5]
11.41%  40ed30          ldrb    w11, [x4,x5]
        40ed34          add     w3, w3, w11
        40ed38          add     w3, w3, #0x1
        40ed3c          asr     w3, w3, #1
0.71%   40ed40          strb    w3, [x2,x5]
        40ed44          add     x5, x5, #0x1
        40ed48          cmp     w6, w5
        40ed4c          b.gt    <loop>

The most frequent runtime combinations of inputs to this function are:
29240545 i_height: 8, i_width: 8, i_dst_stride: 16, i_src1_stride: 1344,
i_src2_stride: 1344
22714355 i_height: 16, i_width: 16, i_dst_stride: 16, i_src1_stride: 1344,
i_src2_stride: 1344
19669512 i_height: 8, i_width: 8, i_dst_stride: 16, i_src1_stride: 704,
i_src2_stride: 704
3689216 i_height: 16, i_width: 8, i_dst_stride: 16, i_src1_stride: 1344,
i_src2_stride: 1344
3670639 i_height: 8, i_width: 16, i_dst_stride: 16, i_src1_stride: 1344,
i_src2_stride: 1344

That's a shame. AArch64 supports the V8QI form of the vector average
instruction (and advertises it through optabs).
With --param vect-epilogues-nomask=1 we already generate something like:
if (bytes_left > 16)
{
  while (bytes_left > 16)
    16x_vectorised;
  if (bytes_left > 8)
    8x_vectorised;
  unrolled_scalar_epilogue;
}
else
  scalar_loop;

Could we perhaps generate:
  while (bytes_left > 16)
    16x_vectorised;
  if (bytes_left > 8)
    8x_vectorised;
  unrolled_scalar_epilogue; // or keep it as a rolled scalar_loop to save on
codesize?

Basically I'm looking for a way to take advantage of the 8x vectorised form.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53947
[Bug 53947] [meta-bug] vectorizer missed-optimizations
>From gcc-bugs-return-629777-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 16:34:44 2019
Return-Path: <gcc-bugs-return-629777-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40935 invoked by alias); 18 Jan 2019 16:34: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 40295 invoked by uid 48); 18 Jan 2019 16:34:38 -0000
From: "jamborm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/84481] [8/9 Regression] 429.mcf with -O2 regresses by ~6% and ~4%, depending on tuning, on Zen compared to GCC 7.2
Date: Fri, 18 Jan 2019 16:34: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: jamborm 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.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-84481-4-sIox1jZvFJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-84481-4@http.gcc.gnu.org/bugzilla/>
References: <bug-84481-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: 2019-01/txt/msg02586.txt.bz2
Content-length: 304

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

--- Comment #8 from Martin Jambor <jamborm at gcc dot gnu.org> ---
And even my own measurements show 6% slowdown at both -O2 and -Ofast with
generic march/tuning against GCC 7 and now also 5% slowdown at -Ofast and
native march/tuning against GCC 8.
>From gcc-bugs-return-629778-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 16:43:33 2019
Return-Path: <gcc-bugs-return-629778-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78538 invoked by alias); 18 Jan 2019 16:43:32 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 77949 invoked by uid 48); 18 Jan 2019 16:43:27 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/87064] [9 regression] libgomp.oacc-fortran/reduction-3.f90 fails starting with r263751
Date: Fri, 18 Jan 2019 16: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: 9.0
X-Bugzilla-Keywords: openacc, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-87064-4-Rb9zmr4iTC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87064-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87064-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: 2019-01/txt/msg02587.txt.bz2
Content-length: 169

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

--- Comment #12 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Yes, I think so (just the vec_select arg?)
>From gcc-bugs-return-629779-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 16:43:41 2019
Return-Path: <gcc-bugs-return-629779-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79566 invoked by alias); 18 Jan 2019 16:43:41 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 78718 invoked by uid 55); 18 Jan 2019 16:43:33 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/86926] [8/9 Regression] ICE for a recursive generic lambda
Date: Fri, 18 Jan 2019 16:43: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: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-86926-4-y8rTwsNCeV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86926-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86926-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: 2019-01/txt/msg02588.txt.bz2
Content-length: 451

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

--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Fri Jan 18 16:42:57 2019
New Revision: 268080

URL: https://gcc.gnu.org/viewcvs?rev=268080&root=gcc&view=rev
Log:
        PR c++/86926
        * g++.dg/cpp1z/constexpr-lambda23.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1z/constexpr-lambda23.C
Modified:
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-629780-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 16:44:21 2019
Return-Path: <gcc-bugs-return-629780-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1927 invoked by alias); 18 Jan 2019 16:44:21 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 1817 invoked by uid 48); 18 Jan 2019 16:44:17 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/86926] [8 Regression] ICE for a recursive generic lambda
Date: Fri, 18 Jan 2019 16:44: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: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to short_desc
Message-ID: <bug-86926-4-j3WJwuItuS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86926-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86926-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: 2019-01/txt/msg02589.txt.bz2
Content-length: 529

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEW
           Assignee|mpolacek at gcc dot gnu.org        |unassigned at gcc dot gnu.org
            Summary|[8/9 Regression] ICE for a  |[8 Regression] ICE for a
                   |recursive generic lambda    |recursive generic lambda
>From gcc-bugs-return-629783-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 16:46:17 2019
Return-Path: <gcc-bugs-return-629783-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4801 invoked by alias); 18 Jan 2019 16:46:17 -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 3778 invoked by uid 48); 18 Jan 2019 16:45:48 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88044] [9 regression] gfortran.dg/transfer_intrinsic_3.f90 hangs after r266171
Date: Fri, 18 Jan 2019 16:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-88044-4-RMvXWEhkTA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88044-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88044-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: 2019-01/txt/msg02591.txt.bz2
Content-length: 2423

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

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

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

--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Between r266170 and r266171 the difference was in veclower21 dump with -O3:
--- transfer_intrinsic_3.f90.168t.veclower21_   2019-01-18 16:34:47.478873237
+0100
+++ transfer_intrinsic_3.f90.168t.veclower21    2019-01-18 16:35:09.503515118
+0100
@@ -370,14 +370,7 @@ main (integer(kind=4) argc, character(ki
   __builtin_free (_27);
   parm.10 ={v} {CLOBBER};
   ivtmp.52_75 = ivtmp.52_82 + 1;
-  if (ivtmp.52_75 == 3)
-    goto <bb 19>; [12.36%]
-  else
-    goto <bb 5>; [87.64%]
-
-  <bb 19> [local count: 1069422300]:
-  __builtin_free (_7);
-  return 0;
+  goto <bb 5>; [100.00%]

 }

and, if I revert the r266171 change on current trunk, the difference between
f951 with the patch reverted and vanilla trunk is (again -O3,
powerpc64le-linux):
--- transfer_intrinsic_3.f90.161t.cunroll_      2019-01-18 17:14:06.625536698
+0100
+++ transfer_intrinsic_3.f90.161t.cunroll       2019-01-18 17:14:24.992238353
+0100
@@ -55,8 +55,10 @@ Number of blocks in CFG: 46
 Number of blocks to update: 11 ( 24%)


+Removing basic block 21
 Removing basic block 32
 Removing basic block 41
+Merging blocks 20 and 23
 Merging blocks 30 and 33
 Removing basic block 34
 Removing basic block 36
@@ -178,8 +180,8 @@ main (integer(kind=4) argc, character(ki
   pretmp_65 = &MEM[(character(kind=1)[0:][1:1] *)_7][0];

   <bb 7> [local count: 8656061039]:
-  # n_63 = PHI <0(30), _28(23)>
-  # ivtmp_13 = PHI <4(30), ivtmp_31(23)>
+  # n_63 = PHI <0(30), _28(20)>
+  # ivtmp_13 = PHI <4(30), ivtmp_31(20)>
   _19 = n_63 + -1;
   _20 = (integer(kind=8)) _19;
   _22 = MAX_EXPR <_20, 0>;
@@ -264,18 +266,8 @@ main (integer(kind=4) argc, character(ki
   parm.10 ={v} {CLOBBER};
   _28 = n_63 + 1;
   ivtmp_31 = ivtmp_13 - 1;
-  if (ivtmp_31 == 0)
-    goto <bb 21>; [12.36%]
-  else
-    goto <bb 23>; [87.64%]
-
-  <bb 23> [local count: 7582748748]:
   goto <bb 7>; [100.00%]

-  <bb 21> [local count: 1069422300]:
-  __builtin_free (_7);
-  return 0;
-
 }


so in both cases, the loop condition is optimized out.
>From gcc-bugs-return-629781-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 16:46:12 2019
Return-Path: <gcc-bugs-return-629781-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3953 invoked by alias); 18 Jan 2019 16:46: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 3771 invoked by uid 48); 18 Jan 2019 16:45:48 -0000
From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/88423] [9 Regression] ICE in begin_move_insn, at sched-ebb.c:175
Date: Fri, 18 Jan 2019 16:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-checking, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dmalcolm at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-88423-4-R9ZYiNK6c6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88423-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88423-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: 2019-01/txt/msg02590.txt.bz2
Content-length: 527

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

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

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

--- Comment #5 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Candidate patch: https://gcc.gnu.org/ml/gcc-patches/2019-01/msg01084.html
>From gcc-bugs-return-629782-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 18 16:46:12 2019
Return-Path: <gcc-bugs-return-629782-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3994 invoked by alias); 18 Jan 2019 16:46:09 -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 3883 invoked by uid 89); 18 Jan 2019 16:45:58 -0000
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=4.8 required=5.0 testsºYES_50,HTML_MESSAGE,LIKELY_SPAM_BODY,LIKELY_SPAM_SUBJECT,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS,T_FILL_THIS_FORM_SHORT autolearn=no version=3.3.2 spammyïforts, H*M:COM, H*MI:COM, Industry
X-HELO: IND01-MA1-obe.outbound.protection.outlook.com
Received: from mail-eopbgr1380084.outbound.protection.outlook.com (HELO IND01-MA1-obe.outbound.protection.outlook.com) (40.107.138.84) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 18 Jan 2019 16:45:53 +0000
Received: from PN1PR0101MB1357.INDPRD01.PROD.OUTLOOK.COM (52.134.161.19) by PN1PR0101MB1232.INDPRD01.PROD.OUTLOOK.COM (52.134.160.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1537.26; Fri, 18 Jan 2019 16:45:49 +0000
Received: from PN1PR0101MB1357.INDPRD01.PROD.OUTLOOK.COM ([fe80::c1f:c2a8:edd3:2217]) by PN1PR0101MB1357.INDPRD01.PROD.OUTLOOK.COM ([fe80::c1f:c2a8:edd3:2217%2]) with mapi id 15.20.1537.028; Fri, 18 Jan 2019 16:45:49 +0000
From: Meghan Hudson <meghan.hudson@megadatasol.com>
To: "gcc-bugs@gcc.gnu.org" <gcc-bugs@gcc.gnu.org>
Subject: 3DS Users Contact List
Date: Fri, 18 Jan 2019 16:46:00 -0000
Message-ID: <PN1PR0101MB13574EB0BDC046CC0DBC5B87F69C0@PN1PR0101MB1357.INDPRD01.PROD.OUTLOOK.COM>
authentication-results: spf=none (sender IP is ) smtp.mailfrom=meghan.hudson@megadatasol.com;
received-spf: None (protection.outlook.com: megadatasol.com does not designate permitted sender hosts)
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-SW-Source: 2019-01/txt/msg02592.txt.bz2
Content-length: 756

Hi,



Hope you're having a great day!



I just wanted to know if you're looking to acquire 3DS Users Contact List for your marketing efforts?



We also have other software users like: Autodesk, PTC, SolidWorks, ANSYS, Siemens, Capgemini, SAP SE, Altair Engineering, IBM, and many more...



Information Field: Names, Title, Email, Phone, Company Name, Company URL, Company physical address, SIC Code, Industry and Company Size (Revenue and Employee).



Kindly review and let me know of your target interest so that I can get back to you with the exact counts and sample file.



Do let me know if you have any questions for me.



Regards,

Meghan Hudson

Database Executive

If you do not wish to receive these emails. Please respond Exit.


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

* [Bug target/61593] Support '#pragma mark - foo' on non-Darwin targets (by simply ignoring it without warning)
  2014-06-24 15:58 [Bug c/61593] New: Support '#pragma mark - foo' (by simply ignoring it without warning) sean@rogue-research.com
  2019-01-17  4:20 ` [Bug target/61593] Support '#pragma mark - foo' on non-Darwin targets " egallager at gcc dot gnu.org
@ 2020-05-07 11:56 ` jakub at gcc dot gnu.org
  2020-07-23  6:52 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-05-07 11:56 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.0                        |10.2

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

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

* [Bug target/61593] Support '#pragma mark - foo' on non-Darwin targets (by simply ignoring it without warning)
  2014-06-24 15:58 [Bug c/61593] New: Support '#pragma mark - foo' (by simply ignoring it without warning) sean@rogue-research.com
  2019-01-17  4:20 ` [Bug target/61593] Support '#pragma mark - foo' on non-Darwin targets " egallager at gcc dot gnu.org
  2020-05-07 11:56 ` jakub at gcc dot gnu.org
@ 2020-07-23  6:52 ` rguenth at gcc dot gnu.org
  2021-04-08 12:02 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-07-23  6:52 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.2                        |10.3

--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10.2 is released, adjusting target milestone.

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

* [Bug target/61593] Support '#pragma mark - foo' on non-Darwin targets (by simply ignoring it without warning)
  2014-06-24 15:58 [Bug c/61593] New: Support '#pragma mark - foo' (by simply ignoring it without warning) sean@rogue-research.com
                   ` (2 preceding siblings ...)
  2020-07-23  6:52 ` rguenth at gcc dot gnu.org
@ 2021-04-08 12:02 ` rguenth at gcc dot gnu.org
  2022-06-28 10:31 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-04-08 12:02 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.3                        |10.4

--- Comment #11 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10.3 is being released, retargeting bugs to GCC 10.4.

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

* [Bug target/61593] Support '#pragma mark - foo' on non-Darwin targets (by simply ignoring it without warning)
  2014-06-24 15:58 [Bug c/61593] New: Support '#pragma mark - foo' (by simply ignoring it without warning) sean@rogue-research.com
                   ` (3 preceding siblings ...)
  2021-04-08 12:02 ` rguenth at gcc dot gnu.org
@ 2022-06-28 10:31 ` jakub at gcc dot gnu.org
  2022-11-04 20:29 ` redi at gcc dot gnu.org
  2023-07-07  7:27 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-06-28 10:31 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.4                        |10.5

--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 10.4 is being released, retargeting bugs to GCC 10.5.

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

* [Bug target/61593] Support '#pragma mark - foo' on non-Darwin targets (by simply ignoring it without warning)
  2014-06-24 15:58 [Bug c/61593] New: Support '#pragma mark - foo' (by simply ignoring it without warning) sean@rogue-research.com
                   ` (4 preceding siblings ...)
  2022-06-28 10:31 ` jakub at gcc dot gnu.org
@ 2022-11-04 20:29 ` redi at gcc dot gnu.org
  2023-07-07  7:27 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2022-11-04 20:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #13 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Eric Gallager from comment #5)
> It should be pretty easy; in config/darwin.h #pragma mark is registered as
> part of the DARWIN_REGISTER_TARGET_PRAGMAS() macro like this:
> 
> if (!flag_preprocess_only)					\
>       cpp_register_pragma (parse_in, NULL, "mark",		\
> 			   darwin_pragma_ignore, false);
> 
> ...and then darwin_pragma_ignore() is a simple no-op declared in
> config/darwin-protos.h and defined in config/darwin-c.c. So I guess it'd
> just have to be re-titled and moved somewhere generic?

I looked into doing this as a follow-up to my PR 85487 patch. However, the
definition of c_register_pragma in gcc/c-family/c-pragma.cc says:

/* Front-end wrappers for pragma registration to avoid dragging
   cpplib.h in almost everywhere.  */

So I don't think we want to include cpplib.h in that file, which means that it
can't make the same call to cpp_register_pragma.

I don't know the reason for treating that pragma differently from the others
(this appears to be the only use of cpp_register_pragma in the whole of GCC!),
so I don't want to change it. That means I won't be tackling this one myself.

Maybe it could just use c_register_pragmas, or maybe including cpplib.h in
c-pragma.cc is OK.

If somebody else wants to, my patch for PR 85487 (which I'm going to re-propose
soon) adds a target-independent handle_pragma_ignore that could be used for
this, once the issue above is cleared up.

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

* [Bug target/61593] Support '#pragma mark - foo' on non-Darwin targets (by simply ignoring it without warning)
  2014-06-24 15:58 [Bug c/61593] New: Support '#pragma mark - foo' (by simply ignoring it without warning) sean@rogue-research.com
                   ` (5 preceding siblings ...)
  2022-11-04 20:29 ` redi at gcc dot gnu.org
@ 2023-07-07  7:27 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07  7:27 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.5                        |---

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

end of thread, other threads:[~2023-07-07  7:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-24 15:58 [Bug c/61593] New: Support '#pragma mark - foo' (by simply ignoring it without warning) sean@rogue-research.com
2019-01-17  4:20 ` [Bug target/61593] Support '#pragma mark - foo' on non-Darwin targets " egallager at gcc dot gnu.org
2020-05-07 11:56 ` jakub at gcc dot gnu.org
2020-07-23  6:52 ` rguenth at gcc dot gnu.org
2021-04-08 12:02 ` rguenth at gcc dot gnu.org
2022-06-28 10:31 ` jakub at gcc dot gnu.org
2022-11-04 20:29 ` redi at gcc dot gnu.org
2023-07-07  7:27 ` rguenth at gcc dot gnu.org

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