public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds"
@ 2013-02-26  9:48 amylaar at gcc dot gnu.org
  2013-02-26 10:18 ` [Bug tree-optimization/56456] " rguenth at gcc dot gnu.org
                   ` (77 more replies)
  0 siblings, 78 replies; 79+ messages in thread
From: amylaar at gcc dot gnu.org @ 2013-02-26  9:48 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56456
           Summary: [meta-bug] bogus warning when inlining: "array
                    subscript is above array bounds"
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Keywords: meta-bug
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: amylaar@gcc.gnu.org
        Depends on: 35392, 38480, 41847, 45180, 45978, 47418, 53198


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

* [Bug tree-optimization/56456] [meta-bug] bogus warning when inlining: "array subscript is above array bounds"
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
@ 2013-02-26 10:18 ` rguenth at gcc dot gnu.org
  2014-06-12 13:07 ` [Bug tree-optimization/56456] [meta-bug] bogus warning when inlining or unrolling: " rguenth at gcc dot gnu.org
                   ` (76 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-02-26 10:18 UTC (permalink / raw)
  To: gcc-bugs


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-02-26
     Ever Confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> 2013-02-26 10:18:08 UTC ---
Confirmed.  Thanks for adding this meta-bug ...

General note: most of these bugs are symptoms for missed VRP opportunities
(though sometimes very hard to unleash).


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

* [Bug tree-optimization/56456] [meta-bug] bogus warning when inlining or unrolling: "array subscript is above array bounds"
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
  2013-02-26 10:18 ` [Bug tree-optimization/56456] " rguenth at gcc dot gnu.org
@ 2014-06-12 13:07 ` rguenth at gcc dot gnu.org
  2015-02-24 14:05 ` rguenth at gcc dot gnu.org
                   ` (75 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-06-12 13:07 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 53198 Summary: [4.7 Regression] gcc wrongly emits "array subscript is above array bounds" for simple arrays
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53198

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


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

* [Bug tree-optimization/56456] [meta-bug] bogus warning when inlining or unrolling: "array subscript is above array bounds"
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
  2013-02-26 10:18 ` [Bug tree-optimization/56456] " rguenth at gcc dot gnu.org
  2014-06-12 13:07 ` [Bug tree-optimization/56456] [meta-bug] bogus warning when inlining or unrolling: " rguenth at gcc dot gnu.org
@ 2015-02-24 14:05 ` rguenth at gcc dot gnu.org
  2019-03-18 23:49 ` [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds msebor at gcc dot gnu.org
                   ` (74 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-02-24 14:05 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 56273 Summary: [4.8 regression] Bogus -Warray-bounds warning
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56273

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


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

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2015-02-24 14:05 ` rguenth at gcc dot gnu.org
@ 2019-03-18 23:49 ` msebor at gcc dot gnu.org
  2020-04-13 20:27 ` msebor at gcc dot gnu.org
                   ` (73 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2019-03-18 23:49 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: 1654580 bytes --]

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

Bug 89720 Summary: [9 Regression] Spurious -Warray-bounds warning on a range with max < min
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89720

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-637834-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 18 23:49:25 2019
Return-Path: <gcc-bugs-return-637834-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47832 invoked by alias); 18 Mar 2019 23:49: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 47790 invoked by uid 55); 18 Mar 2019 23:49:22 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89720] [9 Regression] Spurious -Warray-bounds warning on a range with max < min
Date: Mon, 18 Mar 2019 23:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89720-4-aS5azVUb5j@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89720-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89720-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02128.txt.bz2
Content-length: 788

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

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Mon Mar 18 23:48:50 2019
New Revision: 269785

URL: https://gcc.gnu.org/viewcvs?rev=269785&root=gcc&view=rev
Log:
PR tree-optimization/89720 - Spurious -Warray-bounds warning on a range with
max < min

gcc/ChangeLog:

        PR tree-optimization/89720
        * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
        more conservatively, the same as anti-range.

gcc/testsuite/ChangeLog:

        PR tree-optimization/89720
        * gcc.dg/Warray-bounds-42.c: New test.


Added:
    trunk/gcc/testsuite/gcc.dg/Warray-bounds-42.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vrp.c
>From gcc-bugs-return-637835-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 18 23:49:45 2019
Return-Path: <gcc-bugs-return-637835-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48685 invoked by alias); 18 Mar 2019 23:49: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 48604 invoked by uid 48); 18 Mar 2019 23:49:42 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89720] [9 Regression] Spurious -Warray-bounds warning on a range with max < min
Date: Mon, 18 Mar 2019 23:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: diagnostic, 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: P1
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-89720-4-IUjXfeJIYP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89720-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89720-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02129.txt.bz2
Content-length: 444

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

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

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

--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
Patch committed in r269785.
>From gcc-bugs-return-637837-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 00:02:16 2019
Return-Path: <gcc-bugs-return-637837-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66269 invoked by alias); 19 Mar 2019 00:02: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 66199 invoked by uid 48); 19 Mar 2019 00:02:12 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89720] [9 Regression] Spurious -Warray-bounds warning on a range with max < min
Date: Tue, 19 Mar 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: tree-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: diagnostic, 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: P1
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89720-4-nPYxximSSx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89720-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89720-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02131.txt.bz2
Content-length: 435

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

--- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> ---
(In reply to Steinar H. Gunderson from comment #3)
> Are there also any plans to make the warning easier to trace?

If you are referring to the missing inlining context (as discussed in bug
86650) then hopefully in GCC 10.  Otherwise please explain what you mean, or
better yet, open a bug pointing out the problem.
>From gcc-bugs-return-637839-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 02:56:42 2019
Return-Path: <gcc-bugs-return-637839-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95309 invoked by alias); 19 Mar 2019 02:56: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 95255 invoked by uid 48); 19 Mar 2019 02:56:39 -0000
From: "klystron25 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89767] ICE with tuple and optimization
Date: Tue, 19 Mar 2019 02:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: klystron25 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-89767-4-ZAFVp8Xmn3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89767-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89767-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02133.txt.bz2
Content-length: 144

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

--- Comment #1 from Steven Blah <klystron25 at gmail dot com> ---
This also fails on 8.2.
>From gcc-bugs-return-637838-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 02:56:20 2019
Return-Path: <gcc-bugs-return-637838-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94456 invoked by alias); 19 Mar 2019 02:56: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 94418 invoked by uid 48); 19 Mar 2019 02:56:15 -0000
From: "klystron25 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89767] New: ICE with tuple and optimization
Date: Tue, 19 Mar 2019 02:56: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.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: klystron25 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-89767-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02132.txt.bz2
Content-length: 6089

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

            Bug ID: 89767
           Summary: ICE with tuple and optimization
           Product: gcc
           Version: 8.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: klystron25 at gmail dot com
  Target Milestone: ---

Created attachment 45994
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45994&action=edit
preprocessed source

The following source file causes ICE when -O2 is used. This code compiles
correctly with the same command line on gcc 7.3.0.

This is gcc 8.3.0 running on amd64. I am runnig gentoo, but I downloaded 8.3.0
source and built it from scratch just to ensure it wasn't gentoo's patchset. I
tried a simple configure with just --enable-languages=c,c++ and then this below
which I'm providing the report from:

Configured with: /var/tmp/portage/sys-devel/gcc-8.3.0/work/gcc-8.3.0/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/8.3.0
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/8.3.0
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/8.3.0/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/8.3.0/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/8.3.0/python
--enable-languages=c,c++ --enable-obsolete --enable-secureplt --disable-werror
--with-system-zlib --enable-nls --without-included-gettext
--enable-checking=release --with-bugurl=https://bugs.gentoo.org/
--with-pkgversion='Gentoo 8.3.0 p1.0' --disable-esp --enable-libstdcxx-time
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64
--disable-altivec --disable-fixed-point --enable-targets=all --enable-libgomp
--disable-libmudflap --disable-libssp --disable-libmpx --disable-systemtap
--enable-vtable-verify --disable-libquadmath --enable-lto --without-isl
--enable-default-pie --enable-default-ssp
Thread model: posix

/home/darkwing/gcc/usr/x86_64-pc-linux-gnu/gcc-bin/8.3.0/c++  -Dmsb_EXPORTS
-I/home/darkwing/work/nasa/pace/opt/include/efsi
-I/home/darkwing/work/efs/sts/repos/cvt/msb/libmsb/include
-I/home/darkwing/work/efs/sts/repos/cvt/msb/libmsb/include/internal  -fPIC  
-fvisibility=hidden --std=c++14 -pedantic -Wall -Wextra -Wundef
-Wno-noexcept-type -save-temps -o
CMakeFiles/msb.dir/src/connection/internal.cpp.o -c
/home/darkwing/work/efs/sts/repos/cvt/msb/libmsb/src/connection/internal.cpp
-O2

In file included from
/home/darkwing/gcc/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8/bits/hashtable_policy.h:34,
                 from
/home/darkwing/gcc/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8/bits/hashtable.h:35,
                 from
/home/darkwing/gcc/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8/unordered_map:46,
                 from
/home/darkwing/work/efs/sts/repos/cvt/msb/libmsb/include/internal/connection.hpp:4,
                 from
/home/darkwing/work/efs/sts/repos/cvt/msb/libmsb/src/connection/internal.cpp:1:
/home/darkwing/gcc/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8/tuple:
In instantiation of ‘constexpr _Head& std::__get_helper(std::_Tuple_impl<_Idx,
_Head, _Tail ...>&) [with long unsigned int __i = 1; _Head =
std::shared_ptr<msb::node>; _Tail = {}]’:
/home/darkwing/gcc/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8/tuple:1315:36:
  required from ‘constexpr std::__tuple_element_t<__i, std::tuple<_Elements
...> >& std::get(std::tuple<_Elements ...>&) [with long unsigned int __i = 1;
_Elements = {std::shared_ptr<msb::internal::model_support::node_subscriber>,
std::shared_ptr<msb::node>}; std::__tuple_element_t<__i, std::tuple<_Elements
...> > = std::shared_ptr<msb::node>]’
/home/darkwing/work/efs/sts/repos/cvt/msb/libmsb/src/connection/internal.cpp:92:92:
  required from here
/home/darkwing/gcc/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8/tuple:1303:5:
internal compiler error: Segmentation fault
     __get_helper(_Tuple_impl<__i, _Head, _Tail...>& __t) noexcept
     ^~~~~~~~~~~~
0xb5688f crash_signal
        ../../gcc-8.3.0/gcc/toplev.c:325
0x66d25d check_local_shadow
        ../../gcc-8.3.0/gcc/cp/name-lookup.c:2670
0x66d25d do_pushdecl
        ../../gcc-8.3.0/gcc/cp/name-lookup.c:3084
0x66d25d pushdecl(tree_node*, bool)
        ../../gcc-8.3.0/gcc/cp/name-lookup.c:3152
0x617626 store_parm_decls
        ../../gcc-8.3.0/gcc/cp/decl.c:15454
0x617626 start_preparsed_function(tree_node*, tree_node*, int)
        ../../gcc-8.3.0/gcc/cp/decl.c:15328
0x6b84b8 instantiate_decl(tree_node*, bool, bool)
        ../../gcc-8.3.0/gcc/cp/pt.c:24048
0x5f26e4 cxx_eval_call_expression
        ../../gcc-8.3.0/gcc/cp/constexpr.c:1563
0x5f374d cxx_eval_constant_expression
        ../../gcc-8.3.0/gcc/cp/constexpr.c:4231
0x5f741c cxx_eval_outermost_constant_expr
        ../../gcc-8.3.0/gcc/cp/constexpr.c:4894
0x5f937e maybe_constant_value(tree_node*, tree_node*)
        ../../gcc-8.3.0/gcc/cp/constexpr.c:5112
0x603f92 cp_fold
        ../../gcc-8.3.0/gcc/cp/cp-gimplify.c:2521
0x6043cc cp_fold_maybe_rvalue
        ../../gcc-8.3.0/gcc/cp/cp-gimplify.c:2075
0x6033ca cp_fold_maybe_rvalue
        ../../gcc-8.3.0/gcc/cp/cp-gimplify.c:2216
0x6033ca cp_fold
        ../../gcc-8.3.0/gcc/cp/cp-gimplify.c:2216
0x6043cc cp_fold_maybe_rvalue
        ../../gcc-8.3.0/gcc/cp/cp-gimplify.c:2075
0x6033ca cp_fold_maybe_rvalue
        ../../gcc-8.3.0/gcc/cp/cp-gimplify.c:2216
0x6033ca cp_fold
        ../../gcc-8.3.0/gcc/cp/cp-gimplify.c:2216
0x6043cc cp_fold_maybe_rvalue
        ../../gcc-8.3.0/gcc/cp/cp-gimplify.c:2075
0x6033ca cp_fold_maybe_rvalue
        ../../gcc-8.3.0/gcc/cp/cp-gimplify.c:2216
Please submit a full bug report,
with preprocessed source if appropriate.
>From gcc-bugs-return-637840-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 04:27:32 2019
Return-Path: <gcc-bugs-return-637840-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91954 invoked by alias); 19 Mar 2019 04:27: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 91877 invoked by uid 48); 19 Mar 2019 04:27:28 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/87480] [8/9 Regression] SFINAE constructor not matched, only in templated function
Date: Tue, 19 Mar 2019 04: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: 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: P2
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-87480-4-Y1wAbQh3Rb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87480-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87480-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02134.txt.bz2
Content-length: 378

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |jason at gcc dot gnu.org
>From gcc-bugs-return-637841-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 06:56:07 2019
Return-Path: <gcc-bugs-return-637841-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38085 invoked by alias); 19 Mar 2019 06:56: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 38002 invoked by uid 55); 19 Mar 2019 06:56:03 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/89734] [7/8/9 Regression] const qualifier on return type not erased inside __typeof__
Date: Tue, 19 Mar 2019 06:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 8.2.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: 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-89734-4-rOVs39Sgl0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89734-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89734-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02135.txt.bz2
Content-length: 602

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Mar 19 06:55:31 2019
New Revision: 269789

URL: https://gcc.gnu.org/viewcvs?rev=269789&root=gcc&view=rev
Log:
        PR c/89734
        * c-decl.c (grokdeclarator): Call c_build_qualified_type on function
        return type even if quals_used is 0.  Formatting fixes.

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

Added:
    trunk/gcc/testsuite/gcc.dg/pr89734.c
Modified:
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-decl.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-637842-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 07:04:27 2019
Return-Path: <gcc-bugs-return-637842-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 51021 invoked by alias); 19 Mar 2019 07:04: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 50971 invoked by uid 48); 19 Mar 2019 07:04:24 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/65244] Bogus -Wmaybe-uninitialized warning with posix_memalign() and -Og
Date: Tue, 19 Mar 2019 07:04: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.9.1
X-Bugzilla-Keywords: diagnostic
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: see_also
Message-ID: <bug-65244-4-ccI9lUypt5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65244-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65244-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02136.txt.bz2
Content-length: 583

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=89723

--- Comment #14 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Eric Gallager from comment #13)
> Bug 78394 is also about -Wmaybe-uninitialized with -Og

as is bug 89723
>From gcc-bugs-return-637843-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 07:13:32 2019
Return-Path: <gcc-bugs-return-637843-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82419 invoked by alias); 19 Mar 2019 07:13: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 82377 invoked by uid 48); 19 Mar 2019 07:13:29 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/78394] False positives of maybe-uninitialized with -Og
Date: Tue, 19 Mar 2019 07: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: 6.1.1
X-Bugzilla-Keywords: diagnostic
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:
Message-ID: <bug-78394-4-3GCASdmpaQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78394-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78394-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02137.txt.bz2
Content-length: 1568

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

--- Comment #15 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Marc Glisse from comment #14)
> (In reply to Jeffrey A. Law from comment #12)
> > Whether or not to fix as well as whether or not to warn at -O0 are a topic
> > of debate.  I'm not sure I'm up for re-opening that can of worms right now.
> 
> I think we can both work on reducing false positives and move it out of
> -Wall, it isn't exclusive.
> 
> > I strongly believe -Wmaybe-uninitialized should continue to be enabled by
> > -Wall.   They tend to either point out obscure ways objects are
> > uninitialized or they point out missed optimizations.  Both are critical in
> > my mind.
> 
> -Wall
>            This enables all the warnings about constructions that some users
>            consider questionable, and that are easy to avoid (or modify to
>            prevent the warning), even in conjunction with macros.
> 
> I don't see how you can ever satisfy the "easy to avoid" part. In my
> experience with several code bases, having this warning in -Wall (as opposed
> to -Wextra) does more harm than good, with people doing random bad code
> changes to try and get the compiler to shut up.
> 
> I still believe this warning is a very useful static analysis tool (I
> contributed to make it appear more often in the past), but by definition it
> will never avoid false positives.

For reference, this conversation moved to gcc-patches here: 
https://gcc.gnu.org/ml/gcc-patches/2019-02/msg00020.html
>From gcc-bugs-return-637844-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 07:24:37 2019
Return-Path: <gcc-bugs-return-637844-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45475 invoked by alias); 19 Mar 2019 07:24: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 45368 invoked by uid 48); 19 Mar 2019 07:24:33 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/89753] [8/9 Regression] ICE in unroll_loop_constant_iterations, at loop-unroll.c:498
Date: Tue, 19 Mar 2019 07:24: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-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: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-89753-4-O8P62PlcYF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89753-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89753-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02138.txt.bz2
Content-length: 458

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

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> ---
The ICE started with r255973.  The PR89588 fix is committed and it still ICEs.
>From gcc-bugs-return-637845-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 07:26:14 2019
Return-Path: <gcc-bugs-return-637845-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48504 invoked by alias); 19 Mar 2019 07:26: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 48471 invoked by uid 48); 19 Mar 2019 07:26:11 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/89768] New: ICE in compare_and_jump_seq at loop-unroll.c:838
Date: Tue, 19 Mar 2019 07:26: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: 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-89768-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02139.txt.bz2
Content-length: 1758

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

            Bug ID: 89768
           Summary: ICE in compare_and_jump_seq at loop-unroll.c:838
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
  Target Milestone: ---

I know the params have very extreme values, but still:

$ gcc /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/torture/pr80565.c
--param max-unroll-times=100000 --param max-unrolled-insns=1000000
-funroll-loops -Ofast --param max-average-unrolled-insns=1858613514
-fno-tree-dominator-opts
during RTL pass: loop2_unroll
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/torture/pr80565.c: In
function ‘main’:
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/torture/pr80565.c:41:1:
internal compiler error: Segmentation fault
   41 | }
      | ^
0xd1c3ef crash_signal
        /home/marxin/Programming/gcc/gcc/toplev.c:326
0x7ffff79b5e0f ???
       
/usr/src/debug/glibc-2.29-3.1.x86_64/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0xb905ab rtx_jump_insn* as_a<rtx_jump_insn*, rtx_insn>(rtx_insn*)
        /home/marxin/Programming/gcc/gcc/is-a.h:197
0xb905ab compare_and_jump_seq
        /home/marxin/Programming/gcc/gcc/loop-unroll.c:838
0xb937ab unroll_loop_runtime_iterations
        /home/marxin/Programming/gcc/gcc/loop-unroll.c:1023
0xb937ab unroll_loops(int)
        /home/marxin/Programming/gcc/gcc/loop-unroll.c:299
0xb8413f execute
        /home/marxin/Programming/gcc/gcc/loop-init.c:584
0xb8413f execute
        /home/marxin/Programming/gcc/gcc/loop-init.c:571
>From gcc-bugs-return-637846-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 07:26:34 2019
Return-Path: <gcc-bugs-return-637846-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49367 invoked by alias); 19 Mar 2019 07:26: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 49306 invoked by uid 55); 19 Mar 2019 07:26:30 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89726] [7/8/9 Regression] Incorrect inlined version of 'ceil' for 32bit
Date: Tue, 19 Mar 2019 07: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.3.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
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-89726-4-TySl4osYxi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89726-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89726-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02140.txt.bz2
Content-length: 827

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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Mar 19 07:25:59 2019
New Revision: 269790

URL: https://gcc.gnu.org/viewcvs?rev=269790&root=gcc&view=rev
Log:
        PR target/89726
        * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
        compensation use x2 += 1 instead of x2 -= -1 and when honoring
        signed zeros, do another copysign after the compensation.

        * gcc.target/i386/fpprec-1.c (x): Add 6 new constants.
        (expect_round, expect_rint, expect_floor, expect_ceil, expect_trunc):
        Add expected results for them.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/i386/fpprec-1.c
>From gcc-bugs-return-637847-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 07:34:44 2019
Return-Path: <gcc-bugs-return-637847-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26607 invoked by alias); 19 Mar 2019 07: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 26554 invoked by uid 48); 19 Mar 2019 07:34:41 -0000
From: "steinar+gcc at gunderson dot no" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89720] [9 Regression] Spurious -Warray-bounds warning on a range with max < min
Date: Tue, 19 Mar 2019 07: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: 9.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: steinar+gcc at gunderson dot no
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
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:
Message-ID: <bug-89720-4-RMwrEQ2XFM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89720-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89720-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02141.txt.bz2
Content-length: 204

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

--- Comment #7 from Steinar H. Gunderson <steinar+gcc at gunderson dot no> ---
The inlining context, yes. Thanks for pointing out the relevant bug.
>From gcc-bugs-return-637848-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 07:56:27 2019
Return-Path: <gcc-bugs-return-637848-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73930 invoked by alias); 19 Mar 2019 07:56: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 73878 invoked by uid 48); 19 Mar 2019 07:56:24 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89766] [8 Regression] ICE: canonical types differ for identical types, -std=c++17
Date: Tue, 19 Mar 2019 07:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.3.1
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: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc version target_milestone short_desc everconfirmed
Message-ID: <bug-89766-4-h5Yxgwbmz6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89766-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89766-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02142.txt.bz2
Content-length: 994

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-03-19
                 CC|                            |jakub at gcc dot gnu.org
            Version|unknown                     |8.3.1
   Target Milestone|---                         |8.4
            Summary|ICE: canonical types differ |[8 Regression] ICE:
                   |for identical types,        |canonical types differ for
                   |-std=c++17                  |identical types, -std=c++17
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I can reproduce on current 8.x branch, can't reproduce with 8.3.1 20190223, nor
at 8.x branchpoint, nor gcc trunk.
>From gcc-bugs-return-637849-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 07:57:08 2019
Return-Path: <gcc-bugs-return-637849-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80290 invoked by alias); 19 Mar 2019 07:57: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 80260 invoked by uid 48); 19 Mar 2019 07:57:05 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/89747] valgrind error in gfc_match_decl_type_spec
Date: Tue, 19 Mar 2019 07:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libfortran
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
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 resolution
Message-ID: <bug-89747-4-7KFMfDZmN7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89747-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89747-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02143.txt.bz2
Content-length: 513

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

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

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

--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
I was able to reproduce that, but is gone with
--expensive-definedness-checks=yes.
>From gcc-bugs-return-637850-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 08:07:23 2019
Return-Path: <gcc-bugs-return-637850-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23764 invoked by alias); 19 Mar 2019 08:07: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 23708 invoked by uid 55); 19 Mar 2019 08:07:20 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/89753] [8/9 Regression] ICE in unroll_loop_constant_iterations, at loop-unroll.c:498
Date: Tue, 19 Mar 2019 08:07: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-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89753-4-6Z2lYETPSd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89753-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89753-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02144.txt.bz2
Content-length: 581

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

--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Author: ebotcazou
Date: Tue Mar 19 08:06:48 2019
New Revision: 269791

URL: https://gcc.gnu.org/viewcvs?rev=269791&root=gcc&view=rev
Log:
        PR rtl-optimization/89753
        * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
        explicit unrolling factor even more robust.

Added:
    trunk/gcc/testsuite/c-c++-common/unroll-7.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/loop-unroll.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-637851-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 08:08:18 2019
Return-Path: <gcc-bugs-return-637851-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37737 invoked by alias); 19 Mar 2019 08:08: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 35960 invoked by uid 48); 19 Mar 2019 08:08:15 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/89760] [9 Regression] libstdc++ experimental testsuite failures
Date: Tue, 19 Mar 2019 08:08: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: rejects-valid
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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-89760-4-A3RHg6LQT8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89760-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89760-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02145.txt.bz2
Content-length: 293

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |9.0
>From gcc-bugs-return-637853-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 08:10:48 2019
Return-Path: <gcc-bugs-return-637853-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48448 invoked by alias); 19 Mar 2019 08: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 48043 invoked by uid 48); 19 Mar 2019 08:10:44 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89766] [8 Regression] ICE: canonical types differ for identical types, -std=c++17
Date: Tue, 19 Mar 2019 08:10: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.3.1
X-Bugzilla-Keywords: ice-checking, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth 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.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords priority cf_known_to_work cf_known_to_fail
Message-ID: <bug-89766-4-Jm3xe16ugJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89766-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89766-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02147.txt.bz2
Content-length: 537

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-checking,
                   |                            |ice-on-valid-code
           Priority|P3                          |P2
      Known to work|                            |8.1.0, 9.0
      Known to fail|                            |8.3.1
>From gcc-bugs-return-637852-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 08:10:45 2019
Return-Path: <gcc-bugs-return-637852-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48067 invoked by alias); 19 Mar 2019 08:10: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 47963 invoked by uid 55); 19 Mar 2019 08:10:41 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/89753] [8/9 Regression] ICE in unroll_loop_constant_iterations, at loop-unroll.c:498
Date: Tue, 19 Mar 2019 08:10: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-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89753-4-XKnezEucvn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89753-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89753-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02146.txt.bz2
Content-length: 728

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

--- Comment #5 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Author: ebotcazou
Date: Tue Mar 19 08:10:08 2019
New Revision: 269792

URL: https://gcc.gnu.org/viewcvs?rev=269792&root=gcc&view=rev
Log:
        PR rtl-optimization/89753
        * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
        explicit unrolling factor even more robust.

Added:
    branches/gcc-8-branch/gcc/testsuite/c-c++-common/unroll-7.c
      - copied unchanged from r269791,
trunk/gcc/testsuite/c-c++-common/unroll-7.c
Modified:
    branches/gcc-8-branch/gcc/ChangeLog
    branches/gcc-8-branch/gcc/loop-unroll.c
    branches/gcc-8-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-637854-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 08:11:20 2019
Return-Path: <gcc-bugs-return-637854-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 51190 invoked by alias); 19 Mar 2019 08:11: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 51103 invoked by uid 48); 19 Mar 2019 08:11:13 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/89753] [8/9 Regression] ICE in unroll_loop_constant_iterations, at loop-unroll.c:498
Date: Tue, 19 Mar 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: rtl-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-89753-4-Z6erMvUj69@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89753-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89753-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02148.txt.bz2
Content-length: 428

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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

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

--- Comment #6 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
.
>From gcc-bugs-return-637855-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 08:11:45 2019
Return-Path: <gcc-bugs-return-637855-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52471 invoked by alias); 19 Mar 2019 08:11: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 52418 invoked by uid 48); 19 Mar 2019 08:11:42 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89767] [8/9 Regression] ICE with tuple and optimization
Date: Tue, 19 Mar 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: 8.3.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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords priority cf_known_to_work target_milestone short_desc cf_known_to_fail
Message-ID: <bug-89767-4-WHDVAxkMcU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89767-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89767-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02149.txt.bz2
Content-length: 676

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
           Priority|P3                          |P2
      Known to work|                            |7.3.0
   Target Milestone|---                         |9.0
            Summary|ICE with tuple and          |[8/9 Regression] ICE with
                   |optimization                |tuple and optimization
      Known to fail|                            |8.2.0, 8.3.0
>From gcc-bugs-return-637856-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 08:12:00 2019
Return-Path: <gcc-bugs-return-637856-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53346 invoked by alias); 19 Mar 2019 08: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 53286 invoked by uid 55); 19 Mar 2019 08:11:57 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89752] [8/9 Regression] ICE in emit_move_insn, at expr.c:3723
Date: Tue, 19 Mar 2019 08: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: 8.3.1
X-Bugzilla-Keywords: ice-on-valid-code, needs-reduction
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89752-4-f2gGaQd0r1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89752-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89752-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02150.txt.bz2
Content-length: 838

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

--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Mar 19 08:11:25 2019
New Revision: 269793

URL: https://gcc.gnu.org/viewcvs?rev=269793&root=gcc&view=rev
Log:
        PR target/89752
        * gimplify.c (gimplify_asm_expr): For output argument with
        TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
        diagnose error.

        * g++.dg/ext/asm15.C: Check for particular diagnostic wording.
        * g++.dg/ext/asm16.C: Likewise.
        * g++.dg/ext/asm17.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/ext/asm17.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimplify.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/ext/asm15.C
    trunk/gcc/testsuite/g++.dg/ext/asm16.C
>From gcc-bugs-return-637857-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 08:18:38 2019
Return-Path: <gcc-bugs-return-637857-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66213 invoked by alias); 19 Mar 2019 08:18: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 66091 invoked by uid 48); 19 Mar 2019 08:18:35 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89752] [8/9 Regression] ICE in emit_move_insn, at expr.c:3723
Date: Tue, 19 Mar 2019 08: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: 8.3.1
X-Bugzilla-Keywords: ice-on-valid-code, needs-reduction
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89752-4-NC5LS13MG0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89752-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89752-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02151.txt.bz2
Content-length: 265

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

--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed on the originally provided testcase, not on the #c7 testcase, that needs
to be fixed in LRA not to try to reload BLKmode MEMs into REGs.
>From gcc-bugs-return-637858-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 08:24:55 2019
Return-Path: <gcc-bugs-return-637858-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91755 invoked by alias); 19 Mar 2019 08:24: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 91697 invoked by uid 48); 19 Mar 2019 08:24:51 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89766] [8 Regression] ICE: canonical types differ for identical types, -std=c++17
Date: Tue, 19 Mar 2019 08:24: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.3.1
X-Bugzilla-Keywords: ice-checking, 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.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-89766-4-QdCaTymVlg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89766-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89766-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02152.txt.bz2
Content-length: 3465

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

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> ---
I can reproduce that, but only with GCC tip:
gcc version 8.3.1 20190319 (GCC) 

$ ./xg++ -B. /home/marxin/Programming/testcases/pr89766.cpp -c -fchecking
-std=c++17 --param ggc-min-expand=0 --param ggc-min-heapsize=0
/home/marxin/Programming/testcases/pr89766.cpp:7:47: internal compiler error:
canonical types differ for identical types ‘a’ and ‘<template-parameter-2-1>’
   template <typename, typename> bool e() const;
                                               ^
0xa1338f comptypes(tree_node*, tree_node*, int)
        ../../gcc/cp/typeck.c:1480
0x98bae1 comp_template_parms(tree_node const*, tree_node const*)
        ../../gcc/cp/pt.c:3302
0x8579e5 add_method(tree_node*, tree_node*, bool)
        ../../gcc/cp/class.c:1062
0x9e201c finish_member_declaration(tree_node*)
        ../../gcc/cp/semantics.c:3114
0x95ffa5 cp_parser_template_declaration_after_parameters
        ../../gcc/cp/parser.c:27077
0x960419 cp_parser_explicit_template_declaration
        ../../gcc/cp/parser.c:27236
0x960473 cp_parser_template_declaration_after_export
        ../../gcc/cp/parser.c:27255
0x94bcfd cp_parser_template_declaration
        ../../gcc/cp/parser.c:15026
0x95a413 cp_parser_member_declaration
        ../../gcc/cp/parser.c:23552
0x95a306 cp_parser_member_specification_opt
        ../../gcc/cp/parser.c:23479
0x95891e cp_parser_class_specifier_1
        ../../gcc/cp/parser.c:22610
0x95936a cp_parser_class_specifier
        ../../gcc/cp/parser.c:22872
0x94e900 cp_parser_type_specifier
        ../../gcc/cp/parser.c:16788
0x949dd0 cp_parser_decl_specifier_seq
        ../../gcc/cp/parser.c:13626
0x960585 cp_parser_single_declaration
        ../../gcc/cp/parser.c:27307
0x95fc98 cp_parser_template_declaration_after_parameters
        ../../gcc/cp/parser.c:26999
0x960419 cp_parser_explicit_template_declaration
        ../../gcc/cp/parser.c:27236
0x960473 cp_parser_template_declaration_after_export
        ../../gcc/cp/parser.c:27255
0x94bcfd cp_parser_template_declaration
        ../../gcc/cp/parser.c:15026
0x94824b cp_parser_declaration
        ../../gcc/cp/parser.c:12724

(gdb) p debug_tree(t1)
 <template_type_parm 0x7ffff7a32dc8 a VOID
    align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7ffff7a32a80
   index 0 level 2 orig_level 2
    chain <type_decl 0x7ffff79fcd10 a>>
$3 = void
(gdb) p debug_tree(t2)
 <template_type_parm 0x7ffff7a47348 VOID
    align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7ffff7a32f18
   index 0 level 2 orig_level 2
    chain <type_decl 0x7ffff79fce40 D.2149>>

(gdb) p debug_tree((tree)0x7ffff7a32a80)
 <template_type_parm 0x7ffff7a32a80 a VOID
    align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7ffff7a32a80
   index 0 level 2 orig_level 2
    chain <type_decl 0x7ffff79fca18 a>>

(gdb) p debug_tree((tree)0x7ffff7a32f18)
 <template_type_parm 0x7ffff7a32f18 VOID
    align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7ffff7a32f18
   index 0 level 2 orig_level 2
    chain <type_decl 0x7ffff79fc720 D.2127>>
>From gcc-bugs-return-637859-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 08:26:38 2019
Return-Path: <gcc-bugs-return-637859-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94412 invoked by alias); 19 Mar 2019 08:26: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 94341 invoked by uid 48); 19 Mar 2019 08:26:35 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89766] [8 Regression] ICE: canonical types differ for identical types, -std=c++17
Date: Tue, 19 Mar 2019 08: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: 8.3.1
X-Bugzilla-Keywords: ice-checking, 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.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89766-4-0TB3SGPxSG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89766-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89766-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02153.txt.bz2
Content-length: 235

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

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
@RJ: Btw. do you see the ICE also for a valid C++ code? The test-case you
provided isn't valid if I'm correct?
>From gcc-bugs-return-637860-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 08:30:46 2019
Return-Path: <gcc-bugs-return-637860-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112011 invoked by alias); 19 Mar 2019 08:30: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 111538 invoked by uid 48); 19 Mar 2019 08:30:41 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89767] [8/9 Regression] ICE with tuple and optimization
Date: Tue, 19 Mar 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: c++
X-Bugzilla-Version: 8.3.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
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-89767-4-NflGJoTFRs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89767-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89767-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02154.txt.bz2
Content-length: 405

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

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> ---
Reducing and bisecting now.
>From gcc-bugs-return-637861-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 08:36:03 2019
Return-Path: <gcc-bugs-return-637861-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38214 invoked by alias); 19 Mar 2019 08:36: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 38164 invoked by uid 48); 19 Mar 2019 08:36:00 -0000
From: "rimvydas.jas at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89766] [8 Regression] ICE: canonical types differ for identical types, -std=c++17
Date: Tue, 19 Mar 2019 08:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.3.1
X-Bugzilla-Keywords: ice-checking, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rimvydas.jas at gmail 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: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89766-4-X0ePRI6ujs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89766-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89766-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02155.txt.bz2
Content-length: 331

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

--- Comment #4 from Rimvydas (RJ) <rimvydas.jas at gmail dot com> ---
@Martin: Yes, ICE happens for valid code too only if -fchecking=1. Reduced
cases are invalid and rejected by 9.0.1 20190319 and 8.2.1 20181127.
However 8.3.1 20190319 accepts them even for -fchecking=0.
>From gcc-bugs-return-637862-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 08:38:17 2019
Return-Path: <gcc-bugs-return-637862-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66851 invoked by alias); 19 Mar 2019 08:38: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 66781 invoked by uid 48); 19 Mar 2019 08:38:14 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89766] [8 Regression] ICE: canonical types differ for identical types, -std=c++17
Date: Tue, 19 Mar 2019 08: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: 8.3.1
X-Bugzilla-Keywords: ice-checking, 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.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89766-4-QwjAfDe0xg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89766-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89766-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02156.txt.bz2
Content-length: 422

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

--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Rimvydas (RJ) from comment #4)
> @Martin: Yes, ICE happens for valid code too only if -fchecking=1. Reduced
> cases are invalid and rejected by 9.0.1 20190319 and 8.2.1 20181127.
> However 8.3.1 20190319 accepts them even for -fchecking=0.

Please attach the valid code snippet.
>From gcc-bugs-return-637863-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 08:38:31 2019
Return-Path: <gcc-bugs-return-637863-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67733 invoked by alias); 19 Mar 2019 08:38: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 67654 invoked by uid 48); 19 Mar 2019 08:38:28 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89766] [8 Regression] ICE: canonical types differ for identical types, -std=c++17
Date: Tue, 19 Mar 2019 08: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: 8.3.1
X-Bugzilla-Keywords: ice-checking, 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: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords priority cc
Message-ID: <bug-89766-4-7vpoFt0OrV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89766-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89766-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02157.txt.bz2
Content-length: 536

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-valid-code           |ice-on-invalid-code
           Priority|P2                          |P1
                 CC|                            |jason at gcc dot gnu.org

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r269512 aka PR88419 fix.
>From gcc-bugs-return-637864-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 08:43:05 2019
Return-Path: <gcc-bugs-return-637864-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95069 invoked by alias); 19 Mar 2019 08:43: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 94987 invoked by uid 48); 19 Mar 2019 08:43:02 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89766] [8 Regression] ICE: canonical types differ for identical types, -std=c++17
Date: Tue, 19 Mar 2019 08: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: 8.3.1
X-Bugzilla-Keywords: accepts-invalid, ice-checking, 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: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords
Message-ID: <bug-89766-4-Ur4zeqfNRR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89766-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89766-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02158.txt.bz2
Content-length: 1156

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Indeed, the invalid testcase is now accepted:

$ ./cc1plus.269511 -quiet pr89766.C -std=c++17 -fno-checking; echo $?
pr89766.C:7:38: error: ‘template<class> template<class, class> bool d<
<template-parameter-1-1> >::e() const’ cannot be overloaded with
‘template<class> template<class a, class> bool d< <template-parameter-1-1>
>::e() const’
   template <typename, typename> bool e() const;
                                      ^
pr89766.C:6:40: note: previous declaration ‘template<class> template<class a,
class> bool d< <template-parameter-1-1> >::e() const’
   template <typename a, typename> bool e() const;
                                        ^
1
$ ./cc1plus.269512 -quiet pr89766.C -std=c++17 -fno-checking; echo $?
0
>From gcc-bugs-return-637865-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 08:44:02 2019
Return-Path: <gcc-bugs-return-637865-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110788 invoked by alias); 19 Mar 2019 08:44: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 109129 invoked by uid 48); 19 Mar 2019 08:43:59 -0000
From: "rimvydas.jas at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89766] [8 Regression] ICE: canonical types differ for identical types, -std=c++17
Date: Tue, 19 Mar 2019 08: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: 8.3.1
X-Bugzilla-Keywords: accepts-invalid, ice-checking, ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rimvydas.jas 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: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-89766-4-6OCzAgEjTW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89766-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89766-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02159.txt.bz2
Content-length: 257

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

--- Comment #8 from Rimvydas (RJ) <rimvydas.jas at gmail dot com> ---
Created attachment 45995
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45995&action=edit
Compressed original case (3.3M).
>From gcc-bugs-return-637866-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 09:10:17 2019
Return-Path: <gcc-bugs-return-637866-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85508 invoked by alias); 19 Mar 2019 09:10: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 85440 invoked by uid 48); 19 Mar 2019 09:10:12 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/89768] [7/8/9 Regression] ICE in compare_and_jump_seq at loop-unroll.c:838
Date: Tue, 19 Mar 2019 09:10: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: 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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc target_milestone short_desc everconfirmed
Message-ID: <bug-89768-4-DPz3G6PotK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89768-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89768-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02160.txt.bz2
Content-length: 771

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
                 CC|                            |jakub at gcc dot gnu.org
   Target Milestone|---                         |7.5
            Summary|ICE in compare_and_jump_seq |[7/8/9 Regression] ICE in
                   |at loop-unroll.c:838        |compare_and_jump_seq at
                   |                            |loop-unroll.c:838
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r204194.
>From gcc-bugs-return-637867-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 09:16:36 2019
Return-Path: <gcc-bugs-return-637867-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40973 invoked by alias); 19 Mar 2019 09:16: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 37081 invoked by uid 48); 19 Mar 2019 09:16:32 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/89762] [8 Regression] Mixing optimization levels with ostream gives lto1: internal compiler error: in get_odr_type, at ipa-devirt.c:2098
Date: Tue, 19 Mar 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: ipa
X-Bugzilla-Version: 8.3.0
X-Bugzilla-Keywords: ice-on-valid-code, lto
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 cf_known_to_work assigned_to short_desc everconfirmed cf_known_to_fail
Message-ID: <bug-89762-4-szN46s3D5P@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89762-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89762-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02161.txt.bz2
Content-length: 1211

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2019-03-19
      Known to work|                            |7.4.0, 9.0
           Assignee|unassigned at gcc dot gnu.org      |marxin at gcc dot gnu.org
            Summary|Mixing optimization levels  |[8 Regression] Mixing
                   |with ostream gives lto1:    |optimization levels with
                   |internal compiler error: in |ostream gives lto1:
                   |get_odr_type, at            |internal compiler error: in
                   |ipa-devirt.c:2098           |get_odr_type, at
                   |                            |ipa-devirt.c:2098
     Ever confirmed|0                           |1
      Known to fail|                            |8.3.1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started on trunk in r259479 and was fixed in r265638.
Honza is the patch subject for backport?
>From gcc-bugs-return-637868-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 09:27:58 2019
Return-Path: <gcc-bugs-return-637868-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92648 invoked by alias); 19 Mar 2019 09:27: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 92575 invoked by uid 48); 19 Mar 2019 09:27:55 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/89768] [7/8/9 Regression] ICE in compare_and_jump_seq at loop-unroll.c:838
Date: Tue, 19 Mar 2019 09:27: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: 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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-89768-4-o1zZSGNcAp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89768-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89768-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02162.txt.bz2
Content-length: 3119

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

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 #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I can reproduce even with
--param max-unroll-times=70000 --param max-unrolled-insns=280000 -funroll-loops
-Ofast --param max-average-unrolled-insns=280000 -fno-tree-dominator-opts 
pr80565.c
--- gcc/loop-unroll.c.jj        2019-03-19 09:09:32.686006683 +0100
+++ gcc/loop-unroll.c   2019-03-19 10:15:50.319343904 +0100
@@ -652,7 +652,7 @@ unroll_loop_constant_iterations (struct
   if (loop->any_likely_upper_bound)
     loop->nb_iterations_likely_upper_bound
       = wi::udiv_trunc (loop->nb_iterations_likely_upper_bound, max_unroll +
1);
-  desc->niter_expr = GEN_INT (desc->niter);
+  desc->niter_expr = gen_int_mode (desc->niter, desc->mode);

   /* Remove the edges.  */
   FOR_EACH_VEC_ELT (remove_edges, i, e)
@@ -1020,9 +1020,9 @@ unroll_loop_runtime_iterations (struct l
       preheader = split_edge (loop_preheader_edge (loop));
       /* Add in count of edge from switch block.  */
       preheader->count += iter_count;
-      branch_code = compare_and_jump_seq (copy_rtx (niter), GEN_INT (j), EQ,
-                                         block_label (preheader), p,
-                                         NULL);
+      branch_code = compare_and_jump_seq (copy_rtx (niter),
+                                         gen_int_mode (j, desc->mode), EQ,
+                                         block_label (preheader), p, NULL);

       /* We rely on the fact that the compare and jump cannot be optimized
out,
         and hence the cfg we create is correct.  */
fixes the ICE, still the testcase is not usable for the testsuite, seems it has
481318 basic blocks in the function and seems to spent like forever in
#0  0x0000000000bbf031 in et_splay (occ=0x2f8b4c8) at ../../gcc/et-forest.c:319
#1  0x0000000000bbfc2d in et_below (down=0x301e8f8, up=0x301eaa8) at
../../gcc/et-forest.c:718
#2  0x0000000000b181be in dominated_by_p (dir=CDI_DOMINATORS,
bb1=0x7fffea96e138, bb2=0x7fffea97f208) at ../../gcc/dominance.c:1126
#3  0x0000000000b1865a in prune_bbs_to_update_dominators (bbs=...,
conservative=true) at ../../gcc/dominance.c:1257
#4  0x0000000000b18c94 in iterate_fix_dominators (dir=CDI_DOMINATORS, bbs=...,
conservative=true) at ../../gcc/dominance.c:1464
#5  0x0000000000a7f150 in remove_path (e=<error reading variable: Cannot access
memory at address 0xa5a5a5a5a5a5a5f9>, 
    irred_invalidated=0x7fffffffce4f, loop_closed_ssa_invalidated=0x0) at
../../gcc/cfgloopmanip.c:412
#6  0x0000000000eab54e in unroll_loop_runtime_iterations (loop=0x7fffea953000)
at ../../gcc/loop-unroll.c:1110
#7  0x0000000000ea91f8 in unroll_loops (flags=1) at ../../gcc/loop-unroll.c:299
>From gcc-bugs-return-637869-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 09:33:08 2019
Return-Path: <gcc-bugs-return-637869-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84613 invoked by alias); 19 Mar 2019 09:33: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 80227 invoked by uid 48); 19 Mar 2019 09:33:05 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/89764] [8 Regression] ubsan diagnostic on generic lambdas decayed to function pointers
Date: Tue, 19 Mar 2019 09:33: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: 8.3.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 cf_known_to_work assigned_to short_desc everconfirmed cf_known_to_fail
Message-ID: <bug-89764-4-ghW8lKpKlo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89764-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89764-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02163.txt.bz2
Content-length: 1032

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2019-03-19
      Known to work|                            |7.4.0, 9.0
           Assignee|unassigned at gcc dot gnu.org      |marxin at gcc dot gnu.org
            Summary|ubsan diagnostic on generic |[8 Regression] ubsan
                   |lambdas decayed to function |diagnostic on generic
                   |pointers                    |lambdas decayed to function
                   |                            |pointers
     Ever confirmed|0                           |1
      Known to fail|                            |8.3.1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, I probably see it only for GCC 8.x branch. Let me bisect that..
>From gcc-bugs-return-637870-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 09:34:45 2019
Return-Path: <gcc-bugs-return-637870-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11517 invoked by alias); 19 Mar 2019 09:34: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 7874 invoked by uid 48); 19 Mar 2019 09:34:42 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89766] [8 Regression] ICE: canonical types differ for identical types, -std=c++17
Date: Tue, 19 Mar 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: c++
X-Bugzilla-Version: 8.3.1
X-Bugzilla-Keywords: accepts-invalid, ice-checking, ice-on-invalid-code, 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: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords
Message-ID: <bug-89766-4-XPHrn1PHDQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89766-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89766-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02164.txt.bz2
Content-length: 747

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

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

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

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Another (hopefully valid) testcase, accepted by trunk, r269511 and clang++, all
with -std=c++17, ICEs with r269512 and up.

struct A;
template <typename, template <typename> class> struct B;
template <template <typename> class T> struct B<int, T>;
template <class> struct C {
  template <class> int operator[] (int) const;
  template <class T> int operator[] (A) const;
};
>From gcc-bugs-return-637871-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 09:52:35 2019
Return-Path: <gcc-bugs-return-637871-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5520 invoked by alias); 19 Mar 2019 09:52: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 5440 invoked by uid 48); 19 Mar 2019 09:52:32 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/89768] [7/8/9 Regression] ICE in compare_and_jump_seq at loop-unroll.c:838
Date: Tue, 19 Mar 2019 09:52: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: 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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-89768-4-iGmWWDmsf7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89768-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89768-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02165.txt.bz2
Content-length: 282

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

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

Full patch I'm going to bootstrap/regtest.
>From gcc-bugs-return-637872-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 10:01:51 2019
Return-Path: <gcc-bugs-return-637872-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22468 invoked by alias); 19 Mar 2019 10:01: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 21325 invoked by uid 48); 19 Mar 2019 10:01:47 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/89764] [8 Regression] ubsan diagnostic on generic lambdas decayed to function pointers
Date: Tue, 19 Mar 2019 10: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: 8.3.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: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-89764-4-KPVy4M82xW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89764-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89764-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02166.txt.bz2
Content-length: 290

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |8.4
>From gcc-bugs-return-637874-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 10:05:46 2019
Return-Path: <gcc-bugs-return-637874-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32298 invoked by alias); 19 Mar 2019 10:05: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 31973 invoked by uid 55); 19 Mar 2019 10:05:42 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89506] [7/8 Regression] ICE: in decompose, at rtl.h:2266 with -Og -g
Date: Tue, 19 Mar 2019 10:05: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: 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-89506-4-VnI0nfDcu5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89506-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89506-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02168.txt.bz2
Content-length: 495

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

--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Mar 19 10:05:10 2019
New Revision: 269795

URL: https://gcc.gnu.org/viewcvs?rev=269795&root=gcc&view=rev
Log:
        PR target/89506
        * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
        subs for the first alternative except when operands[3] is 1.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/arm/arm.md
>From gcc-bugs-return-637873-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 10:05:13 2019
Return-Path: <gcc-bugs-return-637873-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30760 invoked by alias); 19 Mar 2019 10:05: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 30436 invoked by uid 48); 19 Mar 2019 10:05:10 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89571] [9 Regression] ICE in nothrow_spec_p, at cp/except.c:1238
Date: Tue, 19 Mar 2019 10: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: error-recovery, ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-89571-4-NTmuWSq4wb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89571-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89571-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02167.txt.bz2
Content-length: 1216

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |paolo.carlini at oracle dot com

--- Comment #10 from Paolo Carlini <paolo.carlini at oracle dot com> ---
For error-recovery sake, I think that we can just skip the functions with
eh_spec == error_mark_node and continue the loop:

Index: method.c
===================================================================
--- method.c    (revision 269783)
+++ method.c    (working copy)
@@ -2274,6 +2274,9 @@ after_nsdmi_defaulted_late_checks (tree t)
          continue;

        tree eh_spec = get_defaulted_eh_spec (fn);
+       if (eh_spec == error_mark_node)
+         continue;
+
        if (!comp_except_specs (TYPE_RAISES_EXCEPTIONS (TREE_TYPE (fn)),
                                eh_spec, ce_normal))
          DECL_DELETED_FN (fn) = true;

What do you think, Jason?
>From gcc-bugs-return-637875-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 10:39:50 2019
Return-Path: <gcc-bugs-return-637875-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94248 invoked by alias); 19 Mar 2019 10:39: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 94134 invoked by uid 48); 19 Mar 2019 10:39:45 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/88389] -flto -g -gsplit-dwarf is broken
Date: Tue, 19 Mar 2019 10:39: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: 8.2.1
X-Bugzilla-Keywords: lto, wrong-debug
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: SUSPENDED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on target_milestone short_desc everconfirmed
Message-ID: <bug-88389-4-Tgir4VkVjM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88389-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88389-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02169.txt.bz2
Content-length: 1747

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |SUSPENDED
   Last reconfirmed|                            |2019-03-19
   Target Milestone|8.4                         |---
            Summary|[8/9 Regression] -flto -g   |-flto -g -gsplit-dwarf is
                   |-gsplit-dwarf is broken     |broken
     Ever confirmed|0                           |1

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
So the issues are multiples.  First of all the way we handle split-dwarf
requires the driver to objcopy the .dwo sections to the .o.dwo files - this
step
would have to happen after copying out early debug into temporaries.  But then
I have a hard time seeing how to find the debug.

Of course -gsplit-dwarf at link-time doesn't make much sense.

I guess the proper way of doing -gsplit-dwarf at compile-time with -flto
would be to emit a _single_ (independent of -ffat-lto-objects) set of
.dwo sections from dwarf2out_early_finish - in fact move _all_ of the
split-dwarf handling there.  Then the only "LTO" debug sections would be
the skeleton ones.  There's still the unsolved issue that late debug info
will refer to DIEs in the .dwo debug in its symbol + offset way which of
course does not work.  There's no way to do this since .dwo files are
designed to have _all_ the debug info, not just type or decl parts like
-fdebug-types-sections.

So -flto looks like fundamentally incompatible with -gsplit-dwarf
and I doubt it's worth supporting it for the fat part of the objects.
>From gcc-bugs-return-637876-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 10:52:41 2019
Return-Path: <gcc-bugs-return-637876-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30764 invoked by alias); 19 Mar 2019 10:52: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 30647 invoked by uid 48); 19 Mar 2019 10:52:36 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89752] [8/9 Regression] ICE in emit_move_insn, at expr.c:3723
Date: Tue, 19 Mar 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: target
X-Bugzilla-Version: 8.3.1
X-Bugzilla-Keywords: ice-on-valid-code, needs-reduction
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89752-4-PDBbnGzvLb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89752-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89752-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02170.txt.bz2
Content-length: 1365

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

--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The following patch fixes the remaining ICE for me:
--- gcc/lra-constraints.c.jj    2019-03-16 22:17:21.060937047 +0100
+++ gcc/lra-constraints.c       2019-03-19 11:49:11.982058568 +0100
@@ -2350,6 +2350,8 @@ process_alt_operands (int only_alternati
                  break;

                reg:
+                 if (mode == BLKmode)
+                   break;
                  this_alternative = reg_class_subunion[this_alternative][cl];
                  IOR_HARD_REG_SET (this_alternative_set,
                                    reg_class_contents[cl]);
@@ -2360,8 +2362,6 @@ process_alt_operands (int only_alternati
                      IOR_HARD_REG_SET (this_costly_alternative_set,
                                        reg_class_contents[cl]);
                    }
-                 if (mode == BLKmode)
-                   break;
                  winreg = true;
                  if (REG_P (op))
                    {
What in my understanding happens is that even when the r constraint for the
BLKmode MEM doesn't win, this_alternative is still updated (to GENERAL_REGS in
this case) and as the m constraint matches, we still process it as if
GENERAL_REGS is an option.  It is not, BLKmode must live in memory.
>From gcc-bugs-return-637877-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 10:57:56 2019
Return-Path: <gcc-bugs-return-637877-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77048 invoked by alias); 19 Mar 2019 10:57: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 76971 invoked by uid 48); 19 Mar 2019 10:57:52 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/89764] [8 Regression] ubsan diagnostic on generic lambdas decayed to function pointers
Date: Tue, 19 Mar 2019 10:57: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: 8.3.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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc assigned_to
Message-ID: <bug-89764-4-44CCxFx1fv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89764-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89764-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02171.txt.bz2
Content-length: 517

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org
           Assignee|marxin at gcc dot gnu.org          |unassigned at gcc dot gnu.org

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with Jason's r268700 aka PR86943.
>From gcc-bugs-return-637878-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 10:59:09 2019
Return-Path: <gcc-bugs-return-637878-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78814 invoked by alias); 19 Mar 2019 10: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 78765 invoked by uid 48); 19 Mar 2019 10:59:05 -0000
From: "xuzheliang at huawei dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/89769] New: attribute((aligned(x))) array testcae  run error with option -fno-tree-loop-im
Date: Tue, 19 Mar 2019 10:59: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: xuzheliang at huawei dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-89769-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02172.txt.bz2
Content-length: 933

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

            Bug ID: 89769
           Summary: attribute((aligned(x))) array testcae  run error with
                    option -fno-tree-loop-im
           Product: gcc
           Version: 7.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: xuzheliang at huawei dot com
  Target Milestone: ---

>>cat pr43783.c
typedef __attribute__((aligned(16)))
struct {
  unsigned long long w[3];
} UINT192;

UINT192 bid_Kx192[32];

extern void abort (void);

int main()
{
  int i = 0;
  unsigned long x = 0;
  for (i = 0; i < 32; ++i)
    bid_Kx192[i].w[1] = i == 1;
  for (i = 0; i < 32; ++i)
    x += bid_Kx192[1].w[1];
  if (x != 32)
    abort ();
  return 0;
}

>>gcc  -O2 pr43783.c  -fno-tree-loop-im -o pr43783.exe
>>./pr43783.exe
Aborted
>From gcc-bugs-return-637879-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 11:08:37 2019
Return-Path: <gcc-bugs-return-637879-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23986 invoked by alias); 19 Mar 2019 11:08: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 22337 invoked by uid 48); 19 Mar 2019 11:08:33 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/89493] [9 Regression] Stack smashing on armv7hl
Date: Tue, 19 Mar 2019 11:08: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority target_milestone
Message-ID: <bug-89493-4-9H4mc0n6ZG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89493-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89493-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02173.txt.bz2
Content-length: 345

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
   Target Milestone|---                         |9.0
>From gcc-bugs-return-637881-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 11:09:22 2019
Return-Path: <gcc-bugs-return-637881-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41826 invoked by alias); 19 Mar 2019 11:09: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 41778 invoked by uid 48); 19 Mar 2019 11:09:19 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89644] [8/9 Regression] false-positive -Warray-bounds on strncpy with unterminated array
Date: Tue, 19 Mar 2019 11:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.3.0
X-Bugzilla-Keywords: diagnostic, patch
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: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority target_milestone
Message-ID: <bug-89644-4-zQAq6Wefum@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89644-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89644-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02175.txt.bz2
Content-length: 345

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
   Target Milestone|---                         |8.4
>From gcc-bugs-return-637880-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 11:09:08 2019
Return-Path: <gcc-bugs-return-637880-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41020 invoked by alias); 19 Mar 2019 11:09: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 39504 invoked by uid 48); 19 Mar 2019 11:09:04 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/89621] [7/8/9 Regression] ICE with allocatable character and openmp
Date: Tue, 19 Mar 2019 11:09: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.2.0
X-Bugzilla-Keywords: openmp
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth 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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority component target_milestone
Message-ID: <bug-89621-4-rdB6TK4F20@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89621-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89621-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02174.txt.bz2
Content-length: 405

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
          Component|fortran                     |middle-end
   Target Milestone|---                         |7.5
>From gcc-bugs-return-637883-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 11:09:49 2019
Return-Path: <gcc-bugs-return-637883-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43432 invoked by alias); 19 Mar 2019 11:09: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 43374 invoked by uid 48); 19 Mar 2019 11:09:45 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/89762] [8 Regression] Mixing optimization levels with ostream gives lto1: internal compiler error: in get_odr_type, at ipa-devirt.c:2098
Date: Tue, 19 Mar 2019 11:09: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.3.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: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority target_milestone
Message-ID: <bug-89762-4-6X8CJy01i7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89762-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89762-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02177.txt.bz2
Content-length: 345

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
   Target Milestone|---                         |8.4
>From gcc-bugs-return-637882-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 11:09:36 2019
Return-Path: <gcc-bugs-return-637882-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42579 invoked by alias); 19 Mar 2019 11:09: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 42502 invoked by uid 48); 19 Mar 2019 11:09:32 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89769] [7/8/9 Regression] attribute((aligned(x))) array testcase  run error with option -fno-tree-loop-im
Date: Tue, 19 Mar 2019 11:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.3.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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc component target_milestone short_desc everconfirmed
Message-ID: <bug-89769-4-vWS9lH6f4W@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89769-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89769-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02176.txt.bz2
Content-length: 1027

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-03-19
                 CC|                            |jakub at gcc dot gnu.org
          Component|c                           |tree-optimization
   Target Milestone|---                         |7.5
            Summary|attribute((aligned(x)))     |[7/8/9 Regression]
                   |array testcae  run error    |attribute((aligned(x)))
                   |with option                 |array testcase  run error
                   |-fno-tree-loop-im           |with option
                   |                            |-fno-tree-loop-im
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r238468.
>From gcc-bugs-return-637884-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 11:10:47 2019
Return-Path: <gcc-bugs-return-637884-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45716 invoked by alias); 19 Mar 2019 11:10: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 45637 invoked by uid 48); 19 Mar 2019 11:10:44 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/85711] [8 regression] ICE in aarch64_classify_address, at config/aarch64/aarch64.c:5678
Date: Tue, 19 Mar 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: 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: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority cf_known_to_work target_milestone
Message-ID: <bug-85711-4-AdlKFi3Jdx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85711-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85711-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02178.txt.bz2
Content-length: 398

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
      Known to work|                            |9.0
   Target Milestone|---                         |8.4
>From gcc-bugs-return-637885-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 11:11:13 2019
Return-Path: <gcc-bugs-return-637885-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46716 invoked by alias); 19 Mar 2019 11:11: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 46659 invoked by uid 48); 19 Mar 2019 11:11:10 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/88066] [7 Regression] Relative includes in bits/locale_conv.h should be prefixed
Date: Tue, 19 Mar 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: libstdc++
X-Bugzilla-Version: 5.0
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: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority target_milestone short_desc
Message-ID: <bug-88066-4-2N6uw5RdR1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88066-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88066-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02179.txt.bz2
Content-length: 615

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
   Target Milestone|---                         |7.5
            Summary|[7/8 Regression] Relative   |[7 Regression] Relative
                   |includes in                 |includes in
                   |bits/locale_conv.h should   |bits/locale_conv.h should
                   |be prefixed                 |be prefixed
>From gcc-bugs-return-637886-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 11:11:52 2019
Return-Path: <gcc-bugs-return-637886-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47837 invoked by alias); 19 Mar 2019 11:11: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 47786 invoked by uid 48); 19 Mar 2019 11:11:49 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/88740] [7/8 Regression] libstdc++ tests no longer print assertion failure messages
Date: Tue, 19 Mar 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: libstdc++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority cf_known_to_work target_milestone cf_known_to_fail
Message-ID: <bug-88740-4-6Lhc2Wqx26@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88740-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88740-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02180.txt.bz2
Content-length: 448

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
      Known to work|                            |9.0
   Target Milestone|---                         |7.5
      Known to fail|9.0                         |
>From gcc-bugs-return-637887-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 11:12:59 2019
Return-Path: <gcc-bugs-return-637887-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49731 invoked by alias); 19 Mar 2019 11:12: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 49653 invoked by uid 48); 19 Mar 2019 11:12:56 -0000
From: "rguenth 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: Tue, 19 Mar 2019 11:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.2.1
X-Bugzilla-Keywords: diagnostic, patch
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: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority cf_known_to_work target_milestone cf_known_to_fail
Message-ID: <bug-88800-4-a4o2Xwhtrt@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-03/txt/msg02181.txt.bz2
Content-length: 448

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
      Known to work|                            |9.0
   Target Milestone|---                         |8.4
      Known to fail|9.0                         |
>From gcc-bugs-return-637888-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 11:26:00 2019
Return-Path: <gcc-bugs-return-637888-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103393 invoked by alias); 19 Mar 2019 11:25: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 103322 invoked by uid 48); 19 Mar 2019 11:25:55 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89769] [7/8/9 Regression] attribute((aligned(x))) array testcase  run error with option -fno-tree-loop-im
Date: Tue, 19 Mar 2019 11: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: 7.3.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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89769-4-lLBYLXKM6E@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89769-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89769-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02182.txt.bz2
Content-length: 811

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
--- pr89769.c.126t.pre_ 2019-03-19 07:17:59.000000000 -0400
+++ pr89769.c.126t.pre  2019-03-19 07:18:28.000000000 -0400
@@ -120,7 +120,7 @@ main ()
     goto <bb 4>;

   <bb 4>:
-  pretmp_5 = bid_Kx192[1].w[1];
+  pretmp_5 = bid_Kx192[1]{lb: 0 sz: 16}.w[1];

   <bb 5>:
   # i_24 = PHI <0(4), i_14(5)>

is the first difference and that difference is there up to *.optimized.
sizeof(bid_Kx192) is 768 bytes, so the aligned(16) attribute looks bogus, so
maybe just invalid testcase?
If one uses typedef struct __attribute__((aligned(16))) { unsigned long long
w[3]; } UINT192;
where the type then has 32 bytes in size, 16 byte alignment, rather than 24
bytes in size, then it works fine.
>From gcc-bugs-return-637889-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 12:07:16 2019
Return-Path: <gcc-bugs-return-637889-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46078 invoked by alias); 19 Mar 2019 12:07: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 46032 invoked by uid 48); 19 Mar 2019 12:07:12 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89767] [8/9 Regression] ICE with tuple and optimization
Date: Tue, 19 Mar 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: c++
X-Bugzilla-Version: 8.3.0
X-Bugzilla-Keywords: 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: P2
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_reconfirmed_on cc everconfirmed
Message-ID: <bug-89767-4-KW6K8pO1Sp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89767-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89767-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02183.txt.bz2
Content-length: 2370

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-03-19
                 CC|                            |jason at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Reduced testcase:

// PR c++/89767
// { dg-do compile { target c++11 } }
// { dg-options "-O2 -Wall" }

template <typename d> struct e { using g = d; };
template <typename d, template <typename> class> using h = e<d>;
template <typename d, template <typename> class i>
using j = typename h<d, i>::g;
template <typename c> int k(c);
template <typename...> class au;
struct l { template <typename c> using m = typename c::f; };
struct s : l { using af = j<au<int, int> *, m>; };
template <unsigned long, typename> struct o;
template <long p, typename c> using q = typename o<p, c>::g;
template <typename> struct r;
template <typename c> struct r<c *> { typedef c aj; };
template <typename ak, typename> struct al { typename r<ak>::aj operator*();
void operator++(); };
template <typename am, typename an, typename ao>
bool operator!=(al<am, ao>, al<an, ao>);
template <unsigned long, typename...> struct ap;
template <unsigned long aq, typename ar, typename... as>
struct ap<aq, ar, as...> : ap<1, as...> {};
template <unsigned long aq, typename ar> struct ap<aq, ar> {};
template <typename... at> class au : public ap<0, at...> {};
template <unsigned long p, typename ar, typename... as>
struct o<p, au<ar, as...>> : o<p - 1, au<as...>> {};
template <typename ar, typename... as> struct o<0, au<ar, as...>> { typedef ar
g; };
template <long p, typename ar> constexpr ar av(ap<p, ar> __t) { return ar (); }
template <int p, typename... at> constexpr q<p, au<at...>> aw(au<at...> __t) {
av<p>(__t); return q<p, au<at...>> (); }
struct bg { typedef s::af af; };
struct F { typedef al<bg::af, int> bk; bk begin(); bk end(); };
void bo() { int t = 0; F cv; for (auto bp : cv) [t, n = k(aw<1>(bp))] {}; }

Started to ICE with r261086 aka CWG 1581 implementation.
Though, that change doesn't seem to be in 8.3.
>From gcc-bugs-return-637890-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 12:44:05 2019
Return-Path: <gcc-bugs-return-637890-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37791 invoked by alias); 19 Mar 2019 12:44: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 37717 invoked by uid 48); 19 Mar 2019 12:44:00 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89767] [8/9 Regression] ICE with tuple and optimization
Date: Tue, 19 Mar 2019 12: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: 8.3.0
X-Bugzilla-Keywords: 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: P2
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-89767-4-DjLQqYZPnA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89767-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89767-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02184.txt.bz2
Content-length: 1887

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 7.x and earlier used to do:
              /* The local structure or class can't use parameters of
                 the containing function anyway.  */
              if (DECL_CONTEXT (oldlocal) != current_function_decl)
                {
                  cp_binding_level *scope = current_binding_level;
                  tree context = DECL_CONTEXT (oldlocal);
                  for (; scope; scope = scope->level_chain)
                   {
                     if (scope->kind == sk_function_parms
                         && scope->this_entity == context)
                      break;
                     if (scope->kind == sk_class
                         && !LAMBDA_TYPE_P (scope->this_entity))
                       {
                         nowarn = true;
                         break;
                       }
                   }
                }
but r248123 after moving it to a different function changed it to:
      /* The local structure or class can't use parameters of
         the containing function anyway.  */
      if (DECL_CONTEXT (old) != current_function_decl)
        {
          for (cp_binding_level *scope = current_binding_level;
               scope != old_scope; scope = scope->level_chain)
            if (scope->kind == sk_class
                && !LAMBDA_TYPE_P (scope->this_entity))
              return;
        }
If old comes from a different function, such as in this case where there are
two nested instantiate_decl calls, one (the inner one) for av function above,
another one for aw, and I believe especially because the two functions aren't
lexically nested, it is just not possible to reach the old_scope (from the aw
function) from current_binding_level (in av function).
>From gcc-bugs-return-637891-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 13:14:52 2019
Return-Path: <gcc-bugs-return-637891-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93628 invoked by alias); 19 Mar 2019 13:14: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 91842 invoked by uid 48); 19 Mar 2019 13:14:48 -0000
From: "godeffroy.valet at m4x dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/67070] [concepts] Concept with negation and disjunction not checked correctly
Date: Tue, 19 Mar 2019 13:14: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: c++-concepts
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: godeffroy.valet at m4x 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-67070-4-KoKPZmQ7LP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67070-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67070-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02185.txt.bz2
Content-length: 565

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

Godeffroy Valet <godeffroy.valet at m4x dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |godeffroy.valet at m4x dot org

--- Comment #10 from Godeffroy Valet <godeffroy.valet at m4x dot org> ---
I confirm that I get different result using the constraint !(C<A> && C<B>) or
using (!C<A> || !C<B>), which is quite unexpected. I have "g++ (Debian
8.2.0-14)".
>From gcc-bugs-return-637892-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 13:24:03 2019
Return-Path: <gcc-bugs-return-637892-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88148 invoked by alias); 19 Mar 2019 13:24: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 87525 invoked by uid 48); 19 Mar 2019 13:23:58 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89767] [8/9 Regression] ICE with tuple and optimization
Date: Tue, 19 Mar 2019 13:24: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.3.0
X-Bugzilla-Keywords: 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: P2
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-89767-4-M3iZg6mTLd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89767-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89767-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02186.txt.bz2
Content-length: 863

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

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

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Though, following doesn't ICE:
template <int N>
constexpr bool foo (int x) { return x; }
template <int N>
constexpr bool bar (int x) { return foo <N> (x); }
template <int N>
constexpr bool baz (int x) { return bar <N> (x); }
auto a = baz<0> (0);
and the IDENTIFIER_BINDING of x is saved/restored through push_to_top_level and
pop_from_top_level.  For the above testcase it is called too, but for some
reason the binding that is pushed to toplevel is the bo function one, not aw.
>From gcc-bugs-return-637893-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 13:44:40 2019
Return-Path: <gcc-bugs-return-637893-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95518 invoked by alias); 19 Mar 2019 13:44:40 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 95466 invoked by uid 55); 19 Mar 2019 13:44:36 -0000
From: "kelvin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89736] New test pr87532-mc.c fails on compiler not defaulting to VSX
Date: Tue, 19 Mar 2019 13:44: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: kelvin at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P5
X-Bugzilla-Assigned-To: kelvin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89736-4-nOeQ2mR1RX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89736-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89736-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02187.txt.bz2
Content-length: 561

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

--- Comment #3 from kelvin at gcc dot gnu.org ---
Author: kelvin
Date: Tue Mar 19 13:44:03 2019
New Revision: 269796

URL: https://gcc.gnu.org/viewcvs?rev=269796&root=gcc&view=rev
Log:
gcc/testsuite/ChangeLog:

2019-03-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>

        PR target/89736
        * gcc.target/powerpc/pr87532-mc.c: Modify dejagnu directives to
        restrict this test to vsx targets.


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/powerpc/pr87532-mc.c
>From gcc-bugs-return-637894-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 13:56:08 2019
Return-Path: <gcc-bugs-return-637894-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118264 invoked by alias); 19 Mar 2019 13:56: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 118159 invoked by uid 48); 19 Mar 2019 13:56:05 -0000
From: "wilco at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/89493] [9 Regression] Stack smashing on armv7hl
Date: Tue, 19 Mar 2019 13:56: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wilco at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
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-89493-4-EWqtjNrbTX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89493-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89493-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02188.txt.bz2
Content-length: 427

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

Wilco <wilco at gcc dot gnu.org> changed:

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

--- Comment #2 from Wilco <wilco at gcc dot gnu.org> ---
So is this an Ada unwind bug? What kind of unwinder does Ada use?
>From gcc-bugs-return-637895-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 14:04:23 2019
Return-Path: <gcc-bugs-return-637895-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14617 invoked by alias); 19 Mar 2019 14:04: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 12757 invoked by uid 48); 19 Mar 2019 14:04:20 -0000
From: "wilco at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89607] Missing optimization for store of multiple registers on aarch64
Date: Tue, 19 Mar 2019 14: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.1
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wilco 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 cc resolution target_milestone
Message-ID: <bug-89607-4-aK4EXI8zbd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89607-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89607-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02189.txt.bz2
Content-length: 562

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

Wilco <wilco at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |wilco at gcc dot gnu.org
         Resolution|---                         |FIXED
   Target Milestone|---                         |9.0

--- Comment #9 from Wilco <wilco at gcc dot gnu.org> ---
Fixed in GCC9 already, so closing.
>From gcc-bugs-return-637896-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 14:22:53 2019
Return-Path: <gcc-bugs-return-637896-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115838 invoked by alias); 19 Mar 2019 14:22: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 115719 invoked by uid 48); 19 Mar 2019 14:22:49 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89767] [8/9 Regression] ICE with tuple and optimization
Date: Tue, 19 Mar 2019 14:22: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.3.0
X-Bugzilla-Keywords: 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: P2
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-89767-4-K80nzEAmQ2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89767-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89767-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02190.txt.bz2
Content-length: 2939

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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Ah, so the reason why __t PARM_DECL is not normally removed is that we reuse
IDENTIFIER_MARKED for something different, in particular:
  /* If TREE_TYPE isn't set, we're still in the introducer, so check
     for duplicates.  */
  if (!LAMBDA_EXPR_CLOSURE (lambda))
    {
      if (IDENTIFIER_MARKED (name))
        {
          pedwarn (input_location, 0,
                   "already captured %qD in lambda expression", id);
          return NULL_TREE;
        }
      IDENTIFIER_MARKED (name) = true;
    }
and we only clear it much later in register_capture_members:
  IDENTIFIER_MARKED (DECL_NAME (field)) = false;
But, while we are parsing the lambda, we perform those push_to_top_level and
pop_from_top_level and those do use IDENTIFIER_MARKED to determine if the
identifier binding actually should be saved/restored or not.
This particular testcase I guess could be fixed by replacing:
  /* Add __ to the beginning of the field name so that user code
     won't find the field with name lookup.  We can't just leave the name
     unset because template instantiation uses the name to find
     instantiated fields.  */
  buf = (char *) alloca (IDENTIFIER_LENGTH (id) + 3);
  buf[1] = buf[0] = '_';
  memcpy (buf + 2, IDENTIFIER_POINTER (id),
          IDENTIFIER_LENGTH (id) + 1);
with using say ".." as prefix instead of "__", so that it is use inaccessible.
But what about following testcase?

void bar (int);
void foo () { int x = 0; auto z = [x, y = [x] { bar (x); }] { y (); bar (x); };
z (); }

clang++ -std=c++17 accepts that, g++ rejects with:
pr89767-4.C: In function ‘void foo()’:
pr89767-4.C:2:44: warning: already captured ‘x’ in lambda expression
    2 | void foo () { int x = 0; auto z = [x, y = [x] { bar (x); }] { y (); bar
(x); }; z (); }
      |                                            ^
pr89767-4.C: In lambda function:
pr89767-4.C:2:54: error: ‘x’ is not captured
    2 | void foo () { int x = 0; auto z = [x, y = [x] { bar (x); }] { y (); bar
(x); }; z (); }
      |                                                      ^
pr89767-4.C:2:45: note: the lambda has no capture-default
    2 | void foo () { int x = 0; auto z = [x, y = [x] { bar (x); }] { y (); bar
(x); }; z (); }
      |                                             ^
pr89767-4.C:2:19: note: ‘int x’ declared here
    2 | void foo () { int x = 0; auto z = [x, y = [x] { bar (x); }] { y (); bar
(x); }; z (); }
      |                   ^

Seems the use of IDENTIFIER_MARKED for this purpose has been added in r175211,
i.e. PR43831 fix.  So, if we want to keep using that and not something
different, we'd need to do those ..s or something similar and save/restore it
when starting to parse a new lambda.
>From gcc-bugs-return-637897-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 14:51:44 2019
Return-Path: <gcc-bugs-return-637897-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84008 invoked by alias); 19 Mar 2019 14:51: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 83922 invoked by uid 48); 19 Mar 2019 14:51:41 -0000
From: "hubicka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/89762] [8 Regression] Mixing optimization levels with ostream gives lto1: internal compiler error: in get_odr_type, at ipa-devirt.c:2098
Date: Tue, 19 Mar 2019 14:51: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.3.0
X-Bugzilla-Keywords: ice-on-valid-code, lto
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hubicka at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89762-4-I2s4F4lh5l@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89762-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89762-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02191.txt.bz2
Content-length: 356

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

--- Comment #2 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
The patch can't be backported since it depends on the rest of type
simplification infrastructure that is GCC 9 only.  I will take a look why
registration fails - it looks like the patch above only works around the issue
anyway.

Honza
>From gcc-bugs-return-637898-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 14:54:23 2019
Return-Path: <gcc-bugs-return-637898-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67720 invoked by alias); 19 Mar 2019 14:54: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 57956 invoked by uid 55); 19 Mar 2019 14:54:15 -0000
From: "hubicka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/89335] [9 Regression] ICE with LTO -Wsuggest-final-methods: ICE during IPA pass devirt in types_same_for_odr, at ipa-devirt.c:391
Date: Tue, 19 Mar 2019 14:54: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: hubicka at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89335-4-ocB1oQ5WYk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89335-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89335-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02192.txt.bz2
Content-length: 777

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

--- Comment #4 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Author: hubicka
Date: Tue Mar 19 14:53:43 2019
New Revision: 269799

URL: https://gcc.gnu.org/viewcvs?rev=269799&root=gcc&view=rev
Log:

        PR lto/87809
        PR lto/89335
        * tree.c (free_lang_data_in_decl): Do not free context of C++
        destrutors.

        * g++.dg/lto/pr87089_0.C: New testcase.
        * g++.dg/lto/pr87089_1.C: New testcase.
        * g++.dg/lto/pr89335_0.C: New testcase.

Added:
    trunk/gcc/testsuite/g++.dg/lto/pr87089_0.C
    trunk/gcc/testsuite/g++.dg/lto/pr87089_1.C
    trunk/gcc/testsuite/g++.dg/lto/pr89335_0.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree.c
>From gcc-bugs-return-637899-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 14:54:23 2019
Return-Path: <gcc-bugs-return-637899-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67927 invoked by alias); 19 Mar 2019 14:54: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 58581 invoked by uid 55); 19 Mar 2019 14:54:15 -0000
From: "hubicka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/87809] [8/9 Regression] Can't create empty std::optional<std::vector<int, CustomAlloc>>
Date: Tue, 19 Mar 2019 14:54: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: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hubicka at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-87809-4-2dmFyCcdz0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87809-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87809-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02193.txt.bz2
Content-length: 777

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

--- Comment #9 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Author: hubicka
Date: Tue Mar 19 14:53:43 2019
New Revision: 269799

URL: https://gcc.gnu.org/viewcvs?rev=269799&root=gcc&view=rev
Log:

        PR lto/87809
        PR lto/89335
        * tree.c (free_lang_data_in_decl): Do not free context of C++
        destrutors.

        * g++.dg/lto/pr87089_0.C: New testcase.
        * g++.dg/lto/pr87089_1.C: New testcase.
        * g++.dg/lto/pr89335_0.C: New testcase.

Added:
    trunk/gcc/testsuite/g++.dg/lto/pr87089_0.C
    trunk/gcc/testsuite/g++.dg/lto/pr87089_1.C
    trunk/gcc/testsuite/g++.dg/lto/pr89335_0.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree.c
>From gcc-bugs-return-637900-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 14:57:53 2019
Return-Path: <gcc-bugs-return-637900-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96359 invoked by alias); 19 Mar 2019 14:57: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 96289 invoked by uid 55); 19 Mar 2019 14:57:49 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/88389] -flto -g -gsplit-dwarf is broken
Date: Tue, 19 Mar 2019 14:57: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: 8.2.1
X-Bugzilla-Keywords: lto, wrong-debug
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: SUSPENDED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88389-4-CbLk8uOZjT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88389-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88389-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02194.txt.bz2
Content-length: 465

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

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Tue Mar 19 14:57:18 2019
New Revision: 269800

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

        PR debug/88389
        * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/opts.c
>From gcc-bugs-return-637901-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 15:04:10 2019
Return-Path: <gcc-bugs-return-637901-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105360 invoked by alias); 19 Mar 2019 15:04: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 105330 invoked by uid 48); 19 Mar 2019 15:04:07 -0000
From: "kelvin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89736] New test pr87532-mc.c fails on compiler not defaulting to VSX
Date: Tue, 19 Mar 2019 15: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kelvin at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P5
X-Bugzilla-Assigned-To: kelvin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-89736-4-WrRVcGvB3c@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89736-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89736-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02195.txt.bz2
Content-length: 412

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

kelvin at gcc dot gnu.org changed:

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

--- Comment #4 from kelvin at gcc dot gnu.org ---
Patch committed to trunk.
>From gcc-bugs-return-637903-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 15:11:57 2019
Return-Path: <gcc-bugs-return-637903-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113609 invoked by alias); 19 Mar 2019 15:11:57 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 113494 invoked by uid 48); 19 Mar 2019 15:11:54 -0000
From: "hubicka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/87089] [9 regression] tree check: expected class 'type', have 'declaration' (namespace_decl) in type_with_linkage_p, at ipa-utils.h
Date: Tue, 19 Mar 2019 15:11: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: hubicka 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-87089-4-1GGbQDa3gY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87089-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87089-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02197.txt.bz2
Content-length: 424

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

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

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

--- Comment #13 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-637904-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 15:11:58 2019
Return-Path: <gcc-bugs-return-637904-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113828 invoked by alias); 19 Mar 2019 15:11: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 113537 invoked by uid 48); 19 Mar 2019 15:11:54 -0000
From: "hubicka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/89335] [9 Regression] ICE with LTO -Wsuggest-final-methods: ICE during IPA pass devirt in types_same_for_odr, at ipa-devirt.c:391
Date: Tue, 19 Mar 2019 15:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_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: hubicka at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-89335-4-vWImB9ZioB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89335-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89335-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02198.txt.bz2
Content-length: 552

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

Bug 87089 Summary: [9 regression] tree check: expected class 'type', have 'declaration' (namespace_decl) in type_with_linkage_p, at ipa-utils.h
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87089

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-637902-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 15:11:21 2019
Return-Path: <gcc-bugs-return-637902-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112453 invoked by alias); 19 Mar 2019 15:11: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 112374 invoked by uid 48); 19 Mar 2019 15:11:18 -0000
From: "hubicka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/89335] [9 Regression] ICE with LTO -Wsuggest-final-methods: ICE during IPA pass devirt in types_same_for_odr, at ipa-devirt.c:391
Date: Tue, 19 Mar 2019 15:11: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: hubicka at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-89335-4-30hVUoAHdO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89335-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89335-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02196.txt.bz2
Content-length: 423

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

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

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

--- Comment #5 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-637905-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 15:17:30 2019
Return-Path: <gcc-bugs-return-637905-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5471 invoked by alias); 19 Mar 2019 15:17: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 5390 invoked by uid 48); 19 Mar 2019 15:17:26 -0000
From: "hedayat.fwd at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/85965] G++ gives cryptic error instead of incomplete type
Date: Tue, 19 Mar 2019 15:17: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.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hedayat.fwd at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-85965-4-B90vCR20Ga@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85965-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85965-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02199.txt.bz2
Content-length: 1001

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

Hedayat Vatankhah <hedayat.fwd at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hedayat.fwd at gmail dot com

--- Comment #2 from Hedayat Vatankhah <hedayat.fwd at gmail dot com> ---
IMHO, it is very unfortunate that we need to provide the full definition for
this to work. It has forced me to include a header file just for this error to
go away, which is not desirable. I guess it doesn't compile a completely valid
C++ code (at least, I've not found that this is a std::set requirement). 

Probably, __is_invocable<> should not signal an error if it finds an incomplete
type, or it should be replaced with a construct that doesn't.

So, if the code using an incomplete type pointer for std::set is a valid C++
code, this is a sever (non-standard conforming) bug in library.
>From gcc-bugs-return-637906-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 15:19:50 2019
Return-Path: <gcc-bugs-return-637906-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23773 invoked by alias); 19 Mar 2019 15:19: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 23704 invoked by uid 48); 19 Mar 2019 15:19:46 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/89769] [7/8/9 Regression] attribute((aligned(x))) array testcase  run error with option -fno-tree-loop-im
Date: Tue, 19 Mar 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: middle-end
X-Bugzilla-Version: 7.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc component
Message-ID: <bug-89769-4-jrTNwocR3v@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89769-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89769-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02200.txt.bz2
Content-length: 1830

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jsm28 at gcc dot gnu.org,
                   |                            |rguenth at gcc dot gnu.org
          Component|tree-optimization           |middle-end

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
The issue is that array_ref_element_size of the [i] ref returns 24.  Even when
inside just

unsigned long long foo(int i)
{
  return bid_Kx192[i].w[0];
}

and RTL expansion get_inner_reference produces for offset
(sizetype) i_2(D) * 24 resulting in

foo:
.LFB0:
        .cfi_startproc
        movslq  %edi, %rdi
        leaq    (%rdi,%rdi,2), %rax
        movq    bid_Kx192(,%rax,8), %rax
        ret

Now the issue with SCCVN is that it expects TYPE_SIZE_UNIT to be exactly
dividable by TYPE_ALIGN_UNIT which it isn't (we divide 24 by 16):

            /* But record element size in units of the type alignment.  */
            temp.op2 = TREE_OPERAND (ref, 3);
            temp.align = eltype->type_common.align;
            if (! temp.op2)
              temp.op2 = size_binop (EXACT_DIV_EXPR, TYPE_SIZE_UNIT (eltype),
                                     size_int (TYPE_ALIGN_UNIT (eltype)));

that is, for this ARRAY_REF there exists no valid value to put in
TREE_OPERAND (ref, 3), the aligned size tree operand used by
array_ref_element_size.

IMHO this should never happen.

The IL claims the array elements are all aligned to 16 bytes but they are
obviously not.

Joseph?  Who's at fault here?

(side-note, the wide-int code treats EXACT_DIV_EXPR just like TRUNC_DIV_EXPR
reporting no error).
>From gcc-bugs-return-637907-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 15:30:04 2019
Return-Path: <gcc-bugs-return-637907-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95761 invoked by alias); 19 Mar 2019 15:30: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 95417 invoked by uid 48); 19 Mar 2019 15:29:59 -0000
From: "hubicka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/89693] [9 Regression] ICE: verify_cgraph_node failed (error: edge points to wrong declaration)
Date: Tue, 19 Mar 2019 15:30: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: ice-checking, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hubicka 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-89693-4-qVjq7ua56t@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89693-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89693-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02201.txt.bz2
Content-length: 1878

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

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

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

--- Comment #2 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
ip-cp clones thunk:
Evaluating opportunities for virtual C* C::_ZTch0_h8_N1C3TwoEv()/5.             
 - Creating a specialized node of virtual C* C::_ZTch0_h8_N1C3TwoEv()/5 for all
known contexts.
     the new node is _ZTch0_h8_N1C3TwoEv.constprop/41.

and this makes verifier unhappy. clone_of returns false for:
(gdb) p node->debug ()
_ZTchn8_h8_N1C3TwoEv/7 (virtual C* C::_ZTchn8_h8_N1C3TwoEv()) @0x7ffff70e9ca8
  Type: function definition analyzed
  Visibility: externally_visible asm_written public virtual artificial
  Address is taken.
  References: 
  Referring: _ZTV1C/25 (addr)
  Availability: available
  Function flags: indirect_call_target
  Thunk fixed offset -8 virtual value 0 indirect_offset 0 has virtual offset 0
  Called by: 
  Calls: C* C::*.LTHUNK1()/6 
$21 = void
(gdb) p node2->debug ()
_ZTch0_h8_N1C3TwoEv.constprop.0/41 (_ZTch0_h8_N1C3TwoEv.constprop)
@0x7ffff7262708
  Type: function definition analyzed
  Visibility: artificial
  References: 
  Referring: 
  Clone of _ZTch0_h8_N1C3TwoEv/5
  Availability: local
  Function flags: count:10000 (estimated locally) local
  Former thunk fixed offset 8 virtual value 0 indirect_offset 0 has virtual
offset 0
  Called by: int main()/24 (1073741824 (estimated locally),1.00 per call) 
  Calls: 

I think the bug here is that Martin's patch makes clone_of to look at thunk
target of _ZTchn8_h8_N1C3TwoEv, but _ZTch0_h8_N1C3TwoEv.constprop.0 actual
clone of _ZTchn8_h8_N1C3TwoEv.
>From gcc-bugs-return-637908-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 15:58:05 2019
Return-Path: <gcc-bugs-return-637908-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93473 invoked by alias); 19 Mar 2019 15:58: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 93407 invoked by uid 48); 19 Mar 2019 15:58:02 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89767] [8/9 Regression] ICE with tuple and optimization
Date: Tue, 19 Mar 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: c++
X-Bugzilla-Version: 8.3.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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to attachments.created
Message-ID: <bug-89767-4-HuEheRQFhr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89767-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89767-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02202.txt.bz2
Content-length: 578

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

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 #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 45997
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45997&action=edit
gcc9-pr89767.patch

Untested fix.
>From gcc-bugs-return-637909-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 16:05:18 2019
Return-Path: <gcc-bugs-return-637909-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8201 invoked by alias); 19 Mar 2019 16: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 8146 invoked by uid 48); 19 Mar 2019 16:05:15 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89726] [7/8 Regression] Incorrect inlined version of 'ceil' for 32bit
Date: Tue, 19 Mar 2019 16:05: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.3.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
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-89726-4-pYYkZv14z7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89726-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89726-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02203.txt.bz2
Content-length: 540

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[7/8/9 Regression]          |[7/8 Regression] Incorrect
                   |Incorrect inlined version   |inlined version of 'ceil'
                   |of 'ceil' for 32bit         |for 32bit

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed on the trunk so far.
>From gcc-bugs-return-637910-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 16:11:35 2019
Return-Path: <gcc-bugs-return-637910-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18918 invoked by alias); 19 Mar 2019 16:11: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 18848 invoked by uid 55); 19 Mar 2019 16:11:31 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89378] [9 regression][MIPS] FAIL: gcc.dg/vect/pr88598-3.c  -mmsa (internal compiler error)
Date: Tue, 19 Mar 2019 16: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:
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-89378-4-GWoKc4NjRs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89378-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89378-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02204.txt.bz2
Content-length: 573

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Mar 19 16:10:59 2019
New Revision: 269801

URL: https://gcc.gnu.org/viewcvs?rev=269801&root=gcc&view=rev
Log:
        PR target/89378
        * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
        instead of gen_rtx_SUBREG.
        * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/mips/mips-msa.md
    trunk/gcc/config/mips/mips.c
>From gcc-bugs-return-637911-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 16:12:13 2019
Return-Path: <gcc-bugs-return-637911-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20146 invoked by alias); 19 Mar 2019 16:12: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 20073 invoked by uid 48); 19 Mar 2019 16:12:10 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/89684] [8 Regression] ICE in gsi_for_stmt, at gimple-iterator.c:613
Date: Tue, 19 Mar 2019 16: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: 9.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: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-89684-4-dQqob5joYz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89684-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89684-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02205.txt.bz2
Content-length: 538

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[8/9 Regression] ICE in     |[8 Regression] ICE in
                   |gsi_for_stmt, at            |gsi_for_stmt, at
                   |gimple-iterator.c:613       |gimple-iterator.c:613

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed on the trunk so far.
>From gcc-bugs-return-637912-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 16:12:47 2019
Return-Path: <gcc-bugs-return-637912-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21403 invoked by alias); 19 Mar 2019 16:12: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 21342 invoked by uid 48); 19 Mar 2019 16:12:44 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89378] [9 regression][MIPS] FAIL: gcc.dg/vect/pr88598-3.c  -mmsa (internal compiler error)
Date: Tue, 19 Mar 2019 16: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:
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: bug_status resolution assigned_to
Message-ID: <bug-89378-4-NE9b8jCXMP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89378-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89378-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02206.txt.bz2
Content-length: 506

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

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

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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-637913-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 16:13:40 2019
Return-Path: <gcc-bugs-return-637913-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22795 invoked by alias); 19 Mar 2019 16:13: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 22727 invoked by uid 48); 19 Mar 2019 16:13:36 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/85965] [8/9 Regression] G++ gives cryptic error instead of incomplete type
Date: Tue, 19 Mar 2019 16:13: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: 8.1.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_known_to_work keywords cf_reconfirmed_on component assigned_to everconfirmed short_desc target_milestone cf_known_to_fail
Message-ID: <bug-85965-4-yUor1zBLrl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85965-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85965-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02207.txt.bz2
Content-length: 1522

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
      Known to work|                            |7.3.0
           Keywords|diagnostic                  |rejects-valid
   Last reconfirmed|                            |2019-03-19
          Component|c++                         |libstdc++
           Assignee|unassigned at gcc dot gnu.org      |redi at gcc dot gnu.org
     Ever confirmed|0                           |1
            Summary|G++ gives cryptic error     |[8/9 Regression] G++ gives
                   |instead of incomplete type  |cryptic error instead of
                   |                            |incomplete type
   Target Milestone|---                         |8.4
      Known to fail|                            |8.3.0, 9.0

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Hedayat Vatankhah from comment #2)
> Probably, __is_invocable<> should not signal an error if it finds an
> incomplete type, or it should be replaced with a construct that doesn't.

It's not possible for a type trait to give a different answer depending whether
a type is complete or not. That would violate the One-Definition Rule.

I'd forgotten about this issue because the component wasn't libstdc++. I will
remove the is_invocable checks.
>From gcc-bugs-return-637914-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 16:50:48 2019
Return-Path: <gcc-bugs-return-637914-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50250 invoked by alias); 19 Mar 2019 16:50:48 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 50160 invoked by uid 48); 19 Mar 2019 16:50:44 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/89751] [PDT] ICE: Segmentation fault (in resolve_component)
Date: Tue, 19 Mar 2019 16:50: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
X-Bugzilla-Severity: normal
X-Bugzilla-Who: janus at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: see_also
Message-ID: <bug-89751-4-vBHAd8yozP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89751-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89751-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02208.txt.bz2
Content-length: 1829

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

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=89707

--- Comment #3 from janus at gcc dot gnu.org ---
(In reply to Dominique d'Humieres from comment #1)
> The test compiles with the following patch
> 
> --- ../_clean/gcc/fortran/resolve.c	2019-03-18 09:41:55.000000000 +0100
> +++ gcc/fortran/resolve.c	2019-03-18 11:37:56.000000000 +0100
> @@ -13973,7 +13976,7 @@ resolve_component (gfc_component *c, gfc
>      }
>  
>    /* Procedure pointer components: Check PASS arg.  */
> -  if (c->attr.proc_pointer && !c->tb->nopass && c->tb->pass_arg_num == 0
> +  if (c->attr.proc_pointer && c->tb && !c->tb->nopass &&
> c->tb->pass_arg_num == 0
>        && !sym->attr.vtype)
>      {
>        gfc_symbol* me_arg;

I don't think this is a particularly good idea. One should rather make sure
that the tb component is present, e.g. via:

diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c
index 749faf9fabe..86beb2c6f2f 100644
--- a/gcc/fortran/decl.c
+++ b/gcc/fortran/decl.c
@@ -3737,6 +3737,7 @@ gfc_get_pdt_instance (gfc_actual_arglist *param_list,
gfc_symbol **sym,

       c2->ts = c1->ts;
       c2->attr = c1->attr;
+      c2->tb = c1->tb;

       /* The order of declaration of the type_specs might not be the
         same as that of the components.  */

However this runs into a different ICE :(


> However I have no idea if the test is valid or not.

I would say it is valid (at least I don't see why it wouldn't be).


This is very much related to PR 89707, almost a duplicate.
>From gcc-bugs-return-637915-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 16:55:38 2019
Return-Path: <gcc-bugs-return-637915-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1937 invoked by alias); 19 Mar 2019 16: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 1862 invoked by uid 48); 19 Mar 2019 16:55:34 -0000
From: "psmith at gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/85965] [8/9 Regression] G++ gives cryptic error instead of incomplete type
Date: Tue, 19 Mar 2019 16:55: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: 8.1.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: psmith at gnu dot org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-85965-4-xvrXFUrpLw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85965-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85965-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02209.txt.bz2
Content-length: 217

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

--- Comment #4 from Paul Smith <psmith at gnu dot org> ---
Oops sorry: I guess I'm not familiar enough with the vagaries of the bug
trackers :).  Thanks Jonathan!
>From gcc-bugs-return-637916-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 16:59:18 2019
Return-Path: <gcc-bugs-return-637916-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13377 invoked by alias); 19 Mar 2019 16:59: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 13306 invoked by uid 55); 19 Mar 2019 16:59:15 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89746] powerpc-none-eabi-gcc emits code using stfiwx to misaligned address
Date: Tue, 19 Mar 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: target
X-Bugzilla-Version: 8.3.0
X-Bugzilla-Keywords: missed-optimization, 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: segher at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89746-4-J3ByOdjrQ8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89746-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89746-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02210.txt.bz2
Content-length: 1311

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

--- Comment #7 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Author: segher
Date: Tue Mar 19 16:58:42 2019
New Revision: 269802

URL: https://gcc.gnu.org/viewcvs?rev=269802&root=gcc&view=rev
Log:
rs6000: Unaligned stfiwx on older CPUs (PR89746)

The "classic" PowerPCs (6xx/7xx) are not STRICT_ALIGNMENT, but their
floating point units are.  This is not normally a problem, the ABIs
make everything FP aligned.  The RTL patterns converting FP to integer
however get a potentially unaligned destination, and we do not want to
do an stfiwx on that on such older CPUs.

This fixes it.  It does not change anything for TARGET_MFCRF targets
(POWER4 and later).  It also won't change anything for strict-alignment
targets, or CPUs without hardware FP of course, or CPUs that do not
implement stfiwx (older 4xx/5xx/8xx).

It does not change the corresponding fixuns* pattern, because that can
not be enabled on any CPU that cannot handle unaligned FP well.


        PR target/89746
        * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
        non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
        go via a stack temporary.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/rs6000/rs6000.md
>From gcc-bugs-return-637917-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 17:01:30 2019
Return-Path: <gcc-bugs-return-637917-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17992 invoked by alias); 19 Mar 2019 17:01: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 17907 invoked by uid 48); 19 Mar 2019 17:01:26 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/85965] [8/9 Regression] G++ gives cryptic error instead of incomplete type
Date: Tue, 19 Mar 2019 17:01: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: 8.1.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-85965-4-eVjkyKLf2S@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85965-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85965-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02211.txt.bz2
Content-length: 201

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

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
No problem, it's not the reporter's responsibility to categorise it correctly.
>From gcc-bugs-return-637918-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 17:05:29 2019
Return-Path: <gcc-bugs-return-637918-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24107 invoked by alias); 19 Mar 2019 17:05: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 24003 invoked by uid 48); 19 Mar 2019 17:05:24 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/71861] [7/8/9 Regression] [F03] ICE in write_symbol(): bad module symbol
Date: Tue, 19 Mar 2019 17: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: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: janus at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: janus at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-71861-4-0AR5oo63tm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71861-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71861-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02212.txt.bz2
Content-length: 1560

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

janus at gcc dot gnu.org changed:

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

--- Comment #8 from janus at gcc dot gnu.org ---
(In reply to kargl from comment #7)
> Does Note 15.2 in F2018 apply?
> 
>    An interface body cannot be used to describe the interface of an
>    internal procedure, a module procedure that is not a separate module
>    procedure, or an intrinsic procedure because the interfaces of such
>    procedures are already explicit. However, the name of a procedure
>    can appear in a PROCEDURE statement in an interface block (15.4.3.2).

Probably yes. In any case, the test cases are rejected with an INTERFACE that
is not ABSTRACT:

Error: EXTERNAL attribute conflicts with INTRINSIC attribute at (1)


With an ABSTRACT INTERFACE, they can be rejected via:

diff --git a/gcc/fortran/symbol.c b/gcc/fortran/symbol.c
index c342d62ead1..ec753229a98 100644
--- a/gcc/fortran/symbol.c
+++ b/gcc/fortran/symbol.c
@@ -557,6 +557,7 @@ check_conflict (symbol_attribute *attr, const char *name,
locus *where)

   conf (external, intrinsic);
   conf (entry, intrinsic);
+  conf (abstract, intrinsic);

   if ((attr->if_source == IFSRC_DECL && !attr->procedure) || attr->contained)
     conf (external, subroutine);



I'm about to regtest this ...
>From gcc-bugs-return-637920-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 17:09:39 2019
Return-Path: <gcc-bugs-return-637920-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50690 invoked by alias); 19 Mar 2019 17:09: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 50621 invoked by uid 48); 19 Mar 2019 17:09:36 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/89737] [9 Regression] ICE in set_even_probabilities at predict.c:893 since r267485
Date: Tue, 19 Mar 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: middle-end
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: RESOLVED
X-Bugzilla-Resolution: FIXED
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: bug_status resolution
Message-ID: <bug-89737-4-DqHZDocYuw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89737-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89737-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02214.txt.bz2
Content-length: 433

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

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

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

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-637919-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 17:09:09 2019
Return-Path: <gcc-bugs-return-637919-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47822 invoked by alias); 19 Mar 2019 17:09: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 47126 invoked by uid 55); 19 Mar 2019 17:09:03 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/89737] [9 Regression] ICE in set_even_probabilities at predict.c:893 since r267485
Date: Tue, 19 Mar 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: middle-end
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: 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:
Message-ID: <bug-89737-4-R7r0Xy7xOe@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89737-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89737-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02213.txt.bz2
Content-length: 790

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

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Tue Mar 19 17:08:28 2019
New Revision: 269804

URL: https://gcc.gnu.org/viewcvs?rev=269804&root=gcc&view=rev
Log:
Fix set of even probabilities (PR middle-end/89737).

2019-03-19  Martin Liska  <mliska@suse.cz>

        PR middle-end/89737
        * predict.c (combine_predictions_for_bb): Empty likely_edges and
        unlikely_edges if there's an edge that belongs to both these sets.
2019-03-19  Martin Liska  <mliska@suse.cz>

        PR middle-end/89737
        * gcc.dg/pr89737.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr89737.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/predict.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-637921-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 17:10:20 2019
Return-Path: <gcc-bugs-return-637921-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52520 invoked by alias); 19 Mar 2019 17:10: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 52462 invoked by uid 48); 19 Mar 2019 17:10:17 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/89762] [8 Regression] Mixing optimization levels with ostream gives lto1: internal compiler error: in get_odr_type, at ipa-devirt.c:2098
Date: Tue, 19 Mar 2019 17:10: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.3.0
X-Bugzilla-Keywords: ice-on-valid-code, lto
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: hubicka at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: assigned_to
Message-ID: <bug-89762-4-MM8dneMYCQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89762-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89762-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02215.txt.bz2
Content-length: 443

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|marxin at gcc dot gnu.org          |hubicka at gcc dot gnu.org

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Thank you Honza, I am assigning that to you.
>From gcc-bugs-return-637922-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 17:37:32 2019
Return-Path: <gcc-bugs-return-637922-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34156 invoked by alias); 19 Mar 2019 17:37: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 34087 invoked by uid 48); 19 Mar 2019 17:37:28 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug web/89770] New: move java-related mailing lists on lists.html to the "Historical lists" section
Date: Tue, 19 Mar 2019 17:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: web
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: documentation
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager 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-89770-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02216.txt.bz2
Content-length: 864

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

            Bug ID: 89770
           Summary: move java-related mailing lists on lists.html to the
                    "Historical lists" section
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: documentation
          Severity: normal
          Priority: P3
         Component: web
          Assignee: unassigned at gcc dot gnu.org
          Reporter: egallager at gcc dot gnu.org
                CC: gerald at pfeifer dot com
  Target Milestone: ---

Right now java-related mailing lists are still listed in the active mailing
lists section of lists.html, giving the impression that they are still active:
https://gcc.gnu.org/lists.html
They should be moved to the "Historical lists (archives only, no longer in
use)" section since java has been removed.
>From gcc-bugs-return-637924-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 17:46:30 2019
Return-Path: <gcc-bugs-return-637924-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13431 invoked by alias); 19 Mar 2019 17: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 11806 invoked by uid 48); 19 Mar 2019 17:46:27 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89644] [8 Regression] false-positive -Warray-bounds on strncpy with unterminated array
Date: Tue, 19 Mar 2019 17: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.3.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc cf_known_to_fail
Message-ID: <bug-89644-4-xaO8gGLrqi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89644-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89644-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02218.txt.bz2
Content-length: 659

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[8/9 Regression]            |[8 Regression]
                   |false-positive              |false-positive
                   |-Warray-bounds on strncpy   |-Warray-bounds on strncpy
                   |with unterminated array     |with unterminated array
      Known to fail|9.0                         |

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
Fixed in GCC 9.0 via r269807.
>From gcc-bugs-return-637923-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 17:46:09 2019
Return-Path: <gcc-bugs-return-637923-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7696 invoked by alias); 19 Mar 2019 17: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 5889 invoked by uid 55); 19 Mar 2019 17:46:06 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89644] [8/9 Regression] false-positive -Warray-bounds on strncpy with unterminated array
Date: Tue, 19 Mar 2019 17: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.3.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89644-4-XoofiefyLj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89644-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89644-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02217.txt.bz2
Content-length: 818

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

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Tue Mar 19 17:45:34 2019
New Revision: 269807

URL: https://gcc.gnu.org/viewcvs?rev=269807&root=gcc&view=rev
Log:
PR tree-optimization/89644 - False-positive -Warray-bounds diagnostic on
strncpy

gcc/ChangeLog:

        PR tree-optimization/89644
        * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
        arrays in determining sequence sizes in strncpy and stpncpy.

gcc/testsuite/ChangeLog:

        PR tree-optimization/89644
        * gcc.dg/Wstringop-truncation-8.c: New test.


Added:
    trunk/gcc/testsuite/gcc.dg/Wstringop-truncation-8.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-strlen.c
>From gcc-bugs-return-637925-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 17:46:59 2019
Return-Path: <gcc-bugs-return-637925-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18765 invoked by alias); 19 Mar 2019 17:46: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 16383 invoked by uid 55); 19 Mar 2019 17:46:54 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/88389] -flto -g -gsplit-dwarf is broken
Date: Tue, 19 Mar 2019 17:46: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: 8.2.1
X-Bugzilla-Keywords: lto, wrong-debug
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: SUSPENDED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88389-4-sSjzXcjUsM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88389-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88389-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02219.txt.bz2
Content-length: 497

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

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Tue Mar 19 17:46:22 2019
New Revision: 269808

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

        PR debug/88389
        * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.

Modified:
    branches/gcc-8-branch/gcc/ChangeLog
    branches/gcc-8-branch/gcc/opts.c
>From gcc-bugs-return-637926-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 17:47:12 2019
Return-Path: <gcc-bugs-return-637926-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19724 invoked by alias); 19 Mar 2019 17:47: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 19629 invoked by uid 48); 19 Mar 2019 17:47:08 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/88389] -flto -g -gsplit-dwarf is broken
Date: Tue, 19 Mar 2019 17:47: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: 8.2.1
X-Bugzilla-Keywords: lto, wrong-debug
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: SUSPENDED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88389-4-4qVdBdltou@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88389-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88389-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02220.txt.bz2
Content-length: 181

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

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mitigated for GCC 8+ by ignoring -gsplit-dwarf with -flto.
>From gcc-bugs-return-637927-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 18:11:56 2019
Return-Path: <gcc-bugs-return-637927-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127967 invoked by alias); 19 Mar 2019 18:11: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 127888 invoked by uid 48); 19 Mar 2019 18:11:53 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/87145] [7/8/9 Regression] Implicit conversion to scoped enum fails: "error: taking address of temporary/rvalue"
Date: Tue, 19 Mar 2019 18: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: 7.3.1
X-Bugzilla-Keywords: rejects-valid
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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-87145-4-Or5y9gVY8n@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87145-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87145-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02221.txt.bz2
Content-length: 807

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

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

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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
This hunk in particular broke this:

@@ -7278,7 +7306,7 @@ convert_template_argument (tree parm,
          val = error_mark_node;
        }
    }
-      else if (!dependent_template_arg_p (orig_arg)
+      else if (!type_dependent_expression_p (orig_arg)
           && !uses_template_parms (t))
    /* We used to call digest_init here.  However, digest_init
       will report errors, which we don't want when complain
>From gcc-bugs-return-637928-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 18:36:17 2019
Return-Path: <gcc-bugs-return-637928-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80738 invoked by alias); 19 Mar 2019 18:36: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 80664 invoked by uid 55); 19 Mar 2019 18:36:13 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89644] [8 Regression] false-positive -Warray-bounds on strncpy with unterminated array
Date: Tue, 19 Mar 2019 18: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.3.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89644-4-FQi4noxLWX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89644-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89644-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02222.txt.bz2
Content-length: 573

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

--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Tue Mar 19 18:35:42 2019
New Revision: 269809

URL: https://gcc.gnu.org/viewcvs?rev=269809&root=gcc&view=rev
Log:
PR tree-optimization/89644 - false-positive -Warray-bounds on strncpy with
unterminated array

gcc/ChangeLog:
        * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
        rather than endptr as an indicator of nul-termination.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-ssa-strlen.c
>From gcc-bugs-return-637929-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 18:37:24 2019
Return-Path: <gcc-bugs-return-637929-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 83365 invoked by alias); 19 Mar 2019 18:37: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 83283 invoked by uid 48); 19 Mar 2019 18:37:21 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/71861] [7/8/9 Regression] [F03] ICE in write_symbol(): bad module symbol
Date: Tue, 19 Mar 2019 18: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: 7.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: janus at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: janus at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords
Message-ID: <bug-71861-4-HSeQRhsuAh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71861-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71861-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02223.txt.bz2
Content-length: 431

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

janus at gcc dot gnu.org changed:

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

--- Comment #9 from janus at gcc dot gnu.org ---
(In reply to janus from comment #8)
> I'm about to regtest this ...

No failures observed.
>From gcc-bugs-return-637930-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 19:04:49 2019
Return-Path: <gcc-bugs-return-637930-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109963 invoked by alias); 19 Mar 2019 19:04: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 109907 invoked by uid 55); 19 Mar 2019 19:04:45 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/89768] [7/8/9 Regression] ICE in compare_and_jump_seq at loop-unroll.c:838
Date: Tue, 19 Mar 2019 19:04: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: 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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89768-4-XosSKy7lCP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89768-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89768-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02224.txt.bz2
Content-length: 512

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Mar 19 19:04:14 2019
New Revision: 269812

URL: https://gcc.gnu.org/viewcvs?rev=269812&root=gcc&view=rev
Log:
        PR rtl-optimization/89768
        * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
        instead of GEN_INT.
        (unroll_loop_runtime_iterations): Likewise.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/loop-unroll.c
>From gcc-bugs-return-637931-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 19:23:51 2019
Return-Path: <gcc-bugs-return-637931-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111596 invoked by alias); 19 Mar 2019 19:23: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 111258 invoked by uid 48); 19 Mar 2019 19:23:48 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/89768] [7/8 Regression] ICE in compare_and_jump_seq at loop-unroll.c:838
Date: Tue, 19 Mar 2019 19:23: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: 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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-89768-4-B2eH2HIsum@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89768-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89768-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02225.txt.bz2
Content-length: 543

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[7/8/9 Regression] ICE in   |[7/8 Regression] ICE in
                   |compare_and_jump_seq at     |compare_and_jump_seq at
                   |loop-unroll.c:838           |loop-unroll.c:838

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed on the trunk so far.
>From gcc-bugs-return-637932-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 20:11:44 2019
Return-Path: <gcc-bugs-return-637932-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11755 invoked by alias); 19 Mar 2019 20:11: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 11695 invoked by uid 48); 19 Mar 2019 20:11:40 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/89769] [7/8/9 Regression] attribute((aligned(x))) array testcase  run error with option -fno-tree-loop-im
Date: Tue, 19 Mar 2019 20: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.3.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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords cc
Message-ID: <bug-89769-4-LWUNu4PXrs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89769-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89769-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02226.txt.bz2
Content-length: 611

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
                 CC|                            |pinskia at gcc dot gnu.org

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I had a similar report to me but I never got around to debugging it and filing
this.  NOTE my report to me did not require -fno-tree-loop-im to run into the
issue.
>From gcc-bugs-return-637933-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 20:12:34 2019
Return-Path: <gcc-bugs-return-637933-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35971 invoked by alias); 19 Mar 2019 20:12: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 30401 invoked by uid 48); 19 Mar 2019 20:12:29 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/89769] [7/8/9 Regression] attribute((aligned(x))) array testcase  run error with option -fno-tree-loop-im
Date: Tue, 19 Mar 2019 20:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.3.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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89769-4-G9svScXwfN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89769-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89769-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02227.txt.bz2
Content-length: 153

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

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Isn't this a dup of bug 43798 ?
>From gcc-bugs-return-637934-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 20:21:47 2019
Return-Path: <gcc-bugs-return-637934-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71971 invoked by alias); 19 Mar 2019 20:21: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 71905 invoked by uid 48); 19 Mar 2019 20:21:39 -0000
From: "seurer at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/89771] New: [9 regression] c-c++-common/Wrestrict.c fails starting with r269807
Date: Tue, 19 Mar 2019 20:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: seurer 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-89771-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02228.txt.bz2
Content-length: 14232

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

            Bug ID: 89771
           Summary: [9 regression] c-c++-common/Wrestrict.c fails starting
                    with r269807
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: seurer at gcc dot gnu.org
  Target Milestone: ---

There are a whole bunch of new failures from this test case starting with
r269807. 

------------------------------------------------------------------------
r269807 | msebor | 2019-03-19 12:45:34 -0500 (Tue, 19 Mar 2019) | 14 lines

PR tree-optimization/89644 - False-positive -Warray-bounds diagnostic on
strncpy

gcc/ChangeLog:

        PR tree-optimization/89644
        * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
        arrays in determining sequence sizes in strncpy and stpncpy.

gcc/testsuite/ChangeLog:

        PR tree-optimization/89644
        * gcc.dg/Wstringop-truncation-8.c: New test.

Some of the excess errors:

Excess errors:
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/Wrestrict.c:811:3:
warning: 'strncpy' accessing 4 bytes at offsets 0 and 1 overlaps 2 bytes at
offset 1 [-Wrestrict]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/Wrestrict.c:812:3:
warning: 'strncpy' accessing 5 bytes at offsets 0 and 1 overlaps 2 bytes at
offset 1 [-Wrestrict]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/Wrestrict.c:813:3:
warning: 'strncpy' accessing 6 bytes at offsets 0 and 1 overlaps 2 bytes at
offset 1 [-Wrestrict]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/Wrestrict.c:819:3:
warning: 'strncpy' accessing 4 bytes at offsets 0 and 2 overlaps 1 byte at
offset 2 [-Wrestrict]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/Wrestrict.c:820:3:
warning: 'strncpy' accessing 5 bytes at offsets 0 and 2 overlaps 1 byte at
offset 2 [-Wrestrict]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/Wrestrict.c:827:3:
warning: 'strncpy' accessing 5 bytes at offsets 0 and 2 overlaps 2 bytes at
offset 2 [-Wrestrict]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/Wrestrict.c:828:3:
warning: 'strncpy' accessing 6 bytes at offsets 0 and 2 overlaps 2 bytes at
offset 2 [-Wrestrict]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/Wrestrict.c:867:3:
warning: 'strncpy' accessing 5 bytes at offsets 0 and [1, 5] may overlap up to
3 bytes at offset [3, 1] [-Wrestrict]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/Wrestrict.c:875:3:
warning: 'strncpy' accessing 5 bytes at offsets 0 and [2, 5] may overlap up to
2 bytes at offset [3, 2] [-Wrestrict]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/Wrestrict.c:876:3:
warning: 'strncpy' accessing 6 bytes at offsets 0 and [2, 5] may overlap up to
2 bytes at offset [3, 2] [-Wrestrict]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/Wrestrict.c:884:3:
warning: 'strncpy' accessing 5 bytes at offsets 0 and [3, 5] may overlap 1 byte
at offset 3 [-Wrestrict]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/Wrestrict.c:885:3:
warning: 'strncpy' accessing 6 bytes at offsets 0 and [3, 5] may overlap 1 byte
at offset 3 [-Wrestrict]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/Wrestrict.c:893:3:
warning: 'strncpy' accessing 5 bytes at offsets 0 and [4, 5] may overlap up to
0 bytes at offset [9223372036854775807, -9223372036854775808] [-Wrestrict]
/home/seurer/gcc/gcc-trunk/gcc/testsuite/c-c++-common/Wrestrict.c:894:3:
warning: 'strncpy' accessing 6 bytes at offsets 0 and [4, 5] may overlap up to
0 bytes at offset [9223372036854775807, -9223372036854775808] [-Wrestrict]


diff between r269806's and r267807's output for one run:

131,133c131,133
< /home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/Wrestrict.c:811:3:
warning: 'strncpy' accessing 4 bytes at offsets 0 and 1 overlaps 3 bytes at
offset 1 [-Wrestrict]
< /home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/Wrestrict.c:812:3:
warning: 'strncpy' accessing 5 bytes at offsets 0 and 1 overlaps 3 bytes at
offset 1 [-Wrestrict]
< /home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/Wrestrict.c:813:3:
warning: 'strncpy' accessing 6 bytes at offsets 0 and 1 overlaps 3 bytes at
offset 1 [-Wrestrict]
---
> /home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/Wrestrict.c:811:3: warning: 'strncpy' accessing 4 bytes at offsets 0 and 1 overlaps 2 bytes at offset 1 [-Wrestrict]
> /home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/Wrestrict.c:812:3: warning: 'strncpy' accessing 5 bytes at offsets 0 and 1 overlaps 2 bytes at offset 1 [-Wrestrict]
> /home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/Wrestrict.c:813:3: warning: 'strncpy' accessing 6 bytes at offsets 0 and 1 overlaps 2 bytes at offset 1 [-Wrestrict]
135,136c135,136
< /home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/Wrestrict.c:819:3:
warning: 'strncpy' accessing 4 bytes at offsets 0 and 2 overlaps 2 bytes at
offset 2 [-Wrestrict]
< /home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/Wrestrict.c:820:3:
warning: 'strncpy' accessing 5 bytes at offsets 0 and 2 overlaps 2 bytes at
offset 2 [-Wrestrict]
---
> /home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/Wrestrict.c:819:3: warning: 'strncpy' accessing 4 bytes at offsets 0 and 2 overlaps 1 byte at offset 2 [-Wrestrict]
> /home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/Wrestrict.c:820:3: warning: 'strncpy' accessing 5 bytes at offsets 0 and 2 overlaps 1 byte at offset 2 [-Wrestrict]
139,140c139,140
< /home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/Wrestrict.c:827:3:
warning: 'strncpy' accessing 5 bytes at offsets 0 and 2 overlaps 3 bytes at
offset 2 [-Wrestrict]
< /home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/Wrestrict.c:828:3:
warning: 'strncpy' accessing 6 bytes at offsets 0 and 2 overlaps 3 bytes at
offset 2 [-Wrestrict]
---
> /home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/Wrestrict.c:827:3: warning: 'strncpy' accessing 5 bytes at offsets 0 and 2 overlaps 2 bytes at offset 2 [-Wrestrict]
> /home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/Wrestrict.c:828:3: warning: 'strncpy' accessing 6 bytes at offsets 0 and 2 overlaps 2 bytes at offset 2 [-Wrestrict]
148c148
< /home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/Wrestrict.c:867:3:
warning: 'strncpy' accessing 5 bytes at offsets 0 and [1, 5] may overlap up to
4 bytes at offset [4, 1] [-Wrestrict]
---
> /home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/Wrestrict.c:867:3: warning: 'strncpy' accessing 5 bytes at offsets 0 and [1, 5] may overlap up to 3 bytes at offset [3, 1] [-Wrestrict]
151,152c151,152
< /home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/Wrestrict.c:875:3:
warning: 'strncpy' accessing 5 bytes at offsets 0 and [2, 5] may overlap up to
3 bytes at offset [4, 2] [-Wrestrict]
< /home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/Wrestrict.c:876:3:
warning: 'strncpy' accessing 6 bytes at offsets 0 and [2, 5] may overlap up to
3 bytes at offset [4, 2] [-Wrestrict]
---
> /home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/Wrestrict.c:875:3: warning: 'strncpy' accessing 5 bytes at offsets 0 and [2, 5] may overlap up to 2 bytes at offset [3, 2] [-Wrestrict]
> /home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/Wrestrict.c:876:3: warning: 'strncpy' accessing 6 bytes at offsets 0 and [2, 5] may overlap up to 2 bytes at offset [3, 2] [-Wrestrict]
154,157c154,157
< /home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/Wrestrict.c:884:3:
warning: 'strncpy' accessing 5 bytes at offsets 0 and [3, 5] may overlap up to
2 bytes at offset [4, 3] [-Wrestrict]
< /home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/Wrestrict.c:885:3:
warning: 'strncpy' accessing 6 bytes at offsets 0 and [3, 5] may overlap up to
2 bytes at offset [4, 3] [-Wrestrict]
< /home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/Wrestrict.c:893:3:
warning: 'strncpy' accessing 5 bytes at offsets 0 and [4, 5] may overlap 1 byte
at offset 4 [-Wrestrict]
< /home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/Wrestrict.c:894:3:
warning: 'strncpy' accessing 6 bytes at offsets 0 and [4, 5] may overlap 1 byte
at offset 4 [-Wrestrict]
---
> /home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/Wrestrict.c:884:3: warning: 'strncpy' accessing 5 bytes at offsets 0 and [3, 5] may overlap 1 byte at offset 3 [-Wrestrict]
> /home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/Wrestrict.c:885:3: warning: 'strncpy' accessing 6 bytes at offsets 0 and [3, 5] may overlap 1 byte at offset 3 [-Wrestrict]
> /home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/Wrestrict.c:893:3: warning: 'strncpy' accessing 5 bytes at offsets 0 and [4, 5] may overlap up to 0 bytes at offset [9223372036854775807, -9223372036854775808] [-Wrestrict]
> /home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/Wrestrict.c:894:3: warning: 'strncpy' accessing 6 bytes at offsets 0 and [4, 5] may overlap up to 0 bytes at offset [9223372036854775807, -9223372036854775808] [-Wrestrict]




FAIL: c-c++-common/Wrestrict.c  -Wc++-compat  strncpy (test for warnings, line
811)
FAIL: c-c++-common/Wrestrict.c  -Wc++-compat  strncpy (test for warnings, line
812)
FAIL: c-c++-common/Wrestrict.c  -Wc++-compat  strncpy (test for warnings, line
813)
FAIL: c-c++-common/Wrestrict.c  -Wc++-compat  strncpy (test for warnings, line
819)
FAIL: c-c++-common/Wrestrict.c  -Wc++-compat  strncpy (test for warnings, line
820)
FAIL: c-c++-common/Wrestrict.c  -Wc++-compat  strncpy (test for warnings, line
827)
FAIL: c-c++-common/Wrestrict.c  -Wc++-compat  strncpy (test for warnings, line
828)
FAIL: c-c++-common/Wrestrict.c  -Wc++-compat  strncpy (test for warnings, line
867)
FAIL: c-c++-common/Wrestrict.c  -Wc++-compat  strncpy (test for warnings, line
875)
FAIL: c-c++-common/Wrestrict.c  -Wc++-compat  strncpy (test for warnings, line
876)
FAIL: c-c++-common/Wrestrict.c  -Wc++-compat  strncpy (test for warnings, line
884)
FAIL: c-c++-common/Wrestrict.c  -Wc++-compat  strncpy (test for warnings, line
885)
FAIL: c-c++-common/Wrestrict.c  -Wc++-compat  strncpy (test for warnings, line
893)
FAIL: c-c++-common/Wrestrict.c  -Wc++-compat  strncpy (test for warnings, line
894)
FAIL: c-c++-common/Wrestrict.c  -Wc++-compat  (test for excess errors)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++98 strncpy (test for warnings, line
811)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++98 strncpy (test for warnings, line
812)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++98 strncpy (test for warnings, line
813)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++98 strncpy (test for warnings, line
819)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++98 strncpy (test for warnings, line
820)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++98 strncpy (test for warnings, line
827)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++98 strncpy (test for warnings, line
828)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++98 strncpy (test for warnings, line
867)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++98 strncpy (test for warnings, line
875)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++98 strncpy (test for warnings, line
876)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++98 strncpy (test for warnings, line
884)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++98 strncpy (test for warnings, line
885)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++98 strncpy (test for warnings, line
893)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++98 strncpy (test for warnings, line
894)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++98 (test for excess errors)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++14 strncpy (test for warnings, line
811)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++14 strncpy (test for warnings, line
812)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++14 strncpy (test for warnings, line
813)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++14 strncpy (test for warnings, line
819)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++14 strncpy (test for warnings, line
820)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++14 strncpy (test for warnings, line
827)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++14 strncpy (test for warnings, line
828)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++14 strncpy (test for warnings, line
867)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++14 strncpy (test for warnings, line
875)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++14 strncpy (test for warnings, line
876)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++14 strncpy (test for warnings, line
884)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++14 strncpy (test for warnings, line
885)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++14 strncpy (test for warnings, line
893)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++14 strncpy (test for warnings, line
894)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++14 (test for excess errors)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++17 strncpy (test for warnings, line
811)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++17 strncpy (test for warnings, line
812)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++17 strncpy (test for warnings, line
813)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++17 strncpy (test for warnings, line
819)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++17 strncpy (test for warnings, line
820)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++17 strncpy (test for warnings, line
827)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++17 strncpy (test for warnings, line
828)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++17 strncpy (test for warnings, line
867)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++17 strncpy (test for warnings, line
875)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++17 strncpy (test for warnings, line
876)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++17 strncpy (test for warnings, line
884)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++17 strncpy (test for warnings, line
885)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++17 strncpy (test for warnings, line
893)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++17 strncpy (test for warnings, line
894)
FAIL: c-c++-common/Wrestrict.c  -std=gnu++17 (test for excess errors)
>From gcc-bugs-return-637935-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 21:33:19 2019
Return-Path: <gcc-bugs-return-637935-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126456 invoked by alias); 19 Mar 2019 21:33: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 126368 invoked by uid 48); 19 Mar 2019 21:33:16 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/87145] [7/8/9 Regression] Implicit conversion to scoped enum fails: "error: taking address of temporary/rvalue"
Date: Tue, 19 Mar 2019 21: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: 7.3.1
X-Bugzilla-Keywords: rejects-valid
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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-87145-4-p547yG2Upq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87145-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87145-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02229.txt.bz2
Content-length: 960

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

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
The fix for 77656 caused us to call convert_nontype_argument even for
value-dependent arguments, to perform the conversion in order to avoid a bogus
warning.

In this case, the argument is Pod{N}.  The call to
build_converted_constant_expr in convert_nontype_argument produces
Pod::operator Enum(&{N}).  It doesn't crash because we're in a template and
build_address no longer crashed on CONSTRUCTORs in a template.

Then when instantiating  function foo we substitute its argument: &{N}.  So
we're in tsubst_copy_and_build/ADDR_EXPR.  The call to
tsubst_non_call_postfix_expression turns {N} into TARGET_EXPR <D.2329,
{.val=2}>.
Then build_x_unary_op is supposed to put the ADDR_EXPR back.  It calls
cp_build_addr_expr_strict.  But it's *strict*, so the prvalue of class type
TARGET_EXPR <D.2329, {.val=2}> isn't allowed -> error.
>From gcc-bugs-return-637936-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 22:08:04 2019
Return-Path: <gcc-bugs-return-637936-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15091 invoked by alias); 19 Mar 2019 22:08: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 14956 invoked by uid 48); 19 Mar 2019 22:08:00 -0000
From: "anlauf at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/83515] ICE: Invalid expression in gfc_element_size
Date: Tue, 19 Mar 2019 22:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: anlauf 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-83515-4-isoAIa1k8Z@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83515-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83515-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02230.txt.bz2
Content-length: 836

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

anlauf at gcc dot gnu.org changed:

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

--- Comment #7 from anlauf at gcc dot gnu.org ---
(In reply to G. Steinmetz from comment #3)

In class.c we have:

Breakpoint 1, find_intrinsic_vtab (ts=0x2474758)
    at ../../trunk/gcc/fortran/class.c:2715
2715                    gfc_element_size (e, &e_size);

(gdb) p e->ts.type
$8 = BT_PROCEDURE

This case is something that is generally not handled.
What is the storage size of procedure (pointers)?

This needs to be added in gfc_element_size or gfc_typenode_for_spec,
and the call in class.c needs to be adjusted accordingly.
>From gcc-bugs-return-637937-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 22:18:12 2019
Return-Path: <gcc-bugs-return-637937-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95753 invoked by alias); 19 Mar 2019 22:18: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 95684 invoked by uid 48); 19 Mar 2019 22:18:09 -0000
From: "anlauf at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/83515] ICE: Invalid expression in gfc_element_size
Date: Tue, 19 Mar 2019 22:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: anlauf 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-83515-4-j21Ktzcav6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83515-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83515-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02231.txt.bz2
Content-length: 1278

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

--- Comment #8 from anlauf at gcc dot gnu.org ---
(In reply to anlauf from comment #7)
The following patch fixes the ICE:

Index: trans-types.c
===================================================================
--- trans-types.c       (revision 269779)
+++ trans-types.c       (working copy)
@@ -1194,6 +1194,9 @@
            basetype = pfunc_type_node;
        }
        break;
+    case BT_PROCEDURE:
+      basetype = pfunc_type_node;
+      break;
     default:
       gcc_unreachable ();
     }
Index: target-memory.c
===================================================================
--- target-memory.c     (revision 269779)
+++ target-memory.c     (working copy)
@@ -120,6 +120,7 @@
     case BT_CLASS:
     case BT_VOID:
     case BT_ASSUMED:
+    case BT_PROCEDURE:
       {
        /* Determine type size without clobbering the typespec for ISO C
           binding types.  */

However, I do not have a working code sample to run.
>From gcc-bugs-return-637938-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 22:24:52 2019
Return-Path: <gcc-bugs-return-637938-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108133 invoked by alias); 19 Mar 2019 22:24: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 108074 invoked by uid 48); 19 Mar 2019 22:24:49 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/87145] [7/8/9 Regression] Implicit conversion to scoped enum fails: "error: taking address of temporary/rvalue"
Date: Tue, 19 Mar 2019 22:24: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.1
X-Bugzilla-Keywords: rejects-valid
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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-87145-4-XxmDa5JBNm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87145-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87145-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02232.txt.bz2
Content-length: 232

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

--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
It's _strict since https://gcc.gnu.org/ml/gcc-patches/2010-09/msg02144.html --
that was a desirable change.
>From gcc-bugs-return-637940-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 22:29:32 2019
Return-Path: <gcc-bugs-return-637940-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16998 invoked by alias); 19 Mar 2019 22:29: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 16864 invoked by uid 48); 19 Mar 2019 22:29:29 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82173] [meta-bug] Parameterized derived type errors
Date: Tue, 19 Mar 2019 22:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: janus at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: pault at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-82173-4-3niTJpTgWw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82173-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82173-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02234.txt.bz2
Content-length: 495

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

Bug 89601 Summary: [8 Regression] [PDT] ICE: Segmentation fault (in resolve_component)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89601

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-637939-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 22:29:31 2019
Return-Path: <gcc-bugs-return-637939-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16936 invoked by alias); 19 Mar 2019 22:29: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 16837 invoked by uid 48); 19 Mar 2019 22:29:28 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/89601] [8 Regression] [PDT] ICE: Segmentation fault (in resolve_component)
Date: Tue, 19 Mar 2019 22:29: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-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: janus at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: janus at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-89601-4-O460oXYXZ3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89601-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89601-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02233.txt.bz2
Content-length: 590

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

janus at gcc dot gnu.org changed:

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

--- Comment #7 from janus at gcc dot gnu.org ---
(In reply to Dominique d'Humieres from comment #6)
> Is this fixed or is there any plan to back port r269658?

Fixed on trunk only up to now. I don't think it's worth backporting. Closing
this PR as fixed.
>From gcc-bugs-return-637941-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 22:34:08 2019
Return-Path: <gcc-bugs-return-637941-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22780 invoked by alias); 19 Mar 2019 22:34: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 22705 invoked by uid 55); 19 Mar 2019 22:34:05 -0000
From: "wilson at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89411] RISC-V backend will generate wrong instruction for longlong type like lw a3,-2048(a5)
Date: Tue, 19 Mar 2019 22: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: 7.3.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wilson 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-89411-4-D6AWkXxSyS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89411-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89411-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02235.txt.bz2
Content-length: 872

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

--- Comment #5 from Jim Wilson <wilson at gcc dot gnu.org> ---
Author: wilson
Date: Tue Mar 19 22:33:34 2019
New Revision: 269813

URL: https://gcc.gnu.org/viewcvs?rev=269813&root=gcc&view=rev
Log:
RISC-V: Fix %lo overflow with BLKmode references.

        gcc/
        PR target/89411
        * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x.  New locals
        align, size, offset.  Use them to handle a BLKmode reference.  Update
        comment.
        (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.

        gcc/testsuite/
        PR target/89411
        * gcc.target/riscv/losum-overflow.c: New test.

Added:
    trunk/gcc/testsuite/gcc.target/riscv/losum-overflow.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/riscv/riscv.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-637942-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 22:36:04 2019
Return-Path: <gcc-bugs-return-637942-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26444 invoked by alias); 19 Mar 2019 22:36: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 26389 invoked by uid 48); 19 Mar 2019 22:36:01 -0000
From: "wilson at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89411] RISC-V backend will generate wrong instruction for longlong type like lw a3,-2048(a5)
Date: Tue, 19 Mar 2019 22:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.3.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wilson at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: wilson at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution assigned_to
Message-ID: <bug-89411-4-0ay19Azfdm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89411-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89411-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02236.txt.bz2
Content-length: 524

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

Jim Wilson <wilson at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
           Assignee|unassigned at gcc dot gnu.org      |wilson at gcc dot gnu.org

--- Comment #6 from Jim Wilson <wilson at gcc dot gnu.org> ---
Fixed, with testcase added.
>From gcc-bugs-return-637943-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 22:43:47 2019
Return-Path: <gcc-bugs-return-637943-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45130 invoked by alias); 19 Mar 2019 22:43: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 44997 invoked by uid 55); 19 Mar 2019 22:43:42 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89688] [9 Regression] -Wstringop-overflow confused by const 2D array of char
Date: Tue, 19 Mar 2019 22: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: diagnostic, missed-optimization, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor 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:
Message-ID: <bug-89688-4-VLWKhDInwW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89688-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89688-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02237.txt.bz2
Content-length: 1464

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

--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Tue Mar 19 22:43:10 2019
New Revision: 269814

URL: https://gcc.gnu.org/viewcvs?rev=269814&root=gcc&view=rev
Log:
PR tree-optimization/89688 - -Wstringop-overflow confused by const 2D array of
char

gcc/c/ChangeLog:

        PR tree-optimization/89688
        * c-decl.c (finish_decl): Call braced_lists_to_string for more
        kinds of initializers.

gcc/c-family/ChangeLog:

        PR tree-optimization/89688
        * c-common.c (braced_list_to_string): Make static.
        (braced_lists_to_strings): Define new function.
        * c-common.h (braced_list_to_string): Remove.
        (braced_lists_to_strings): Declare.

gcc/cp/ChangeLog:

        PR tree-optimization/89688
        * typeck2.c (store_init_value): Call braced_lists_to_string for more
        kinds of initializers.

gcc/testsuite/ChangeLog:

        PR tree-optimization/89688
        * gcc.dg/strlenopt-61.c: New test.
        * g++.dg/warn/Wstringop-overflow-2.C: New test.


Added:
    trunk/gcc/testsuite/g++.dg/warn/Wstringop-overflow-2.C
    trunk/gcc/testsuite/gcc.dg/strlenopt-61.c
Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-common.c
    trunk/gcc/c-family/c-common.h
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-decl.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck2.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-637945-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 22:44:19 2019
Return-Path: <gcc-bugs-return-637945-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46460 invoked by alias); 19 Mar 2019 22:44: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 46292 invoked by uid 48); 19 Mar 2019 22:44:12 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/83819] [meta-bug] missing strlen optimizations
Date: Tue, 19 Mar 2019 22:44: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, missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-83819-4-SShWlbCyjP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83819-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83819-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02239.txt.bz2
Content-length: 497

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

Bug 89688 Summary: [9 Regression] -Wstringop-overflow confused by const 2D array of char
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89688

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-637944-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 22:44:19 2019
Return-Path: <gcc-bugs-return-637944-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46379 invoked by alias); 19 Mar 2019 22:44: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 46282 invoked by uid 48); 19 Mar 2019 22:44:12 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89688] [9 Regression] -Wstringop-overflow confused by const 2D array of char
Date: Tue, 19 Mar 2019 22:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 9.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: P1
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-89688-4-BbgVLZrxK5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89688-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89688-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02238.txt.bz2
Content-length: 444

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

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

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

--- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> ---
Patch committed in r269814.
>From gcc-bugs-return-637946-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 19 22:48:25 2019
Return-Path: <gcc-bugs-return-637946-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 83203 invoked by alias); 19 Mar 2019 22:48: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 82995 invoked by uid 48); 19 Mar 2019 22:48:04 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/89771] [9 regression] c-c++-common/Wrestrict.c fails starting with r269807
Date: Tue, 19 Mar 2019 22:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
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 resolution assigned_to
Message-ID: <bug-89771-4-qXgl3vii9O@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89771-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89771-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02240.txt.bz2
Content-length: 606

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
           Assignee|unassigned at gcc dot gnu.org      |msebor at gcc dot gnu.org

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
r269809 should clear up the failures.  See also:
https://gcc.gnu.org/ml/gcc-patches/2019-03/msg00944.html
>From gcc-bugs-return-637947-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 00:00:55 2019
Return-Path: <gcc-bugs-return-637947-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52965 invoked by alias); 20 Mar 2019 00:00: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 52858 invoked by uid 48); 20 Mar 2019 00:00:43 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89772] New: memchr for a character not in constant nul-padded string not folded
Date: Wed, 20 Mar 2019 00:00: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: msebor 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-89772-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02241.txt.bz2
Content-length: 1806

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

            Bug ID: 89772
           Summary: memchr for a character not in constant nul-padded
                    string not folded
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: msebor at gcc dot gnu.org
  Target Milestone: ---

Only the first of the two calls to memchr below is folded, the second one
isn't.  Looks like it's simply because fold_const_call considers only string
lengths (it calls c_getstr()) and doesn't take advantage of the knowledge that
all the other characters past the terminating NUL are also NUL.

If fold_const_call either called string_constant instead, or if c_getstr()
exposed the size of the constant string in addition to its length, it would be
able to fold the second call as well.

$ cat u.c && gcc -O2 -S -Wall -Wextra -Wpedantic
-fdump-tree-optimized=/dev/stdout u.c
const char a[5] = "123";

void f3 (void)
{
  if (!__builtin_memchr (a, '3', sizeof a))   // folded to false
    __builtin_abort ();
}

void f7 (void)
{
  if (__builtin_memchr (a, '7', sizeof a))   // not folded
    __builtin_abort ();
}

;; Function f3 (f3, funcdef_no=0, decl_uid=1907, cgraph_uid=1, symbol_order=1)

f3 ()
{
  <bb 2> [local count: 1073741824]:
  return;

}



;; Function f7 (f7, funcdef_no=1, decl_uid=1910, cgraph_uid=2, symbol_order=2)

f7 ()
{
  void * _1;

  <bb 2> [local count: 1073741824]:
  _1 = __builtin_memchr (&a, 55, 5);
  if (_1 != 0B)
    goto <bb 3>; [0.00%]
  else
    goto <bb 4>; [100.00%]

  <bb 3> [count: 0]:
  __builtin_abort ();

  <bb 4> [local count: 1073741824]:
  return;

}
>From gcc-bugs-return-637948-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 08:10:01 2019
Return-Path: <gcc-bugs-return-637948-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12991 invoked by alias); 20 Mar 2019 08: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 12885 invoked by uid 48); 20 Mar 2019 08:09:58 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/89769] [7/8/9 Regression] attribute((aligned(x))) array testcase  run error with option -fno-tree-loop-im
Date: Wed, 20 Mar 2019 08:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.3.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-89769-4-8hVcZWSgQI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89769-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89769-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02242.txt.bz2
Content-length: 496

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

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

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

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Indeed.

*** This bug has been marked as a duplicate of bug 43798 ***
>From gcc-bugs-return-637949-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 08:10:02 2019
Return-Path: <gcc-bugs-return-637949-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13228 invoked by alias); 20 Mar 2019 08:10: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 12925 invoked by uid 48); 20 Mar 2019 08:09:59 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/43798] attribute((aligned(x))) not honored for array element types?
Date: Wed, 20 Mar 2019 08:10: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.6.0
X-Bugzilla-Keywords: documentation, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-43798-4-Ekx6ik6NYn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-43798-4@http.gcc.gnu.org/bugzilla/>
References: <bug-43798-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02243.txt.bz2
Content-length: 451

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xuzheliang at huawei dot com

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
*** Bug 89769 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-637950-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 08:11:59 2019
Return-Path: <gcc-bugs-return-637950-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18680 invoked by alias); 20 Mar 2019 08:11:59 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 18622 invoked by uid 48); 20 Mar 2019 08:11:55 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/43798] [8/9 Regression] attribute((aligned(x))) not honored for array element types?
Date: Wed, 20 Mar 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: 4.6.0
X-Bugzilla-Keywords: documentation, 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: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority bug_status cf_reconfirmed_on target_milestone short_desc everconfirmed
Message-ID: <bug-43798-4-WXUCWxuAiF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-43798-4@http.gcc.gnu.org/bugzilla/>
References: <bug-43798-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02244.txt.bz2
Content-length: 1104

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-03-20
   Target Milestone|---                         |8.4
            Summary|attribute((aligned(x))) not |[8/9 Regression]
                   |honored for array element   |attribute((aligned(x))) not
                   |types?                      |honored for array element
                   |                            |types?
     Ever confirmed|0                           |1

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Manifests itself as regression now (see duplicate).  If C doesn't allow padding
between elements of an array then the C frontend has to adjust the element type
when building the array type.  At least we cannot leave the bogus alignment in
place.
>From gcc-bugs-return-637951-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 08:13:41 2019
Return-Path: <gcc-bugs-return-637951-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39395 invoked by alias); 20 Mar 2019 08:13:41 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 39330 invoked by uid 48); 20 Mar 2019 08:13:38 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/43798] [8/9 Regression] attribute((aligned(x))) not honored for array element types?
Date: Wed, 20 Mar 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: c
X-Bugzilla-Version: 4.6.0
X-Bugzilla-Keywords: documentation, 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: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-43798-4-8Et6naFwrX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-43798-4@http.gcc.gnu.org/bugzilla/>
References: <bug-43798-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02245.txt.bz2
Content-length: 312

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

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Joseph, can we reject the testcase?

OTOH a 16 aligned struct UINT192 should have size 32 (but appearantly it does
not when using a typedef because of sharing of TYPE_FIELDs and friends?)
>From gcc-bugs-return-637953-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 08:23:42 2019
Return-Path: <gcc-bugs-return-637953-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49437 invoked by alias); 20 Mar 2019 08:23: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 49374 invoked by uid 48); 20 Mar 2019 08:23:39 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/89771] [9 regression] c-c++-common/Wrestrict.c fails starting with r269807
Date: Wed, 20 Mar 2019 08:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-89771-4-6ExOMbyVum@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89771-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89771-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02247.txt.bz2
Content-length: 293

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |9.0
>From gcc-bugs-return-637952-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 08:23:33 2019
Return-Path: <gcc-bugs-return-637952-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48718 invoked by alias); 20 Mar 2019 08:23: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 48604 invoked by uid 48); 20 Mar 2019 08:23:30 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89772] memchr for a character not in constant nul-padded string not folded
Date: Wed, 20 Mar 2019 08: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: 9.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-89772-4-Sm15FT7Uqa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89772-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89772-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02246.txt.bz2
Content-length: 555

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-03-20
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
I think it tries to avoid folding out-of-bound accesses a bit too
conservatively.
>From gcc-bugs-return-637954-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 08:39:07 2019
Return-Path: <gcc-bugs-return-637954-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118509 invoked by alias); 20 Mar 2019 08:39: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 118456 invoked by uid 48); 20 Mar 2019 08:39:04 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/43798] [8/9 Regression] attribute((aligned(x))) not honored for array element types?
Date: Wed, 20 Mar 2019 08:39: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.6.0
X-Bugzilla-Keywords: documentation, 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: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-43798-4-XJuXwZe41G@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-43798-4@http.gcc.gnu.org/bugzilla/>
References: <bug-43798-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02248.txt.bz2
Content-length: 753

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

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

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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Note, since r105095 - https://gcc.gnu.org/ml/gcc-patches/2005-10/msg00252.html
we reject a subset of this (when the element size is smaller than the element
alignment).
So, either we extend that to also when the element size is not divisible by the
element size, or silently replace in layout_type? the element type with a
variant 
thereof that has smaller alignment.
>From gcc-bugs-return-637955-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 08:43:01 2019
Return-Path: <gcc-bugs-return-637955-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18937 invoked by alias); 20 Mar 2019 08:43: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 18869 invoked by uid 55); 20 Mar 2019 08:42:58 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/43798] [8/9 Regression] attribute((aligned(x))) not honored for array element types?
Date: Wed, 20 Mar 2019 08: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: 4.6.0
X-Bugzilla-Keywords: documentation, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenther at suse dot de
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.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-43798-4-Aj50QZwQTx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-43798-4@http.gcc.gnu.org/bugzilla/>
References: <bug-43798-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02249.txt.bz2
Content-length: 1264

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

--- Comment #9 from rguenther at suse dot de <rguenther at suse dot de> ---
On Wed, 20 Mar 2019, jakub at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43798
> 
> Jakub Jelinek <jakub at gcc dot gnu.org> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |jakub at gcc dot gnu.org
> 
> --- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
> Note, since r105095 - https://gcc.gnu.org/ml/gcc-patches/2005-10/msg00252.html
> we reject a subset of this (when the element size is smaller than the element
> alignment).
> So, either we extend that to also when the element size is not divisible by the
> element size, or silently replace in layout_type? the element type with a
> variant 
> thereof that has smaller alignment.

I think we should reject since if the user writes it that way he
doesn't expect that

UINT192 *ptr = &bid_Kx192[i];

converts between pointed-to types of different alignment.

That is, if we fix up we IMHO need to pad.  And I do wonder why
sizeof (UINT192) is 24 and not 32 (is it?).
>From gcc-bugs-return-637956-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 09:03:03 2019
Return-Path: <gcc-bugs-return-637956-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53216 invoked by alias); 20 Mar 2019 09:03: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 53074 invoked by uid 48); 20 Mar 2019 09:03:00 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/43798] [8/9 Regression] attribute((aligned(x))) not honored for array element types?
Date: Wed, 20 Mar 2019 09: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: 4.6.0
X-Bugzilla-Keywords: documentation, 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: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-43798-4-rlFWW3pXZ4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-43798-4@http.gcc.gnu.org/bugzilla/>
References: <bug-43798-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02250.txt.bz2
Content-length: 2427

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

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
We can't pad, that is against the ABI.
I think we've discussed this many times in the past, the fact is that people do
use this kind of mess when they want to say that the whole array has certain
alignment or when they are just careless, I think it is too late now for GCC9
to start rejecting it without an analysis how much code would be affected, not
to mention that it is not backportable.

The following patch does the adjustment and fixes the testcase:
--- gcc/stor-layout.c.jj        2019-01-01 12:37:17.296972670 +0100
+++ gcc/stor-layout.c   2019-03-20 09:56:15.576407411 +0100
@@ -2550,10 +2550,27 @@ layout_type (tree type)
            /* If TYPE_SIZE_UNIT overflowed, then it is certainly larger than
               TYPE_ALIGN_UNIT.  */
            && !TREE_OVERFLOW (TYPE_SIZE_UNIT (element))
-           && !integer_zerop (TYPE_SIZE_UNIT (element))
-           && compare_tree_int (TYPE_SIZE_UNIT (element),
-                                TYPE_ALIGN_UNIT (element)) < 0)
-         error ("alignment of array elements is greater than element size");
+           && !integer_zerop (TYPE_SIZE_UNIT (element)))
+         {
+           if (compare_tree_int (TYPE_SIZE_UNIT (element),
+                                 TYPE_ALIGN_UNIT (element)) < 0)
+             error ("alignment of array elements is greater than "
+                    "element size");
+           if (TYPE_ALIGN_UNIT (element))
+             {
+               unsigned align = (TREE_INT_CST_LOW (TYPE_SIZE_UNIT (element))
+                                 & (TYPE_ALIGN_UNIT (element) - 1));
+               align = least_bit_hwi (align);
+               if (align && align != TYPE_ALIGN_UNIT (element))
+                 {
+                   element = build_variant_type_copy (element);
+                   SET_TYPE_ALIGN (element, align * BITS_PER_UNIT);
+                   TYPE_USER_ALIGN (element) = 1;
+                   TREE_TYPE (type) = element;
+                   TYPE_USER_ALIGN (type) = 1;
+                 }
+             }
+         }
        break;
       }

but I haven't done any testing on it beyond that.
Perhaps for GCC 9 we could warn when we do this and depending on the amount of
warnings consider rejecting it later on if it doesn't affect significant amount
of code?
>From gcc-bugs-return-637957-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 09:05:17 2019
Return-Path: <gcc-bugs-return-637957-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55579 invoked by alias); 20 Mar 2019 09:05: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 55483 invoked by uid 48); 20 Mar 2019 09:05:14 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/43798] [8/9 Regression] attribute((aligned(x))) not honored for array element types?
Date: Wed, 20 Mar 2019 09: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.6.0
X-Bugzilla-Keywords: documentation, 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: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-43798-4-v2RsTSDxav@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-43798-4@http.gcc.gnu.org/bugzilla/>
References: <bug-43798-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02251.txt.bz2
Content-length: 262

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

--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Maybe the TREE_OVERFLOW check should be done only for the error, even with
TREE_OVERFLOW we should be able to check the low bits of the size.
>From gcc-bugs-return-637958-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 09:34:20 2019
Return-Path: <gcc-bugs-return-637958-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11333 invoked by alias); 20 Mar 2019 09:34: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 11266 invoked by uid 55); 20 Mar 2019 09:34:16 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/43798] [8/9 Regression] attribute((aligned(x))) not honored for array element types?
Date: Wed, 20 Mar 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: c
X-Bugzilla-Version: 4.6.0
X-Bugzilla-Keywords: documentation, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenther at suse dot de
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.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-43798-4-fGYenOahVP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-43798-4@http.gcc.gnu.org/bugzilla/>
References: <bug-43798-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02252.txt.bz2
Content-length: 3117

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

--- Comment #12 from rguenther at suse dot de <rguenther at suse dot de> ---
On Wed, 20 Mar 2019, jakub at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43798
> 
> --- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
> We can't pad, that is against the ABI.
> I think we've discussed this many times in the past, the fact is that people do
> use this kind of mess when they want to say that the whole array has certain
> alignment or when they are just careless, I think it is too late now for GCC9
> to start rejecting it without an analysis how much code would be affected, not
> to mention that it is not backportable.
> 
> The following patch does the adjustment and fixes the testcase:
> --- gcc/stor-layout.c.jj        2019-01-01 12:37:17.296972670 +0100
> +++ gcc/stor-layout.c   2019-03-20 09:56:15.576407411 +0100
> @@ -2550,10 +2550,27 @@ layout_type (tree type)
>             /* If TYPE_SIZE_UNIT overflowed, then it is certainly larger than
>                TYPE_ALIGN_UNIT.  */
>             && !TREE_OVERFLOW (TYPE_SIZE_UNIT (element))
> -           && !integer_zerop (TYPE_SIZE_UNIT (element))
> -           && compare_tree_int (TYPE_SIZE_UNIT (element),
> -                                TYPE_ALIGN_UNIT (element)) < 0)

I believe this check was just bogus since size < align catches just
very few cases of small objects.  Thus the case in question now isn't
really different from the intent of the above.  Shouldn't we just
change this to

             && !multiple_of_p (sizetype, TYPE_SIZE_UNIT (element),
                                TYPE_ALIGN_UNIT (element))

and adjust the error message accordingly?

> -         error ("alignment of array elements is greater than element size");
> +           && !integer_zerop (TYPE_SIZE_UNIT (element)))
> +         {
> +           if (compare_tree_int (TYPE_SIZE_UNIT (element),
> +                                 TYPE_ALIGN_UNIT (element)) < 0)
> +             error ("alignment of array elements is greater than "
> +                    "element size");
> +           if (TYPE_ALIGN_UNIT (element))
> +             {
> +               unsigned align = (TREE_INT_CST_LOW (TYPE_SIZE_UNIT (element))
> +                                 & (TYPE_ALIGN_UNIT (element) - 1));
> +               align = least_bit_hwi (align);
> +               if (align && align != TYPE_ALIGN_UNIT (element))
> +                 {
> +                   element = build_variant_type_copy (element);
> +                   SET_TYPE_ALIGN (element, align * BITS_PER_UNIT);
> +                   TYPE_USER_ALIGN (element) = 1;
> +                   TREE_TYPE (type) = element;
> +                   TYPE_USER_ALIGN (type) = 1;
> +                 }
> +             }
> +         }
>         break;
>        }
> 
> but I haven't done any testing on it beyond that.
> Perhaps for GCC 9 we could warn when we do this and depending on the amount of
> warnings consider rejecting it later on if it doesn't affect significant amount
> of code?
> 
>
>From gcc-bugs-return-637959-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 09:53:26 2019
Return-Path: <gcc-bugs-return-637959-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71982 invoked by alias); 20 Mar 2019 09:53: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 71927 invoked by uid 48); 20 Mar 2019 09:53:23 -0000
From: "tschwinge at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/89773] New: Fortran OpenACC 'routine' directive refuses procedures with implicit EXTERNAL attribute
Date: Wed, 20 Mar 2019 09:53: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: 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: tschwinge 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-89773-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02253.txt.bz2
Content-length: 624

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

            Bug ID: 89773
           Summary: Fortran OpenACC 'routine' directive refuses procedures
                    with implicit EXTERNAL attribute
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: openacc
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: tschwinge at gcc dot gnu.org
          Reporter: tschwinge at gcc dot gnu.org
  Target Milestone: ---

... as mentioned in
<http://mid.mail-archive.com/9e1f3bc5-2da8-1aae-67b0-bf478a53dd2a@codesourcery.com>.
>From gcc-bugs-return-637960-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 10:06:22 2019
Return-Path: <gcc-bugs-return-637960-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 2429 invoked by alias); 20 Mar 2019 10:06: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 2350 invoked by uid 48); 20 Mar 2019 10:06:19 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/43798] [8/9 Regression] attribute((aligned(x))) not honored for array element types?
Date: Wed, 20 Mar 2019 10: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: 4.6.0
X-Bugzilla-Keywords: documentation, 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: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-43798-4-6rkja41bVm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-43798-4@http.gcc.gnu.org/bugzilla/>
References: <bug-43798-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02254.txt.bz2
Content-length: 385

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

--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
See above, I'm afraid that would break a lot of code in the wild.  We've been
accepting it for way too long and handling the way those users expect (i.e.
that the whole array is 16 byte aligned), clang accepts it too that way
(without any warnings), so does icc.
>From gcc-bugs-return-637961-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 10:08:47 2019
Return-Path: <gcc-bugs-return-637961-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6601 invoked by alias); 20 Mar 2019 10:08: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 6563 invoked by uid 48); 20 Mar 2019 10:08:44 -0000
From: "tschwinge at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/89773] Fortran OpenACC 'routine' directive refuses procedures with implicit EXTERNAL attribute
Date: Wed, 20 Mar 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: fortran
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: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: tschwinge 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-89773-4-3vZJUGRv57@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89773-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89773-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02255.txt.bz2
Content-length: 412

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

Thomas Schwinge <tschwinge at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2019-03-20
     Ever confirmed|0                           |1
>From gcc-bugs-return-637962-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 10:18:02 2019
Return-Path: <gcc-bugs-return-637962-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54325 invoked by alias); 20 Mar 2019 10:18: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 54132 invoked by uid 48); 20 Mar 2019 10:17:58 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/43798] [8/9 Regression] attribute((aligned(x))) not honored for array element types?
Date: Wed, 20 Mar 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: c
X-Bugzilla-Version: 4.6.0
X-Bugzilla-Keywords: documentation, 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: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-43798-4-0Uu9mshiYf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-43798-4@http.gcc.gnu.org/bugzilla/>
References: <bug-43798-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02256.txt.bz2
Content-length: 2173

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

--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Acjusted patch that uses build_aligned_type instead of doing it on its own.
--- gcc/stor-layout.c.jj        2019-01-01 12:37:17.296972670 +0100
+++ gcc/stor-layout.c   2019-03-20 11:15:12.166935041 +0100
@@ -2547,13 +2547,32 @@ layout_type (tree type)
           large as the element alignment.  */
        if (TYPE_SIZE_UNIT (element)
            && TREE_CODE (TYPE_SIZE_UNIT (element)) == INTEGER_CST
+           && !integer_zerop (TYPE_SIZE_UNIT (element)))
+         {
            /* If TYPE_SIZE_UNIT overflowed, then it is certainly larger than
               TYPE_ALIGN_UNIT.  */
-           && !TREE_OVERFLOW (TYPE_SIZE_UNIT (element))
-           && !integer_zerop (TYPE_SIZE_UNIT (element))
-           && compare_tree_int (TYPE_SIZE_UNIT (element),
-                                TYPE_ALIGN_UNIT (element)) < 0)
-         error ("alignment of array elements is greater than element size");
+           if (!TREE_OVERFLOW (TYPE_SIZE_UNIT (element))
+               && compare_tree_int (TYPE_SIZE_UNIT (element),
+                                    TYPE_ALIGN_UNIT (element)) < 0)
+             error ("alignment of array elements is greater than "
+                    "element size");
+           if (TYPE_ALIGN_UNIT (element))
+             {
+               unsigned align = (TREE_INT_CST_LOW (TYPE_SIZE_UNIT (element))
+                                 & (TYPE_ALIGN_UNIT (element) - 1));
+               align = least_bit_hwi (align);
+               if (align && align != TYPE_ALIGN_UNIT (element))
+                 {
+                   /* If the size of the element is not a multiple of
+                      alignment, lower the alignment of the elements of the
+                      array, but keep the whole array alignment.  */
+                   element
+                     = build_aligned_type (element, align * BITS_PER_UNIT);
+                   TREE_TYPE (type) = element;
+                   TYPE_USER_ALIGN (type) = 1;
+                 }
+             }
+         }
        break;
       }
>From gcc-bugs-return-637963-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 10:39:21 2019
Return-Path: <gcc-bugs-return-637963-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58016 invoked by alias); 20 Mar 2019 10:39: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 57941 invoked by uid 48); 20 Mar 2019 10:39:18 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/89692] [9 Regression] ICE in streamer_write_chain, at tree-streamer-out.c:506
Date: Wed, 20 Mar 2019 10:39: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, lto
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:
Message-ID: <bug-89692-4-CKvPQRvLPv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89692-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89692-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02257.txt.bz2
Content-length: 2575

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The type that is not processed by free_lang_data_in_type is created with:
#1  0x000000000180f42c in copy_node (node=<record_type 0x7fffea94c9d8 ln>) at
../../gcc/tree.c:1183
#2  0x000000000182555e in build_distinct_type_copy (type=<record_type
0x7fffea94c9d8 ln>) at ../../gcc/tree.c:6532
#3  0x00000000018256d7 in build_variant_type_copy (type=<record_type
0x7fffea94c9d8 ln>) at ../../gcc/tree.c:6566
#4  0x00000000018254c4 in build_aligned_type (type=<record_type 0x7fffea94c9d8
ln>, align=8) at ../../gcc/tree.c:6517
#5  0x0000000000fa6007 in gimple_fold_builtin_memory_op (gsi=0x7fffffffcfb0,
dest=<addr_expr 0x7fffea95a4e0>, src=<addr_expr 0x7fffea95a580>, 
    endp=0) at ../../gcc/gimple-fold.c:1010
#6  0x0000000000fad8c7 in gimple_fold_builtin (gsi=0x7fffffffcfb0) at
../../gcc/gimple-fold.c:3851
#7  0x0000000000fafc2b in gimple_fold_call (gsi=0x7fffffffcfb0, inplace=false)
at ../../gcc/gimple-fold.c:4357
#8  0x0000000000fb2b4d in fold_stmt_1 (gsi=0x7fffffffcfb0, inplace=false,
valueize=0xfb326c <no_follow_ssa_edges(tree_node*)>)
    at ../../gcc/gimple-fold.c:5022
#9  0x0000000000fb32f4 in fold_stmt (gsi=0x7fffffffcfb0) at
../../gcc/gimple-fold.c:5177
#10 0x000000000210bee5 in lower_stmt (gsi=0x7fffffffcfb0, data=0x7fffffffd150)
at ../../gcc/gimple-low.c:387
We do free_lang_data_in_type the 0x7fffea94c9d8 variant.

Note, the gimple_fold_builtin_memory_op code actually doesn't insert that type
into the IL at all, it builds a MEM_REF with that type, but later throws it
away and builds a different MEM_REF with a different type (instead of struct ln
with 8-bit alignment a char array of the right size).
Now, even if it would keep it in the IL, it could be in some statement that is
optimized away before fld, or it could be build_aligned_type called from the FE
and again not kept in the IL in any way.
Then we free lang data and then comes SRA and calls build_aligned_type
(0x7fffea94c9d8, 8) - that is again the original type that got through fld, but
build_aligned_type looks through type variants and finds ah, we have one
aligned variant here already and returns that.

So, this is not a SRA bug, but free_lang_data, it needs to
free_lang_data_in_type also all type variants of all types it is processing,
otherwise any time after free_lang_data anything uses any of the build*type
tree.c function a non-free_lang_data_in_type processed type can reappear in the
IL.
>From gcc-bugs-return-637964-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 10:43:12 2019
Return-Path: <gcc-bugs-return-637964-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67695 invoked by alias); 20 Mar 2019 10:43: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 67611 invoked by uid 55); 20 Mar 2019 10:43:08 -0000
From: "fw at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgcc/60790] libatomic convenience library selects IFUNC implementation before obtaining cpu info.
Date: Wed, 20 Mar 2019 10:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libgcc
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fw at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: fw at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-60790-4-gbyGgmhJwp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60790-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60790-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02258.txt.bz2
Content-length: 1074

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

--- Comment #14 from Florian Weimer <fw at gcc dot gnu.org> ---
Author: fw
Date: Wed Mar 20 10:42:35 2019
New Revision: 269818

URL: https://gcc.gnu.org/viewcvs?rev=269818&root=gcc&view=rev
Log:
PR libgcc/60790: x86: Do not assume ELF constructors run before IFUNC resolvers

        * config/x86/host-config.h (libat_feat1_ecx, libat_feat1_edx):
        Remove declarations.
        (__libat_feat1, __libat_feat1_init): Declare.
        (FEAT1_REGISTER): Define.
        (load_feat1): New function.
        (IFUNC_COND_1): Adjust.
        * config/x86/init.c (libat_feat1_ecx, libat_feat1_edx)
        (init_cpuid): Remove definitions.
        (__libat_feat1): New variable.
        (__libat_feat1_init): New function.

Modified:
    branches/gcc-8-branch/   (props changed)
    branches/gcc-8-branch/libatomic/ChangeLog
    branches/gcc-8-branch/libatomic/config/x86/host-config.h
    branches/gcc-8-branch/libatomic/config/x86/init.c

Propchange: branches/gcc-8-branch/
            ('svn:mergeinfo' modified)
>From gcc-bugs-return-637965-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 10:44:06 2019
Return-Path: <gcc-bugs-return-637965-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 72930 invoked by alias); 20 Mar 2019 10:44: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 72856 invoked by uid 48); 20 Mar 2019 10:44:02 -0000
From: "fw at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgcc/60790] libatomic convenience library selects IFUNC implementation before obtaining cpu info.
Date: Wed, 20 Mar 2019 10:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libgcc
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fw at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: fw at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-60790-4-7Hhak2P3K2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60790-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60790-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02259.txt.bz2
Content-length: 479

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

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

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

--- Comment #15 from Florian Weimer <fw at gcc dot gnu.org> ---
I do not plan to backport this further, so marking this as fixed.
>From gcc-bugs-return-637966-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 10:51:44 2019
Return-Path: <gcc-bugs-return-637966-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35932 invoked by alias); 20 Mar 2019 10:51: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 35866 invoked by uid 48); 20 Mar 2019 10:51:41 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/89692] [9 Regression] ICE in streamer_write_chain, at tree-streamer-out.c:506
Date: Wed, 20 Mar 2019 10:51: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, lto
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:
Message-ID: <bug-89692-4-DmVFilzb3v@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89692-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89692-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02260.txt.bz2
Content-length: 1135

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
There is:
      fld_worklist_push (TYPE_MAIN_VARIANT (t), fld);
      /* Do not walk TYPE_NEXT_VARIANT.  We do not stream it and thus
         do not and want not to reach unused variants this way.  */
I believe this is the bug, we do want to walk it even if it is not streamed. 
Walking it should be just more work during fld, true, but I don't see what harm
it would do.  Honza?

--- gcc/tree.c.jj       2019-03-19 17:10:04.248125906 +0100
+++ gcc/tree.c  2019-03-20 11:50:19.166755015 +0100
@@ -5875,8 +5875,7 @@ find_decls_types_r (tree *tp, int *ws, v
       if (!RECORD_OR_UNION_TYPE_P (t))
        fld_worklist_push (TYPE_MAX_VALUE_RAW (t), fld);
       fld_worklist_push (TYPE_MAIN_VARIANT (t), fld);
-      /* Do not walk TYPE_NEXT_VARIANT.  We do not stream it and thus
-         do not and want not to reach unused variants this way.  */
+      fld_worklist_push (TYPE_NEXT_VARIANT (t), fld);
       if (TYPE_CONTEXT (t))
        {
          tree ctx = TYPE_CONTEXT (t);

certainly fixes the ICE.
>From gcc-bugs-return-637967-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 11:10:29 2019
Return-Path: <gcc-bugs-return-637967-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108014 invoked by alias); 20 Mar 2019 11:10: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 107949 invoked by uid 55); 20 Mar 2019 11:10:25 -0000
From: "hubicka at ucw dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/89692] [9 Regression] ICE in streamer_write_chain, at tree-streamer-out.c:506
Date: Wed, 20 Mar 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: lto
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-on-valid-code, lto
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-89692-4-5YwBylR5mg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89692-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89692-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02261.txt.bz2
Content-length: 1873

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

--- Comment #6 from Jan Hubicka <hubicka at ucw dot cz> ---
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89692
> 
> --- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
> There is:
>       fld_worklist_push (TYPE_MAIN_VARIANT (t), fld);
>       /* Do not walk TYPE_NEXT_VARIANT.  We do not stream it and thus
>          do not and want not to reach unused variants this way.  */
> I believe this is the bug, we do want to walk it even if it is not streamed. 
> Walking it should be just more work during fld, true, but I don't see what harm
> it would do.  Honza?
> 
> --- gcc/tree.c.jj       2019-03-19 17:10:04.248125906 +0100
> +++ gcc/tree.c  2019-03-20 11:50:19.166755015 +0100
> @@ -5875,8 +5875,7 @@ find_decls_types_r (tree *tp, int *ws, v
>        if (!RECORD_OR_UNION_TYPE_P (t))
>         fld_worklist_push (TYPE_MAX_VALUE_RAW (t), fld);
>        fld_worklist_push (TYPE_MAIN_VARIANT (t), fld);
> -      /* Do not walk TYPE_NEXT_VARIANT.  We do not stream it and thus
> -         do not and want not to reach unused variants this way.  */
> +      fld_worklist_push (TYPE_NEXT_VARIANT (t), fld);
>        if (TYPE_CONTEXT (t))
>         {
>           tree ctx = TYPE_CONTEXT (t);
> 
> certainly fixes the ICE.

Yes, I tried this some time ago but it ICEs with chekcing enabled
because C++ FE produces types that do not pass verify_type and puts them
into variant lists. Also Richi did not like reaching more types than
necessary. For this reason I went for a variant of patch that prunes the
lists but Richi did not like it either.  I will check if I still
reproduce the ICE.

https://patchwork.ozlabs.org/patch/967595/
I do not fully follow Richi's concern about duplicate types: the types
not visible by fld should be invisitable to middle-end and thus not used
later.

Honza
>From gcc-bugs-return-637968-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 11:27:16 2019
Return-Path: <gcc-bugs-return-637968-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14186 invoked by alias); 20 Mar 2019 11:27: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 14115 invoked by uid 55); 20 Mar 2019 11:27:13 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89752] [8/9 Regression] ICE in emit_move_insn, at expr.c:3723
Date: Wed, 20 Mar 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: target
X-Bugzilla-Version: 8.3.1
X-Bugzilla-Keywords: ice-on-valid-code, needs-reduction
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89752-4-Qzkbq4pGVB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89752-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89752-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02262.txt.bz2
Content-length: 738

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

--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Mar 20 11:26:42 2019
New Revision: 269819

URL: https://gcc.gnu.org/viewcvs?rev=269819&root=gcc&view=rev
Log:
        PR target/89752
        * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
        update this_alternative nor this_alternative_set.

        * g++.target/aarch64/aarch64.exp: New file.
        * g++.target/aarch64/pr89752.C: New test.

Added:
    trunk/gcc/testsuite/g++.target/aarch64/aarch64.exp
    trunk/gcc/testsuite/g++.target/aarch64/pr89752.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/lra-constraints.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-637969-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 11:29:27 2019
Return-Path: <gcc-bugs-return-637969-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23292 invoked by alias); 20 Mar 2019 11:29: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 23229 invoked by uid 48); 20 Mar 2019 11:29:24 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89752] [8 Regression] ICE in emit_move_insn, at expr.c:3723
Date: Wed, 20 Mar 2019 11: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.3.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status assigned_to short_desc
Message-ID: <bug-89752-4-e9eKX3giW4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89752-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89752-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02263.txt.bz2
Content-length: 628

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|needs-reduction             |
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
            Summary|[8/9 Regression] ICE in     |[8 Regression] ICE in
                   |emit_move_insn, at          |emit_move_insn, at
                   |expr.c:3723                 |expr.c:3723
>From gcc-bugs-return-637970-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 11:33:13 2019
Return-Path: <gcc-bugs-return-637970-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41278 invoked by alias); 20 Mar 2019 11:33: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 41158 invoked by uid 48); 20 Mar 2019 11:33:09 -0000
From: "abel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/86928] ICE in compute_live, at sel-sched.c:3097
Date: Wed, 20 Mar 2019 11:33: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: unknown
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: abel 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-86928-4-sSYgJgcT92@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02264.txt.bz2
Content-length: 1975

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

Andrey Belevantsev <abel at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |abel at gcc dot gnu.org,
                   |                            |amonakov at gcc dot gnu.org

--- Comment #2 from Andrey Belevantsev <abel at gcc dot gnu.org> ---
We're not somehow updating liveness information at all times when we change
control flow.  E.g. we do update liveness in sel_split_edge, but not in
sel_redirect_edge_and_branch{,force} hooks, when we're making a new jump and
resetting liveness on the bb it ended up in.  This leaves us with the unknown
lv set, and later breaks when we're computing liveness from the other region
and come to this block, as we're assuming that other regions always have
correct liveness.

Fixed with the below patch but I'm not completely sure it fully makes sense --
Alexander, thoughts?

diff --git a/gcc/sel-sched-ir.c b/gcc/sel-sched-ir.c
index 85ff5bd3eb4..c399c1117a3 100644
--- a/gcc/sel-sched-ir.c
+++ b/gcc/sel-sched-ir.c
@@ -5642,6 +5642,8 @@ sel_redirect_edge_and_branch_force (edge e, basic_block
to)
                           recompute_dominator (CDI_DOMINATORS, to));
   set_immediate_dominator (CDI_DOMINATORS, orig_dest,
                           recompute_dominator (CDI_DOMINATORS, orig_dest));
+  if (jump == sel_bb_head (BLOCK_FOR_INSN (jump)))
+    compute_live (jump);
 }

 /* A wrapper for redirect_edge_and_branch.  Return TRUE if blocks connected by
@@ -5702,6 +5704,8 @@ sel_redirect_edge_and_branch (edge e, basic_block to)
       set_immediate_dominator (CDI_DOMINATORS, orig_dest,
                                recompute_dominator (CDI_DOMINATORS,
orig_dest));
     }
+  if (jump == sel_bb_head (BLOCK_FOR_INSN (jump)))
+    compute_live (jump);
   return recompute_toporder_p;
 }
>From gcc-bugs-return-637971-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 11:54:28 2019
Return-Path: <gcc-bugs-return-637971-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15145 invoked by alias); 20 Mar 2019 11:54: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 13357 invoked by uid 48); 20 Mar 2019 11:54:25 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/89692] [9 Regression] ICE in streamer_write_chain, at tree-streamer-out.c:506
Date: Wed, 20 Mar 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: lto
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: 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-89692-4-Q9nZ8VKYCx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89692-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89692-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02265.txt.bz2
Content-length: 370

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

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Hmm.  I think we should prune the variant list down to what is actually used
but to fix the GC issue I was raising make sure the pruned variants appear
as main variants (thus NULL their TYPE_NEXT_VARIANT and set TYPE_MAIN_VARIANT
to themselves).
>From gcc-bugs-return-637972-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 12:06:55 2019
Return-Path: <gcc-bugs-return-637972-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86465 invoked by alias); 20 Mar 2019 12:06: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 86408 invoked by uid 48); 20 Mar 2019 12:06:52 -0000
From: "kcy at codesourcery dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/83515] ICE: Invalid expression in gfc_element_size
Date: Wed, 20 Mar 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: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kcy 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: cc
Message-ID: <bug-83515-4-FsBqxr9bBt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83515-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83515-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02266.txt.bz2
Content-length: 629

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

Kwok Yeung <kcy at codesourcery dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kcy at codesourcery dot com

--- Comment #9 from Kwok Yeung <kcy at codesourcery dot com> ---
(In reply to G. Steinmetz from comment #3)

The test case can be reduced even further:

module m
contains
   function f() result(z)
      class(*), pointer :: z
   end

   recursive subroutine s(q)
      procedure(f) :: q
      call s(q)
   end
end
>From gcc-bugs-return-637973-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 12:08:42 2019
Return-Path: <gcc-bugs-return-637973-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91799 invoked by alias); 20 Mar 2019 12:08:42 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 91732 invoked by uid 48); 20 Mar 2019 12:08:39 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/89692] [9 Regression] ICE in streamer_write_chain, at tree-streamer-out.c:506
Date: Wed, 20 Mar 2019 12:08: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, lto
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:
Message-ID: <bug-89692-4-AAhr6TPP5s@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89692-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89692-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02267.txt.bz2
Content-length: 178

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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Can't we change that way e.g. TYPE_CANONICAL of some type?
>From gcc-bugs-return-637974-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 12:24:49 2019
Return-Path: <gcc-bugs-return-637974-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8887 invoked by alias); 20 Mar 2019 12:24: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 8824 invoked by uid 48); 20 Mar 2019 12:24:45 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/83515] ICE: Invalid expression in gfc_element_size
Date: Wed, 20 Mar 2019 12: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: 8.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:
Message-ID: <bug-83515-4-gGSRuiS0Ge@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83515-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83515-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02268.txt.bz2
Content-length: 1284

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

--- Comment #10 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
With the patch in comment 8 all the tests compile and the original test in
comment 0 gives ta runtime

 gfc::bank testing status:            0 (PASSED): Performance:   
3532045.4736842103     
 gfc::vector testing status:            0 (PASSED): Performance:   
2515463.5218254919     
 gfc::list testing status:            0 (PASSED): Performance:   
2515463.5218254919     
 gfc::tree testing status:            0 (PASSED): Performance:   
1045525.1575901519     
 gfc::dictionary testing status:            0 (PASSED): Performance:   
836199.51143490721     
 gfc::graph testing status:            0 (PASSED): Performance:   
118470.61398863114     
 Multi-index sort testing status:            0 (PASSED): Performance:   
239778.83863299151     
 Dynamic type inferrence slowdown:   0.1258     67109934.2342983   0.1312    
67109934.2342983    1.0432470247796064     

> However, I do not have a working code sample to run

The original test is not suitable for the test suite, but the author can
probably reduce it.
>From gcc-bugs-return-637975-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 12:28:34 2019
Return-Path: <gcc-bugs-return-637975-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96644 invoked by alias); 20 Mar 2019 12:28: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 96544 invoked by uid 48); 20 Mar 2019 12:28:30 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/89692] [9 Regression] ICE in streamer_write_chain, at tree-streamer-out.c:506
Date: Wed, 20 Mar 2019 12:28: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, lto
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:
Message-ID: <bug-89692-4-uwMYyUlsk4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89692-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89692-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02269.txt.bz2
Content-length: 389

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

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I would feel much safer if we do this TYPE_NEXT_VARIANT adjustment with turning
those types left out into distinct type if we'd fld_worklist_push
(TYPE_CANONICAL (type), fld); and so there would be at least sanity in what say
later build_qualified_type creates etc.
>From gcc-bugs-return-637976-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 12:41:31 2019
Return-Path: <gcc-bugs-return-637976-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114123 invoked by alias); 20 Mar 2019 12:41: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 114061 invoked by uid 48); 20 Mar 2019 12:41:28 -0000
From: "abel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/86928] ICE in compute_live, at sel-sched.c:3097
Date: Wed, 20 Mar 2019 12:41: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: unknown
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: abel 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-86928-4-D3YTqARxoU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86928-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86928-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02270.txt.bz2
Content-length: 2034

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

--- Comment #3 from Andrey Belevantsev <abel at gcc dot gnu.org> ---
(In reply to Andrey Belevantsev from comment #2)
> We're not somehow updating liveness information at all times when we change
> control flow.  E.g. we do update liveness in sel_split_edge, but not in
> sel_redirect_edge_and_branch{,force} hooks, when we're making a new jump and
> resetting liveness on the bb it ended up in.  This leaves us with the
> unknown lv set, and later breaks when we're computing liveness from the
> other region and come to this block, as we're assuming that other regions
> always have correct liveness.
> 
> Fixed with the below patch but I'm not completely sure it fully makes sense
> -- Alexander, thoughts?
> 
> diff --git a/gcc/sel-sched-ir.c b/gcc/sel-sched-ir.c
> index 85ff5bd3eb4..c399c1117a3 100644
> --- a/gcc/sel-sched-ir.c
> +++ b/gcc/sel-sched-ir.c
> @@ -5642,6 +5642,8 @@ sel_redirect_edge_and_branch_force (edge e,
> basic_block to)
>                            recompute_dominator (CDI_DOMINATORS, to));
>    set_immediate_dominator (CDI_DOMINATORS, orig_dest,
>                            recompute_dominator (CDI_DOMINATORS, orig_dest));
> +  if (jump == sel_bb_head (BLOCK_FOR_INSN (jump)))
> +    compute_live (jump);
>  }
> 
>  /* A wrapper for redirect_edge_and_branch.  Return TRUE if blocks connected
> by
> @@ -5702,6 +5704,8 @@ sel_redirect_edge_and_branch (edge e, basic_block to)
>        set_immediate_dominator (CDI_DOMINATORS, orig_dest,
>                                 recompute_dominator (CDI_DOMINATORS,
> orig_dest));
>      }
> +  if (jump == sel_bb_head (BLOCK_FOR_INSN (jump)))
> +    compute_live (jump);
>    return recompute_toporder_p;
>  }

It looks like the routine that creates recovery blocks also updates liveness,
so I'm now more confident with the patch, but I'd still like to hear
Alexander's opinion.  Of course, it should really be sel_bb_head_p (jump)
instead of that clumsy condition I've wrote.
>From gcc-bugs-return-637977-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 13:28:46 2019
Return-Path: <gcc-bugs-return-637977-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95681 invoked by alias); 20 Mar 2019 13:28: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 95621 invoked by uid 48); 20 Mar 2019 13:28:43 -0000
From: "marius.messerschmidt at googlemail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/89774] New: Add flag to force single precision
Date: Wed, 20 Mar 2019 13:28: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marius.messerschmidt at googlemail 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-89774-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02271.txt.bz2
Content-length: 844

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

            Bug ID: 89774
           Summary: Add flag to force single precision
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marius.messerschmidt at googlemail dot com
  Target Milestone: ---

It would be helpful if there was a flag (e.g. -fsingle-precision-literals) that
would cause gcc to treat floating point literals (e.g. 0.5 or 0.25 ...) in the
source code as single precision (float) and not double precision (double).

This could help improve performance of single precision code as right now there
are many conversion instructions (see objdump) which use quite a lot of runtime
(see perf).
>From gcc-bugs-return-637978-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 14:24:36 2019
Return-Path: <gcc-bugs-return-637978-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20843 invoked by alias); 20 Mar 2019 14:24: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 20619 invoked by uid 48); 20 Mar 2019 14:24:26 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88055] ICE in extract_insn, at recog.c:2305 on ppc64le
Date: Wed, 20 Mar 2019 14: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: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: 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
Message-ID: <bug-88055-4-Bu6rvkOaUr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88055-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88055-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02272.txt.bz2
Content-length: 402

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P1

--- Comment #8 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Moving this to P1.  See comment 4.
>From gcc-bugs-return-637979-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 14:40:21 2019
Return-Path: <gcc-bugs-return-637979-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88033 invoked by alias); 20 Mar 2019 14:40: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 87958 invoked by uid 48); 20 Mar 2019 14:40:17 -0000
From: "krebbel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89775] New: Stackpointer save/restore instructions optimized away
Date: Wed, 20 Mar 2019 14:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: krebbel 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-89775-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02273.txt.bz2
Content-length: 1348

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

            Bug ID: 89775
           Summary: Stackpointer save/restore instructions optimized away
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: krebbel at gcc dot gnu.org
  Target Milestone: ---

Defining the stack pointer register as global register triggers wrong code to
be generated thanks to bug in the prologue/epilogue optimization. In this case
the prologue save instruction for the stack pointer is removed while the
epilogue insn is kept. So r15 will be restored from f0 and hence loaded with
garbage.

register a __asm__("15");
b() { char c = 0; }

b:
        ldgr    %f2,%r11
        lay     %r15,-168(%r15)
        lgr     %r11,%r15
        mvi     167(%r11),0
        lr      0,0
        lgr     %r2,%r1
        lgdr    %r11,%f2
        lgdr    %r15,%f0
        br      %r14


Even if a global register is being clobbered in a function we usually do not
save and restore it. However, we still have to do this if it is a special
register. Most of the places in the backend handle this correctly but not the
prologue/epilogue optimization.

A fix is being tested and will be available soon.
>From gcc-bugs-return-637980-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 14:40:44 2019
Return-Path: <gcc-bugs-return-637980-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88998 invoked by alias); 20 Mar 2019 14:40: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 88926 invoked by uid 48); 20 Mar 2019 14:40:41 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/89692] [9 Regression] ICE in streamer_write_chain, at tree-streamer-out.c:506
Date: Wed, 20 Mar 2019 14:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 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: 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-89692-4-0w48K3Dt8v@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89692-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89692-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02274.txt.bz2
Content-length: 957

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

--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #8)
> Can't we change that way e.g. TYPE_CANONICAL of some type?

The types are unused, otherwise they'd be visited by fld.

> I would feel much safer if we do this TYPE_NEXT_VARIANT adjustment with turning > those types left out into distinct type if we'd fld_worklist_push
> (TYPE_CANONICAL (type), fld); and so there would be at least sanity in what say > later build_qualified_type creates etc.

not sure what you are refering to.  All type-reuse keys on TYPE_MAIN_VARIANT
in the end and iff a such freed type is picked up later then FLD misses
some important use chain.  The only one that might still come along the
type is the garbage collector and I was worried it might go off into
cycles if we leave TYPE_NEXT/MAIN_VARIANT unchanged but change the
TYPE_MAIN_VARIANT varaint chain.
>From gcc-bugs-return-637981-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 14:43:45 2019
Return-Path: <gcc-bugs-return-637981-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92292 invoked by alias); 20 Mar 2019 14:43: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 92238 invoked by uid 48); 20 Mar 2019 14:43:43 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/89774] Add flag to force single precision
Date: Wed, 20 Mar 2019 14: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WORKSFORME
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-89774-4-rqL1DtyA1q@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89774-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89774-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02275.txt.bz2
Content-length: 467

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

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

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

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
You can use -fsingle-precision-constant
>From gcc-bugs-return-637982-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 14:47:01 2019
Return-Path: <gcc-bugs-return-637982-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 123477 invoked by alias); 20 Mar 2019 14:47: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 123427 invoked by uid 48); 20 Mar 2019 14:46:58 -0000
From: "JunMa at linux dot alibaba.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89772] memchr for a character not in constant nul-padded string not folded
Date: Wed, 20 Mar 2019 14:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: JunMa at linux dot alibaba.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: cc
Message-ID: <bug-89772-4-cu3THtudKp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89772-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89772-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02276.txt.bz2
Content-length: 494

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

JunMa <JunMa at linux dot alibaba.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |JunMa at linux dot alibaba.com

--- Comment #2 from JunMa <JunMa at linux dot alibaba.com> ---
Agreed, I think we should get trailing nulls from c_getstr() for 
array when fold memchr/memcmp/bcmp builtins.
>From gcc-bugs-return-637984-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 14:54:53 2019
Return-Path: <gcc-bugs-return-637984-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80215 invoked by alias); 20 Mar 2019 14:54: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 80177 invoked by uid 48); 20 Mar 2019 14:54:50 -0000
From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug jit/87808] gcc_lib_dir is missing from libgccjit's search path
Date: Wed, 20 Mar 2019 14:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: jit
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dmalcolm at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-87808-4-8BHmULoLWZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87808-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87808-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02278.txt.bz2
Content-length: 761

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

--- Comment #2 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
playback::context::invoke_driver builds the command line for the driver.

Does it work with each of these: 
  gcc_jit_context_set_bool_use_external_driver (ctxt, 1);

  gcc_jit_context_set_bool_use_external_driver (ctxt, 0);

If you call:
  gcc_jit_context_set_logfile (ctxt, stderr, 0, 0);
a verbose log will be written to stderr.  See e.g.:
https://gcc.gnu.org/onlinedocs/jit/internals/index.html#example-of-log-file

In particular, the log for gcc::jit::playback::context::invoke_driver will show
the arguments that the driver is being called with.

Does it successfully link if you manually invoke the driver with those
arguments?
>From gcc-bugs-return-637983-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 14:54:33 2019
Return-Path: <gcc-bugs-return-637983-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79412 invoked by alias); 20 Mar 2019 14:54: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 79346 invoked by uid 48); 20 Mar 2019 14:54:30 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/89692] [9 Regression] ICE in streamer_write_chain, at tree-streamer-out.c:506
Date: Wed, 20 Mar 2019 14:54: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, lto
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:
Message-ID: <bug-89692-4-1YEGh0t2a6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89692-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89692-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02277.txt.bz2
Content-length: 1706

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

--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #10)
> (In reply to Jakub Jelinek from comment #8)
> > Can't we change that way e.g. TYPE_CANONICAL of some type?
> 
> The types are unused, otherwise they'd be visited by fld.

useless_type_conversion_p still do use TYPE_CANONICAL etc., but fld doesn't
walk it (unless TYPE_CANONICAL is equal to a type that has been walked (guess
the usual case):

      /* Do not walk TYPE_CANONICAL.  We do not stream it and thus do not
         and want not to reach unused types this way.  */

> > I would feel much safer if we do this TYPE_NEXT_VARIANT adjustment with turning > those types left out into distinct type if we'd fld_worklist_push
> > (TYPE_CANONICAL (type), fld); and so there would be at least sanity in what say > later build_qualified_type creates etc.
> 
> not sure what you are refering to.  All type-reuse keys on TYPE_MAIN_VARIANT
> in the end and iff a such freed type is picked up later then FLD misses
> some important use chain.  The only one that might still come along the
> type is the garbage collector and I was worried it might go off into
> cycles if we leave TYPE_NEXT/MAIN_VARIANT unchanged but change the
> TYPE_MAIN_VARIANT varaint chain.

I was worried that we visit some type that has TYPE_CANONICAL we don't visit,
so it is removed from the TYPE_NEXT_VARIANT chain, and if that happens e.g. for
two variants of the same type, if they have different TYPE_CANONICAL (e.g.
because of different qualifications), it might cause trouble if those
TYPE_CANONICALs no longer have the same TYPE_MAIN_VARIANT.
>From gcc-bugs-return-637985-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 14:56:14 2019
Return-Path: <gcc-bugs-return-637985-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82180 invoked by alias); 20 Mar 2019 14:56: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 82090 invoked by uid 48); 20 Mar 2019 14:56:11 -0000
From: "amonakov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/43798] [8/9 Regression] attribute((aligned(x))) not honored for array element types?
Date: Wed, 20 Mar 2019 14:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 4.6.0
X-Bugzilla-Keywords: documentation, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amonakov 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.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-43798-4-u67qqbj9RC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-43798-4@http.gcc.gnu.org/bugzilla/>
References: <bug-43798-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02279.txt.bz2
Content-length: 1159

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

Alexander Monakov <amonakov at gcc dot gnu.org> changed:

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

--- Comment #15 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
Not 100% sure if it's known, the comments don't seem to mention this, so I'll
note for completeness sake:

placement of the attribute makes a difference, here it looks like the attribute
on the type introduced via a typedef leads to weird semantics, while the
attribute on the struct itself leads to logical 32/16 size/align:

typedef struct __attribute__((aligned(16))) {
    unsigned long long w[3];
} UINT192;

int a1 = __alignof(UINT192);
int s1 = sizeof(UINT192);

a1:
        .long   16
s1:
        .long   32


Also one cannot create a 64-bit aligned/128-bit sized typedef to 'long double'
on 32-bit:

typedef long double T __attribute__((aligned(8)));

int a1 = __alignof(T);
int s1 = sizeof(T);

a1:
        .long   8
s1:
        .long   12
>From gcc-bugs-return-637986-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 14:57:03 2019
Return-Path: <gcc-bugs-return-637986-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88447 invoked by alias); 20 Mar 2019 14:57: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 88381 invoked by uid 48); 20 Mar 2019 14:56:59 -0000
From: "dje at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89776] New: sse-movmskb-1.c testcase fails on PPC64 BE 32 bit Power8
Date: Wed, 20 Mar 2019 14:57: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: dje 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 cf_gcctarget
Message-ID: <bug-89776-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02280.txt.bz2
Content-length: 642

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

            Bug ID: 89776
           Summary: sse-movmskb-1.c testcase fails on PPC64 BE 32 bit
                    Power8
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dje at gcc dot gnu.org
                CC: pc at us dot ibm.com, segher at gcc dot gnu.org
  Target Milestone: ---
            Target: powerpc-*-*-*

sse-movmskb-1.c testcase fails on PPC64 BE 32 bit Power8
>From gcc-bugs-return-637987-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 14:57:55 2019
Return-Path: <gcc-bugs-return-637987-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89578 invoked by alias); 20 Mar 2019 14:57: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 89509 invoked by uid 55); 20 Mar 2019 14:57:51 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/89692] [9 Regression] ICE in streamer_write_chain, at tree-streamer-out.c:506
Date: Wed, 20 Mar 2019 14:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-on-valid-code, lto
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenther at suse dot de
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-89692-4-d83pvWY5eU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89692-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89692-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02281.txt.bz2
Content-length: 2227

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

--- Comment #12 from rguenther at suse dot de <rguenther at suse dot de> ---
On Wed, 20 Mar 2019, jakub at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89692
> 
> --- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
> (In reply to Richard Biener from comment #10)
> > (In reply to Jakub Jelinek from comment #8)
> > > Can't we change that way e.g. TYPE_CANONICAL of some type?
> > 
> > The types are unused, otherwise they'd be visited by fld.
> 
> useless_type_conversion_p still do use TYPE_CANONICAL etc., but fld doesn't
> walk it (unless TYPE_CANONICAL is equal to a type that has been walked (guess
> the usual case):
> 
>       /* Do not walk TYPE_CANONICAL.  We do not stream it and thus do not
>          and want not to reach unused types this way.  */
> 
> > > I would feel much safer if we do this TYPE_NEXT_VARIANT adjustment with turning > those types left out into distinct type if we'd fld_worklist_push
> > > (TYPE_CANONICAL (type), fld); and so there would be at least sanity in what say > later build_qualified_type creates etc.
> > 
> > not sure what you are refering to.  All type-reuse keys on TYPE_MAIN_VARIANT
> > in the end and iff a such freed type is picked up later then FLD misses
> > some important use chain.  The only one that might still come along the
> > type is the garbage collector and I was worried it might go off into
> > cycles if we leave TYPE_NEXT/MAIN_VARIANT unchanged but change the
> > TYPE_MAIN_VARIANT varaint chain.
> 
> I was worried that we visit some type that has TYPE_CANONICAL we don't visit,
> so it is removed from the TYPE_NEXT_VARIANT chain, and if that happens e.g. for
> two variants of the same type, if they have different TYPE_CANONICAL (e.g.
> because of different qualifications), it might cause trouble if those
> TYPE_CANONICALs no longer have the same TYPE_MAIN_VARIANT.

All varaints have the same TYPE_CANONICAL, that of the main variant, and
we never throw away the main variant.  Basically

gcc_assert (TYPE_CANONICAL (t) == TYPE_MAIN_VARIANT (TYPE_CANONICAL (t)) 
== TYPE_CANONICAL (TYPE_MAIN_VARAINT (t)))

holds
>From gcc-bugs-return-637989-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 15:02:35 2019
Return-Path: <gcc-bugs-return-637989-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98408 invoked by alias); 20 Mar 2019 15:02: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 98352 invoked by uid 48); 20 Mar 2019 15:02:31 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/43798] [8/9 Regression] attribute((aligned(x))) not honored for array element types?
Date: Wed, 20 Mar 2019 15: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: 4.6.0
X-Bugzilla-Keywords: documentation, 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: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-43798-4-g1qWb4I8wl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-43798-4@http.gcc.gnu.org/bugzilla/>
References: <bug-43798-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02283.txt.bz2
Content-length: 577

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

--- Comment #16 from Richard Biener <rguenth at gcc dot gnu.org> ---
IMHO if we silently lower alignment of UINT192 as array elements we
should at least warn for

typedef __attribute__((aligned(16)))
struct {
    unsigned long long w[3];
} UINT192;

UINT192 bid_Kx192[32];


like

  UINT192 bid_Kx192[32];
  ^^^^^^^
warning: alignment of array element type lowered to 8
note: accesses via UINT192 * might generate wrong code

which IMHO is a reason to reject this.  Can the bogus situation be reproduced
with C _Alignas?
>From gcc-bugs-return-637988-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 15:02:13 2019
Return-Path: <gcc-bugs-return-637988-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 97545 invoked by alias); 20 Mar 2019 15:02:13 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 97483 invoked by uid 48); 20 Mar 2019 15:02:10 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/89692] [9 Regression] ICE in streamer_write_chain, at tree-streamer-out.c:506
Date: Wed, 20 Mar 2019 15:02: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, lto
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:
Message-ID: <bug-89692-4-HMkyH61DfD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89692-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89692-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02282.txt.bz2
Content-length: 866

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

--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to rguenther@suse.de from comment #12)
> All varaints have the same TYPE_CANONICAL, that of the main variant, and
> we never throw away the main variant.  Basically
> 
> gcc_assert (TYPE_CANONICAL (t) == TYPE_MAIN_VARIANT (TYPE_CANONICAL (t)) 
> == TYPE_CANONICAL (TYPE_MAIN_VARAINT (t)))
> 
> holds

If it holds, then no objection from me, I just wonder how far we'd get in a
bootstrap (including say Ada) if we've added that assert somewhere.
But in that case the comment that 
      /* Do not walk TYPE_CANONICAL.  We do not stream it and thus do not
         and want not to reach unused types this way.  */
doesn't make much sense, because fld_worklist_push (TYPE_CANONICAL (t), fld);
wouldn't change anything.
>From gcc-bugs-return-637990-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 15:05:38 2019
Return-Path: <gcc-bugs-return-637990-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101825 invoked by alias); 20 Mar 2019 15:05: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 101736 invoked by uid 55); 20 Mar 2019 15:05:35 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/89692] [9 Regression] ICE in streamer_write_chain, at tree-streamer-out.c:506
Date: Wed, 20 Mar 2019 15:05: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, lto
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenther at suse dot de
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-89692-4-wHKv6oe7SK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89692-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89692-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02284.txt.bz2
Content-length: 1493

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

--- Comment #14 from rguenther at suse dot de <rguenther at suse dot de> ---
On Wed, 20 Mar 2019, jakub at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89692
> 
> --- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
> (In reply to rguenther@suse.de from comment #12)
> > All varaints have the same TYPE_CANONICAL, that of the main variant, and
> > we never throw away the main variant.  Basically
> > 
> > gcc_assert (TYPE_CANONICAL (t) == TYPE_MAIN_VARIANT (TYPE_CANONICAL (t)) 
> > == TYPE_CANONICAL (TYPE_MAIN_VARAINT (t)))
> > 
> > holds
> 
> If it holds, then no objection from me, I just wonder how far we'd get in a
> bootstrap (including say Ada) if we've added that assert somewhere.
> But in that case the comment that 
>       /* Do not walk TYPE_CANONICAL.  We do not stream it and thus do not
>          and want not to reach unused types this way.  */
> doesn't make much sense, because fld_worklist_push (TYPE_CANONICAL (t), fld);
> wouldn't change anything.

Theoretically TYPE_CANONICAL might point to an "unrelated" type, since
we re-build TYPE_CANONICAL with LTO rules the comment does make sense.

Of course the non-LTO compilation continues here so indeed that could
leave types unvisited that are reached by TYPE_CANONICAL during
the compilation up to stream-out (and into fat part compilation).
So yes, we should probably visit TYPE_CANONICAL here.
>From gcc-bugs-return-637991-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 15:07:05 2019
Return-Path: <gcc-bugs-return-637991-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105886 invoked by alias); 20 Mar 2019 15:07: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 105426 invoked by uid 48); 20 Mar 2019 15:07:01 -0000
From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug jit/87808] gcc_lib_dir is missing from libgccjit's search path
Date: Wed, 20 Mar 2019 15:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: jit
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dmalcolm at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-87808-4-g06KhF4Xmc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87808-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87808-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02285.txt.bz2
Content-length: 271

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

--- Comment #3 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
You definitely need binutils for libgccjit; it calls the driver (embedded
internally in the .so by default), which invokes the assembler and linker.
>From gcc-bugs-return-637992-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 15:15:56 2019
Return-Path: <gcc-bugs-return-637992-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3056 invoked by alias); 20 Mar 2019 15:15: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 2985 invoked by uid 48); 20 Mar 2019 15:15:54 -0000
From: "amonakov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/43798] [8/9 Regression] attribute((aligned(x))) not honored for array element types?
Date: Wed, 20 Mar 2019 15:15: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.6.0
X-Bugzilla-Keywords: documentation, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amonakov 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.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-43798-4-gRkfdewTuA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-43798-4@http.gcc.gnu.org/bugzilla/>
References: <bug-43798-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02286.txt.bz2
Content-length: 277

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

--- Comment #17 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
> Can the bogus situation be reproduced with C _Alignas?

C11 does not allow _Alignas on typedefs, so don't see how; likewise for alignas
in C++11.
>From gcc-bugs-return-637993-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 15:20:00 2019
Return-Path: <gcc-bugs-return-637993-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8531 invoked by alias); 20 Mar 2019 15:19: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 8476 invoked by uid 48); 20 Mar 2019 15:19:56 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89775] [7/8/9 Regression] S/390: Stackpointer save/restore instructions optimized away
Date: Wed, 20 Mar 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: target
X-Bugzilla-Version: 7.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: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority bug_status cf_reconfirmed_on cc target_milestone short_desc everconfirmed
Message-ID: <bug-89775-4-lsGCmfQab8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89775-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89775-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02287.txt.bz2
Content-length: 2050

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-03-20
                 CC|                            |jakub at gcc dot gnu.org
   Target Milestone|---                         |7.5
            Summary|S/390: Stackpointer         |[7/8/9 Regression] S/390:
                   |save/restore instructions   |Stackpointer save/restore
                   |optimized away              |instructions optimized away
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r203303.
Untested testcase:

--- gcc/testsuite/gcc.target/s390/pr89775-1.c   2019-01-14 16:30:42.457583504
-0500
+++ gcc/testsuite/gcc.target/s390/pr89775-1.c   2019-03-20 11:18:03.102516703
-0400
@@ -0,0 +1,17 @@
+/* PR target/89775 */
+/* { dg-do run } */
+/* { dg-options "-O0 -fomit-frame-pointer" } */
+/* { dg-additional-sources "pr89775-2.c" } */
+
+register void *sp __asm ("15");
+
+__attribute__((noipa)) int
+foo (const char *a, const char *b)
+{
+  while (1)
+    {
+      char c = *a++;
+      if (c != *b++) return 0;
+      if (c == '\0') return 1;
+    }
+}
--- gcc/testsuite/gcc.target/s390/pr89775-2.c   2019-01-14 16:30:42.457583504
-0500
+++ gcc/testsuite/gcc.target/s390/pr89775-2.c   2019-03-20 11:18:11.552516703
-0400
@@ -0,0 +1,25 @@
+/* PR target/89775 */
+/* { dg-do compile } */
+
+extern int foo (const char *, const char *);
+
+__attribute__((noipa)) void
+bar (const char *p)
+{
+  static const char *x;
+  if (!x)
+    x = p;
+  else if (p != x)
+    __builtin_abort ();
+}
+
+int
+main ()
+{
+  char a[8] = "abcdefg";
+  bar (a);
+  if (foo (a, a) != 1)
+    __builtin_abort ();
+  bar (a);
+  return 0;
+}
>From gcc-bugs-return-637994-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 15:29:13 2019
Return-Path: <gcc-bugs-return-637994-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121547 invoked by alias); 20 Mar 2019 15:29: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 115930 invoked by uid 55); 20 Mar 2019 15:29:09 -0000
From: "krebbel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89775] [7/8/9 Regression] S/390: Stackpointer save/restore instructions optimized away
Date: Wed, 20 Mar 2019 15: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: krebbel 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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89775-4-se7F0NceWQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89775-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89775-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02288.txt.bz2
Content-length: 1277

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

--- Comment #2 from Andreas Krebbel <krebbel at gcc dot gnu.org> ---
Author: krebbel
Date: Wed Mar 20 15:28:38 2019
New Revision: 269823

URL: https://gcc.gnu.org/viewcvs?rev=269823&root=gcc&view=rev
Log:
S/390: Fix PR89775. Stackpointer save/restore instructions removed

Even if a global register is being clobbered in a function we usually
do not save and restore it. However, we still have to do this if it is
a special register. Most of the places in the backend handle this
correctly but not the prologue/epilogue optimization.

gcc/ChangeLog:

2019-03-20  Andreas Krebbel  <krebbel@linux.ibm.com>

        PR target/89775
        * config/s390/s390.c (global_not_special_regno_p): Move to make it
        available to ...
        (s390_optimize_register_info): Use global_not_special_regno_p to
        check for global regs.

2019-03-20  Jakub Jelinek  <jakub@redhat.com>

        PR target/89775
        * gcc.target/s390/pr89775-1.c: New test.
        * gcc.target/s390/pr89775-2.c: New test.


Added:
    trunk/gcc/testsuite/gcc.target/s390/pr89775-1.c
    trunk/gcc/testsuite/gcc.target/s390/pr89775-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/s390/s390.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-637995-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 15:34:05 2019
Return-Path: <gcc-bugs-return-637995-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127742 invoked by alias); 20 Mar 2019 15:34: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 123674 invoked by uid 48); 20 Mar 2019 15:34:00 -0000
From: "marius.messerschmidt at googlemail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/89774] Add flag to force single precision
Date: Wed, 20 Mar 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: c
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marius.messerschmidt at googlemail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: resolution
Message-ID: <bug-89774-4-XrGyqXdPAT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89774-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89774-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02289.txt.bz2
Content-length: 1162

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

Marius Messerschmidt <marius.messerschmidt at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|WORKSFORME                  |FIXED

--- Comment #2 from Marius Messerschmidt <marius.messerschmidt at googlemail dot com> ---
This will cause issues the other way around as well.

I think that I did not state clearly what I meant...

Right now you can only use 'all double' or 'all float'. What I am looking for
is some kind of performance-oriented solution that will pick the 'best' option
for each literal.

Quick example:

void f() {
  float a = 2.0;     // 2.0 -> single
  float b = 2.0 * b; // 2.0 -> single

  double d = 3.0;    // 3.0 -> double
  double e = 3.0 * d;// 3.0 -> double

  double z = 2.0 * a + 3.0 * d; // both 2.0 and 3.0 -> double (only cast a)
}

The basic idea is to increase performance by reducing casting instructions.

Is something like that already implemented or if not, do you think that this is
useful and could be implemented?
>From gcc-bugs-return-637996-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 15:43:13 2019
Return-Path: <gcc-bugs-return-637996-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81535 invoked by alias); 20 Mar 2019 15:43: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 81487 invoked by uid 48); 20 Mar 2019 15:43:09 -0000
From: "doko at debian dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug jit/87808] gcc_lib_dir is missing from libgccjit's search path
Date: Wed, 20 Mar 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: jit
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: doko at debian dot org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-87808-4-tafbu27RWR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87808-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87808-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02290.txt.bz2
Content-length: 2098

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

--- Comment #4 from Matthias Klose <doko at debian dot org> ---
Understood, that I need binutils. However if you remove the driver (or rename
it on your system), then the debug output reads:

JIT:    entering: virtual void
gcc::jit::playback::compile_to_memory::postprocess(const char*)
JIT:     entering: void gcc::jit::playback::context::convert_to_dso(const
char*)
JIT:      entering: void gcc::jit::playback::context::invoke_driver(const
char*, const char*, const char*, timevar_id_t, bool, bool)
JIT:       entering: void
gcc::jit::playback::context::add_multilib_driver_arguments(vec<char*, va_heap,
vl_ptr>*)
JIT:       exiting: void
gcc::jit::playback::context::add_multilib_driver_arguments(vec<char*, va_heap,
vl_ptr>*)
JIT:       argv[0]: x86_64-linux-gnu-gcc-9
JIT:       argv[1]: -m64
JIT:       argv[2]: -shared
JIT:       argv[3]: /tmp/libgccjit-p43Zl1/fake.s
JIT:       argv[4]: -o
JIT:       argv[5]: /tmp/libgccjit-p43Zl1/fake.so
JIT:       argv[6]: -fno-use-linker-plugin
JIT:       entering: void
gcc::jit::playback::context::invoke_embedded_driver(const vec<char*, va_heap,
vl_ptr>*)
ld: cannot find crtbeginS.o: No such file or directory
ld: cannot find -lgcc
ld: cannot find -lgcc_s
JIT:        entering: void
gcc::jit::recording::context::add_error_va(gcc::jit::recording::location*,
const char*, __va_list_tag*)
JIT:         error 0: error invoking gcc driver
libgccjit.so: error: error invoking gcc driver
JIT:        exiting: void
gcc::jit::recording::context::add_error_va(gcc::jit::recording::location*,
const char*, __va_list_tag*)
JIT:       exiting: void
gcc::jit::playback::context::invoke_embedded_driver(const vec<char*, va_heap,
vl_ptr>*)
JIT:      exiting: void gcc::jit::playback::context::invoke_driver(const char*,
const char*, const char*, timevar_id_t, bool, bool)
JIT:     exiting: void gcc::jit::playback::context::convert_to_dso(const char*)
JIT:    exiting: virtual void
gcc::jit::playback::compile_to_memory::postprocess(const char*)

so something is calling the external driver ...
>From gcc-bugs-return-637997-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 15:51:21 2019
Return-Path: <gcc-bugs-return-637997-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96240 invoked by alias); 20 Mar 2019 15:51: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 96171 invoked by uid 48); 20 Mar 2019 15:51:17 -0000
From: "savoiu at yahoo dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/89777] New: Any optimizaton level over -O0 causes crash in dynamic_cast
Date: Wed, 20 Mar 2019 15:51: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: 8.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: savoiu at yahoo 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-89777-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02291.txt.bz2
Content-length: 701

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

            Bug ID: 89777
           Summary: Any optimizaton level over -O0 causes crash in
                    dynamic_cast
           Product: gcc
           Version: 8.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: savoiu at yahoo dot com
  Target Milestone: ---

Created attachment 45998
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45998&action=edit
Code that causes crash

The code in the attachment crashes on execution when compiled as

   g++ -O* gcc_bug.cpp

unless '*' is '0'.
>From gcc-bugs-return-637998-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 15:54:33 2019
Return-Path: <gcc-bugs-return-637998-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100637 invoked by alias); 20 Mar 2019 15:54: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 100551 invoked by uid 48); 20 Mar 2019 15:54:30 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/89777] Any optimizaton level over -O0 causes crash in dynamic_cast
Date: Wed, 20 Mar 2019 15:54: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.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia 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: keywords bug_status component resolution
Message-ID: <bug-89777-4-LvO8bhZROn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89777-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89777-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02292.txt.bz2
Content-length: 683

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|wrong-code                  |
             Status|UNCONFIRMED                 |RESOLVED
          Component|tree-optimization           |rtl-optimization
         Resolution|---                         |INVALID

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
p_bb1->bar<blah_blah *>(); is undefined because p_bb1 is a NULL pointer.

You can find this behavior at runtime by using -fsanitize=undefined.
>From gcc-bugs-return-637999-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 16:02:48 2019
Return-Path: <gcc-bugs-return-637999-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113490 invoked by alias); 20 Mar 2019 16:02: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 112332 invoked by uid 48); 20 Mar 2019 16:02:44 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/89621] [7/8/9 Regression] ICE with allocatable character and openmp
Date: Wed, 20 Mar 2019 16:02: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.2.0
X-Bugzilla-Keywords: openmp
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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89621-4-pwwSm9WUsR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89621-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89621-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02293.txt.bz2
Content-length: 1194

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The problem is that tree-inline.c will remap variably_modified_type_p types
unconditionally.
I've tried:
--- gcc/tree-inline.c.jj        2019-03-11 22:56:55.888667590 +0100
+++ gcc/tree-inline.c   2019-03-20 15:28:59.207677470 +0100
@@ -595,6 +595,18 @@ remap_type_1 (tree type, copy_body_data
       walk_tree (&TYPE_SIZE_UNIT (new_tree), copy_tree_body_r, id, NULL);
     }

+  if (TREE_CODE (new_tree) == ARRAY_TYPE
+      && !TYPE_STRUCTURAL_EQUALITY_P (new_tree))
+    {
+      hashval_t hash = type_hash_canon_hash (new_tree);
+      tree t = type_hash_canon (hash, new_tree);
+      if (t != new_tree)
+       {
+         insert_decl_map (id, type, t);
+         return t;
+       }
+    }
+
   return new_tree;
 }

but that doesn't help, as Fortran doesn't use TYPE_CANONICAL.
Another possibility would be walk the type first and for all the decls found
there check if remap_decl returns something different from the decl, and if
not, remap type to itself.
Yet another possibility is just fold_convert the types to avoid the assert and
hope for the best.
>From gcc-bugs-return-638000-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 16:04:48 2019
Return-Path: <gcc-bugs-return-638000-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21047 invoked by alias); 20 Mar 2019 16:04: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 20868 invoked by uid 48); 20 Mar 2019 16:04:45 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/89621] [7/8/9 Regression] ICE with allocatable character and openmp
Date: Wed, 20 Mar 2019 16:04: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.2.0
X-Bugzilla-Keywords: openmp
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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89621-4-onMjP9pMUD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89621-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89621-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02294.txt.bz2
Content-length: 468

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
In particular, what's going on here is that we have a pointer to VLA type,
remap it once on !$omp parallel (that is required, the decls are remapped in
that case) and once again on !$omp do (which is unexpected, because that
construct remaps (privatizes) only what has been explicitly privatized, the
rest is shared and doesn't need any remapping).
>From gcc-bugs-return-638001-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 16:23:33 2019
Return-Path: <gcc-bugs-return-638001-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66735 invoked by alias); 20 Mar 2019 16:23: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 66664 invoked by uid 48); 20 Mar 2019 16:23:30 -0000
From: "marius.messerschmidt at googlemail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/89774] Add flag to force single precision
Date: Wed, 20 Mar 2019 16:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marius.messerschmidt at googlemail 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_status resolution
Message-ID: <bug-89774-4-AFnbBtOU1O@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89774-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89774-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02295.txt.bz2
Content-length: 485

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

Marius Messerschmidt <marius.messerschmidt at googlemail dot com> changed:

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

--- Comment #3 from Marius Messerschmidt <marius.messerschmidt at googlemail dot com> ---
Reopening issue
>From gcc-bugs-return-638002-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 16:27:16 2019
Return-Path: <gcc-bugs-return-638002-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70205 invoked by alias); 20 Mar 2019 16:27: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 70152 invoked by uid 48); 20 Mar 2019 16:27:13 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/89774] Add flag to force single precision
Date: Wed, 20 Mar 2019 16: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: unknown
X-Bugzilla-Keywords: missed-optimization
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: keywords
Message-ID: <bug-89774-4-FiZO0rqhFi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89774-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89774-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02296.txt.bz2
Content-length: 633

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Marius Messerschmidt from comment #2)
> Is something like that already implemented or if not, do you think that this
> is useful and could be implemented?

This optimization is mostly done already.  Did you check before posting that
comment?
>From gcc-bugs-return-638003-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 16:41:01 2019
Return-Path: <gcc-bugs-return-638003-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91130 invoked by alias); 20 Mar 2019 16:41: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 91070 invoked by uid 48); 20 Mar 2019 16:40:58 -0000
From: "marius.messerschmidt at googlemail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/89774] Add flag to force single precision
Date: Wed, 20 Mar 2019 16: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: unknown
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marius.messerschmidt at googlemail 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-89774-4-Yu1SRldNT4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89774-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89774-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02297.txt.bz2
Content-length: 291

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

--- Comment #5 from Marius Messerschmidt <marius.messerschmidt at googlemail dot com> ---
I did checkt the output without --fsingle-precision-constant

Is this only enabled via -fsingle-precision-constant or at any optimization
level?
>From gcc-bugs-return-638004-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 16:42:43 2019
Return-Path: <gcc-bugs-return-638004-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93834 invoked by alias); 20 Mar 2019 16:42: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 93802 invoked by uid 48); 20 Mar 2019 16:42:39 -0000
From: "savoiu at yahoo dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89777] Any optimizaton level over -O0 causes crash in dynamic_cast
Date: Wed, 20 Mar 2019 16:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: savoiu at yahoo dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89777-4-qpNwNPHze6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89777-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89777-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02298.txt.bz2
Content-length: 164

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

--- Comment #2 from Nick Savoiu <savoiu at yahoo dot com> ---
I was afraid that it would be resolved as such.
>From gcc-bugs-return-638005-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 16:55:11 2019
Return-Path: <gcc-bugs-return-638005-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120104 invoked by alias); 20 Mar 2019 16:55: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 119852 invoked by uid 48); 20 Mar 2019 16:55:05 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/89774] Add flag to force single precision
Date: Wed, 20 Mar 2019 16: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: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-89774-4-nseUKrqjH3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89774-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89774-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02299.txt.bz2
Content-length: 1363

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

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

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Take your example and convert it into different functions:
float a(void)
{
  return 2.0;
}

float b(float a)
{
  return 2.0 * a;
}

double d(void)
{
  return 3.0;
}

double e(double d)
{
  return 3.0 * d;
}

double z(float a, double d)
{
  return 2.0 * a + 3.0 * d;
}

---- CUT ----
a:
.LFB0:
        .cfi_startproc
        vmovss  .LC0(%rip), %xmm0 ;;; load single
        ret
b:
.LFB1:
        .cfi_startproc
        vaddss  %xmm0, %xmm0, %xmm0 ;;; add single (same as a*2.0)
        ret
d:
.LFB2:
        .cfi_startproc
        vmovsd  .LC1(%rip), %xmm0 ;;; load double
        ret
e:
.LFB3:
        .cfi_startproc
        vmulsd  .LC1(%rip), %xmm0, %xmm0 ;;; multiple double
        ret
z:
.LFB4:
        .cfi_startproc
        vmulsd  .LC1(%rip), %xmm1, %xmm1  ;; multiple double
        vcvtss2sd       %xmm0, %xmm0, %xmm0 ;; convert single to double
        vfmadd132sd     .LC2(%rip), %xmm1, %xmm0 ;; multiple add double
        ret
>From gcc-bugs-return-638006-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 17:00:53 2019
Return-Path: <gcc-bugs-return-638006-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126923 invoked by alias); 20 Mar 2019 17:00: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 126523 invoked by uid 48); 20 Mar 2019 17:00:21 -0000
From: "marius.messerschmidt at googlemail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/89774] Add flag to force single precision
Date: Wed, 20 Mar 2019 17:00: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: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marius.messerschmidt at googlemail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89774-4-4Lp1Jhmzti@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89774-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89774-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02300.txt.bz2
Content-length: 185

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

--- Comment #7 from Marius Messerschmidt <marius.messerschmidt at googlemail dot com> ---
Looks good, which options did you use?
>From gcc-bugs-return-638007-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 17:04:48 2019
Return-Path: <gcc-bugs-return-638007-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98970 invoked by alias); 20 Mar 2019 17:04: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 98881 invoked by uid 48); 20 Mar 2019 17:04:45 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/89774] Add flag to force single precision
Date: Wed, 20 Mar 2019 17:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia 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-89774-4-1g4Y1z72Em@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89774-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89774-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02301.txt.bz2
Content-length: 323

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

--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Marius Messerschmidt from comment #7)
> Looks good, which options did you use?

-O2 -march=native (the last part was done as I wanted to get the fused
multiple-add but it is not needed).
>From gcc-bugs-return-638008-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 17:14:15 2019
Return-Path: <gcc-bugs-return-638008-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19366 invoked by alias); 20 Mar 2019 17:14: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 19227 invoked by uid 48); 20 Mar 2019 17:14:08 -0000
From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug jit/87808] gcc_lib_dir is missing from libgccjit's search path when driver is not installed
Date: Wed, 20 Mar 2019 17:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: jit
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dmalcolm at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-87808-4-NbKT7VzxGW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87808-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87808-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02302.txt.bz2
Content-length: 5785

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|gcc_lib_dir is missing from |gcc_lib_dir is missing from
                   |libgccjit's search path     |libgccjit's search path
                   |                            |when driver is not
                   |                            |installed

--- Comment #5 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Log of our chat about this on IRC:

<doko> dmalcolm: so the driver has to be present to use libgccjit? 
<dmalcolm> doko: if you call gcc_jit_context_set_bool_use_external_driver
(ctxt, 1) it does; it defaults to using an internal driver though iirc
* dmalcolm checks
<dmalcolm> yup
<doko> dmalcolm: looking at https://paste.ubuntu.com/p/Sz2hJ8rKZX/  the
external driver is called despite explicitly calling
gcc_jit_context_set_bool_use_external_driver (ctxt, 0); at least that's how I
interpret the debug output
<dmalcolm> doko: I don't think it is.  I see calls that invoke_driver is
calling invoke_embedded_driver
<dmalcolm> s/calls //
<doko> dmalcolm: no, https://paste.ubuntu.com/p/KZV5jJQNRf/  this is with the
x86_64-linux-gnu-gcc-9 removed
<dmalcolm> bother
<dmalcolm> doko: maybe try passing    gcc_jit_context_add_command_line_option
(ctxt, "-v")  or similar to get a more verbose output from the embedded driver
<dmalcolm> s/passing/calling/
<dmalcolm> doko: sorry, gcc_jit_context_add_driver_option, I meant to say
<doko> dmalcolm: https://paste.ubuntu.com/p/vRKRqXy65Y/  this is clearly output
from the external driver ...
<doko> or maybe I'm misunderstanding what the internal driver is, if it calls
the external one
<dmalcolm> doko: the "internal driver" is gcc.o linked inside libgccjit.so 
It's the same code as the regular "gcc" binary, but called as a function.  The
log shows it calling "invoke_embedded_driver"
<dmalcolm> doko: so yes, it looks remarkably like as if it had fork&exec-ed
gcc, but it's running that code in-process
<doko> dmalcolm: ok, but why do I see these errors, when I remove the external
driver?
<dmalcolm> doko: good question
<dmalcolm> doko: I see in that log:
<dmalcolm> COMPILER_PATH=
<dmalcolm>
LIBRARY_PATH=/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/lib/:/usr/lib/
<dmalcolm> doko: does that change when reinstalling the external driver?
<dmalcolm> doko: presumably you're not uninstalling the .o and libs it's
looking for, right?  I'm assuming this is just a "choosing the right directory
to look in" issue
<doko> dmalcolm: yes, just removing the driver, nothing else. See
https://paste.ubuntu.com/p/T7J9DDDTqW/ look at COMPILER_PATH and LIBRARY_PATH
<dmalcolm> doko: interesting.  It's also calling collect2 vs calling ld
<doko> that explains why it succeeds without the driver, and manually setting
LIBRARY_PATH
<dmalcolm> doko: looking at gcc.c I see various places using gcc_exec_prefix
where it's locating things relative to the driver binary
<dmalcolm> doko: I think make_relative_prefix is looking for the driver based
on PATH
<dmalcolm> doko: when the driver binary is present, the gcc.c code finds its
directory, via get_relative_prefix, and sets gcc_exec_prefix and
gcc_libexec_prefix, I think
<dmalcolm> doko: when the driver binary is not in PATH, it doesn't find it, and
those vars don't get set up
<dmalcolm> doko: does it work if you set GCC_EXEC_PREFIX in the environment?
presumably to /usr/lib/gcc/x86_64-linux-gnu/9/ or somesuch
<doko> dmalcolm: yes
<dmalcolm> doko: I wonder if we can get it work by having it look relative to
the .so, rather than relative to the driver
<dmalcolm> doko: oh, that's not going to work; make_relative_prefix looks for
the thing on the PTH
<dmalcolm> PATH, even
<doko> dmalcolm: yep, that's what I just found as well
<dmalcolm> doko: I think the pertinent comment here is:
<dmalcolm>   /* From this point onward, gcc_exec_prefix is non-null if the
toolchain
<dmalcolm>      is relocated. The toolchain was either relocated using
GCC_EXEC_PREFIX
<dmalcolm>      or an automatically created GCC_EXEC_PREFIX from
<dmalcolm>      decoded_options[0].arg.  */
<dmalcolm> doko: and the logic for the latter depends on locating 
decoded_options[0].arg
<dmalcolm> doko: by finding it on PATH
<doko> ... which doesn't cover libgccjit's use case
<doko> dmalcolm: should libgccjit set GCC_EXEC_PREFIX in the environment when
it's not set?
<dmalcolm> doko: perhaps.  But it's good to be relocatable.  I'm not sure what
the value it would set it to should be
<dmalcolm> doko: is there a way for a .so to ask: what location am I linked
from?
<dmalcolm> (analogous to how the driver binary is querying PATH to try to find
where it's been run from)
<doko> dmalcolm: /proc/self/maps ?
<dmalcolm> gahh
<dmalcolm> doko: that could work, but sounds like a portability nightmare
<dmalcolm> doko: if this is a purely packaging thing, can we ignore
relocatability for this use-case, and hardcode where the installation path will
be?
<dmalcolm> doko: then have libgccjit set GCC_EXEC_PREFIX to the correct
(hardcoded) path for packaged builds
<doko> dmalcolm: +1, otherwise I would have to add a gcc dependency tp
libgccjit0
<dmalcolm> doko: in Fedora we have a gcc dep for libgccjit
<doko> yes, that's the other option
<doko> dmalcolm: when adding that, where should this go?
<dmalcolm> doko: totally untested:
https://paste.fedoraproject.org/paste/sPA97QW4RkS5LHPjGAcxFg
<dmalcolm> doko: (plus it needs a comment explaining why we're doing it)
<doko> dmalcolm: ok, I'll look into that tomorrow
<dmalcolm> doko: or just add the dep :)
>From gcc-bugs-return-638009-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 18:04:13 2019
Return-Path: <gcc-bugs-return-638009-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38907 invoked by alias); 20 Mar 2019 18:04: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 38851 invoked by uid 48); 20 Mar 2019 18:04:08 -0000
From: "myLC at gmx dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/89778] New: std::get_time : %d does not work without leading zeros
Date: Wed, 20 Mar 2019 18:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 8.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: myLC 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-89778-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02303.txt.bz2
Content-length: 1626

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

            Bug ID: 89778
           Summary: std::get_time : %d does not work without leading zeros
           Product: gcc
           Version: 8.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: myLC at gmx dot net
  Target Milestone: ---

#include <ctime>
#include <string>
#include <iomanip>
#include <sstream>
#include <iostream>

void printDate( const std::string &date_string ) {
  std::istringstream is( date_string );
  std::tm tm{};
  static const char *date_format( "%Y/%b/%d" );
  // d : parses the day of the month as a decimal number 
  //     (range [01,31]), leading zeroes permitted but not required 
  is >> std::get_time( &tm, date_format );
  char buf[ 20 ];
  std::strftime( buf, 20, date_format, &tm );
  std::cout << buf << '\n';
}

int main() {
  printDate( "2019/Apr/09" );
  printDate( "2019/Apr/9" );
  std::cout << '\n';
  printDate( "2017/Jan/02" );
  printDate( "2017/Jan/2" );
  std::cout << '\n';
  printDate( "2018/Dec/07" );
  printDate( "2018/Dec/7" );
}


###############


gcc-bug > g++ --version && g++ get_time-bug.cpp -o get_time-bug &&
./get_time-bug
g++ (Ubuntu 8.1.0-5ubuntu1~14.04) 8.1.0 <=== (x86 64-bit)
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

2019/Apr/09
2019/Apr/00

2017/Jan/02
2017/Jan/00

2018/Dec/07
2018/Dec/00
>From gcc-bugs-return-638010-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 18:09:39 2019
Return-Path: <gcc-bugs-return-638010-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45073 invoked by alias); 20 Mar 2019 18:09: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 44957 invoked by uid 48); 20 Mar 2019 18:09:35 -0000
From: "liakhdi at ornl dot gov" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/83515] ICE: Invalid expression in gfc_element_size
Date: Wed, 20 Mar 2019 18:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: liakhdi at ornl dot gov
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-83515-4-8qAAfOj6LT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83515-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83515-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02304.txt.bz2
Content-length: 1480

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

--- Comment #11 from DIL <liakhdi at ornl dot gov> ---
(In reply to Dominique d'Humieres from comment #10)
> With the patch in comment 8 all the tests compile and the original test in
> comment 0 gives ta runtime
> 
>  gfc::bank testing status:            0 (PASSED): Performance:   
> 3532045.4736842103     
>  gfc::vector testing status:            0 (PASSED): Performance:   
> 2515463.5218254919     
>  gfc::list testing status:            0 (PASSED): Performance:   
> 2515463.5218254919     
>  gfc::tree testing status:            0 (PASSED): Performance:   
> 1045525.1575901519     
>  gfc::dictionary testing status:            0 (PASSED): Performance:   
> 836199.51143490721     
>  gfc::graph testing status:            0 (PASSED): Performance:   
> 118470.61398863114     
>  Multi-index sort testing status:            0 (PASSED): Performance:   
> 239778.83863299151     
>  Dynamic type inferrence slowdown:   0.1258     67109934.2342983   0.1312   
> 67109934.2342983    1.0432470247796064     
> 
> > However, I do not have a working code sample to run
> 
> The original test is not suitable for the test suite, but the author can
> probably reduce it.



Sorry, I am confused, I think Comment 1 already has such a reduced test. At
least the what it says there ...
>From gcc-bugs-return-638011-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 18:33:47 2019
Return-Path: <gcc-bugs-return-638011-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6678 invoked by alias); 20 Mar 2019 18:33: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 6520 invoked by uid 48); 20 Mar 2019 18:33:44 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/83515] ICE: Invalid expression in gfc_element_size
Date: Wed, 20 Mar 2019 18: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: 8.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:
Message-ID: <bug-83515-4-112ENQRW6X@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83515-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83515-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02305.txt.bz2
Content-length: 518

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

--- Comment #12 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Sorry, I am confused, I think Comment 1 already has such a reduced test.
> At least the what it says there ...

It is a reduced test for the ICE (as are further reduced tests in comments 3
and 9),
but they do not allow to check that fortran is not producing a wrong code
instead of an ICE.

I understand

> However, I do not have a working code sample to run.

as asking for such a test.
>From gcc-bugs-return-638012-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 18:51:48 2019
Return-Path: <gcc-bugs-return-638012-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101228 invoked by alias); 20 Mar 2019 18:51: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 101167 invoked by uid 48); 20 Mar 2019 18:51:44 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/87145] [7/8/9 Regression] Implicit conversion to scoped enum fails: "error: taking address of temporary/rvalue"
Date: Wed, 20 Mar 2019 18:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.3.1
X-Bugzilla-Keywords: rejects-valid
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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-87145-4-sTBH2ucWUo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87145-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87145-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02306.txt.bz2
Content-length: 370

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

--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Slightly different testcase:

struct S {
  int val;

  constexpr operator int() const {
    return static_cast<int>(val);
  }
};

template<int N>
struct F { };

template<unsigned N>
constexpr void foo() {
  F<S{N}> f;
}

int
main()
{
  foo<2>();
}
>From gcc-bugs-return-638013-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 19:23:56 2019
Return-Path: <gcc-bugs-return-638013-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61897 invoked by alias); 20 Mar 2019 19: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 61829 invoked by uid 48); 20 Mar 2019 19:23:53 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/87145] [7/8/9 Regression] Implicit conversion to scoped enum fails: "error: taking address of temporary/rvalue"
Date: Wed, 20 Mar 2019 19:23: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.1
X-Bugzilla-Keywords: rejects-valid
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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-87145-4-QgWK1qacDc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87145-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87145-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02307.txt.bz2
Content-length: 1353

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

--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
This fixes it.  But is it the best fix?

--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -8056,7 +8056,14 @@ convert_template_argument (tree parm,
    t = canonicalize_type_argument (t, complain);

       if (!type_dependent_expression_p (orig_arg)
-     && !uses_template_parms (t))
+     && !uses_template_parms (t)
+     /* This might trigger calling a conversion function with
+        a value-dependent argument, which could invoke taking
+        the address of a temporary representing the result of
+        the conversion.  */
+     && !(COMPOUND_LITERAL_P (orig_arg)
+          && MAYBE_CLASS_TYPE_P (TREE_TYPE (orig_arg))
+          && value_dependent_expression_p (orig_arg)))
    /* We used to call digest_init here.  However, digest_init
       will report errors, which we don't want when complain
       is zero.  More importantly, digest_init will try too
@@ -8092,7 +8099,7 @@ convert_template_argument (tree parm,
          && TREE_CODE (TREE_TYPE (innertype)) == FUNCTION_TYPE
          && TREE_OPERAND_LENGTH (inner) > 0
               && reject_gcc_builtin (TREE_OPERAND (inner, 0)))
-              return error_mark_node;
+       return error_mark_node;
         }

       if (TREE_CODE (val) == SCOPE_REF)
>From gcc-bugs-return-638014-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 19:26:28 2019
Return-Path: <gcc-bugs-return-638014-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66177 invoked by alias); 20 Mar 2019 19:26: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 66028 invoked by uid 48); 20 Mar 2019 19:26:24 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/89692] [9 Regression] ICE in streamer_write_chain, at tree-streamer-out.c:506
Date: Wed, 20 Mar 2019 19:26: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, lto
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-89692-4-5GEehaPKlf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89692-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89692-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02308.txt.bz2
Content-length: 256

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

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

Untested patch.
>From gcc-bugs-return-638015-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 19:31:32 2019
Return-Path: <gcc-bugs-return-638015-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74406 invoked by alias); 20 Mar 2019 19:31: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 74219 invoked by uid 48); 20 Mar 2019 19:31:29 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89775] [7/8 Regression] S/390: Stackpointer save/restore instructions optimized away
Date: Wed, 20 Mar 2019 19:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.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: P2
X-Bugzilla-Assigned-To: krebbel at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to short_desc
Message-ID: <bug-89775-4-m1esSqG1Bw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89775-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89775-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02309.txt.bz2
Content-length: 706

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |krebbel at gcc dot gnu.org
            Summary|[7/8/9 Regression] S/390:   |[7/8 Regression] S/390:
                   |Stackpointer save/restore   |Stackpointer save/restore
                   |instructions optimized away |instructions optimized away

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed on the trunk so far, thanks.
>From gcc-bugs-return-638016-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 19:33:39 2019
Return-Path: <gcc-bugs-return-638016-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78128 invoked by alias); 20 Mar 2019 19: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 78007 invoked by uid 48); 20 Mar 2019 19:33:36 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/87145] [7/8/9 Regression] Implicit conversion to scoped enum fails: "error: taking address of temporary/rvalue"
Date: Wed, 20 Mar 2019 19: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: 7.3.1
X-Bugzilla-Keywords: rejects-valid
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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-87145-4-3ZiNgbefVa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87145-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87145-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02310.txt.bz2
Content-length: 519

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

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 #8 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I'll post a slightly tweaked version of that patch.  We'll see...
>From gcc-bugs-return-638018-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 19:42:10 2019
Return-Path: <gcc-bugs-return-638018-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99613 invoked by alias); 20 Mar 2019 19:42: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 97787 invoked by uid 48); 20 Mar 2019 19:42:07 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/45896] [C++0x] Facet time_get not reading dates according to the IEEE 1003 standard.
Date: Wed, 20 Mar 2019 19:42: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: 4.4.3
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
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-45896-4-zUuzGj8Vx2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-45896-4@http.gcc.gnu.org/bugzilla/>
References: <bug-45896-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02312.txt.bz2
Content-length: 436

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |myLC at gmx dot net

--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> ---
*** Bug 89778 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-638017-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 19:42:10 2019
Return-Path: <gcc-bugs-return-638017-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99398 invoked by alias); 20 Mar 2019 19:42: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 97568 invoked by uid 48); 20 Mar 2019 19:42:07 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/89778] std::get_time : %d does not work without leading zeros
Date: Wed, 20 Mar 2019 19:42: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: 8.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-89778-4-cqI1Md1PbO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89778-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89778-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02311.txt.bz2
Content-length: 506

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

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

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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I think this is a dup

*** This bug has been marked as a duplicate of bug 45896 ***
>From gcc-bugs-return-638019-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 19:43:04 2019
Return-Path: <gcc-bugs-return-638019-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102540 invoked by alias); 20 Mar 2019 19:43: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 102470 invoked by uid 48); 20 Mar 2019 19:43:01 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/45896] [C++0x] Facet time_get not reading dates according to the IEEE 1003 standard.
Date: Wed, 20 Mar 2019 19:43: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: 4.4.3
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: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_reconfirmed_on bug_severity
Message-ID: <bug-45896-4-H4IQ5vln35@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-45896-4@http.gcc.gnu.org/bugzilla/>
References: <bug-45896-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02313.txt.bz2
Content-length: 1198

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2010-10-05 17:57:04         |2019-3-20
           Severity|enhancement                 |normal

--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Testcase from PR 89778:

#include <ctime>
#include <string>
#include <iomanip>
#include <sstream>
#include <iostream>

void printDate( const std::string &date_string ) {
  std::istringstream is( date_string );
  std::tm tm{};
  static const char *date_format( "%Y/%b/%d" );
  // d : parses the day of the month as a decimal number 
  //     (range [01,31]), leading zeroes permitted but not required 
  is >> std::get_time( &tm, date_format );
  char buf[ 20 ];
  std::strftime( buf, 20, date_format, &tm );
  std::cout << buf << '\n';
}

int main() {
  printDate( "2019/Apr/09" );
  printDate( "2019/Apr/9" );
  std::cout << '\n';
  printDate( "2017/Jan/02" );
  printDate( "2017/Jan/2" );
  std::cout << '\n';
  printDate( "2018/Dec/07" );
  printDate( "2018/Dec/7" );
}
>From gcc-bugs-return-638020-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 20:14:10 2019
Return-Path: <gcc-bugs-return-638020-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30742 invoked by alias); 20 Mar 2019 20:14:07 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 30094 invoked by uid 48); 20 Mar 2019 20:14:02 -0000
From: "myLC at gmx dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/89778] std::get_time : %d does not work without leading zeros
Date: Wed, 20 Mar 2019 20:14: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: 8.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: myLC at gmx dot net
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89778-4-nqbyrmPg8V@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89778-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89778-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02314.txt.bz2
Content-length: 431

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

--- Comment #2 from myLC at gmx dot net ---
(In reply to Jonathan Wakely from comment #1)
> I think this is a dup
> 
> *** This bug has been marked as a duplicate of bug 45896 ***

Thank you, yes indeed. Although, the title
"[C++0x] Facet time_get not reading dates according to the IEEE 1003 standard."
isn't really saying that much, considering it's about leading zeros.
>From gcc-bugs-return-638021-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 20:32:15 2019
Return-Path: <gcc-bugs-return-638021-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 124602 invoked by alias); 20 Mar 2019 20:32: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 124461 invoked by uid 55); 20 Mar 2019 20:32:11 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/87480] [8/9 Regression] SFINAE constructor not matched, only in templated function
Date: Wed, 20 Mar 2019 20: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: 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: P2
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-87480-4-dvCACzyKYV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87480-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87480-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02315.txt.bz2
Content-length: 992

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

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Mar 20 20:31:40 2019
New Revision: 269826

URL: https://gcc.gnu.org/viewcvs?rev=269826&root=gcc&view=rev
Log:
        PR c++/87480 - decltype of member access in default template arg

The issue here is that declval<T>().d is considered instantiation-dependent
within a template, as the access to 'd' might depend on the particular
specialization.  But when we're deducing template arguments for a call, we
know that the call and the arguments are non-dependent, so we can do the
substitution as though we aren't in a template.  Which strictly speaking we
aren't, since the default argument is considered a separate definition.

        * pt.c (type_unification_real): Accept a dependent result in
        template context.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/fntmpdefarg11.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
>From gcc-bugs-return-638022-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 21:03:10 2019
Return-Path: <gcc-bugs-return-638022-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118940 invoked by alias); 20 Mar 2019 21:03: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 118880 invoked by uid 48); 20 Mar 2019 21:03:07 -0000
From: "vmakarov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/89676] [7/8/9 Regression] Redundant moves for long long shift on 32bit x86
Date: Wed, 20 Mar 2019 21:03: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: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vmakarov 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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89676-4-cz25IBN0mN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89676-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89676-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02316.txt.bz2
Content-length: 312

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

--- Comment #5 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
I am working on it.  It is a non-trivial problem.  We should somehow exclude
creation of conflicts in lra-lives.c for an early clobber matched with an
input.

I hope to fix it this week.
>From gcc-bugs-return-638023-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 21:32:58 2019
Return-Path: <gcc-bugs-return-638023-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94655 invoked by alias); 20 Mar 2019 21:32: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 94614 invoked by uid 55); 20 Mar 2019 21:32:55 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/71861] [7/8/9 Regression] [F03] ICE in write_symbol(): bad module symbol
Date: Wed, 20 Mar 2019 21: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: 7.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: janus at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: janus at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-71861-4-5ApyasBnnw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71861-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71861-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02317.txt.bz2
Content-length: 738

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

--- Comment #10 from janus at gcc dot gnu.org ---
Author: janus
Date: Wed Mar 20 21:32:23 2019
New Revision: 269827

URL: https://gcc.gnu.org/viewcvs?rev=269827&root=gcc&view=rev
Log:
fix PR 71861

2019-03-20  Janus Weil  <janus@gcc.gnu.org>

        PR fortran/71861
        * symbol.c (check_conflict): ABSTRACT attribute conflicts with
        INTRINSIC attribute.

2019-03-20  Janus Weil  <janus@gcc.gnu.org>

        PR fortran/71861
        * gfortran.dg/interface_abstract_5.f90: New test case.

Added:
    trunk/gcc/testsuite/gfortran.dg/interface_abstract_5.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/symbol.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-638024-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 21:55:30 2019
Return-Path: <gcc-bugs-return-638024-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43503 invoked by alias); 20 Mar 2019 21:55: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 43441 invoked by uid 48); 20 Mar 2019 21:55:26 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/89676] [7/8/9 Regression] Redundant moves for long long shift on 32bit x86
Date: Wed, 20 Mar 2019 21:55: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: 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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89676-4-wXrR6Q6fV3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89676-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89676-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02318.txt.bz2
Content-length: 1036

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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I wonder if in this case the instruction couldn't replace the current =&r 0n Ic
constraints e.g. with =r,&r 0n,0n I,c because if the shift count is constant,
then I don't see the point of early-clobber, if the two inputs are n and I,
then
there are no input registers (arguably that should have been folded earlier),
if
one input is 0 and the other one is I, then the earlyclobber doesn't make much
sense either, the first input is equal to the output and there is no other
input.
It is just the variable shift count where the count is in %cl register and
there we must make sure that the destination register will not overlap %cl even
when doing stuff like: unsigned long long x; ... x = x << (char) x;

That said, if you can handle it in the RA, it could handle even those variable
shift cases better (just make sure it doesn't overlap ecx, but otherwise allow
the same reg as the first input).
>From gcc-bugs-return-638025-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 21:57:05 2019
Return-Path: <gcc-bugs-return-638025-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45983 invoked by alias); 20 Mar 2019 21:57: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 45922 invoked by uid 48); 20 Mar 2019 21:57:02 -0000
From: "anlauf at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/83515] ICE: Invalid expression in gfc_element_size
Date: Wed, 20 Mar 2019 21: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: anlauf at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: anlauf at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-83515-4-Ufw9ysq3dB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83515-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83515-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02319.txt.bz2
Content-length: 1000

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

anlauf at gcc dot gnu.org changed:

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

--- Comment #13 from anlauf at gcc dot gnu.org ---
(In reply to Dominique d'Humieres from comment #12)
> > Sorry, I am confused, I think Comment 1 already has such a reduced test.
> > At least the what it says there ...
> 
> It is a reduced test for the ICE (as are further reduced tests in comments 3
> and 9),
> but they do not allow to check that fortran is not producing a wrong code
> instead of an ICE.
> 
> I understand
> 
> > However, I do not have a working code sample to run.
> 
> as asking for such a test.

Exactly.

Taking this PR.  It has some overlap to PR85797 and can probably be fixed
with the same patch.
>From gcc-bugs-return-638026-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 22:10:42 2019
Return-Path: <gcc-bugs-return-638026-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70897 invoked by alias); 20 Mar 2019 22:10: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 70817 invoked by uid 48); 20 Mar 2019 22:10:39 -0000
From: "liakhdi at ornl dot gov" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/83515] ICE: Invalid expression in gfc_element_size
Date: Wed, 20 Mar 2019 22:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: liakhdi at ornl dot gov
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: anlauf at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-83515-4-fFboeZTtuA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83515-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83515-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02320.txt.bz2
Content-length: 1093

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

--- Comment #14 from DIL <liakhdi at ornl dot gov> ---
(In reply to anlauf from comment #13)
> (In reply to Dominique d'Humieres from comment #12)
> > > Sorry, I am confused, I think Comment 1 already has such a reduced test.
> > > At least the what it says there ...
> > 
> > It is a reduced test for the ICE (as are further reduced tests in comments 3
> > and 9),
> > but they do not allow to check that fortran is not producing a wrong code
> > instead of an ICE.
> > 
> > I understand
> > 
> > > However, I do not have a working code sample to run.
> > 
> > as asking for such a test.
> 
> Exactly.
> 
> Taking this PR.  It has some overlap to PR85797 and can probably be fixed
> with the same patch.


Ok, so you are still looking for a single Fortran source file using this
feature, namely optional dummy procedure pointers, that would do something
non-trivial with them and produce PASS/FAIL output? If yes, then I can try
making such a reduced test (if needed). I am just not familiar with GNU test
requirements.
>From gcc-bugs-return-638027-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 22:18:50 2019
Return-Path: <gcc-bugs-return-638027-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102460 invoked by alias); 20 Mar 2019 22:18: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 102404 invoked by uid 48); 20 Mar 2019 22:18:46 -0000
From: "vmakarov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/89676] [7/8/9 Regression] Redundant moves for long long shift on 32bit x86
Date: Wed, 20 Mar 2019 22: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: 9.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vmakarov 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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89676-4-Om5gOft7hD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89676-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89676-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02321.txt.bz2
Content-length: 831

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

--- Comment #7 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #6)
> 
> That said, if you can handle it in the RA, it could handle even those
> variable shift cases better (just make sure it doesn't overlap ecx, but
> otherwise allow the same reg as the first input).

I believe it should be fixed in RA.  It is a common case: earlyclobber output
with a matched input.  Currently they are conflicting and this results in worse
code generation.

Building conflict is now pretty complicated in LRA.  My idea is to reload and
use one reload register for the output and input even if their allocations
satisfy such constraints.  Actually, it is also good with LRA design to reflect
RA decisions in RTL as much as possible.
>From gcc-bugs-return-638028-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 22:24:44 2019
Return-Path: <gcc-bugs-return-638028-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109911 invoked by alias); 20 Mar 2019 22:24: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 109828 invoked by uid 48); 20 Mar 2019 22:24:40 -0000
From: "anlauf at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/83515] ICE: Invalid expression in gfc_element_size
Date: Wed, 20 Mar 2019 22: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: 8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: anlauf at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: anlauf at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-83515-4-24yCpysH9C@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83515-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83515-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02322.txt.bz2
Content-length: 627

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

--- Comment #15 from anlauf at gcc dot gnu.org ---
(In reply to DIL from comment #14)
> Ok, so you are still looking for a single Fortran source file using this
> feature, namely optional dummy procedure pointers, that would do something
> non-trivial with them and produce PASS/FAIL output? If yes, then I can try
> making such a reduced test (if needed). I am just not familiar with GNU test
> requirements.

Exactly.  Just assume that many thousands of tests are run for
regression testing each time, and productivity of the developers
depends on the turnaround time.
>From gcc-bugs-return-638029-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 22:26:53 2019
Return-Path: <gcc-bugs-return-638029-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117820 invoked by alias); 20 Mar 2019 22:26: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 117784 invoked by uid 48); 20 Mar 2019 22:26:50 -0000
From: "anlauf at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/85797] ICE in gfc_element_size, at fortran/target-memory.c:126
Date: Wed, 20 Mar 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: fortran
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: anlauf at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: anlauf at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: assigned_to
Message-ID: <bug-85797-4-SRa9kVFr80@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85797-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85797-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02323.txt.bz2
Content-length: 454

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

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |anlauf at gcc dot gnu.org

--- Comment #4 from anlauf at gcc dot gnu.org ---
Revised patch that also addresses PR83515:

https://gcc.gnu.org/ml/fortran/2019-03/msg00109.html
>From gcc-bugs-return-638030-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 22:58:55 2019
Return-Path: <gcc-bugs-return-638030-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66190 invoked by alias); 20 Mar 2019 22:58: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 66133 invoked by uid 48); 20 Mar 2019 22:58:51 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/85797] ICE in gfc_element_size, at fortran/target-memory.c:126
Date: Wed, 20 Mar 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: fortran
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: anlauf at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-85797-4-XQNcNaBztR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85797-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85797-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02324.txt.bz2
Content-length: 455

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

--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Revised patch that also addresses PR83515:

The patch fixes the ICE. Compiling the tests z2.f90 or z3.f90 gives the error

    2 |    c = transfer(a, a)
      |       1
Error: Cannot convert PROCEDURE to REAL(4) at (1)

or

    2 |    c = transfer(b, a)
      |       1
Error: Cannot convert PROCEDURE to REAL(4) at (1)
>From gcc-bugs-return-638031-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 23:03:55 2019
Return-Path: <gcc-bugs-return-638031-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13955 invoked by alias); 20 Mar 2019 23:03: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 13767 invoked by uid 48); 20 Mar 2019 23:03:51 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBtaWRkbGUtZW5kLzg5Nzc5XSBOZXc6IFs5IFJlZ3Jlc3Npb25dICBp?= =?UTF-8?B?bnRlcm5hbCBjb21waWxlciBlcnJvcjogdHJlZSBjaGVjazogZXhwZWN0ZWQg?= =?UTF-8?B?Y2xhc3Mg4oCYdHlwZeKAmSwgaGF2ZSDigJhleGNlcHRpb25hbOKAmSAoZXJy?= =?UTF-8?B?b3JfbWFyaykgaW4gdHJlZV9ub3BfY29udmVyc2lvbl9wLCBhdCB0cmVlLmM6?= =?UTF-8?B?MTI3OTg=?Date: Wed, 20 Mar 2019 23:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
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
Message-ID: <bug-89779-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02325.txt.bz2
Content-length: 8353

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

            Bug ID: 89779
           Summary: [9 Regression]  internal compiler error: tree check:
                    expected class ‘type’, have ‘exceptional’ (error_mark)
                    in tree_nop_conversion_p, at tree.c:12798
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
                CC: crazylht at gmail dot com, rguenther at suse dot de
  Target Milestone: ---

On x86-64, r269765 failed to build 526.blender_r in SPEC CPU 2017:

$ gcc -m64 -c -o blender/source/blender/modifiers/intern/MOD_skin.o -DSPEC
-DNDEBUG -Ispecrand -Iblender/extern/binreloc/include
-Iblender/extern/colamd/Include -Iblender/extern/glew/include
-Iblender/extern/libmv -Iblender/extern/libmv/intern -Iblender/extern/rangetree
-Iblender/extern/wcwidth -Iblender/intern -Iblender/intern/atomic
-Iblender/intern/audaspace/intern -Iblender/intern/cycles/blender
-Iblender/intern/elbeem/extern -Iblender/intern/ghost
-Iblender/intern/ghost/intern -Iblender/intern/glew-mx
-Iblender/intern/glew-mx/intern -Iblender/intern/guardedalloc
-Iblender/intern/guardedalloc/intern -Iblender/intern/iksolver/extern
-Iblender/intern/locale -Iblender/intern/memutil -Iblender/intern/mikktspace
-Iblender/intern/opencolorio -Iblender/intern/raskter
-Iblender/intern/smoke/extern -Iblender/intern/string -Iblender/intern/utfconv
-Iblender/source/blender/blenfont -Iblender/source/blender/blenfont/intern
-Iblender/source/blender/blenkernel -Iblender/source/blender/blenkernel/intern
-Iblender/source/blender/blenlib -Iblender/source/blender/blenlib/intern
-Iblender/source/blender/blenloader -Iblender/source/blender/blenloader/intern
-Iblender/source/blender/bmesh -Iblender/source/blender/bmesh/intern
-Iblender/source/blender/bmesh/tools -Iblender/source/blender/collada
-Iblender/source/blender/compositor -Iblender/source/blender/editors/animation
-Iblender/source/blender/editors/armature
-Iblender/source/blender/editors/curve -Iblender/source/blender/editors/gpencil
-Iblender/source/blender/editors/include
-Iblender/source/blender/editors/interface -Iblender/source/blender/editors/io
-Iblender/source/blender/editors/mask -Iblender/source/blender/editors/mesh
-Iblender/source/blender/editors/metaball
-Iblender/source/blender/editors/object
-Iblender/source/blender/editors/physics
-Iblender/source/blender/editors/render -Iblender/source/blender/editors/screen
-Iblender/source/blender/editors/sculpt_paint
-Iblender/source/blender/editors/sound
-Iblender/source/blender/editors/space_action
-Iblender/source/blender/editors/space_buttons
-Iblender/source/blender/editors/space_clip
-Iblender/source/blender/editors/space_console
-Iblender/source/blender/editors/space_file
-Iblender/source/blender/editors/space_graph
-Iblender/source/blender/editors/space_image
-Iblender/source/blender/editors/space_info
-Iblender/source/blender/editors/space_logic
-Iblender/source/blender/editors/space_nla
-Iblender/source/blender/editors/space_node
-Iblender/source/blender/editors/space_outliner
-Iblender/source/blender/editors/space_script
-Iblender/source/blender/editors/space_sequencer
-Iblender/source/blender/editors/space_text
-Iblender/source/blender/editors/space_time
-Iblender/source/blender/editors/space_userpref
-Iblender/source/blender/editors/space_view3d
-Iblender/source/blender/editors/transform
-Iblender/source/blender/editors/util -Iblender/source/blender/editors/uvedit
-Iblender/source/blender/gpu -Iblender/source/blender/gpu/intern
-Iblender/source/blender/ikplugin -Iblender/source/blender/ikplugin/intern
-Iblender/source/blender/imbuf -Iblender/source/blender/imbuf/intern
-Iblender/source/blender/imbuf/intern/openexr -Iblender/source/blender/makesdna
-Iblender/source/blender/makesrna -Iblender/source/blender/makesrna/intern
-Iblender/source/blender/modifiers -Iblender/source/blender/modifiers/intern
-Iblender/source/blender/nodes -Iblender/source/blender/nodes/composite
-Iblender/source/blender/nodes/intern -Iblender/source/blender/nodes/shader
-Iblender/source/blender/nodes/texture -Iblender/source/blender/python
-Iblender/source/blender/render/extern/include
-Iblender/source/blender/render/intern/include
-Iblender/source/blender/render/intern/raytrace
-Iblender/source/blender/windowmanager
-Iblender/source/gameengine/BlenderRoutines
-Iblender_bin/source/blender/makesrna/intern -Iinclude -Ilibpng -Izlib
-DSPEC_AUTO_SUPPRESS_OPENMP -DSPEC_AUTO_BYTEORDER=0x12345678 -DGLEW_NO_ES
-DGLEW_STATIC -DWITH_DNA_GHASH -DWITH_GL_PROFILE_COMPAT -DWITH_HEADLESS
-DHAVE_UNSIGNED_CHAR  -fno-unsafe-math-optimizations -mfpmath=sse 
-march=skylake  -Ofast -funroll-loops        -funsigned-char -DSPEC_LINUX      
-DSPEC_LP64  blender/source/blender/modifiers/intern/MOD_skin.c

during GIMPLE pass: ivopt
blender/source/blender/modifiers/intern/MOD_skin.c: In function
‘applyModifier’:
blender/source/blender/modifiers/intern/MOD_skin.c:1871:21: internal compiler
error: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in
tree_nop_conversion_p, at tree.c:12798
 1871 | static DerivedMesh *applyModifier(ModifierData *md,
      |                     ^~~~~~~~~~~~~
0x158096b tree_class_check_failed(tree_node const*, tree_code_class, char
const*, int, char const*)
        /export/gnu/import/git/gitlab/x86-gcc/gcc/tree.c:9915
0x84ccf7 tree_class_check(tree_node const*, tree_code_class, char const*, int,
char const*)
        /export/gnu/import/git/gitlab/x86-gcc/gcc/tree.h:3555
0x158d49a tree_nop_conversion_p(tree_node const*, tree_node const*)
        /export/gnu/import/git/gitlab/x86-gcc/gcc/tree.c:12798
0x158d5f1 tree_nop_conversion
        /export/gnu/import/git/gitlab/x86-gcc/gcc/tree.c:12824
0x158d764 tree_strip_nop_conversions(tree_node*)
        /export/gnu/import/git/gitlab/x86-gcc/gcc/tree.c:12851
0xc4f3e1 operand_equal_p(tree_node const*, tree_node const*, unsigned int)
        /export/gnu/import/git/gitlab/x86-gcc/gcc/fold-const.c:3017
0xc502cd operand_equal_p(tree_node const*, tree_node const*, unsigned int)
        /export/gnu/import/git/gitlab/x86-gcc/gcc/fold-const.c:3201
0xc4ed53 operand_equal_p(tree_node const*, tree_node const*, unsigned int)
        /export/gnu/import/git/gitlab/x86-gcc/gcc/fold-const.c:2950
0x138b44d loop_exits_before_overflow
        /export/gnu/import/git/gitlab/x86-gcc/gcc/tree-ssa-loop-niter.c:4627
0x138bbfb scev_probably_wraps_p(tree_node*, tree_node*, tree_node*, gimple*,
loop*, bool)
        /export/gnu/import/git/gitlab/x86-gcc/gcc/tree-ssa-loop-niter.c:4835
0x1fcc6d6 convert_affine_scev(loop*, tree_node*, tree_node**, tree_node**,
gimple*, bool, tree_node*)
        /export/gnu/import/git/gitlab/x86-gcc/gcc/tree-chrec.c:1299
0x1fcc8b5 chrec_convert_1
        /export/gnu/import/git/gitlab/x86-gcc/gcc/tree-chrec.c:1357
0x1fccd91 chrec_convert(tree_node*, tree_node*, gimple*, bool, tree_node*)
        /export/gnu/import/git/gitlab/x86-gcc/gcc/tree-chrec.c:1448
0x12b13fe interpret_rhs_expr
        /export/gnu/import/git/gitlab/x86-gcc/gcc/tree-scalar-evolution.c:1974
0x12b1794 interpret_gimple_assign
        /export/gnu/import/git/gitlab/x86-gcc/gcc/tree-scalar-evolution.c:2045
0x12b1909 analyze_scalar_evolution_1
        /export/gnu/import/git/gitlab/x86-gcc/gcc/tree-scalar-evolution.c:2096
0x12b1b21 analyze_scalar_evolution(loop*, tree_node*)
        /export/gnu/import/git/gitlab/x86-gcc/gcc/tree-scalar-evolution.c:2165
0x12b1c2c analyze_scalar_evolution_in_loop
        /export/gnu/import/git/gitlab/x86-gcc/gcc/tree-scalar-evolution.c:2267
0x12b493f simple_iv_with_niters(loop*, loop*, tree_node*, affine_iv*,
tree_node**, bool)
        /export/gnu/import/git/gitlab/x86-gcc/gcc/tree-scalar-evolution.c:3364
0x12b51d8 simple_iv(loop*, loop*, tree_node*, affine_iv*, bool)
        /export/gnu/import/git/gitlab/x86-gcc/gcc/tree-scalar-evolution.c:3489
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.
>From gcc-bugs-return-638032-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 23:09:45 2019
Return-Path: <gcc-bugs-return-638032-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38140 invoked by alias); 20 Mar 2019 23:09: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 38093 invoked by uid 48); 20 Mar 2019 23:09:42 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBtaWRkbGUtZW5kLzg5Nzc5XSBbOSBSZWdyZXNzaW9uXSAgaW50ZXJu?= =?UTF-8?B?YWwgY29tcGlsZXIgZXJyb3I6IHRyZWUgY2hlY2s6IGV4cGVjdGVkIGNsYXNz?= =?UTF-8?B?IOKAmHR5cGXigJksIGhhdmUg4oCYZXhjZXB0aW9uYWzigJkgKGVycm9yX21h?= =?UTF-8?B?cmspIGluIHRyZWVfbm9wX2NvbnZlcnNpb25fcCwgYXQgdHJlZS5jOjEyNzk4?Date: Wed, 20 Mar 2019 23:09: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on target_milestone everconfirmed
Message-ID: <bug-89779-4-qHr5NPCubT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89779-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89779-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02326.txt.bz2
Content-length: 2125

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-03-20
   Target Milestone|---                         |9.0
     Ever confirmed|0                           |1

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
(gdb) f 9
#9  0x000000000138b44e in loop_exits_before_overflow (
    base=<nop_expr 0x7fffea0a2f00>, step=<integer_cst 0x7fffea80c060>, 
    at_stmt=<gimple_assign 0x7fffea052e10>, loop=0x7fffea016220)
    at /export/gnu/import/git/gitlab/x86-gcc/gcc/tree-ssa-loop-niter.c:4627
4627              if (operand_equal_p (base, civ->base, 0))
(gdb) call debug_tree (civ->base)
 <nop_expr 0x7fffea0cb820
    type <integer_type 0x7fffea8065e8 int sizes-gimplified public SI
        size <integer_cst 0x7fffea7ecee8 constant 32>
        unit-size <integer_cst 0x7fffea7ecf00 constant 4>
        align:32 warn_if_not_align:0 symtab:0 alias-set 10 canonical-type
0x7fffea8065e8 precision:32 min <integer_cst 0x7fffea7ecea0 -2147483648> max
<integer_cst 0x7fffea7eceb8 2147483647> context <translation_unit_decl
0x7fffe9f43348 blender/source/blender/modifiers/intern/MOD_skin.c>
        pointer_to_this <pointer_type 0x7fffea80e9d8>>

    arg:0 <plus_expr 0x7fffe9f8bfa0
        type <integer_type 0x7fffea674690 public unsigned SI size <integer_cst
0x7fffea7ecee8 32> unit-size <integer_cst 0x7fffea7ecf00 4>
            align:32 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7fffea674690 precision:32 min <integer_cst 0x7fffea752bb8 0> max <integer_cst
0x7fffea752ab0 4294967295>>

        arg:0 <nop_expr 0x7fffea0cb7e0 type <integer_type 0x7fffea674690>

            arg:0 <ssa_name 0x7fffe9b86678 type <error_mark 0x7fffea7ecc90>
                nothrow
                def_stmt 
                version:1057 in-free-list>>
        arg:1 <integer_cst 0x7fffea752c90 constant 2>>>
(gdb)
>From gcc-bugs-return-638033-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 23:12:57 2019
Return-Path: <gcc-bugs-return-638033-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41923 invoked by alias); 20 Mar 2019 23:12:56 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 41891 invoked by uid 48); 20 Mar 2019 23:12:53 -0000
From: "redbeard0531 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89780] New: -Wpessimizing-move is too agressive with templates and recommends pessimization
Date: Wed, 20 Mar 2019 23:12: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: redbeard0531 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-89780-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02327.txt.bz2
Content-length: 2154

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

            Bug ID: 89780
           Summary: -Wpessimizing-move is too agressive with templates and
                    recommends pessimization
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redbeard0531 at gmail dot com
  Target Milestone: ---

https://godbolt.org/z/JA-0Gq

#include <utility>

struct Dest {
    Dest() = default;
    Dest(Dest&&);
    Dest(const Dest&);
};
struct Source : Dest {};

template <typename T>
Dest withMove() {
    T x;
    return std::move(x);
}


template <typename T>
Dest noMove() {
    T x;
    return x;
}


template Dest withMove<Dest>();
template Dest withMove<Source>();

template Dest noMove<Dest>();
template Dest noMove<Source>();

> g++ -O3 -Wall -std=c++17

<source>: In instantiation of 'Dest withMove() [with T = Dest]':
<source>:24:30:   required from here
<source>:13:23: warning: moving a local object in a return statement prevents
copy elision [-Wpessimizing-move]
   13 |     return std::move(x);
      |                       ^
<source>:13:23: note: remove 'std::move' call


Basically, gcc9 recommends changing withMove, where both Source and Dest are
moved from, in to noMove, where Dest is copy-elided but Source is copied. While
this is a minor optimization for the Dest instantiation, it is a potentially
significant pesimization for the Source one.

Amusingly, this code trips a warning in clang that recommends doing the
opposite, adding the std::move to turn noMove into withMove:
https://godbolt.org/z/WONlMN

 <source>:20:12: warning: local variable 'x' will be copied despite being
returned by name [-Wreturn-std-move]
    return x;
           ^
<source>:28:15: note: in instantiation of function template specialization
'noMove<Source>' requested here
template Dest noMove<Source>();
              ^
<source>:20:12: note: call 'std::move' explicitly to avoid copying
    return x;
           ^
           std::move(x)

There is just no winning!
>From gcc-bugs-return-638035-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 23:53:57 2019
Return-Path: <gcc-bugs-return-638035-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50055 invoked by alias); 20 Mar 2019 23:53: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 49999 invoked by uid 48); 20 Mar 2019 23:53:54 -0000
From: "ibuclaw at gdcproject dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug d/89017] ICE in force_type_die, at dwarf2out.c:26061
Date: Wed, 20 Mar 2019 23:53: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: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ibuclaw at gdcproject dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-89017-4-W150cvBSuI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89017-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89017-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02329.txt.bz2
Content-length: 440

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

Iain Buclaw <ibuclaw at gdcproject dot org> changed:

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

--- Comment #3 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
Fixed in r269828.
>From gcc-bugs-return-638034-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 20 23:53:24 2019
Return-Path: <gcc-bugs-return-638034-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47533 invoked by alias); 20 Mar 2019 23: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 47484 invoked by uid 55); 20 Mar 2019 23:53:21 -0000
From: "ibuclaw at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug d/89017] ICE in force_type_die, at dwarf2out.c:26061
Date: Wed, 20 Mar 2019 23:53: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 gcc dot gnu.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-89017-4-2CelrZovuL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89017-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89017-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02328.txt.bz2
Content-length: 1187

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

--- Comment #2 from ibuclaw at gcc dot gnu.org ---
Author: ibuclaw
Date: Wed Mar 20 23:52:48 2019
New Revision: 269828

URL: https://gcc.gnu.org/viewcvs?rev=269828&root=gcc&view=rev
Log:
d: Fix ICE force_type_die, at dwarf2out.c using nested types

In functions whose return type is instantiated from a nested template,
make sure that all members of the instance are emitted before finishing
the outer function, otherwise they will be removed during the
prune_unused_types pass.

gcc/d/ChangeLog:

2019-03-21  Iain Buclaw  <ibuclaw@gdcproject.org>

        PR d/89017
        * d-codegen.cc (d_decl_context): Skip over template instances when
        finding the context.
        * decl.cc (DeclVisitor::visit(TemplateDeclaration)): New override.
        (build_type_decl): Include parameters in name of template types.

gcc/testsuite/ChangeLog:

2019-03-21  Iain Buclaw  <ibuclaw@gdcproject.org>

        PR d/89017
        * gdc.dg/pr89017.d: New test.

Added:
    trunk/gcc/testsuite/gdc.dg/pr89017.d
Modified:
    trunk/gcc/d/ChangeLog
    trunk/gcc/d/d-codegen.cc
    trunk/gcc/d/decl.cc
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-638036-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 00:09:57 2019
Return-Path: <gcc-bugs-return-638036-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86388 invoked by alias); 21 Mar 2019 00:09: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 86306 invoked by uid 48); 21 Mar 2019 00:09:52 -0000
From: "skpgkp1 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBtaWRkbGUtZW5kLzg5Nzc5XSBbOSBSZWdyZXNzaW9uXSAgaW50ZXJu?= =?UTF-8?B?YWwgY29tcGlsZXIgZXJyb3I6IHRyZWUgY2hlY2s6IGV4cGVjdGVkIGNsYXNz?= =?UTF-8?B?IOKAmHR5cGXigJksIGhhdmUg4oCYZXhjZXB0aW9uYWzigJkgKGVycm9yX21h?= =?UTF-8?B?cmspIGluIHRyZWVfbm9wX2NvbnZlcnNpb25fcCwgYXQgdHJlZS5jOjEyNzk4?Date: Thu, 21 Mar 2019 00:09: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: skpgkp1 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89779-4-v9bJK0uTdD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89779-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89779-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02330.txt.bz2
Content-length: 3198

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

--- Comment #2 from Sunil Pandey <skpgkp1 at gmail dot com> ---
Reduced test:

$ cat x.i
typedef a;
c(a *d, int b) {
  int e, f, g;
  for (; e; e++)
    for (f = 0; f < 4; f++)
      if (d)
        for (g = e + 1; g; g++)
          h(d[g]);
}
i() {
  a *j;
  int k, l;
  for (; k; k++)
    c(j, l);
}

Good case:

$ gcc -B./ -Ofast -S x.i -w
$ echo $?
0

Bad case:

$ gcc -B./ -Ofast -S x.i -w
during GIMPLE pass: ivopts
x.i: In function ‘i’:
x.i:10:1: internal compiler error: tree check: expected class ‘type’, have
‘exceptional’ (error_mark) in tree_nop_conversion_p, at tree.c:12792
   10 | i() {
      | ^
0x7265a6 tree_class_check_failed(tree_node const*, tree_code_class, char
const*, int, char const*)
        ../../gcc-main.42UM/gcc/tree.c:9909
0x72cd07 tree_class_check(tree_node const*, tree_code_class, char const*, int,
char const*)
        ../../gcc-main.42UM/gcc/tree.h:3555
0x72cd07 tree_nop_conversion_p(tree_node const*, tree_node const*)
        ../../gcc-main.42UM/gcc/tree.c:12792
0x1014931 tree_nop_conversion
        ../../gcc-main.42UM/gcc/tree.c:12818
0x1014931 tree_strip_nop_conversions(tree_node*)
        ../../gcc-main.42UM/gcc/tree.c:12845
0xa6b027 operand_equal_p(tree_node const*, tree_node const*, unsigned int)
        ../../gcc-main.42UM/gcc/fold-const.c:3017
0xa6b4b2 operand_equal_p(tree_node const*, tree_node const*, unsigned int)
        ../../gcc-main.42UM/gcc/fold-const.c:3201
0xa6b15a operand_equal_p(tree_node const*, tree_node const*, unsigned int)
        ../../gcc-main.42UM/gcc/fold-const.c:2950
0xed336d loop_exits_before_overflow
        ../../gcc-main.42UM/gcc/tree-ssa-loop-niter.c:4627
0xed336d scev_probably_wraps_p(tree_node*, tree_node*, tree_node*, gimple*,
loop*, bool)
        ../../gcc-main.42UM/gcc/tree-ssa-loop-niter.c:4835
0xed336d scev_probably_wraps_p(tree_node*, tree_node*, tree_node*, gimple*,
loop*, bool)
        ../../gcc-main.42UM/gcc/tree-ssa-loop-niter.c:4793
0x1643f8f convert_affine_scev(loop*, tree_node*, tree_node**, tree_node**,
gimple*, bool, tree_node*)
        ../../gcc-main.42UM/gcc/tree-chrec.c:1299
0x1643a78 chrec_convert_1
        ../../gcc-main.42UM/gcc/tree-chrec.c:1357
0xe47dd8 interpret_rhs_expr
        ../../gcc-main.42UM/gcc/tree-scalar-evolution.c:1766
0xe45209 interpret_gimple_assign
        ../../gcc-main.42UM/gcc/tree-scalar-evolution.c:2045
0xe45209 analyze_scalar_evolution_1
        ../../gcc-main.42UM/gcc/tree-scalar-evolution.c:2096
0xe45bea analyze_scalar_evolution(loop*, tree_node*)
        ../../gcc-main.42UM/gcc/tree-scalar-evolution.c:2165
0xe48f8a analyze_scalar_evolution_in_loop
        ../../gcc-main.42UM/gcc/tree-scalar-evolution.c:2267
0xe490a8 simple_iv_with_niters(loop*, loop*, tree_node*, affine_iv*,
tree_node**, bool)
        ../../gcc-main.42UM/gcc/tree-scalar-evolution.c:3364
0xebe6f8 find_givs_in_stmt_scev
        ../../gcc-main.42UM/gcc/tree-ssa-loop-ivopts.c:1426
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.
>From gcc-bugs-return-638037-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 01:04:06 2019
Return-Path: <gcc-bugs-return-638037-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16204 invoked by alias); 21 Mar 2019 01:04: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 16104 invoked by uid 55); 21 Mar 2019 01:04:02 -0000
From: "paolo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89571] [9 Regression] ICE in nothrow_spec_p, at cp/except.c:1238
Date: Thu, 21 Mar 2019 01:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
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-89571-4-X7v4qi9RN7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89571-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89571-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02331.txt.bz2
Content-length: 752

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

--- Comment #11 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Thu Mar 21 01:03:30 2019
New Revision: 269832

URL: https://gcc.gnu.org/viewcvs?rev=269832&root=gcc&view=rev
Log:
/cp
2019-03-21  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/89571
        * method.c (after_nsdmi_defaulted_late_checks): Avoid passing
        error_mark_node to comp_except_specs.

/testsuite
2019-03-21  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/89571
        * g++.dg/cpp0x/noexcept37.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/noexcept37.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/method.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-638038-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 01:05:10 2019
Return-Path: <gcc-bugs-return-638038-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17904 invoked by alias); 21 Mar 2019 01:05: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 17808 invoked by uid 48); 21 Mar 2019 01:05:06 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89571] [9 Regression] ICE in nothrow_spec_p, at cp/except.c:1238
Date: Thu, 21 Mar 2019 01: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: error-recovery, ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P4
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 resolution
Message-ID: <bug-89571-4-RadLN63q9p@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89571-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89571-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02332.txt.bz2
Content-length: 438

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

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

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

--- Comment #12 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed.
>From gcc-bugs-return-638039-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 01:46:33 2019
Return-Path: <gcc-bugs-return-638039-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57993 invoked by alias); 21 Mar 2019 01:46: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 57940 invoked by uid 48); 21 Mar 2019 01:46:29 -0000
From: "redbeard0531 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89781] New: Misleading error messages when initializing a static data member in-class
Date: Thu, 21 Mar 2019 01:46: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: redbeard0531 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-89781-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02333.txt.bz2
Content-length: 1607

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

            Bug ID: 89781
           Summary: Misleading error messages when initializing a static
                    data member in-class
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redbeard0531 at gmail dot com
  Target Milestone: ---

The error messages make sense in a pre-c++17 world before inline variables
existed. Now they are lies!

struct X{};
struct Y { static X x = {}; };

<source>:2:21: error: 'constexpr' needed for in-class initialization of static
data member 'X Y::x' of non-integral type [-fpermissive]
 struct Y { static X x = {}; };
                     ^

The error is even worse when X can't be a constexpr variable:


struct X{ X(); };
struct Y { static X x = {}; };

<source>:2:21: error: in-class initialization of static data member 'X Y::x' of
non-literal type
 struct Y { static X x = {}; };
                     ^
<source>:2:26: error: temporary of non-literal type 'X' in a constant
expression
 struct Y { static X x = {}; };
                          ^
<source>:1:8: note: 'X' is not literal because:
 struct X{ X(); };
        ^
<source>:1:8: note:   'X' is not an aggregate, does not have a trivial default
constructor, and has no 'constexpr' constructor that is not a copy or move
constructor



This compiles just fine:

struct X{ X(); };
struct Y { static inline X x = {}; };

All examples were passing -std=c++17.
>From gcc-bugs-return-638040-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 02:33:12 2019
Return-Path: <gcc-bugs-return-638040-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100070 invoked by alias); 21 Mar 2019 02:33: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 95399 invoked by uid 48); 21 Mar 2019 02:33:07 -0000
From: "rimvydas.jas at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89766] [8 Regression] ICE: canonical types differ for identical types, -std=c++17
Date: Thu, 21 Mar 2019 02: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.3.1
X-Bugzilla-Keywords: accepts-invalid, ice-checking, ice-on-invalid-code, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rimvydas.jas 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: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89766-4-YHRmzZw73e@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89766-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89766-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02334.txt.bz2
Content-length: 993

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

--- Comment #10 from Rimvydas (RJ) <rimvydas.jas at gmail dot com> ---
Using 9.0.1 20190319 as reference several ICE cases reduce down to the same
snippet (regression on trunk)?
$ cat trunk_accepts_invalid.ii
class a {
  constexpr a();
};
template <class> struct b { static constexpr a c{}; };


Using different tactics other two (hopefully valid) testcases:
$ cat vcontract.ii
template <template <class> class a> struct b {
  template <class> static int c;
  using d = decltype(c<a>);
};
template <typename> struct e {
  template <typename a, typename> bool f() const;
  template <typename, typename> bool f(int) const;
};
$ cat vdefault.ii
template <typename, template <typename, typename> class> struct a;
template <template <typename, typename> class b> struct a<int, b>;
template <typename> struct c {
  template <typename b, typename, typename> bool operator()();
  template <typename, typename, typename d> bool operator()(d);
};
>From gcc-bugs-return-638041-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 02:44:47 2019
Return-Path: <gcc-bugs-return-638041-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54706 invoked by alias); 21 Mar 2019 02:44:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 54678 invoked by uid 48); 21 Mar 2019 02:44:43 -0000
From: "urbanjost at comcast dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/89782] New: Can do an internal READ of a character array when it is a parameter, but not a scalar character parameter
Date: Thu, 21 Mar 2019 02:44: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: 7.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: urbanjost at comcast 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-89782-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02335.txt.bz2
Content-length: 1550

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

            Bug ID: 89782
           Summary: Can do an internal READ of a character array when it
                    is a parameter, but not a scalar character parameter
           Product: gcc
           Version: 7.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: urbanjost at comcast dot net
  Target Milestone: ---

Inconsistently, a scalar parameter CHARACTER variable fails with an internal
READ,
but a vector parameter CHARACTER variable works with an internal READ.
Not actually sure which one is wrong, but it is inconsistent. Could not find 
anything in the Fortran standard that definitively cleared it up, other than
saying that 

      · "A record of an internal file is a scalar character variable".

with emphasis on "variable"(?). It seems one of them should be wrong, though.

This fails:

   program nanio
   character(len=*),parameter :: VALUE='NaN'
      read(VALUE,*)float
      write(*,*)float
   end program nanio

 PRODUCES THIS ERROR...

    read(VALUE,*)float
        1
    Error: UNIT specification at (1) must be an INTEGER expression or a
CHARACTER variable

This works:

   program nanio
   character(len=*),parameter :: VALUES(*)=[character(len=10) ::
'NaN','NAN','nan','Inf','INF','inf','Infinity']
   do i=1,size(VALUES)
      read(VALUES(i),*)float
      write(*,*)float
   enddo
   end program nanio
>From gcc-bugs-return-638042-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 02:44:47 2019
Return-Path: <gcc-bugs-return-638042-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54739 invoked by alias); 21 Mar 2019 02:44: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 54676 invoked by uid 48); 21 Mar 2019 02:44:43 -0000
From: "urbanjost at comcast dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/89783] New: Can do an internal READ of a character array when it is a parameter, but not a scalar character parameter
Date: Thu, 21 Mar 2019 02:44: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: 7.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: urbanjost at comcast 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-89783-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02336.txt.bz2
Content-length: 1550

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

            Bug ID: 89783
           Summary: Can do an internal READ of a character array when it
                    is a parameter, but not a scalar character parameter
           Product: gcc
           Version: 7.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: urbanjost at comcast dot net
  Target Milestone: ---

Inconsistently, a scalar parameter CHARACTER variable fails with an internal
READ,
but a vector parameter CHARACTER variable works with an internal READ.
Not actually sure which one is wrong, but it is inconsistent. Could not find 
anything in the Fortran standard that definitively cleared it up, other than
saying that 

      · "A record of an internal file is a scalar character variable".

with emphasis on "variable"(?). It seems one of them should be wrong, though.

This fails:

   program nanio
   character(len=*),parameter :: VALUE='NaN'
      read(VALUE,*)float
      write(*,*)float
   end program nanio

 PRODUCES THIS ERROR...

    read(VALUE,*)float
        1
    Error: UNIT specification at (1) must be an INTEGER expression or a
CHARACTER variable

This works:

   program nanio
   character(len=*),parameter :: VALUES(*)=[character(len=10) ::
'NaN','NAN','nan','Inf','INF','inf','Infinity']
   do i=1,size(VALUES)
      read(VALUES(i),*)float
      write(*,*)float
   enddo
   end program nanio
>From gcc-bugs-return-638043-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 02:52:20 2019
Return-Path: <gcc-bugs-return-638043-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91426 invoked by alias); 21 Mar 2019 02:52: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 91367 invoked by uid 48); 21 Mar 2019 02:52:16 -0000
From: "kugan at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88838] [SVE] Use 32-bit WHILELO in LP64 mode
Date: Thu, 21 Mar 2019 02:52: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: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: kugan at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: kugan at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-88838-4-HDie5WVe1m@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88838-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88838-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02337.txt.bz2
Content-length: 247

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

--- Comment #5 from kugan at gcc dot gnu.org ---
Created attachment 46000
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46000&action=edit
RFC patch

RFC patch fixes this for review.
>From gcc-bugs-return-638044-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 04:32:27 2019
Return-Path: <gcc-bugs-return-638044-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98536 invoked by alias); 21 Mar 2019 04:32: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 98425 invoked by uid 48); 21 Mar 2019 04:32:21 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/87243] FSF GCC needs to do something special (like using xcrun) on darwin18 to find system headers in SDK
Date: Thu, 21 Mar 2019 04: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: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager 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: short_desc
Message-ID: <bug-87243-4-tFrW2EcS7z@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87243-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87243-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02338.txt.bz2
Content-length: 2304

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|FSF needs to use xcrun on   |FSF GCC needs to do
                   |darwin18 to find system     |something special (like
                   |headers in SDK              |using xcrun) on darwin18 to
                   |                            |find system headers in SDK

--- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Iain Sandoe from comment #4)
> All I'm asking is that that we describe the real bug (i.e. that we need to
> be able to find the headers when they are not installed in some Well Known
> Place).  It should also work for -mmacosz-version-min != current system
> revision (and therefore, might need to deal with finding libraries too - or
> else, for example, we won't be able to build m32 exes).
> 
> -----
> 
> As it happens, I had been giving this problem some thought - a couple of
> years ago.
> 
> What we don't want is to cripple Darwin's toolchain by making it call more
> and more executables for each invocation.
> 
> IFF you want to configure to use the current installed Xcode - you could
> just put 
> --with-sysroot='xcrun --sdk ... etc` on the configure line.
> 
> That doesn't solve the issue of the Xcode package being moved or the user
> issuing a --xcode-select ...
> 
> ... so ....
> let's state the problem we want to solve and the cases we want to cover -
> and then figure out how to do it.  The bug is not "we must use xcrun" the
> bug is "we need to find the headers under the following circumstances".

OK, retitling then.

> 
> I had in mind, for the record, some scheme using symlinks in the user's home
> directory (since using schemes writing into the /xxx dirs require elevated
> permissions).  There's still a penalty in looking up through a link c.f.
> direct access to things - but it would me much less than running a second
> process and parsing the output.
> 
> ====
> 
> JFTR: To support non-Apple-native clang builds I have to patch the LLVM
> cmake files to *avoid* the xcrun calls and use the SDk paths I want!.
>From gcc-bugs-return-638045-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 04:46:36 2019
Return-Path: <gcc-bugs-return-638045-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3945 invoked by alias); 21 Mar 2019 04:46: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 3845 invoked by uid 48); 21 Mar 2019 04:46:32 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/87030] GCC fails to build with Xcode 10, attempting an impossible multilib build
Date: Thu, 21 Mar 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: bootstrap
X-Bugzilla-Version: 8.2.0
X-Bugzilla-Keywords: build
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:
Message-ID: <bug-87030-4-Yqi04bKWuZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87030-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87030-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02339.txt.bz2
Content-length: 2379

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

--- Comment #16 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Iain Sandoe from comment #15)
> FWIW I had a quick look the other day if there was an easy fix to this PR,
> and didn't find a '5 minute' one.
> 
> (In reply to Eric Gallager from comment #14)
> > (In reply to Iain Sandoe from comment #13)
> > > (In reply to Jeremy Huddleston Sequoia from comment #12)
> > > > (In reply to Francois-Xavier Coudert from comment #11)
> > > > > (In reply to Jeremy Huddleston Sequoia from comment #10)
> 
> > > Of course, one *can* pass --sysroot=`xcrun blah blah` on any command line
> > > (for the built compiler) as a work-around.
> > > 
> > > I was trying to work on a scheme where the possible SDK search paths were
> > > provided by symlinks [in the user's home dir], with some configure-time
> > > specified search order (including the option to search /).  Initial
> > > population of the symlinks might be time-significant - but subsequent
> > > following should be less than a process switch.  There was some email
> > > exchange on this between me, Eric and Mike .. I will try to find it in my
> > > archives.
> > 
> > You found it yet?
> 
> Yes... it's in my (unfortunately large) stack of things to be forward-ported.
> 
> Please see also comments on PR79885
> 
> Also making a proper fix for PR84257 might involve reorganising things (in
> particular shifting from using absolute library paths to @rpath ones, for
> 10.5+ [not available on 10.4]).
> 
> IMO, we really need to set out how we want Darwin toolchains to behave for
> the end user, and then figure out how to make the build and test work to
> support that.  This is non-trivial in the presence of SIP, user-movable
> packages, and the library naming scheme.  Still working on this.. but
> equally open to suggestions.
> 
> It's certainly true that one use-case is "build a self-hosted GCC using
> Xcode" but that's definitely not the only scenario, and we [some of us at
> least] don't want to be locked into it.

At least personally I'd like to get away from the "using Xcode" part some
day...

> 
> The other fact of life is that there are now such significant discrepancies
> between darwin versions from 8 .. 18 that we might no longer be able to
> avoid multi-libs to support the range properly.
>From gcc-bugs-return-638046-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 05:36:35 2019
Return-Path: <gcc-bugs-return-638046-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33970 invoked by alias); 21 Mar 2019 05:36: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 33890 invoked by uid 48); 21 Mar 2019 05:36:30 -0000
From: "qrzhang at gatech dot edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/89530] Wrong debug informations for C array generated at -Og [gcc-trunk]
Date: Thu, 21 Mar 2019 05:36: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: qrzhang at gatech dot edu
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-89530-4-9GQxeW7Ng3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89530-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89530-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02340.txt.bz2
Content-length: 1628

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

Qirun Zhang <qrzhang at gatech dot edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |qrzhang at gatech dot edu

--- Comment #8 from Qirun Zhang <qrzhang at gatech dot edu> ---
bisect points to revision r217125.


commit 058a1b7aa18100b0cabbfa6c4b1fb6c97b8131a2
Author: ienkovich <ienkovich@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Wed Nov 5 12:42:03 2014 +0000

    gcc/

    2014-11-05  Ilya Enkovich  <ilya.enkovich@intel.com>

        * ipa-chkp.c: New.
        * ipa-chkp.h: New.
        * tree-chkp.c: New.
        * tree-chkp.h: New.
        * tree-chkp-opt.c: New.
        * rtl-chkp.c: New.
        * rtl-chkp.h: New.
        * Makefile.in (OBJS): Add ipa-chkp.o, rtl-chkp.o, tree-chkp.o
<...>
    2014-11-05  Ilya Enkovich  <ilya.enkovich@intel.com>

        * gcc.target/i386/chkp-builtins-1.c: New.
        * gcc.target/i386/chkp-builtins-2.c: New.
        * gcc.target/i386/chkp-builtins-3.c: New.
        * gcc.target/i386/chkp-builtins-4.c: New.
        * gcc.target/i386/chkp-remove-bndint-1.c: New.
        * gcc.target/i386/chkp-remove-bndint-2.c: New.
        * gcc.target/i386/chkp-const-check-1.c: New.
        * gcc.target/i386/chkp-const-check-2.c: New.
        * gcc.target/i386/chkp-lifetime-1.c: New.
        * gcc.dg/pr37858.c: Replace early_local_cleanups pass name
        with build_ssa_passes.



    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217125
138bc75d-0d04-0410-961f-82ee72b054a4
>From gcc-bugs-return-638047-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 06:49:19 2019
Return-Path: <gcc-bugs-return-638047-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108080 invoked by alias); 21 Mar 2019 06:49:19 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 108033 invoked by uid 48); 21 Mar 2019 06:49:16 -0000
From: "crazylht at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89784] New: Missing AVX512 intrinsics
Date: Thu, 21 Mar 2019 06:49: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: crazylht 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
Message-ID: <bug-89784-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02341.txt.bz2
Content-length: 469

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

            Bug ID: 89784
           Summary: Missing AVX512 intrinsics
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: crazylht at gmail dot com
                CC: hjl.tools at gmail dot com
  Target Milestone: ---

_mm_mask_fmsub_ss
>From gcc-bugs-return-638048-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 06:51:02 2019
Return-Path: <gcc-bugs-return-638048-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109881 invoked by alias); 21 Mar 2019 06:51: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 109806 invoked by uid 48); 21 Mar 2019 06:50:58 -0000
From: "crazylht at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89784] Missing AVX512 intrinsics
Date: Thu, 21 Mar 2019 06: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: crazylht 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-89784-4-pgkMzo2nPP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89784-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89784-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02342.txt.bz2
Content-length: 1243

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

--- Comment #1 from Hongtao.liu <crazylht at gmail dot com> ---
The following AVX512 intrinsics are missing:
VFMSUBxxxSS __m128 _mm_mask_fmsub_ss(__m128 a, __mmask8 k, __m128 b, __m128 c);
VFMSUBxxxSS __m128 _mm_maskz_fmsub_ss(__mmask8 k, __m128 a, __m128 b, __m128
c);
VFMSUBxxxSS __m128 _mm_mask3_fmsub_ss(__m128 a, __m128 b, __m128 c, __mmask8
k);
VFMSUBxxxSS __m128 _mm_mask_fmsub_round_ss(__m128 a, __mmask8 k, __m128 b,
__m128 c, int r);
VFMSUBxxxSS __m128 _mm_maskz_fmsub_round_ss(__mmask8 k, __m128 a, __m128 b,
__m128 c, int r);
VFMSUBxxxSS __m128 _mm_mask3_fmsub_round_ss(__m128 a, __m128 b, __m128 c,
__mmask8 k, int r);
VFMSUBxxxSD __m128d _mm_mask_fmsub_sd(__m128d a, __mmask8 k, __m128d b, __m128d
c);
VFMSUBxxxSD __m128d _mm_maskz_fmsub_sd(__mmask8 k, __m128d a, __m128d b,
__m128d c);
VFMSUBxxxSD __m128d _mm_mask3_fmsub_sd(__m128d a, __m128d b, __m128d c,
__mmask8 k);
VFMSUBxxxSD __m128d _mm_mask_fmsub_round_sd(__m128d a, __mmask8 k, __m128d b,
__m128d c, int r);
VFMSUBxxxSD __m128d _mm_maskz_fmsub_round_sd(__mmask8 k, __m128d a, __m128d b,
__m128d c, int r);
VFMSUBxxxSD __m128d _mm_mask3_fmsub_round_sd(__m128d a, __m128d b, __m128d c,
__mmask8 k, int r);
>From gcc-bugs-return-638049-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 06:56:44 2019
Return-Path: <gcc-bugs-return-638049-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119657 invoked by alias); 21 Mar 2019 06:56: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 119609 invoked by uid 48); 21 Mar 2019 06:56:40 -0000
From: "crazylht at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89784] Missing AVX512 intrinsics
Date: Thu, 21 Mar 2019 06:56: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: crazylht 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-89784-4-WEN5hFDAXB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89784-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89784-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02343.txt.bz2
Content-length: 1231

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

--- Comment #2 from Hongtao.liu <crazylht at gmail dot com> ---
and

VFNMSUBxxxSS __m128 _mm_mask_fnmsub_ss(__m128 a, __mmask8 k, __m128 b, __m128
c);
VFNMSUBxxxSS __m128 _mm_maskz_fnmsub_ss(__mmask8 k, __m128 a, __m128 b, __m128
c);
VFNMSUBxxxSS __m128 _mm_mask3_fnmsub_ss(__m128 a, __m128 b, __m128 c, __mmask8
k);
VFNMSUBxxxSS __m128 _mm_mask_fnmsub_round_ss(__m128 a, __mmask8 k, __m128 b,
__m128 c, int r);
VFNMSUBxxxSS __m128 _mm_maskz_fnmsub_round_ss(__mmask8 k, __m128 a, __m128 b,
__m128 c, int r);
VFNMSUBxxxSS __m128 _mm_mask3_fnmsub_round_ss(__m128 a, __m128 b, __m128 c,
__mmask8 k, int r);
VFNMSUBxxxSD __m128d _mm_mask_fnmsub_sd(__m128d a, __mmask8 k, __m128d b,
__m128d c);
VFNMSUBxxxSD __m128d _mm_maskz_fnmsub_sd(__mmask8 k, __m128d a, __m128d b,
__m128d c);
VFNMSUBxxxSD __m128d _mm_mask3_fnmsub_sd(__m128d a, __m128d b, __m128d c,
__mmask8 k);
VFNMSUBxxxSD __m128d _mm_mask_fnmsub_round_sd(__m128d a, __mmask8 k, __m128d b,
__m128d c, int r);
VFNMSUBxxxSD __m128d _mm_maskz_fnmsub_round_sd(__mmask8 k, __m128d a, __m128d
b, __m128d c, int r);
VFNMSUBxxxSD __m128d _mm_mask3_fnmsub_round_sd(__m128d a, __m128d b, __m128d c,
__mmask8 k, int r);
>From gcc-bugs-return-638050-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 07:16:02 2019
Return-Path: <gcc-bugs-return-638050-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101668 invoked by alias); 21 Mar 2019 07:16: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 101584 invoked by uid 48); 21 Mar 2019 07:15:58 -0000
From: "crazylht at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89784] Missing AVX512 intrinsics
Date: Thu, 21 Mar 2019 07: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: crazylht 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-89784-4-OJL7wPwiVa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89784-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89784-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02344.txt.bz2
Content-length: 2314

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

--- Comment #3 from Hongtao.liu <crazylht at gmail dot com> ---
and 

VFMADDxxxSS __m128 _mm_mask_fmadd_ss(__m128 a, __mmask8 k, __m128 b, __m128 c);
VFMADDxxxSS __m128 _mm_maskz_fmadd_ss(__mmask8 k, __m128 a, __m128 b, __m128
c);
VFMADDxxxSS __m128 _mm_mask3_fmadd_ss(__m128 a, __m128 b, __m128 c, __mmask8
k);
VFMADDxxxSS __m128 _mm_mask_fmadd_round_ss(__m128 a, __mmask8 k, __m128 b,
__m128 c, int r);
VFMADDxxxSS __m128 _mm_maskz_fmadd_round_ss(__mmask8 k, __m128 a, __m128 b,
__m128 c, int r);
VFMADDxxxSS __m128 _mm_mask3_fmadd_round_ss(__m128 a, __m128 b, __m128 c,
__mmask8 k, int r);
VFNMADDxxxSS __m128 _mm_mask_fnmadd_ss(__m128 a, __mmask8 k, __m128 b, __m128
c);
VFNMADDxxxSS __m128 _mm_maskz_fnmadd_ss(__mmask8 k, __m128 a, __m128 b, __m128
c);
VFNMADDxxxSS __m128 _mm_mask3_fnmadd_ss(__m128 a, __m128 b, __m128 c, __mmask8
k);
VFNMADDxxxSS __m128 _mm_mask_fnmadd_round_ss(__m128 a, __mmask8 k, __m128 b,
__m128 c, int r);
VFNMADDxxxSS __m128 _mm_maskz_fnmadd_round_ss(__mmask8 k, __m128 a, __m128 b,
__m128 c, int r);
VFNMADDxxxSS __m128 _mm_mask3_fnmadd_round_ss(__m128 a, __m128 b, __m128 c,
__mmask8 k, int r);
VFNMADDxxxSD __m128d _mm_mask_fnmadd_sd(__m128d a, __mmask8 k, __m128d b,
__m128d c);
VFNMADDxxxSD __m128d _mm_maskz_fnmadd_sd(__mmask8 k, __m128d a, __m128d b,
__m128d c);
VFNMADDxxxSD __m128d _mm_mask3_fnmadd_sd(__m128d a, __m128d b, __m128d c,
__mmask8 k);
VFNMADDxxxSD __m128d _mm_mask_fnmadd_round_sd(__m128d a, __mmask8 k, __m128d b,
__m128d c, int r);
VFNMADDxxxSD __m128d _mm_maskz_fnmadd_round_sd(__mmask8 k, __m128d a, __m128d
b, __m128d c, int r);
VFNMADDxxxSD __m128d _mm_mask3_fnmadd_round_sd(__m128d a, __m128d b, __m128d c,
__mmask8 k, int r);
VFMADDxxxSD __m128d _mm_mask_fmadd_sd(__m128d a, __mmask8 k, __m128d b, __m128d
c);
VFMADDxxxSD __m128d _mm_maskz_fmadd_sd(__mmask8 k, __m128d a, __m128d b,
__m128d c);
VFMADDxxxSD __m128d _mm_mask3_fmadd_sd(__m128d a, __m128d b, __m128d c,
__mmask8 k);
VFMADDxxxSD __m128d _mm_mask_fmadd_round_sd(__m128d a, __mmask8 k, __m128d b,
__m128d c, int r);
VFMADDxxxSD __m128d _mm_maskz_fmadd_round_sd(__mmask8 k, __m128d a, __m128d b,
__m128d c, int r);
VFMADDxxxSD __m128d _mm_mask3_fmadd_round_sd(__m128d a, __m128d b, __m128d c,
__mmask8 k, int r);
>From gcc-bugs-return-638051-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 07:22:30 2019
Return-Path: <gcc-bugs-return-638051-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118600 invoked by alias); 21 Mar 2019 07:22: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 118543 invoked by uid 48); 21 Mar 2019 07:22:25 -0000
From: "antoshkka at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89785] New: Incorrect "not a constant expression" error with switch statement that returns
Date: Thu, 21 Mar 2019 07:22: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: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: antoshkka 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 keywords bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-89785-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02345.txt.bz2
Content-length: 900

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

            Bug ID: 89785
           Summary: Incorrect "not a constant expression" error with
                    switch statement that returns
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: antoshkka at gmail dot com
  Target Milestone: ---

The following code fails to compile:

constexpr int Addrlen(int domain) {
    switch (domain) {
      case 0:
        return 0;
      case 2:
        return 42;
    }
    throw 42;
}

Error message is following:

<source>: In function 'constexpr int Addrlen(int)':
<source>:8:11: error: expression '<throw-expression>' is not a constant
expression
    8 |     throw 42;
      |           ^~
>From gcc-bugs-return-638052-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 07:40:04 2019
Return-Path: <gcc-bugs-return-638052-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86220 invoked by alias); 21 Mar 2019 07:40: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 86111 invoked by uid 48); 21 Mar 2019 07:40:00 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/89783] Can do an internal READ of a character array when it is a parameter, but not a scalar character parameter
Date: Thu, 21 Mar 2019 07:40: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: 7.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-89783-4-Fk375ZQT6m@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89783-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89783-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02346.txt.bz2
Content-length: 509

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

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

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

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Duplicate.

*** This bug has been marked as a duplicate of bug 89782 ***
>From gcc-bugs-return-638053-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 07:40:04 2019
Return-Path: <gcc-bugs-return-638053-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86224 invoked by alias); 21 Mar 2019 07:40: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 86147 invoked by uid 48); 21 Mar 2019 07:40:00 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/89782] Can do an internal READ of a character array when it is a parameter, but not a scalar character parameter
Date: Thu, 21 Mar 2019 07:40: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: 7.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
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-89782-4-AyvKj1UDWd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89782-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89782-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02347.txt.bz2
Content-length: 189

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

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
*** Bug 89783 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-638054-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 07:55:31 2019
Return-Path: <gcc-bugs-return-638054-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110097 invoked by alias); 21 Mar 2019 07:55: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 107590 invoked by uid 48); 21 Mar 2019 07:55:26 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/89782] Can do an internal READ of a character array when it is a parameter, but not a scalar character parameter
Date: Thu, 21 Mar 2019 07: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: 7.3.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-89782-4-wA1HbKSccs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89782-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89782-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02348.txt.bz2
Content-length: 532

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-03-21
     Ever confirmed|0                           |1

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed from at least 4.3.1 up to trunk (9.0).
>From gcc-bugs-return-638055-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 08:02:31 2019
Return-Path: <gcc-bugs-return-638055-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32175 invoked by alias); 21 Mar 2019 08:02: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 32076 invoked by uid 48); 21 Mar 2019 08:02:27 -0000
From: "abel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/85412] [8/9 Regression] ICE in put_TImodes, at sel-sched.c:7191
Date: Thu, 21 Mar 2019 08:02: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: deferred, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: abel 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:
Message-ID: <bug-85412-4-UQcfhLVx7T@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85412-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85412-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02349.txt.bz2
Content-length: 999

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

--- Comment #8 from Andrey Belevantsev <abel at gcc dot gnu.org> ---
Sigh.  We set reset_sched_cycles_p to pipelining_p after the conditional, but
we have missed that in sel_sched_region_1 pipelining_p will be set to false. 
So that initial patch should have the following hunk instead:

diff --git a/gcc/sel-sched.c b/gcc/sel-sched.c
index 315f2c0c0ab..29d9abd7200 100644
--- a/gcc/sel-sched.c
+++ b/gcc/sel-sched.c
@@ -7648,11 +7648,11 @@ sel_sched_region (int rgn)
       /* Schedule always selecting the next insn to make the correct data
         for bundling or other later passes.  */
       pipelining_p = false;
+      reset_sched_cycles_p = false;
       force_next_insn = 1;
       sel_sched_region_1 ();
       force_next_insn = 0;
     }
-  reset_sched_cycles_p = pipelining_p;
   sel_region_finish (reset_sched_cycles_p);
 }

I've checked that it fixes the ICE on the original revision, trunk doesn't ICE
for me.
>From gcc-bugs-return-638056-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 08:32:37 2019
Return-Path: <gcc-bugs-return-638056-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59264 invoked by alias); 21 Mar 2019 08:32: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 59188 invoked by uid 48); 21 Mar 2019 08:32:33 -0000
From: "abel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/85876] ICE in move_op_ascend, at sel-sched.c:6164
Date: Thu, 21 Mar 2019 08:32: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: unknown
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: abel at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: abel 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-85876-4-x4X4VlW9AT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85876-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85876-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02350.txt.bz2
Content-length: 643

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

Andrey Belevantsev <abel at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2019-03-21
                 CC|                            |abel at gcc dot gnu.org,
                   |                            |amonakov at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |abel at gcc dot gnu.org
     Ever confirmed|0                           |1
>From gcc-bugs-return-638057-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 08:34:54 2019
Return-Path: <gcc-bugs-return-638057-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64812 invoked by alias); 21 Mar 2019 08: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 64708 invoked by uid 48); 21 Mar 2019 08:34:49 -0000
From: "abel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/85876] ICE in move_op_ascend, at sel-sched.c:6164
Date: Thu, 21 Mar 2019 08:34: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: unknown
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: abel at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: abel at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-85876-4-coAuJ9zziY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85876-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85876-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02351.txt.bz2
Content-length: 1755

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

--- Comment #1 from Andrey Belevantsev <abel at gcc dot gnu.org> ---
This is caused by the overeager fix of PR 48235.  We're unwinding the
first_insn variable (the border to which we step backwards in code motion) too
far so it gets beyond the original fence, which happens to be mid-block instead
of bb head.  Fixed as below.  Alexander, do you remember anything else about
that PR (e.g. I think there was a code to unwind the fence back to account for
the unscheduled instructions, but this is not it).

diff --git a/gcc/sel-sched.c b/gcc/sel-sched.c
index 315f2c0c0ab..6116e43f998 100644
--- a/gcc/sel-sched.c
+++ b/gcc/sel-sched.c
@@ -6437,7 +6437,7 @@ code_motion_path_driver (insn_t insn, av_set_t orig_ops,
ilist_t path,
 {
   expr_t expr = NULL;
   basic_block bb = BLOCK_FOR_INSN (insn);
-  insn_t first_insn, bb_tail, before_first;
+  insn_t first_insn, original_insn, bb_tail, before_first;
   bool removed_last_insn = false;

   if (sched_verbose >= 6)
@@ -6521,7 +6521,7 @@ code_motion_path_driver (insn_t insn, av_set_t orig_ops,
ilist_t path,
   /* It is enough to place only heads and tails of visited basic blocks into
      the PATH.  */
   ilist_add (&path, insn);
-  first_insn = insn;
+  first_insn = original_insn = insn;
   bb_tail = sel_bb_end (bb);

   /* Descend the basic block in search of the original expr; this part
@@ -6628,6 +6628,8 @@ code_motion_path_driver (insn_t insn, av_set_t orig_ops,
ilist_t path,
         {
           insn = sel_bb_end (bb);
           first_insn = sel_bb_head (bb);
+         if (first_insn != original_insn)
+           first_insn = original_insn;
         }

       /* Remove bb tail from path.  */
>From gcc-bugs-return-638058-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 08:39:10 2019
Return-Path: <gcc-bugs-return-638058-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79515 invoked by alias); 21 Mar 2019 08:39: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 79463 invoked by uid 48); 21 Mar 2019 08:39:07 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89785] Incorrect "not a constant expression" error with switch statement that returns
Date: Thu, 21 Mar 2019 08:39: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: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89785-4-3y3DMsNc5k@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89785-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89785-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02352.txt.bz2
Content-length: 217

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

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
So you say that Addrlen(0) and Addrlen(2) are proper constexprs?  Of course
Addrlen(1) is not.
>From gcc-bugs-return-638059-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 08:40:42 2019
Return-Path: <gcc-bugs-return-638059-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89288 invoked by alias); 21 Mar 2019 08:40: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 88591 invoked by uid 48); 21 Mar 2019 08:40:38 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBtaWRkbGUtZW5kLzg5Nzc5XSBbOSBSZWdyZXNzaW9uXSAgaW50ZXJu?= =?UTF-8?B?YWwgY29tcGlsZXIgZXJyb3I6IHRyZWUgY2hlY2s6IGV4cGVjdGVkIGNsYXNz?= =?UTF-8?B?IOKAmHR5cGXigJksIGhhdmUg4oCYZXhjZXB0aW9uYWzigJkgKGVycm9yX21h?= =?UTF-8?B?cmspIGluIHRyZWVfbm9wX2NvbnZlcnNpb25fcCwgYXQgdHJlZS5jOjEyNzk4?Date: Thu, 21 Mar 2019 08:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 9.0
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: P1
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority bug_status assigned_to
Message-ID: <bug-89779-4-F2OFnZcOEj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89779-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89779-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02353.txt.bz2
Content-length: 510

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

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

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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mine.
>From gcc-bugs-return-638060-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 09:01:01 2019
Return-Path: <gcc-bugs-return-638060-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30027 invoked by alias); 21 Mar 2019 09:00: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 29728 invoked by uid 48); 21 Mar 2019 09:00:45 -0000
From: "antoshkka at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89785] Incorrect "not a constant expression" error with switch statement that returns
Date: Thu, 21 Mar 2019 09:00: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: antoshkka 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-89785-4-2KgkjDlDfZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89785-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89785-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02354.txt.bz2
Content-length: 317

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

--- Comment #2 from Antony Polukhin <antoshkka at gmail dot com> ---
> So you say that Addrlen(0) and Addrlen(2) are proper constexprs?  Of course
Addrlen(1) is not.

Yes. But GCC does not even allow to define the Addrlen function:
https://godbolt.org/z/xqR2Lr
>From gcc-bugs-return-638061-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 09:37:00 2019
Return-Path: <gcc-bugs-return-638061-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 63138 invoked by alias); 21 Mar 2019 09:37: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 63062 invoked by uid 48); 21 Mar 2019 09:36:56 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89785] Incorrect "not a constant expression" error with switch statement that returns
Date: Thu, 21 Mar 2019 09: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: 9.0
X-Bugzilla-Keywords: rejects-valid
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-89785-4-ynWnCr5WZk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89785-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89785-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02355.txt.bz2
Content-length: 1089

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

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

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I guess that is because potential_constant_expression_1 punts on THROW_EXPR. 
There is some code to not recurse if e.g. IF_STMT or COND_EXPR condition
evaluates to constant zero or nonzero, but that is not the case here.
I actually don't know what in the standard requires something like
potential_constant_expression{,_1} rather than just punting during constexpr
evaluation if some non-constexpr construct is encountered.  For the cases
listed in dcl.constexpr which may not show up in constexpr functions I thought
that is covered in the parser already.
>From gcc-bugs-return-638062-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 09:42:01 2019
Return-Path: <gcc-bugs-return-638062-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99283 invoked by alias); 21 Mar 2019 09:42: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 99200 invoked by uid 48); 21 Mar 2019 09:41:57 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBtaWRkbGUtZW5kLzg5Nzc5XSBbOSBSZWdyZXNzaW9uXSAgaW50ZXJu?= =?UTF-8?B?YWwgY29tcGlsZXIgZXJyb3I6IHRyZWUgY2hlY2s6IGV4cGVjdGVkIGNsYXNz?= =?UTF-8?B?IOKAmHR5cGXigJksIGhhdmUg4oCYZXhjZXB0aW9uYWzigJkgKGVycm9yX21h?= =?UTF-8?B?cmspIGluIHRyZWVfbm9wX2NvbnZlcnNpb25fcCwgYXQgdHJlZS5jOjEyNzk4?Date: Thu, 21 Mar 2019 09:42: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: 9.0
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: P1
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: blocked
Message-ID: <bug-89779-4-tcaIPZuZjA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89779-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89779-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02356.txt.bz2
Content-length: 3160

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |88945

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
So we fail to run into the defensive

static inline bool
tree_nop_conversion (const_tree exp)
{
...
  inner_type = TREE_TYPE (TREE_OPERAND (exp, 0));

  if (!inner_type)
    return false;

now because the type is not NULL but error_mark_node.  Of course the real
issue is that we are operating on trees with released SSA names at all.

The above is from r158045

2010-04-07  Richard Guenther  <rguenther@suse.de>

        PR middle-end/42617
        * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
        discard plain indirect references.
        * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
        * tree.c (tree_nop_conversion): Likewise.

where the tree_nop_conversion already has other defenses:

  if (TREE_OPERAND (exp, 0) == error_mark_node)
    return false;

we can consolidate those checks now.

Index: gcc/tree.c
===================================================================
--- gcc/tree.c  (revision 269832)
+++ gcc/tree.c  (working copy)
@@ -12812,13 +12812,10 @@ tree_nop_conversion (const_tree exp)
   if (!CONVERT_EXPR_P (exp)
       && TREE_CODE (exp) != NON_LVALUE_EXPR)
     return false;
-  if (TREE_OPERAND (exp, 0) == error_mark_node)
-    return false;

   outer_type = TREE_TYPE (exp);
   inner_type = TREE_TYPE (TREE_OPERAND (exp, 0));
-
-  if (!inner_type)
+  if (inner_type == error_mark_node)
     return false;

   return tree_nop_conversion_p (outer_type, inner_type);
Index: gcc/fold-const.c
===================================================================
--- gcc/fold-const.c    (revision 269832)
+++ gcc/fold-const.c    (working copy)
@@ -2973,11 +2973,6 @@ operand_equal_p (const_tree arg0, const_
       || TREE_TYPE (arg1) == error_mark_node)
     return 0;

-  /* Similar, if either does not have a type (like a released SSA name), 
-     they aren't equal.  */
-  if (!TREE_TYPE (arg0) || !TREE_TYPE (arg1))
-    return 0;
-
   /* We cannot consider pointers to different address space equal.  */
   if (POINTER_TYPE_P (TREE_TYPE (arg0))
       && POINTER_TYPE_P (TREE_TYPE (arg1))


The underlying issue is that IVOPTs removes unused IVs but keeps
loop->control_ivs uncleared (it clears the SCEV cache which also
resets loop->nb_iterations).  The best fix for IVOPTs is probably
to simply delay removal of those IVs and also properly free
control-iv information.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88945
[Bug 88945] ICE in fold_convert_loc in FRE when using -fdump-tree-fre-details
>From gcc-bugs-return-638063-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 09:57:19 2019
Return-Path: <gcc-bugs-return-638063-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22060 invoked by alias); 21 Mar 2019 09:57: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 21998 invoked by uid 48); 21 Mar 2019 09:57:12 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/54262] LOC shouldn't use copy-in/copy-out
Date: Thu, 21 Mar 2019 09: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: 4.8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-54262-4-jNtLbB0csy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-54262-4@http.gcc.gnu.org/bugzilla/>
References: <bug-54262-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02357.txt.bz2
Content-length: 2568

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

--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> The code in comment 0 compiles with 4.8.5, but gives an error
>
>    p = transfer (loc(x), p)
>                     1
> Error: Assumed-type argument at (1) is not permitted as actual argument
> to the intrinsic loc

LOC is a GNU extension and it is a matter of choice to accept or reject it in
gfortran.

If the choice is to reject it, then this PR should be closed as INVALID.

With the following patch

--- ../_clean/gcc/fortran/intrinsic.c   2019-03-12 16:12:35.000000000 +0100
+++ gcc/fortran/intrinsic.c     2019-03-20 23:03:17.000000000 +0100
@@ -212,7 +212,8 @@ do_ts29113_check (gfc_intrinsic_sym *spe
               && specific->id != GFC_ISYM_SIZEOF
               && specific->id != GFC_ISYM_UBOUND
               && specific->id != GFC_ISYM_IS_CONTIGUOUS
-              && specific->id != GFC_ISYM_C_LOC)
+              && specific->id != GFC_ISYM_C_LOC
+              && specific->id != GFC_ISYM_LOC)
        {
          gfc_error ("Assumed-type argument at %L is not permitted as actual"
                     " argument to the intrinsic %s", &a->expr->where,

the modified test with

  type(*), target, CONTIGUOUS :: x(:) ! or x(:)

is accepted, but the original test is rejected with

    5 |   p = transfer (loc(x), p)
      |                    1
Error: Assumed-rank argument at (1) is only permitted as actual argument to
intrinsic inquiry functions

So far I did not find what to change to make specific->inquiry true for LOC. 
Again as it is an extension, it is not an "intrinsic inquiry function" 
as defined by the standard.

While looking at trans-intrinsic.c, I see in gfc_conv_intrinsic_loc

  /* Create a temporary variable for loc return value.  Without this,
     we get an error an ICE in gcc/expr.c(expand_expr_addr_expr_1).  */
  temp_var = gfc_create_var (gfc_get_int_type (gfc_index_integer_kind), NULL);
  gfc_add_modify (&se->pre, temp_var, se->expr);
  se->expr = temp_var;

and in conv_isocbinding_function

      /* TODO -- the following two lines shouldn't be necessary, but if
         they're removed, a bug is exposed later in the code path.
         This workaround was thus introduced, but will have to be
         removed; please see PR 35150 for details about the issue.  */
      se->expr = convert (pvoid_type_node, se->expr);
      se->expr = gfc_evaluate_now (se->expr, &se->pre);

These pieces of code look more as empirical hacks than as solid codes.
>From gcc-bugs-return-638064-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 10:14:40 2019
Return-Path: <gcc-bugs-return-638064-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 2976 invoked by alias); 21 Mar 2019 10:14: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 2913 invoked by uid 48); 21 Mar 2019 10:14:36 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/48419] Reduce gfortran stack usage for procedures doing IO
Date: Thu, 21 Mar 2019 10: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: 4.7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
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-48419-4-xFGnCCI6Hi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-48419-4@http.gcc.gnu.org/bugzilla/>
References: <bug-48419-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02358.txt.bz2
Content-length: 438

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

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

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

--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Almost eight years later, is there any chance to fix this PR?
>From gcc-bugs-return-638065-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 10:15:59 2019
Return-Path: <gcc-bugs-return-638065-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15912 invoked by alias); 21 Mar 2019 10:15: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 13651 invoked by uid 48); 21 Mar 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 c++/89766] [8 Regression] ICE: canonical types differ for identical types, -std=c++17
Date: Thu, 21 Mar 2019 10:15: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.3.1
X-Bugzilla-Keywords: accepts-invalid, ice-checking, ice-on-invalid-code, 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: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89766-4-94xljD68fD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89766-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89766-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02359.txt.bz2
Content-length: 672

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

--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Rimvydas (RJ) from comment #10)
> Using 9.0.1 20190319 as reference several ICE cases reduce down to the same
> snippet (regression on trunk)?

None of these ICE on the trunk, there is a warning on the first one:
warning: inline function ‘constexpr a::a()’ used but never defined

What do you think the compiler does incorrectly?  E.g. for the first testcase
I guess it would be rejected if it is actually instantiated, but when not
instantiated, I'd think it falls into the invalid, no diagnostic required
category.
>From gcc-bugs-return-638066-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 11:07:32 2019
Return-Path: <gcc-bugs-return-638066-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46096 invoked by alias); 21 Mar 2019 11:07:31 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 46040 invoked by uid 48); 21 Mar 2019 11:07:28 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89784] Missing AVX512 intrinsics
Date: Thu, 21 Mar 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: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed
Message-ID: <bug-89784-4-axO0NoFgCr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89784-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89784-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02360.txt.bz2
Content-length: 489

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2019-03-21
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
     Ever confirmed|0                           |1
>From gcc-bugs-return-638067-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 11:18:59 2019
Return-Path: <gcc-bugs-return-638067-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105427 invoked by alias); 21 Mar 2019 11:18: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 105347 invoked by uid 48); 21 Mar 2019 11:18:55 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/86549] [meta-bug] -flto -g0 vs. -g issues
Date: Thu, 21 Mar 2019 11:18: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: ice-on-valid-code, lto, meta-bug
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 priority bug_status cc assigned_to target_milestone short_desc
Message-ID: <bug-86549-4-LOaR7vWT7P@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-03/txt/msg02361.txt.bz2
Content-length: 869

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |meta-bug
           Priority|P2                          |P3
             Status|ASSIGNED                    |NEW
                 CC|                            |rguenth at gcc dot gnu.org
           Assignee|rguenth at gcc dot gnu.org         |unassigned at gcc dot gnu.org
   Target Milestone|8.4                         |---
            Summary|[8/9 Regression] -flto -g0  |[meta-bug] -flto -g0 vs. -g
                   |vs. -g issues               |issues

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Making a meta-bug, all known issues are fixed.
>From gcc-bugs-return-638068-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 11:53:07 2019
Return-Path: <gcc-bugs-return-638068-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65704 invoked by alias); 21 Mar 2019 11:53: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 65632 invoked by uid 48); 21 Mar 2019 11:53:03 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78645] [7/8/9 Regression] ICE on invalid code (Segmentation fault, cxx_eval_call_expression)
Date: Thu, 21 Mar 2019 11:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
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-78645-4-ptzmzlYiej@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78645-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78645-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02362.txt.bz2
Content-length: 208

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

--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> ---
This is fixed in trunk. I'm adding a testcase and removing the regression
marker.
>From gcc-bugs-return-638069-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 12:06:10 2019
Return-Path: <gcc-bugs-return-638069-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93871 invoked by alias); 21 Mar 2019 12:06: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 93800 invoked by uid 55); 21 Mar 2019 12:06:06 -0000
From: "paolo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78645] [7/8/9 Regression] ICE on invalid code (Segmentation fault, cxx_eval_call_expression)
Date: Thu, 21 Mar 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: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
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-78645-4-hugNxv0DTK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78645-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78645-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02363.txt.bz2
Content-length: 500

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

--- Comment #7 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Thu Mar 21 12:05:32 2019
New Revision: 269834

URL: https://gcc.gnu.org/viewcvs?rev=269834&root=gcc&view=rev
Log:
2019-03-21  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/78645
        * g++.dg/cpp0x/constexpr-ice20.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-ice20.C
Modified:
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-638070-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 12:07:47 2019
Return-Path: <gcc-bugs-return-638070-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98857 invoked by alias); 21 Mar 2019 12:07: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 98460 invoked by uid 55); 21 Mar 2019 12:07:42 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/88066] [7 Regression] Relative includes in bits/locale_conv.h should be prefixed
Date: Thu, 21 Mar 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: libstdc++
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-88066-4-zFTyQhC5Pp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88066-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88066-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02364.txt.bz2
Content-length: 1381

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

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Thu Mar 21 12:07:10 2019
New Revision: 269835

URL: https://gcc.gnu.org/viewcvs?rev=269835&root=gcc&view=rev
Log:
PR libstdc++/88066 Use <> for includes not ""

These headers were missed in the previous commit for this bug.

There are also several "" includes in the profile mode headers, but
because they're deprecated I'm not fixing them.

        * include/backward/hash_map: Use <> for includes not "".
        * include/backward/hash_set: Likewise.
        * include/backward/strstream: Likewise.
        * include/tr1/bessel_function.tcc: Likewise.
        * include/tr1/exp_integral.tcc: Likewise.
        * include/tr1/legendre_function.tcc: Likewise.
        * include/tr1/modified_bessel_func.tcc: Likewise.
        * include/tr1/riemann_zeta.tcc: Likewise.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/backward/hash_map
    trunk/libstdc++-v3/include/backward/hash_set
    trunk/libstdc++-v3/include/backward/strstream
    trunk/libstdc++-v3/include/tr1/bessel_function.tcc
    trunk/libstdc++-v3/include/tr1/exp_integral.tcc
    trunk/libstdc++-v3/include/tr1/legendre_function.tcc
    trunk/libstdc++-v3/include/tr1/modified_bessel_func.tcc
    trunk/libstdc++-v3/include/tr1/riemann_zeta.tcc
>From gcc-bugs-return-638071-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 12:16:50 2019
Return-Path: <gcc-bugs-return-638071-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98173 invoked by alias); 21 Mar 2019 12:16: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 98128 invoked by uid 48); 21 Mar 2019 12:16:35 -0000
From: "nickc at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/89394] libiberty :stack overflow in nm
Date: Thu, 21 Mar 2019 12:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nickc at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
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-89394-4-RsIa35c9DY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89394-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89394-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02365.txt.bz2
Content-length: 645

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

Nick Clifton <nickc at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2019-03-21
                 CC|                            |nickc at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #6 from Nick Clifton <nickc at gcc dot gnu.org> ---
I have proposed a patch to fix this bug:

  https://gcc.gnu.org/ml/gcc-patches/2019-03/msg01048.html
>From gcc-bugs-return-638072-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 12:29:04 2019
Return-Path: <gcc-bugs-return-638072-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11350 invoked by alias); 21 Mar 2019 12:29: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 10896 invoked by uid 55); 21 Mar 2019 12:28:58 -0000
From: "doko at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89505] [7 Regression] LibreOffice miscompilation starting with r260383
Date: Thu, 21 Mar 2019 12: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: 9.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: doko 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-89505-4-0QUZj2gNZO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89505-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89505-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02366.txt.bz2
Content-length: 1031

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

--- Comment #8 from Matthias Klose <doko at gcc dot gnu.org> ---
Author: doko
Date: Thu Mar 21 12:28:26 2019
New Revision: 269836

URL: https://gcc.gnu.org/viewcvs?rev=269836&root=gcc&view=rev
Log:
2019-03-21  Matthias Klose  <doko@ubuntu.com>

        Backport from mainline
        2019-02-26  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/89505
        * tree-ssa-structalias.c (compute_dependence_clique): Make sure
        to handle restrict pointed-to vars with multiple subvars
        correctly.

2019-03-21  Matthias Klose  <doko@ubuntu.com>

        Backport from mainline
        2019-02-26  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/89505
        * gcc.dg/torture/pr89505.c: New testcase.

Added:
    branches/gcc-7-branch/gcc/testsuite/gcc.dg/torture/pr89505.c
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
    branches/gcc-7-branch/gcc/tree-ssa-structalias.c
>From gcc-bugs-return-638073-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 12:31:50 2019
Return-Path: <gcc-bugs-return-638073-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17078 invoked by alias); 21 Mar 2019 12:31: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 16979 invoked by uid 48); 21 Mar 2019 12:31:46 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89505] [7 Regression] LibreOffice miscompilation starting with r260383
Date: Thu, 21 Mar 2019 12:31: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: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
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: bug_status cf_known_to_work resolution
Message-ID: <bug-89505-4-adhf7Ob1P2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89505-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89505-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02367.txt.bz2
Content-length: 484

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to work|                            |7.4.1
         Resolution|---                         |FIXED

--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-638074-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 12:31:50 2019
Return-Path: <gcc-bugs-return-638074-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17127 invoked by alias); 21 Mar 2019 12:31: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 17023 invoked by uid 48); 21 Mar 2019 12:31:47 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89509] restrict doesnt work with subfield accesses
Date: Thu, 21 Mar 2019 12:31: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: 9.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-89509-4-uWI9Fgu0fB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89509-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89509-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02368.txt.bz2
Content-length: 491

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

Bug 89505 Summary: [7 Regression] LibreOffice miscompilation starting with r260383
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89505

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-638075-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 12:43:29 2019
Return-Path: <gcc-bugs-return-638075-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40212 invoked by alias); 21 Mar 2019 12:43: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 40133 invoked by uid 48); 21 Mar 2019 12:43:25 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/85412] [8/9 Regression] ICE in put_TImodes, at sel-sched.c:7191
Date: Thu, 21 Mar 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: rtl-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: deferred, 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-85412-4-aVNyVw8Qbs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85412-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85412-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02369.txt.bz2
Content-length: 1015

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

--- Comment #9 from Arseny Solokha <asolokha at gmx dot com> ---
(In reply to Andrey Belevantsev from comment #8)
> trunk doesn't
> ICE for me.

I don't have a good testcase at hand (it's just a matter of time, though), but
at least the following snippet makes the current trunk ICE:

      subroutine kc (IX, L4, PQ)

      integer VT, DK, L4, IX, F0
      real PQ (L4, L4)

      F0 = VT

 0010 do VT = 1, 2
      end do

      if (IX .eq. 0) go to 0020

      do VT = 1, L4
      end do

      go to 0010

 0020 do VT = 1, L4
         if (VT .ge. 0 .and. VT .le. F0) go to 0030

         do DK = VT, L4
            PQ (VT, DK) = 0.0
         end do
 0030 end do

      return
      end

% powerpc-e300c3-linux-gnu-gfortran-9.0.0-alpha20190317 -m32 -mcpu=970 -O1
-fschedule-insns2 -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops
-fselective-scheduling2 -ftree-parallelize-loops=2 --param
selsched-max-sched-times=3 -c eowqbvfn.f
>From gcc-bugs-return-638076-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 12:46:58 2019
Return-Path: <gcc-bugs-return-638076-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48110 invoked by alias); 21 Mar 2019 12:46: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 48040 invoked by uid 48); 21 Mar 2019 12:46:54 -0000
From: "abel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/85412] [8/9 Regression] ICE in put_TImodes, at sel-sched.c:7191
Date: Thu, 21 Mar 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: rtl-optimization
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: deferred, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: abel 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:
Message-ID: <bug-85412-4-ICwnAZVhhU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85412-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85412-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02370.txt.bz2
Content-length: 1245

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

--- Comment #10 from Andrey Belevantsev <abel at gcc dot gnu.org> ---
(In reply to Arseny Solokha from comment #9)
> (In reply to Andrey Belevantsev from comment #8)
> > trunk doesn't
> > ICE for me.
> 
> I don't have a good testcase at hand (it's just a matter of time, though),
> but at least the following snippet makes the current trunk ICE:
> 
>       subroutine kc (IX, L4, PQ)
> 
>       integer VT, DK, L4, IX, F0
>       real PQ (L4, L4)
> 
>       F0 = VT
> 
>  0010 do VT = 1, 2
>       end do
> 
>       if (IX .eq. 0) go to 0020
> 
>       do VT = 1, L4
>       end do
> 
>       go to 0010
> 
>  0020 do VT = 1, L4
>          if (VT .ge. 0 .and. VT .le. F0) go to 0030
> 
>          do DK = VT, L4
>             PQ (VT, DK) = 0.0
>          end do
>  0030 end do
> 
>       return
>       end
> 
> % powerpc-e300c3-linux-gnu-gfortran-9.0.0-alpha20190317 -m32 -mcpu=970 -O1
> -fschedule-insns2 -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops
> -fselective-scheduling2 -ftree-parallelize-loops=2 --param
> selsched-max-sched-times=3 -c eowqbvfn.f

Is it easy for you to check that the above patch fixes also your testcase?
>From gcc-bugs-return-638077-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 12:48:05 2019
Return-Path: <gcc-bugs-return-638077-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52506 invoked by alias); 21 Mar 2019 12:48: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 52068 invoked by uid 48); 21 Mar 2019 12:47:58 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/85412] [8/9 Regression] ICE in put_TImodes, at sel-sched.c:7191
Date: Thu, 21 Mar 2019 12:48: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: deferred, 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-85412-4-8nbI6A0yhx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85412-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85412-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02371.txt.bz2
Content-length: 275

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

--- Comment #11 from Arseny Solokha <asolokha at gmx dot com> ---
(In reply to Andrey Belevantsev from comment #10)
> Is it easy for you to check that the above patch fixes also your testcase?

Sure, I'll do it tomorrow.
>From gcc-bugs-return-638078-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 12:54:43 2019
Return-Path: <gcc-bugs-return-638078-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58653 invoked by alias); 21 Mar 2019 12:54: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 58538 invoked by uid 48); 21 Mar 2019 12:54:37 -0000
From: "a.drobyshev at samsung dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/82501] AddressSanitizer does not handle negative offset for first global variable
Date: Thu, 21 Mar 2019 12:54: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: patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: a.drobyshev at samsung dot com
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: 10.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created
Message-ID: <bug-82501-4-G5pBf3Mb5U@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82501-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82501-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02372.txt.bz2
Content-length: 1041

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

Andrey Drobyshev <a.drobyshev at samsung dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #45751|0                           |1
        is obsolete|                            |
  Attachment #45851|0                           |1
        is obsolete|                            |

--- Comment #27 from Andrey Drobyshev <a.drobyshev at samsung dot com> ---
Created attachment 46001
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46001&action=edit
Updated patch candidate

I've rewritten the previous patch. Now instead of constructing a decl suitable
for one or another section, I just get the right section in assemble_variable
() and emit a dummy global into that. I like this solution better, because it
delivers us from pain of setting the right decl attributes. It seems to work
for the test cases we've introduced so far in this thread.
Please review.
>From gcc-bugs-return-638079-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 13:05:52 2019
Return-Path: <gcc-bugs-return-638079-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15195 invoked by alias); 21 Mar 2019 13: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 15117 invoked by uid 48); 21 Mar 2019 13:05:48 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89785] Incorrect "not a constant expression" error with switch statement that returns
Date: Thu, 21 Mar 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: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89785-4-Je0wgOb3j8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89785-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89785-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02373.txt.bz2
Content-length: 505

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

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Also consider the equivalent(?)

constexpr foo() { throw 42; } // with or without constexpr

constexpr int Addrlen(int domain) {
    switch (domain) {
      case 0:
        return 0;
      case 2:
        return 42;
    }
    foo();
}

if Addrlen is allowed to be constexpr when foo() is not called
[and is not declared constexpr].  And whether foo may be declared
constexpr or not.
>From gcc-bugs-return-638080-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 13:18:52 2019
Return-Path: <gcc-bugs-return-638080-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92641 invoked by alias); 21 Mar 2019 13:18: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 92563 invoked by uid 48); 21 Mar 2019 13:18:47 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89785] Incorrect "not a constant expression" error with switch statement that returns
Date: Thu, 21 Mar 2019 13: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: rejects-valid
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-89785-4-AMuUQI12TQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89785-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89785-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02374.txt.bz2
Content-length: 1223

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

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #4)
> Also consider the equivalent(?)
> 
> constexpr foo() { throw 42; } // with or without constexpr
> 
> constexpr int Addrlen(int domain) {
>     switch (domain) {
>       case 0:
>         return 0;
>       case 2:
>         return 42;
>     }
>     foo();
> }
> 
> if Addrlen is allowed to be constexpr when foo() is not called
> [and is not declared constexpr].  And whether foo may be declared
> constexpr or not.

foo cannot be constexpr, but no diagnostic is required:

> For a constexpr function or constexpr constructor that is neither defaulted nor a template, if no argument values exist such that an invocation of the function or constructor could be an evaluated subexpression of a core constant expression (7.7), or, for a constructor, a constant initializer for some object (6.8.3.2), the program is ill-formed, no diagnostic required.

Addrlen *can* be constexpr, because there are argument values that allow it to
be evaluated at compile time, without ever reaching the throw (or reaching the
call to the non-constexpr foo).
>From gcc-bugs-return-638081-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 13:22:04 2019
Return-Path: <gcc-bugs-return-638081-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 97825 invoked by alias); 21 Mar 2019 13:22: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 97709 invoked by uid 48); 21 Mar 2019 13:21:59 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/54262] LOC shouldn't use copy-in/copy-out
Date: Thu, 21 Mar 2019 13:22: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.8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-54262-4-OBJExNYhtk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-54262-4@http.gcc.gnu.org/bugzilla/>
References: <bug-54262-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02375.txt.bz2
Content-length: 1286

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

--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> So far I did not find what to change to make specific->inquiry true for LOC. 

Fixed by the following patch

--- ../_clean/gcc/fortran/intrinsic.c   2019-03-12 16:12:35.000000000 +0100
+++ gcc/fortran/intrinsic.c     2019-03-21 11:24:16.000000000 +0100
@@ -212,7 +212,8 @@ do_ts29113_check (gfc_intrinsic_sym *spe
               && specific->id != GFC_ISYM_SIZEOF
               && specific->id != GFC_ISYM_UBOUND
               && specific->id != GFC_ISYM_IS_CONTIGUOUS
-              && specific->id != GFC_ISYM_C_LOC)
+              && specific->id != GFC_ISYM_C_LOC
+              && specific->id != GFC_ISYM_LOC)
        {
          gfc_error ("Assumed-type argument at %L is not permitted as actual"
                     " argument to the intrinsic %s", &a->expr->where,
@@ -3234,7 +3235,7 @@ add_functions (void)

   make_generic ("verify", GFC_ISYM_VERIFY, GFC_STD_F95);

-  add_sym_1 ("loc", GFC_ISYM_LOC, CLASS_IMPURE, ACTUAL_NO, BT_INTEGER, ii,
+  add_sym_1 ("loc", GFC_ISYM_LOC, CLASS_INQUIRY, ACTUAL_NO, BT_INTEGER, ii,
             GFC_STD_GNU, gfc_check_loc, NULL, gfc_resolve_loc,
             x, BT_UNKNOWN, 0, REQUIRED);
>From gcc-bugs-return-638082-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 13:39:46 2019
Return-Path: <gcc-bugs-return-638082-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70259 invoked by alias); 21 Mar 2019 13:39: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 68272 invoked by uid 48); 21 Mar 2019 13:39:42 -0000
From: "abel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/85528] ICE in code_motion_process_successors, at sel-sched.c:6403
Date: Thu, 21 Mar 2019 13:39: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.1
X-Bugzilla-Keywords: ice-checking, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: abel 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-85528-4-5Z2Rd8j5TJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85528-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85528-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02376.txt.bz2
Content-length: 448

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

Andrey Belevantsev <abel at gcc dot gnu.org> changed:

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

--- Comment #1 from Andrey Belevantsev <abel at gcc dot gnu.org> ---
Doesn't ICE for me at r259563 checkout -- anything else needed?
>From gcc-bugs-return-638083-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 14:11:29 2019
Return-Path: <gcc-bugs-return-638083-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102350 invoked by alias); 21 Mar 2019 14:11: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 98212 invoked by uid 48); 21 Mar 2019 14:11:25 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89512] [7/8/9 Regression] ICE in get_expr_operands, at tree-ssa-operands.c:882
Date: Thu, 21 Mar 2019 14: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
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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-89512-4-TAAs9Kw2Mf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89512-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89512-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02377.txt.bz2
Content-length: 405

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

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

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

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
So fixed on trunk?
>From gcc-bugs-return-638085-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 14:27:43 2019
Return-Path: <gcc-bugs-return-638085-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45227 invoked by alias); 21 Mar 2019 14:27: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 43646 invoked by uid 48); 21 Mar 2019 14:27:37 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88945] ICE in fold_convert_loc in FRE when using -fdump-tree-fre-details
Date: Thu, 21 Mar 2019 14:27: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: 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: 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-88945-4-23LndmyTaf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88945-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88945-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02379.txt.bz2
Content-length: 611

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

Bug 89779 Summary: [9 Regression]  internal compiler error: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in tree_nop_conversion_p, at tree.c:12798
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89779

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-638084-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 14:27:41 2019
Return-Path: <gcc-bugs-return-638084-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44914 invoked by alias); 21 Mar 2019 14:27: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 43305 invoked by uid 48); 21 Mar 2019 14:27:37 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBtaWRkbGUtZW5kLzg5Nzc5XSBbOSBSZWdyZXNzaW9uXSAgaW50ZXJu?= =?UTF-8?B?YWwgY29tcGlsZXIgZXJyb3I6IHRyZWUgY2hlY2s6IGV4cGVjdGVkIGNsYXNz?= =?UTF-8?B?IOKAmHR5cGXigJksIGhhdmUg4oCYZXhjZXB0aW9uYWzigJkgKGVycm9yX21h?= =?UTF-8?B?cmspIGluIHRyZWVfbm9wX2NvbnZlcnNpb25fcCwgYXQgdHJlZS5jOjEyNzk4?Date: Thu, 21 Mar 2019 14:27: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: 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-89779-4-sQV8Mq79BV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89779-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89779-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02378.txt.bz2
Content-length: 499

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

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

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

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed (aka mitigated), IVOPTs issue still there, patch waiting for comments.
>From gcc-bugs-return-638086-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 14:28:09 2019
Return-Path: <gcc-bugs-return-638086-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53750 invoked by alias); 21 Mar 2019 14:28: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 52423 invoked by uid 55); 21 Mar 2019 14:28:04 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBtaWRkbGUtZW5kLzg5Nzc5XSBbOSBSZWdyZXNzaW9uXSAgaW50ZXJu?= =?UTF-8?B?YWwgY29tcGlsZXIgZXJyb3I6IHRyZWUgY2hlY2s6IGV4cGVjdGVkIGNsYXNz?= =?UTF-8?B?IOKAmHR5cGXigJksIGhhdmUg4oCYZXhjZXB0aW9uYWzigJkgKGVycm9yX21h?= =?UTF-8?B?cmspIGluIHRyZWVfbm9wX2NvbnZlcnNpb25fcCwgYXQgdHJlZS5jOjEyNzk4?Date: Thu, 21 Mar 2019 14:28: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: 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-89779-4-It7KWuCB5m@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89779-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89779-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02380.txt.bz2
Content-length: 785

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

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Thu Mar 21 14:27:32 2019
New Revision: 269838

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

        PR tree-optimization/89779
        * tree.c (tree_nop_conversion): Consolidate and fix defensive
        checks with respect to released SSA names now having error_mark_node
        type.
        * fold-const.c (operand_equal_p): Likewise.

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

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr89779.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree.c
>From gcc-bugs-return-638087-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 14:31:06 2019
Return-Path: <gcc-bugs-return-638087-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74036 invoked by alias); 21 Mar 2019 14:31:06 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 73864 invoked by uid 48); 21 Mar 2019 14:31:01 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/81866] [7/8/9 Regression] ICE with a default template parameter which is a template class nested in a template class
Date: Thu, 21 Mar 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: c++
X-Bugzilla-Version: 7.1.1
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: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-81866-4-ugnCfyjom9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81866-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81866-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02381.txt.bz2
Content-length: 408

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

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

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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Started with r149188.
>From gcc-bugs-return-638088-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 14:35:07 2019
Return-Path: <gcc-bugs-return-638088-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78137 invoked by alias); 21 Mar 2019 14:35: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 78059 invoked by uid 48); 21 Mar 2019 14:35:02 -0000
From: "abel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/88652] sel-sched.c:1545:11: runtime error: index 2 out of bounds for type 'long unsigned int [2]'
Date: Thu, 21 Mar 2019 14:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: abel 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-88652-4-0mn8VQcSIx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88652-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88652-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02382.txt.bz2
Content-length: 769

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

Andrey Belevantsev <abel at gcc dot gnu.org> changed:

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

--- Comment #2 from Andrey Belevantsev <abel at gcc dot gnu.org> ---
(In reply to Martin Liška from comment #1)
> Any progress on this please?

Maybe a stupid question, but how do I debug this
If I read that source line correctly, we're just assuming that for a
HARD_REG_SET set and a (regno, mode) pair we can always have enough space in
the set for regno, regno + 1, ..., regno + hard_regno_nregs (regno, mode) - 1. 
Is that not true anymore?
>From gcc-bugs-return-638089-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 14:41:39 2019
Return-Path: <gcc-bugs-return-638089-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100214 invoked by alias); 21 Mar 2019 14:41:38 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 97904 invoked by uid 48); 21 Mar 2019 14:41:34 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/85528] ICE in code_motion_process_successors, at sel-sched.c:6403
Date: Thu, 21 Mar 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: rtl-optimization
X-Bugzilla-Version: 8.0.1
X-Bugzilla-Keywords: ice-checking, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: asolokha at gmx dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-85528-4-JGbUKyHjpz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85528-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85528-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02383.txt.bz2
Content-length: 377

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

--- Comment #2 from Arseny Solokha <asolokha at gmx dot com> ---
(In reply to Andrey Belevantsev from comment #1)
> Doesn't ICE for me at r259563 checkout -- anything else needed?

You may also want -m32, depending on your exact target[1]. I'll try to get
another testcase if needed.


[1] https://gcc.godbolt.org/z/SP6KQX
>From gcc-bugs-return-638090-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 14:42:44 2019
Return-Path: <gcc-bugs-return-638090-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108318 invoked by alias); 21 Mar 2019 14:42: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 108244 invoked by uid 48); 21 Mar 2019 14:42:39 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/88652] sel-sched.c:1545:11: runtime error: index 2 out of bounds for type 'long unsigned int [2]'
Date: Thu, 21 Mar 2019 14:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-88652-4-qrqbzHLidn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88652-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88652-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02384.txt.bz2
Content-length: 2225

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-03-21
     Ever confirmed|0                           |1

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Andrey Belevantsev from comment #2)
> (In reply to Martin Liška from comment #1)
> > Any progress on this please?
> 
> Maybe a stupid question, but how do I debug this
> If I read that source line correctly, we're just assuming that for a
> HARD_REG_SET set and a (regno, mode) pair we can always have enough space in
> the set for regno, regno + 1, ..., regno + hard_regno_nregs (regno, mode) -
> 1.  Is that not true anymore?

I suppose place in a gcc_assert (regno + i < FIRST_PSEUDO_REGISTER) and have it
assert?

I don't see where the code checks that regno is a hard register.  With 
the following I get

during RTL pass: sched1
pr87759.c:39:1: internal compiler error: in verify_target_availability, at
sel-sched.c:1545
   39 | }
      | ^
0x110f7c3 verify_target_availability
        /space/rguenther/src/svn/trunk2/gcc/sel-sched.c:1545
0x110fc31 find_best_reg_for_expr
        /space/rguenther/src/svn/trunk2/gcc/sel-sched.c:1680
0x11147e9 fill_vec_av_set
        /space/rguenther/src/svn/trunk2/gcc/sel-sched.c:3800
0x1114fea fill_ready_list
...

Index: gcc/sel-sched.c
===================================================================
--- gcc/sel-sched.c     (revision 269832)
+++ gcc/sel-sched.c     (working copy)
@@ -1542,6 +1542,7 @@ verify_target_availability (expr_t expr,
     {
       if (bitmap_bit_p (used_regs, regno + i))
         live_available = false;
+      gcc_assert (regno + i < FIRST_PSEUDO_REGISTER);
       if (TEST_HARD_REG_BIT (reg_rename_p->unavailable_hard_regs, regno + i))
         hard_available = false;
     }

(gdb) p regno
$1 = 158
>From gcc-bugs-return-638091-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 15:06:54 2019
Return-Path: <gcc-bugs-return-638091-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85128 invoked by alias); 21 Mar 2019 15:06: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 85080 invoked by uid 48); 21 Mar 2019 15:06:50 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89214] [7/8/9 Regression] ICE in digest_init_r, at cp/typeck2.c:1211 with -std=c++17
Date: Thu, 21 Mar 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: c++
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-checking, 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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89214-4-nfDygwGPmP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89214-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89214-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02385.txt.bz2
Content-length: 253

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

--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Somewhat cleaned up test:

struct A
{
  A (int);
};

struct BB
{
  A v;
};

struct B : BB
{};

B
foo ()
{
  return {{B {{42}}}};
}
>From gcc-bugs-return-638092-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 15:16:04 2019
Return-Path: <gcc-bugs-return-638092-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122686 invoked by alias); 21 Mar 2019 15:16: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 122587 invoked by uid 48); 21 Mar 2019 15:15:55 -0000
From: "abel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/88652] sel-sched.c:1545:11: runtime error: index 2 out of bounds for type 'long unsigned int [2]'
Date: Thu, 21 Mar 2019 15:16: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: abel 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-88652-4-O9TJN9Eb6E@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88652-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88652-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02386.txt.bz2
Content-length: 2073

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

--- Comment #4 from Andrey Belevantsev <abel at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #3)
> (In reply to Andrey Belevantsev from comment #2)
> > (In reply to Martin Liška from comment #1)
> > > Any progress on this please?
> > 
> > Maybe a stupid question, but how do I debug this
> > If I read that source line correctly, we're just assuming that for a
> > HARD_REG_SET set and a (regno, mode) pair we can always have enough space in
> > the set for regno, regno + 1, ..., regno + hard_regno_nregs (regno, mode) -
> > 1.  Is that not true anymore?
> 
> I suppose place in a gcc_assert (regno + i < FIRST_PSEUDO_REGISTER) and have
> it
> assert?

Looks like you're right :)  I'll fix that, then.

> 
> I don't see where the code checks that regno is a hard register.  With 
> the following I get
> 
> during RTL pass: sched1
> pr87759.c:39:1: internal compiler error: in verify_target_availability, at
> sel-sched.c:1545
>    39 | }
>       | ^
> 0x110f7c3 verify_target_availability
>         /space/rguenther/src/svn/trunk2/gcc/sel-sched.c:1545
> 0x110fc31 find_best_reg_for_expr
>         /space/rguenther/src/svn/trunk2/gcc/sel-sched.c:1680
> 0x11147e9 fill_vec_av_set
>         /space/rguenther/src/svn/trunk2/gcc/sel-sched.c:3800
> 0x1114fea fill_ready_list
> ...
> 
> Index: gcc/sel-sched.c
> ===================================================================
> --- gcc/sel-sched.c     (revision 269832)
> +++ gcc/sel-sched.c     (working copy)
> @@ -1542,6 +1542,7 @@ verify_target_availability (expr_t expr,
>      {
>        if (bitmap_bit_p (used_regs, regno + i))
>          live_available = false;
> +      gcc_assert (regno + i < FIRST_PSEUDO_REGISTER);
>        if (TEST_HARD_REG_BIT (reg_rename_p->unavailable_hard_regs, regno +
> i))
>          hard_available = false;
>      }
> 
> (gdb) p regno
> $1 = 158
>From gcc-bugs-return-638093-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 15:31:05 2019
Return-Path: <gcc-bugs-return-638093-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26175 invoked by alias); 21 Mar 2019 15:31: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 26009 invoked by uid 48); 21 Mar 2019 15:30:49 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89214] [7/8/9 Regression] ICE in digest_init_r, at cp/typeck2.c:1211 with -std=c++17
Date: Thu, 21 Mar 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: c++
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-checking, 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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89214-4-GLtN2uyK9y@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89214-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89214-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02387.txt.bz2
Content-length: 711

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

--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
And an extended test:

// PR c++/89214
// { dg-do compile { target c++17 } }

struct A
{
  A (int);
};

struct BB
{
  A a;
};

struct B : BB
{
};

void
foo ()
{
  B b1 = {42};
  B b2 = {{42}};
  B b3 = {{{42}}};

  B b4 = B{42};
  B b5 = B{{42}};
  B b6 = B{{{42}}};

  B b7 = {B{42}};
  B b8 = {B{{42}}};
  B b9 = {B{{{42}}}};

  B b10 = {{B{42}}};
  B b11 = {{B{{42}}}};
  B b12 = {{B{{{42}}}}};

  B bb1{42};
  B bb2{{42}};
  B bb3{{{42}}};

  B bb7{B{42}};
  B bb8{B{{42}}};
  B bb9{B{{{42}}}};

  B bb10{{B{42}}};
  B bb11{{B{{42}}}};
  B bb12{{B{{{42}}}}};
}
>From gcc-bugs-return-638094-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 15:53:20 2019
Return-Path: <gcc-bugs-return-638094-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32329 invoked by alias); 21 Mar 2019 15:53: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 32240 invoked by uid 48); 21 Mar 2019 15:53:16 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/85412] [8/9 Regression] ICE in put_TImodes, at sel-sched.c:7191
Date: Thu, 21 Mar 2019 15:53: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: deferred, 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-85412-4-eBTwsu0JVc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85412-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85412-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02388.txt.bz2
Content-length: 699

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

--- Comment #12 from Arseny Solokha <asolokha at gmx dot com> ---
Meanwhile, here's a C testcase that fails w/ the latest trunk snapshot on
x86_64:

__int128 jv;

void
zm (__int128 g9, unsigned short int sm, short int hk)
{
  while (hk < 1)
    {
      if (jv == 0)
        sm *= g9;

      if (sm < jv)
        hk = sm;

      g9 |= sm == hk;
    }
}

% x86_64-unknown-linux-gnu-gcc-9.0.0-alpha20190317 -march=bonnell -O1
-fpeephole2 -fschedule-insns2 -fsel-sched-pipelining -fselective-scheduling2
-ftree-loop-if-convert -fno-if-conversion -fno-move-loop-invariants
-fno-split-wide-types -fno-tree-dominator-opts -c erji5uml.c
>From gcc-bugs-return-638095-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 15:59:15 2019
Return-Path: <gcc-bugs-return-638095-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87739 invoked by alias); 21 Mar 2019 15:59: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 84470 invoked by uid 48); 21 Mar 2019 15:59:11 -0000
From: "jeremy at jeremysanders dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/87352] [7/8/9 Regression] Large stack usage with new gfortran
Date: Thu, 21 Mar 2019 15:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 8.2.0
X-Bugzilla-Keywords: compile-time-hog, memory-hog
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jeremy at jeremysanders dot net
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
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-87352-4-ZgvBhbp7rY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87352-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87352-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02389.txt.bz2
Content-length: 760

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

--- Comment #6 from Jeremy Sanders <jeremy at jeremysanders dot net> ---
I think I have worked out where the problem lies. The code contains fixed-sized
arrays of types containing allocatable arrays and other nested types with
allocatable arrays. If I switch the fixed-sized declarations to allocatable,
then the compile time and output size drastically reduce.

Changing three of the declarations in the source code to allocatable fixes the
problem (see attached test case patch).

I've also made a much smaller testcase (only 90 lines) which highlights the
problem. This source code takes 50s to compile on my system. Commenting out
line 73 and uncommenting line 74 reduces the compile time to 0.4s.
>From gcc-bugs-return-638096-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 16:00:47 2019
Return-Path: <gcc-bugs-return-638096-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24475 invoked by alias); 21 Mar 2019 16:00: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 24335 invoked by uid 48); 21 Mar 2019 16:00:40 -0000
From: "jeremy at jeremysanders dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/87352] [7/8/9 Regression] Large stack usage with new gfortran
Date: Thu, 21 Mar 2019 16:00:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 8.2.0
X-Bugzilla-Keywords: compile-time-hog, memory-hog
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jeremy at jeremysanders dot net
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
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-87352-4-licjkAWb95@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87352-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87352-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02390.txt.bz2
Content-length: 254

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

--- Comment #7 from Jeremy Sanders <jeremy at jeremysanders dot net> ---
Created attachment 46002
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46002&action=edit
Tiny patch to fix testcase
>From gcc-bugs-return-638097-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 16:01:14 2019
Return-Path: <gcc-bugs-return-638097-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25833 invoked by alias); 21 Mar 2019 16:01: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 25429 invoked by uid 48); 21 Mar 2019 16:01:10 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/82501] AddressSanitizer does not handle negative offset for first global variable
Date: Thu, 21 Mar 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: sanitizer
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: patch
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: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 10.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82501-4-jCMVqcaYJW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82501-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82501-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02391.txt.bz2
Content-length: 197

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

--- Comment #28 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Patches should go to gcc-patches@.  That is where reviews happen, too.
>From gcc-bugs-return-638098-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 16:01:39 2019
Return-Path: <gcc-bugs-return-638098-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27310 invoked by alias); 21 Mar 2019 16:01: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 27225 invoked by uid 48); 21 Mar 2019 16:01:35 -0000
From: "jeremy at jeremysanders dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/87352] [7/8/9 Regression] Large stack usage with new gfortran
Date: Thu, 21 Mar 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: fortran
X-Bugzilla-Version: 8.2.0
X-Bugzilla-Keywords: compile-time-hog, memory-hog
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jeremy at jeremysanders dot net
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
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-87352-4-WZSplBp8PM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87352-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87352-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02392.txt.bz2
Content-length: 286

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

--- Comment #8 from Jeremy Sanders <jeremy at jeremysanders dot net> ---
Created attachment 46003
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46003&action=edit
Much smaller testcase. Switch 73/74 to see the difference.
>From gcc-bugs-return-638099-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 16:29:37 2019
Return-Path: <gcc-bugs-return-638099-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9999 invoked by alias); 21 Mar 2019 16:29:37 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 9927 invoked by uid 48); 21 Mar 2019 16:29:34 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80559] [7/8/9 Regression] Segmentation fault on invalid initializer list template arguments
Date: Thu, 21 Mar 2019 16: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: 8.0
X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-80559-4-XWULm84PmJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80559-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80559-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02393.txt.bz2
Content-length: 829

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |paolo.carlini at oracle dot com

--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> ---
The ICE cannot be reproduced in trunk. Apparently it got fixed for 8.1.0 and
the fix backported to 7.2.0 too. Thus I think we can close this completely or
maybe remove the regression markers and change it to a pure diagnostic
enhancement issue, because certainly the series of four identical error
messages about template argument 2 doesn't make any sense. Barring different
opinions I'm going to do the latter in a day or so.
>From gcc-bugs-return-638100-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 16:38:14 2019
Return-Path: <gcc-bugs-return-638100-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96763 invoked by alias); 21 Mar 2019 16:38: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 96693 invoked by uid 48); 21 Mar 2019 16:38:10 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89784] Missing AVX512 intrinsics
Date: Thu, 21 Mar 2019 16:38: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: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-89784-4-xPUSU1OKUA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89784-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89784-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02394.txt.bz2
Content-length: 290

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

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

Untested patch, so far without testsuite coverage.
>From gcc-bugs-return-638101-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 17:00:55 2019
Return-Path: <gcc-bugs-return-638101-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23926 invoked by alias); 21 Mar 2019 17:00: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 23761 invoked by uid 48); 21 Mar 2019 17:00:40 -0000
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/89786] New: ice in add_expr, at tree.c:7767
Date: Thu, 21 Mar 2019 17:00:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dcb314 at hotmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-89786-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02395.txt.bz2
Content-length: 1270

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

            Bug ID: 89786
           Summary: ice in add_expr, at tree.c:7767
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

I just tried out some Ada testsuite code:

This works:

$ ~/gcc/results/bin/gcc -c -I./gnat.dg/   -I- ./gnat.dg/slice7.adb
slice7.adb:27:03: warning: variable "Obj" is read but never assigned
$ 

This doesn't:

$ ~/gcc/results/bin/gcc -c -I./gnat.dg/ -O2  -I- ./gnat.dg/slice7.adb
slice7.adb:27:03: warning: variable "Obj" is read but never assigned
+===========================GNAT BUG DETECTED==============================+
| 20190319 (experimental) (x86_64-pc-linux-gnu) GCC error:           |
| in add_expr, at tree.c:7767                                              |
| Error detected around ./gnat.dg/slice7.adb:35:3   

The problem seems to occur sometime before revision 269500.
slice7.adb is from the gcc/testsuite directory.
>From gcc-bugs-return-638102-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 17:21:58 2019
Return-Path: <gcc-bugs-return-638102-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 63379 invoked by alias); 21 Mar 2019 17:21: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 63297 invoked by uid 48); 21 Mar 2019 17:21:53 -0000
From: "tschwinge at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/89787] New: Fortran OpenACC 'routine' directive: parent namespace(s)
Date: Thu, 21 Mar 2019 17:21: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: 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: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-89787-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02396.txt.bz2
Content-length: 761

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

            Bug ID: 89787
           Summary: Fortran OpenACC 'routine' directive: parent
                    namespace(s)
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: openacc
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tschwinge at gcc dot gnu.org
                CC: aldot at gcc dot gnu.org
  Target Milestone: ---

See the suggested 'gfc_find_symtree' changes and then 'gfc_find_sym_tree'
comment in <https://gcc.gnu.org/ml/fortran/2018-10/msg00008.html>.  We'll need
to understand how to constuct such (nested?) namespaces, need test cases.
>From gcc-bugs-return-638103-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 17:22:30 2019
Return-Path: <gcc-bugs-return-638103-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64686 invoked by alias); 21 Mar 2019 17:22: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 64506 invoked by uid 48); 21 Mar 2019 17:22:24 -0000
From: "a.drobyshev at samsung dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/82501] AddressSanitizer does not handle negative offset for first global variable
Date: Thu, 21 Mar 2019 17:22: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: patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: a.drobyshev at samsung dot com
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: 10.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-82501-4-U0AUPiYcno@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82501-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82501-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02397.txt.bz2
Content-length: 355

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

--- Comment #29 from Andrey Drobyshev <a.drobyshev at samsung dot com> ---
(In reply to Segher Boessenkool from comment #28)
> Patches should go to gcc-patches@.  That is where reviews happen, too.

That's still a patch candidate. I want to hear other folks' opinion before it
goes to gcc-patches@.
>From gcc-bugs-return-638104-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 17:33:37 2019
Return-Path: <gcc-bugs-return-638104-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106796 invoked by alias); 21 Mar 2019 17:33: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 106687 invoked by uid 48); 21 Mar 2019 17:33:33 -0000
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/89788] New: trunk/liboffloadmic/runtime/emulator/coi_host.cpp:175]: (error) Null pointer dereference
Date: Thu, 21 Mar 2019 17:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dcb314 at hotmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-89788-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02398.txt.bz2
Content-length: 731

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

            Bug ID: 89788
           Summary: trunk/liboffloadmic/runtime/emulator/coi_host.cpp:175]
                    : (error) Null pointer dereference
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Source code is

  DIR *dir = opendir (path);
  if (dir == NULL)
    COIERROR ("Cannot open directory %s.", dir);

maybe better code:

  DIR *dir = opendir (path);
  if (dir == NULL)
    COIERROR ("Cannot open directory %s.", path);
>From gcc-bugs-return-638105-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 17:45:47 2019
Return-Path: <gcc-bugs-return-638105-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20243 invoked by alias); 21 Mar 2019 17:45: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 19878 invoked by uid 48); 21 Mar 2019 17:45:25 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89789] New: [9 Regression] Compile time hog during RPO VN
Date: Thu, 21 Mar 2019 17:45: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: compile-time-hog
X-Bugzilla-Severity: normal
X-Bugzilla-Who: asolokha at gmx dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-89789-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02399.txt.bz2
Content-length: 932

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

            Bug ID: 89789
           Summary: [9 Regression] Compile time hog during RPO VN
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: compile-time-hog
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

gcc-9.0.0-alpha20190317 snapshot (r269746) takes indefinite time when compiling
the following testcase at -O2 (-O3, -Ofast, -Os):

int x2;

void
m2 (void)
{
  goto gg;

  int fz, vh = 0;

  for (fz = 0; fz < 1; ++fz)
    {
      vh ^= x2;

      if (0)
        {
 gg:
          x2 %= 1;
          x2 += vh;
        }
    }
}

% timeout 10 gcc-9.0.0-alpha20190317 -O2 -c nzl2rb2h.c
zsh: exit 124   timeout 10 gcc-9.0.0-alpha20190317 -O2 -c nzl2rb2h.c
>From gcc-bugs-return-638106-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 17:49:16 2019
Return-Path: <gcc-bugs-return-638106-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65926 invoked by alias); 21 Mar 2019 17:49: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 65268 invoked by uid 48); 21 Mar 2019 17:49:10 -0000
From: "belyshev at depni dot sinp.msu.ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/89790] New: [9 Regression] ICE segfault in operand_equal_p() at fold-const.c:3000 with -Wduplicated-cond since r269838
Date: Thu, 21 Mar 2019 17:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: belyshev at depni dot sinp.msu.ru
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-89790-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02400.txt.bz2
Content-length: 2468

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

            Bug ID: 89790
           Summary: [9 Regression] ICE segfault in operand_equal_p() at
                    fold-const.c:3000 with -Wduplicated-cond since r269838
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: belyshev at depni dot sinp.msu.ru
                CC: rguenth at gcc dot gnu.org
  Target Milestone: ---

Fix for bug 89779 (r269838) caused ICE during gdb build.  Reduced testcase,
compile with -O -Wduplicated-cond:

template <typename> class a {
  typedef a b;
  template <typename> void c();
};
template <typename d> template <typename> void a<d>::c() {
  int f;
  b g;
  if (g == 0)
    ;
  else if (f)
    {
    }
}


Partial backtrace:

Program received signal SIGSEGV, Segmentation fault.
operand_equal_p (arg0=0x7ffff76df7e0, arg1=0x7ffff76df740, flags=16) at
../../gcc/gcc/fold-const.c:3000
3000          if (TYPE_UNSIGNED (TREE_TYPE (arg0)) != TYPE_UNSIGNED (TREE_TYPE
(arg1))
(gdb) bt
#0  operand_equal_p (arg0=0x7ffff76df7e0, arg1=0x7ffff76df740, flags=16) at
../../gcc/gcc/fold-const.c:3000
#1  0x0000000000c9ac8b in operand_equal_p (arg0=arg0@entry=0x7ffff76df7e0,
arg1=arg1@entry=0x7ffff76df740, 
    flags=flags@entry=0) at ../../gcc/gcc/fold-const.c:2950
#2  0x0000000000b0c572 in warn_duplicated_cond_add_or_warn (loc=<optimized
out>, cond=cond@entry=0x7ffff76df7e0, 
    chain=chain@entry=0x7fffffffdd88) at ../../gcc/gcc/c-family/c-warn.c:2318
#3  0x00000000009c4846 in cp_parser_selection_statement (chain=<optimized out>,
if_p=0x0, parser=0x7ffff7fd0ab0)
    at ../../gcc/gcc/cp/parser.c:11784
#4  cp_parser_statement (parser=0x7ffff7fd0ab0, in_statement_expr=0x0,
in_compound=<optimized out>, if_p=0x0, 
    chain=<optimized out>, loc_after_labels=0x7fffffffddec) at
../../gcc/gcc/cp/parser.c:11147
#5  0x00000000009de4f8 in cp_parser_implicitly_scoped_statement
(parser=parser@entry=0x7ffff7fd0ab0, 
    if_p=if_p@entry=0x0, guard_tinfo=..., chain=0x25323d0) at
../../gcc/gcc/cp/parser.c:13004
#6  0x00000000009c4788 in cp_parser_selection_statement (chain=<optimized out>,
if_p=0x0, parser=0x7ffff7fd0ab0)
    at ../../gcc/gcc/cp/parser.c:11865
...
>From gcc-bugs-return-638107-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 18:22:24 2019
Return-Path: <gcc-bugs-return-638107-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95477 invoked by alias); 21 Mar 2019 18:22: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 95407 invoked by uid 48); 21 Mar 2019 18:22:17 -0000
From: "qrzhang at gatech dot edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/89463] debug information for iteractor of an empty loop is gone (at -O3)
Date: Thu, 21 Mar 2019 18:22: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: qrzhang at gatech dot edu
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-89463-4-tKNoSVK54I@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89463-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89463-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02401.txt.bz2
Content-length: 500

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

--- Comment #4 from Qirun Zhang <qrzhang at gatech dot edu> ---
Bisect points to r151362.

commit ff79704e04af919c4fe501c7dceca8b21cced614
Author: aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Thu Sep 3 05:24:57 2009 +0000

    * toplev.c (process_options): Enable var-tracking-assignments
    by default if var-tracking is enabled.


    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151362
138bc75d-0d04-0410-961f-82ee72b054a4
>From gcc-bugs-return-638108-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 18:36:25 2019
Return-Path: <gcc-bugs-return-638108-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22168 invoked by alias); 21 Mar 2019 18:36: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 22128 invoked by uid 48); 21 Mar 2019 18:36:21 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89214] [7/8/9 Regression] ICE in digest_init_r, at cp/typeck2.c:1211 with -std=c++17
Date: Thu, 21 Mar 2019 18:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-checking, 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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-89214-4-Ptwe6K508F@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89214-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89214-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02402.txt.bz2
Content-length: 384

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

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
>From gcc-bugs-return-638109-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 18:39:31 2019
Return-Path: <gcc-bugs-return-638109-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26243 invoked by alias); 21 Mar 2019 18:39: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 26175 invoked by uid 48); 21 Mar 2019 18:39:27 -0000
From: "qrzhang at gatech dot edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/89791] New: gcc generates wrong debug information at -O3
Date: Thu, 21 Mar 2019 18:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: qrzhang at gatech dot edu
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-89791-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02403.txt.bz2
Content-length: 1782

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

            Bug ID: 89791
           Summary: gcc generates wrong debug information at -O3
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: qrzhang at gatech dot edu
  Target Milestone: ---

It affects gcc-4.6 to gcc-trunk. The expected output is "i=7" or <optimized
out>. With "-O3", it outputs "i=0".

I am using two files since "noipa" attribute directive is not supported in
early gcc versions.

Bisect points to r154402.

commit 43e54ec3e93dd2ef495375ead1f1eac467a727d1
Author: aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Sat Nov 21 05:06:24 2009 +0000

    * tree-ssa.c (find_released_ssa_name): Handle NULL wi.
    (insert_debug_temp_for_var_def): Handle degenerate PHI nodes.
    (insert_debug_temps_for_defs): Handle PHI nodes.
    * tree-ssa-dom.c (degenerate_phi_result): Don't crash on released
    SSA names.

    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154402
138bc75d-0d04-0410-961f-82ee72b054a4


$ gcc-trunk -v
gcc version 9.0.1 20190321 (experimental) [trunk revision 269832] (GCC)


$ cat abc.c
int main() {
  int i = 0;
  for (; i < 7; i++)
    ;
optimize_me_not();
}


$ cat outer.c
void optimize_me_not() {}

# correct output #
$ gcc-trunk -g  abc.c outer.c
$ gdb -x cmds -batch a.out
Breakpoint 1 at 0x40046d: file abc.c, line 5.

Breakpoint 1, main () at abc.c:5
5       optimize_me_not();
$1 = 7

# Wrong output #
$ gcc-trunk -g  abc.c outer.c
$ gdb -x cmds -batch a.out
Breakpoint 1 at 0x400380: file abc.c, line 5.

Breakpoint 1, main () at abc.c:5
5       optimize_me_not();
$1 = 0
>From gcc-bugs-return-638110-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 18:45:00 2019
Return-Path: <gcc-bugs-return-638110-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47633 invoked by alias); 21 Mar 2019 18:44: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 47580 invoked by uid 48); 21 Mar 2019 18:44:56 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89214] [7/8/9 Regression] ICE in digest_init_r, at cp/typeck2.c:1211 with -std=c++17
Date: Thu, 21 Mar 2019 18: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-checking, 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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89214-4-S0SYhWLiY6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89214-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89214-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02404.txt.bz2
Content-length: 241

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

--- Comment #8 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Another version, without a converting ctor:

struct B {
  int c;
};

struct D : B { };

void
fn ()
{
  D b{{D{42}}};
}
>From gcc-bugs-return-638111-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 18:55:27 2019
Return-Path: <gcc-bugs-return-638111-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49106 invoked by alias); 21 Mar 2019 18:55:27 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 44940 invoked by uid 55); 21 Mar 2019 18:55:23 -0000
From: "tschwinge at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/29383] Fortran 2003/F95[TR15580:1999]: Floating point exception (IEEE) support
Date: Thu, 21 Mar 2019 18: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: 4.2.0
X-Bugzilla-Keywords: patch
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: tschwinge at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: fxcoudert at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-29383-4-Tg8w7RYiLJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-29383-4@http.gcc.gnu.org/bugzilla/>
References: <bug-29383-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02405.txt.bz2
Content-length: 944

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

--- Comment #17 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Author: tschwinge
Date: Thu Mar 21 18:54:50 2019
New Revision: 269845

URL: https://gcc.gnu.org/viewcvs?rev=269845&root=gcc&view=rev
Log:
[testsuite, Fortran] Consistently set 'DEFAULT_FFLAGS'

In the same 'runtest' instance, 'global' variables persist from one '*.exp'
file to another.

All other '*.exp' files are using " -pedantic-errors" instead of the empty
string as the default for 'DEFAULT_FFLAGS'.  Thus this setting of
'DEFAULT_FFLAGS' is not idempotent, depends on whether
'gfortran.dg/ieee/ieee.exp', or an other defining '*.exp' file is executed
first.

        gcc/testsuite/
        PR fortran/29383
        * gfortran.dg/ieee/ieee.exp (DEFAULT_FFLAGS): Set the same as in
        other '*.exp' files.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/ieee/ieee.exp
>From gcc-bugs-return-638112-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 18:58:16 2019
Return-Path: <gcc-bugs-return-638112-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85159 invoked by alias); 21 Mar 2019 18:58: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 85083 invoked by uid 55); 21 Mar 2019 18:58:13 -0000
From: "tschwinge at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/29383] Fortran 2003/F95[TR15580:1999]: Floating point exception (IEEE) support
Date: Thu, 21 Mar 2019 18: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: 4.2.0
X-Bugzilla-Keywords: patch
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: tschwinge at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: fxcoudert at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-29383-4-ddOp1mVSOi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-29383-4@http.gcc.gnu.org/bugzilla/>
References: <bug-29383-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02406.txt.bz2
Content-length: 991

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

--- Comment #18 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Author: tschwinge
Date: Thu Mar 21 18:57:39 2019
New Revision: 269846

URL: https://gcc.gnu.org/viewcvs?rev=269846&root=gcc&view=rev
Log:
[testsuite, Fortran] Consistently set 'DEFAULT_FFLAGS'

In the same 'runtest' instance, 'global' variables persist from one '*.exp'
file to another.

All other '*.exp' files are using " -pedantic-errors" instead of the empty
string as the default for 'DEFAULT_FFLAGS'.  Thus this setting of
'DEFAULT_FFLAGS' is not idempotent, depends on whether
'gfortran.dg/ieee/ieee.exp', or an other defining '*.exp' file is executed
first.

        gcc/testsuite/
        PR fortran/29383
        * gfortran.dg/ieee/ieee.exp (DEFAULT_FFLAGS): Set the same as in
        other '*.exp' files.

trunk r269845

Modified:
    branches/gcc-8-branch/gcc/testsuite/ChangeLog
    branches/gcc-8-branch/gcc/testsuite/gfortran.dg/ieee/ieee.exp
>From gcc-bugs-return-638113-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 18:58:32 2019
Return-Path: <gcc-bugs-return-638113-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85974 invoked by alias); 21 Mar 2019 18:58: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 85912 invoked by uid 55); 21 Mar 2019 18:58:28 -0000
From: "tschwinge at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/29383] Fortran 2003/F95[TR15580:1999]: Floating point exception (IEEE) support
Date: Thu, 21 Mar 2019 18: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: 4.2.0
X-Bugzilla-Keywords: patch
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: tschwinge at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: fxcoudert at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-29383-4-WJXxOMRpdz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-29383-4@http.gcc.gnu.org/bugzilla/>
References: <bug-29383-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02407.txt.bz2
Content-length: 991

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

--- Comment #19 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Author: tschwinge
Date: Thu Mar 21 18:57:56 2019
New Revision: 269847

URL: https://gcc.gnu.org/viewcvs?rev=269847&root=gcc&view=rev
Log:
[testsuite, Fortran] Consistently set 'DEFAULT_FFLAGS'

In the same 'runtest' instance, 'global' variables persist from one '*.exp'
file to another.

All other '*.exp' files are using " -pedantic-errors" instead of the empty
string as the default for 'DEFAULT_FFLAGS'.  Thus this setting of
'DEFAULT_FFLAGS' is not idempotent, depends on whether
'gfortran.dg/ieee/ieee.exp', or an other defining '*.exp' file is executed
first.

        gcc/testsuite/
        PR fortran/29383
        * gfortran.dg/ieee/ieee.exp (DEFAULT_FFLAGS): Set the same as in
        other '*.exp' files.

trunk r269845

Modified:
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
    branches/gcc-7-branch/gcc/testsuite/gfortran.dg/ieee/ieee.exp
>From gcc-bugs-return-638115-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 19:17:30 2019
Return-Path: <gcc-bugs-return-638115-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118076 invoked by alias); 21 Mar 2019 19:17: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 117739 invoked by uid 55); 21 Mar 2019 19:17:26 -0000
From: "tschwinge at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/56408] Fix dependency handling of testsuite/gfortran.dg
Date: Thu, 21 Mar 2019 19: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.8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tschwinge at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-56408-4-GoEUMzH539@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56408-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56408-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02409.txt.bz2
Content-length: 788

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

--- Comment #13 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Author: tschwinge
Date: Thu Mar 21 19:16:54 2019
New Revision: 269849

URL: https://gcc.gnu.org/viewcvs?rev=269849&root=gcc&view=rev
Log:
[testsuite, Fortran] Apply DejaGnu 1.4.4 work-around also to
'gfortran.dg/coarray/caf.exp:dg-compile-aux-modules'

See trunk r215293.  This unifies all 'dg-compile-aux-modules' instances.

        gcc/testsuite/
        PR fortran/56408
        * gfortran.dg/coarray/caf.exp (dg-compile-aux-modules): Workaround
        missing nexted dg-test call support in dejaGNU 1.4.4.

trunk r269848

Modified:
    branches/gcc-8-branch/gcc/testsuite/ChangeLog
    branches/gcc-8-branch/gcc/testsuite/gfortran.dg/coarray/caf.exp
>From gcc-bugs-return-638114-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 19:17:08 2019
Return-Path: <gcc-bugs-return-638114-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116309 invoked by alias); 21 Mar 2019 19:17:07 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 115976 invoked by uid 55); 21 Mar 2019 19:17:03 -0000
From: "tschwinge at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/56408] Fix dependency handling of testsuite/gfortran.dg
Date: Thu, 21 Mar 2019 19: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.8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tschwinge at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-56408-4-K5ceV5AlHQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56408-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56408-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02408.txt.bz2
Content-length: 741

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

--- Comment #12 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Author: tschwinge
Date: Thu Mar 21 19:16:29 2019
New Revision: 269848

URL: https://gcc.gnu.org/viewcvs?rev=269848&root=gcc&view=rev
Log:
[testsuite, Fortran] Apply DejaGnu 1.4.4 work-around also to
'gfortran.dg/coarray/caf.exp:dg-compile-aux-modules'

See trunk r215293.  This unifies all 'dg-compile-aux-modules' instances.

        gcc/testsuite/
        PR fortran/56408
        * gfortran.dg/coarray/caf.exp (dg-compile-aux-modules): Workaround
        missing nexted dg-test call support in dejaGNU 1.4.4.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/coarray/caf.exp
>From gcc-bugs-return-638116-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 19:17:48 2019
Return-Path: <gcc-bugs-return-638116-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119468 invoked by alias); 21 Mar 2019 19:17: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 119382 invoked by uid 55); 21 Mar 2019 19:17:44 -0000
From: "tschwinge at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/56408] Fix dependency handling of testsuite/gfortran.dg
Date: Thu, 21 Mar 2019 19: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.8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tschwinge at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-56408-4-aqWqQGEJYg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56408-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56408-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02410.txt.bz2
Content-length: 788

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

--- Comment #14 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Author: tschwinge
Date: Thu Mar 21 19:17:12 2019
New Revision: 269850

URL: https://gcc.gnu.org/viewcvs?rev=269850&root=gcc&view=rev
Log:
[testsuite, Fortran] Apply DejaGnu 1.4.4 work-around also to
'gfortran.dg/coarray/caf.exp:dg-compile-aux-modules'

See trunk r215293.  This unifies all 'dg-compile-aux-modules' instances.

        gcc/testsuite/
        PR fortran/56408
        * gfortran.dg/coarray/caf.exp (dg-compile-aux-modules): Workaround
        missing nexted dg-test call support in dejaGNU 1.4.4.

trunk r269848

Modified:
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
    branches/gcc-7-branch/gcc/testsuite/gfortran.dg/coarray/caf.exp
>From gcc-bugs-return-638118-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 19:31:56 2019
Return-Path: <gcc-bugs-return-638118-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79189 invoked by alias); 21 Mar 2019 19:31: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 78992 invoked by uid 55); 21 Mar 2019 19:31:46 -0000
From: "tschwinge at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/56408] Fix dependency handling of testsuite/gfortran.dg
Date: Thu, 21 Mar 2019 19:31: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.8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tschwinge at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-56408-4-FDa87MbHKR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56408-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56408-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02412.txt.bz2
Content-length: 915

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

--- Comment #16 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Author: tschwinge
Date: Thu Mar 21 19:31:09 2019
New Revision: 269852

URL: https://gcc.gnu.org/viewcvs?rev=269852&root=gcc&view=rev
Log:
[testsuite] Fix 'dg-compile-aux-modules' diagnostic

        gcc/testsuite/
        PR fortran/56408
        * gcc.target/powerpc/ppc-fortran/ppc-fortran.exp
        (dg-compile-aux-modules): Fix diagnostic.
        * gfortran.dg/coarray/caf.exp (dg-compile-aux-modules): Likewise.
        * gfortran.dg/dg.exp (dg-compile-aux-modules): Likewise.

trunk r269851

Modified:
    branches/gcc-8-branch/gcc/testsuite/ChangeLog
   
branches/gcc-8-branch/gcc/testsuite/gcc.target/powerpc/ppc-fortran/ppc-fortran.exp
    branches/gcc-8-branch/gcc/testsuite/gfortran.dg/coarray/caf.exp
    branches/gcc-8-branch/gcc/testsuite/gfortran.dg/dg.exp
>From gcc-bugs-return-638117-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 19:31:11 2019
Return-Path: <gcc-bugs-return-638117-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77337 invoked by alias); 21 Mar 2019 19:31: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 77019 invoked by uid 55); 21 Mar 2019 19:30:55 -0000
From: "tschwinge at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/56408] Fix dependency handling of testsuite/gfortran.dg
Date: Thu, 21 Mar 2019 19:31: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.8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tschwinge at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-56408-4-4tEEflRt58@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56408-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56408-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02411.txt.bz2
Content-length: 828

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

--- Comment #15 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Author: tschwinge
Date: Thu Mar 21 19:29:57 2019
New Revision: 269851

URL: https://gcc.gnu.org/viewcvs?rev=269851&root=gcc&view=rev
Log:
[testsuite] Fix 'dg-compile-aux-modules' diagnostic

        gcc/testsuite/
        PR fortran/56408
        * gcc.target/powerpc/ppc-fortran/ppc-fortran.exp
        (dg-compile-aux-modules): Fix diagnostic.
        * gfortran.dg/coarray/caf.exp (dg-compile-aux-modules): Likewise.
        * gfortran.dg/dg.exp (dg-compile-aux-modules): Likewise.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/powerpc/ppc-fortran/ppc-fortran.exp
    trunk/gcc/testsuite/gfortran.dg/coarray/caf.exp
    trunk/gcc/testsuite/gfortran.dg/dg.exp
>From gcc-bugs-return-638119-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 19:32:06 2019
Return-Path: <gcc-bugs-return-638119-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80047 invoked by alias); 21 Mar 2019 19:32: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 79983 invoked by uid 55); 21 Mar 2019 19:32:03 -0000
From: "tschwinge at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/56408] Fix dependency handling of testsuite/gfortran.dg
Date: Thu, 21 Mar 2019 19: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: 4.8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tschwinge at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-56408-4-7rjljDtNL1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56408-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56408-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02413.txt.bz2
Content-length: 915

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

--- Comment #17 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Author: tschwinge
Date: Thu Mar 21 19:31:30 2019
New Revision: 269853

URL: https://gcc.gnu.org/viewcvs?rev=269853&root=gcc&view=rev
Log:
[testsuite] Fix 'dg-compile-aux-modules' diagnostic

        gcc/testsuite/
        PR fortran/56408
        * gcc.target/powerpc/ppc-fortran/ppc-fortran.exp
        (dg-compile-aux-modules): Fix diagnostic.
        * gfortran.dg/coarray/caf.exp (dg-compile-aux-modules): Likewise.
        * gfortran.dg/dg.exp (dg-compile-aux-modules): Likewise.

trunk r269851

Modified:
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
   
branches/gcc-7-branch/gcc/testsuite/gcc.target/powerpc/ppc-fortran/ppc-fortran.exp
    branches/gcc-7-branch/gcc/testsuite/gfortran.dg/coarray/caf.exp
    branches/gcc-7-branch/gcc/testsuite/gfortran.dg/dg.exp
>From gcc-bugs-return-638120-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 19:42:11 2019
Return-Path: <gcc-bugs-return-638120-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103246 invoked by alias); 21 Mar 2019 19:42: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 103138 invoked by uid 48); 21 Mar 2019 19:42:07 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89214] [7/8/9 Regression] ICE in digest_init_r, at cp/typeck2.c:1211 with -std=c++17
Date: Thu, 21 Mar 2019 19:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-checking, 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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89214-4-ZT6Ossf6QT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89214-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89214-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02414.txt.bz2
Content-length: 831

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

--- Comment #9 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
And a fix:

--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -5978,6 +5978,18 @@ reshape_init_class (tree type, reshape_iter *d, bool
first_initializer_p,
       field = next_initializable_field (DECL_CHAIN (field));
     }

+  /* "If T is a class type and the initializer list has a single
+     element of type cv U, where U is T or a class derived from T,
+     the object is initialized from that element."  */
+  if (cxx_dialect >= cxx11
+      && BRACE_ENCLOSED_INITIALIZER_P (new_init)
+      && CONSTRUCTOR_NELTS (new_init) == 1)
+    {
+      tree elt = CONSTRUCTOR_ELT (new_init, 0)->value;
+      if (reference_related_p (type, TREE_TYPE (elt)))
+   return elt;
+    }
+
   return new_init;
 }
>From gcc-bugs-return-638121-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 19:46:04 2019
Return-Path: <gcc-bugs-return-638121-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109615 invoked by alias); 21 Mar 2019 19: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 109133 invoked by uid 55); 21 Mar 2019 19:45:52 -0000
From: "tschwinge at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/72741] Fortran OpenACC routine directive doesn't properly handle clauses specifying the level of parallelism
Date: Thu, 21 Mar 2019 19: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: 7.0
X-Bugzilla-Keywords: openacc
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tschwinge at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: tschwinge at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-72741-4-lniIi8jTlW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-72741-4@http.gcc.gnu.org/bugzilla/>
References: <bug-72741-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02415.txt.bz2
Content-length: 1835

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

--- Comment #12 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Author: tschwinge
Date: Thu Mar 21 19:44:45 2019
New Revision: 269855

URL: https://gcc.gnu.org/viewcvs?rev=269855&root=gcc&view=rev
Log:
[PR72741] Encode OpenACC 'routine' directive's level of parallelism inside
Fortran module files

If 'use'ing with an old GCC a new module file (with OpenACC 'routine'
directive's level of parallelism encoded), then that expectedly fails as
follows:

    f951: Fatal Error: Reading module 'routine_module_mod_1' at line 27 column
21: find_enum(): Enum not found

If 'use'ing with a new GCC an old module file (without OpenACC 'routine'
directive's level of parallelism encoded), then that (silently) continues to
accept the module file, and will proceed with the previous, erroneous behavior.

These seem to be acceptable compromises, instead of incrementing 'MOD_VERSION'.

        gcc/fortran/
        PR fortran/72741
        * module.c (verify_OACC_ROUTINE_LOP_NONE): New function.
        (enum ab_attribute): Add AB_OACC_ROUTINE_LOP_GANG,
        AB_OACC_ROUTINE_LOP_WORKER, AB_OACC_ROUTINE_LOP_VECTOR,
        AB_OACC_ROUTINE_LOP_SEQ.
        (attr_bits): Add these.
        (mio_symbol_attribute): Handle these.
        gcc/testsuite/
        PR fortran/72741
        * gfortran.dg/goacc/routine-module-1.f90: New file.
        * gfortran.dg/goacc/routine-module-2.f90: Likewise.
        * gfortran.dg/goacc/routine-module-mod-1.f90: Likewise.

Added:
    trunk/gcc/testsuite/gfortran.dg/goacc/routine-module-1.f90
    trunk/gcc/testsuite/gfortran.dg/goacc/routine-module-2.f90
    trunk/gcc/testsuite/gfortran.dg/goacc/routine-module-mod-1.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/module.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-638122-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 19:55:29 2019
Return-Path: <gcc-bugs-return-638122-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127626 invoked by alias); 21 Mar 2019 19:55: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 127555 invoked by uid 55); 21 Mar 2019 19:55:24 -0000
From: "tschwinge at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/72741] Fortran OpenACC routine directive doesn't properly handle clauses specifying the level of parallelism
Date: Thu, 21 Mar 2019 19: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: 7.0
X-Bugzilla-Keywords: openacc
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tschwinge at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: tschwinge at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-72741-4-yA7q8xJFl8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-72741-4@http.gcc.gnu.org/bugzilla/>
References: <bug-72741-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02416.txt.bz2
Content-length: 764

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

--- Comment #13 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Author: tschwinge
Date: Thu Mar 21 19:54:51 2019
New Revision: 269856

URL: https://gcc.gnu.org/viewcvs?rev=269856&root=gcc&view=rev
Log:
[PR72741] The name in a Fortran OpenACC 'routine' directive refers to the
containing subroutine or function

        gcc/fortran/
        PR fortran/72741
        * openmp.c (gfc_match_oacc_routine): Clarify.
        gcc/testsuite/
        PR fortran/72741
        * gfortran.dg/goacc/routine-module-mod-1.f90: Update.

Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/openmp.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/goacc/routine-module-mod-1.f90
>From gcc-bugs-return-638123-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 20:03:18 2019
Return-Path: <gcc-bugs-return-638123-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48911 invoked by alias); 21 Mar 2019 20:03: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 48857 invoked by uid 55); 21 Mar 2019 20:03:14 -0000
From: "tschwinge at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/89773] Fortran OpenACC 'routine' directive refuses procedures with implicit EXTERNAL attribute
Date: Thu, 21 Mar 2019 20:03: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: openacc
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tschwinge at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: tschwinge at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89773-4-lL78KeT5MF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89773-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89773-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02417.txt.bz2
Content-length: 1271

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

--- Comment #1 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Author: tschwinge
Date: Thu Mar 21 20:02:42 2019
New Revision: 269857

URL: https://gcc.gnu.org/viewcvs?rev=269857&root=gcc&view=rev
Log:
[PR89773] Fortran OpenACC 'routine' directive refuses procedures with implicit
EXTERNAL attribute

        gcc/fortran/
        PR fortran/89773
        * gfortran.h (gfc_oacc_routine_name): Add loc member.
        (gfc_resolve_oacc_routines): Declare.
        * openmp.c (gfc_match_oacc_routine): Move some error checking
        into...
        (gfc_resolve_oacc_routines): ... this new function.
        * resolve.c (resolve_codes): Call it.
        gcc/testsuite/
        PR fortran/89773
        * gfortran.dg/goacc/pr89773.f90: New file.
        * gfortran.dg/goacc/pr77765.f90: Adjust.
        * gfortran.dg/goacc/routine-6.f90: Adjust, and extend.

Added:
    trunk/gcc/testsuite/gfortran.dg/goacc/pr89773.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/gfortran.h
    trunk/gcc/fortran/openmp.c
    trunk/gcc/fortran/resolve.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/goacc/pr77765.f90
    trunk/gcc/testsuite/gfortran.dg/goacc/routine-6.f90
>From gcc-bugs-return-638124-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 20:04:33 2019
Return-Path: <gcc-bugs-return-638124-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54066 invoked by alias); 21 Mar 2019 20:04: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 50930 invoked by uid 48); 21 Mar 2019 20:04:29 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/89787] Fortran OpenACC 'routine' directive: parent namespace(s)
Date: Thu, 21 Mar 2019 20: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: 9.0
X-Bugzilla-Keywords: openacc
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 see_also everconfirmed
Message-ID: <bug-89787-4-kcToSQD9fb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89787-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89787-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02418.txt.bz2
Content-length: 710

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2019-03-21
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=78377
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
What is this PR about?

Note that it may be related to pr78377 item 5.
>From gcc-bugs-return-638125-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 20:07:51 2019
Return-Path: <gcc-bugs-return-638125-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100715 invoked by alias); 21 Mar 2019 20:07: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 100654 invoked by uid 48); 21 Mar 2019 20:07:47 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/78377] [cleanup] gfc_get_tbp_symtree vs. gfc_get_sym_tree
Date: Thu, 21 Mar 2019 20:07: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: 7.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: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-78377-4-i50Gg5Ntni@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78377-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78377-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02419.txt.bz2
Content-length: 542

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-03-21
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
This kind of PRs is a nightmare when sorting the bug list.
>From gcc-bugs-return-638126-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 20:10:16 2019
Return-Path: <gcc-bugs-return-638126-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 104329 invoked by alias); 21 Mar 2019 20:10: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 104243 invoked by uid 48); 21 Mar 2019 20:10:11 -0000
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/89790] [9 Regression] ICE segfault in operand_equal_p() at fold-const.c:3000 with -Wduplicated-cond since r269838
Date: Thu, 21 Mar 2019 20:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dcb314 at hotmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-89790-4-fWN1poiB8P@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89790-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89790-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02420.txt.bz2
Content-length: 903

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

David Binderman <dcb314 at hotmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dcb314 at hotmail dot com

--- Comment #1 from David Binderman <dcb314 at hotmail dot com> ---
I see something similar during bootstrap with -Wduplicated-cond.

0xc91b30 warn_duplicated_cond_add_or_warn(unsigned int, tree_node*,
vec<tree_node*, va_heap, vl_ptr>**)
        ../../trunk/gcc/c-family/c-warn.c:2318
0xa5dfd4 cp_parser_selection_statement
        ../../trunk/gcc/cp/parser.c:11784
0xa5ccc4 cp_parser_statement
        ../../trunk/gcc/cp/parser.c:11147
0xa6100c cp_parser_implicitly_scoped_statement
        ../../trunk/gcc/cp/parser.c:13004

This used to work at revision 269800 and doesn't at 269850.
>From gcc-bugs-return-638127-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 20:14:30 2019
Return-Path: <gcc-bugs-return-638127-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130410 invoked by alias); 21 Mar 2019 20:14:30 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 130341 invoked by uid 55); 21 Mar 2019 20:14:22 -0000
From: "tschwinge at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/72741] Fortran OpenACC routine directive doesn't properly handle clauses specifying the level of parallelism
Date: Thu, 21 Mar 2019 20: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: 7.0
X-Bugzilla-Keywords: openacc
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tschwinge at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: tschwinge at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-72741-4-5ewuiqkQ5W@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-72741-4@http.gcc.gnu.org/bugzilla/>
References: <bug-72741-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02421.txt.bz2
Content-length: 2028

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

--- Comment #14 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Author: tschwinge
Date: Thu Mar 21 20:13:44 2019
New Revision: 269858

URL: https://gcc.gnu.org/viewcvs?rev=269858&root=gcc&view=rev
Log:
[PR72741] Properly handle clauses specifying the level of parallelism for
'external' Fortran OpenACC routines

..., so as to also for these enable the generic middle end OMP code to verify
proper nesting of loops/routines regarding their levels of parallelism.

        gcc/fortran/
        PR fortran/72741
        * openmp.c (gfc_match_oacc_routine): Set the level of parallelism
        for all variants.
        (gfc_resolve_oacc_routines): Call gfc_add_omp_declare_target.
        gcc/testsuite/
        PR fortran/72741
        * c-c++-common/goacc/routine-3-extern.c: New file.
        * c-c++-common/goacc/routine-3.c: Adjust.
        * c-c++-common/goacc/routine-4-extern.c: New file.
        * c-c++-common/goacc/routine-4.c: Adjust.
        * gfortran.dg/goacc/routine-module-3.f90: New file.
        * gfortran.dg/goacc/routine-external-level-of-parallelism-1.f: New
        file.
        * gfortran.dg/goacc/routine-external-level-of-parallelism-2.f:
        Likewise.

Added:
    trunk/gcc/testsuite/c-c++-common/goacc/routine-3-extern.c
      - copied, changed from r269857,
trunk/gcc/testsuite/c-c++-common/goacc/routine-3.c
    trunk/gcc/testsuite/c-c++-common/goacc/routine-4-extern.c
      - copied, changed from r269857,
trunk/gcc/testsuite/c-c++-common/goacc/routine-4.c
   
trunk/gcc/testsuite/gfortran.dg/goacc/routine-external-level-of-parallelism-1.f
   
trunk/gcc/testsuite/gfortran.dg/goacc/routine-external-level-of-parallelism-2.f
    trunk/gcc/testsuite/gfortran.dg/goacc/routine-module-3.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/openmp.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/c-c++-common/goacc/routine-3.c
    trunk/gcc/testsuite/c-c++-common/goacc/routine-4.c
>From gcc-bugs-return-638128-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 20:45:58 2019
Return-Path: <gcc-bugs-return-638128-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109130 invoked by alias); 21 Mar 2019 20:45: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 109026 invoked by uid 48); 21 Mar 2019 20:45:53 -0000
From: "qrzhang at gatech dot edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/89454] gcc generates wrong debug information at -Og
Date: Thu, 21 Mar 2019 20:45: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: qrzhang at gatech dot edu
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89454-4-UDJPXlLn9D@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89454-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89454-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02422.txt.bz2
Content-length: 500

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

--- Comment #1 from Qirun Zhang <qrzhang at gatech dot edu> ---
Bisect points to r151362.

commit ff79704e04af919c4fe501c7dceca8b21cced614
Author: aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Thu Sep 3 05:24:57 2009 +0000

    * toplev.c (process_options): Enable var-tracking-assignments
    by default if var-tracking is enabled.


    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151362
138bc75d-0d04-0410-961f-82ee72b054a4
>From gcc-bugs-return-638129-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 20:47:54 2019
Return-Path: <gcc-bugs-return-638129-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114596 invoked by alias); 21 Mar 2019 20:47: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 114473 invoked by uid 48); 21 Mar 2019 20:47:50 -0000
From: "qrzhang at gatech dot edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/89454] gcc generates wrong debug information at -Og
Date: Thu, 21 Mar 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: debug
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: wrong-debug
X-Bugzilla-Severity: normal
X-Bugzilla-Who: qrzhang at gatech dot edu
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89454-4-vGQ09rkT50@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89454-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89454-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02423.txt.bz2
Content-length: 644

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

--- Comment #2 from Qirun Zhang <qrzhang at gatech dot edu> ---
(In reply to Qirun Zhang from comment #1)
> Bisect points to r151362.
> 
> commit ff79704e04af919c4fe501c7dceca8b21cced614
> Author: aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
> Date:   Thu Sep 3 05:24:57 2009 +0000
> 
>     * toplev.c (process_options): Enable var-tracking-assignments
>     by default if var-tracking is enabled.
> 
> 
>     git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151362
> 138bc75d-0d04-0410-961f-82ee72b054a4

Bisected the result with "-O3" since gcc-4.4 does not support "-Og".
>From gcc-bugs-return-638130-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 20:58:13 2019
Return-Path: <gcc-bugs-return-638130-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8163 invoked by alias); 21 Mar 2019 20: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 7761 invoked by uid 48); 21 Mar 2019 20:58:09 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89214] [7/8/9 Regression] ICE in digest_init_r, at cp/typeck2.c:1211 with -std=c++17
Date: Thu, 21 Mar 2019 20: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: 9.0
X-Bugzilla-Keywords: ice-checking, ice-on-valid-code, patch
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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords
Message-ID: <bug-89214-4-cUeVsL1MhU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89214-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89214-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02424.txt.bz2
Content-length: 422

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

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

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

--- Comment #10 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
https://gcc.gnu.org/ml/gcc-patches/2019-03/msg01075.html
>From gcc-bugs-return-638131-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 21:09:20 2019
Return-Path: <gcc-bugs-return-638131-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 83124 invoked by alias); 21 Mar 2019 21:09: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 82191 invoked by uid 48); 21 Mar 2019 21:09:13 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/54262] LOC shouldn't use copy-in/copy-out
Date: Thu, 21 Mar 2019 21:09: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.8.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-54262-4-2CjImRgpYj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-54262-4@http.gcc.gnu.org/bugzilla/>
References: <bug-54262-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02425.txt.bz2
Content-length: 1523

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

--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Regtested cleanly with the patch in comment 4.

If I remove the lines

      se->expr = convert (pvoid_type_node, se->expr);
      se->expr = gfc_evaluate_now (se->expr, &se->pre);

in conv_isocbinding_function, on darwin I get a warning at link time with the
tests in f03gl:

ld: warning: PIE disabled. Absolute addressing (perhaps -mdynamic-no-pic) not
allowed in code signed PIE, but used in lC0 from
/var/folders/8q/sh_swgz96r7f5vnn08f7fxr00000gn/T//ccjizw7H.o. To fix this
warning, don't compile with -mdynamic-no-pic or link with -Wl,-no_pie

However all the tests I have tried succeed.

I also see

FAIL: gfortran.dg/c_loc_test_22.f90   -O   scan-tree-dump-times original
"D.[0-9]+ = parm.[0-9]+.data;[^;]+ptr[1-4] = D.[0-9]+;" 4 (found 0 times)

the

    D.* = parm.*.data;
    ptr* = D.*;

are replaced with

    ptr* = parm.*.data;

If I remove the lines

  temp_var = gfc_create_var (gfc_get_int_type (gfc_index_integer_kind), NULL);
  gfc_add_modify (&se->pre, temp_var, se->expr);
  se->expr = temp_var;

in gfc_conv_intrinsic_loc, I see

FAIL: gfortran.dg/loc_1.f90   -O*  (test for excess errors)

due to

% gfc /opt/gcc/_clean/gcc/testsuite/gfortran.dg/loc_1.f90
Undefined symbols for architecture x86_64:
  "_targ.3866", referenced from:
      lC0 in ccakGHjX.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
>From gcc-bugs-return-638132-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 21:48:49 2019
Return-Path: <gcc-bugs-return-638132-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73666 invoked by alias); 21 Mar 2019 21:48: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 72007 invoked by uid 48); 21 Mar 2019 21:48:38 -0000
From: "qrzhang at gatech dot edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/89463] debug information for iteractor of an empty loop is gone (at -O3)
Date: Thu, 21 Mar 2019 21:48: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: qrzhang at gatech dot edu
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-89463-4-6O3PJO4euu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89463-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89463-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02426.txt.bz2
Content-length: 702

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

--- Comment #5 from Qirun Zhang <qrzhang at gatech dot edu> ---
(In reply to Qirun Zhang from comment #4)
> Bisect points to r151362.
> 
> commit ff79704e04af919c4fe501c7dceca8b21cced614
> Author: aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
> Date:   Thu Sep 3 05:24:57 2009 +0000
> 
>     * toplev.c (process_options): Enable var-tracking-assignments
>     by default if var-tracking is enabled.
> 
> 
>     git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151362
> 138bc75d-0d04-0410-961f-82ee72b054a4

Sorry... Please discard this comment. This was meant for another bug. Let me
post the bisect result in the following comment..
>From gcc-bugs-return-638133-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 21:50:45 2019
Return-Path: <gcc-bugs-return-638133-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80592 invoked by alias); 21 Mar 2019 21:50: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 80505 invoked by uid 48); 21 Mar 2019 21:50:40 -0000
From: "qrzhang at gatech dot edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/89463] debug information for iteractor of an empty loop is gone (at -O3)
Date: Thu, 21 Mar 2019 21:50: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: qrzhang at gatech dot edu
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-89463-4-dv5UXDfGWQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89463-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89463-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02427.txt.bz2
Content-length: 790

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

--- Comment #6 from Qirun Zhang <qrzhang at gatech dot edu> ---
As mentioned in my earlier comment, the revision should be between gcc-5 and
gcc-6.

Bisect points to r239357.


commit ec969ce4161538b561592a032eca6dcfaf513596
Author: rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Thu Aug 11 09:02:04 2016 +0000

    2016-08-11  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/72772
        * cfgloopmanip.c (create_preheader): Use split_edge if there
        is a single loop entry, avoiding degenerate PHIs.

        * gcc.dg/graphite/pr35356-1.c: Adjust.
        * gcc.dg/tree-ssa/pr59597.c: Likewise.


    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@239357
138bc75d-0d04-0410-961f-82ee72b054a4
>From gcc-bugs-return-638134-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 22:01:44 2019
Return-Path: <gcc-bugs-return-638134-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10545 invoked by alias); 21 Mar 2019 22:01: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 10490 invoked by uid 55); 21 Mar 2019 22:01:40 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89767] [8/9 Regression] ICE with tuple and optimization
Date: Thu, 21 Mar 2019 22:01: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.3.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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89767-4-yYCMrxAMG2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89767-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89767-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02428.txt.bz2
Content-length: 1016

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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Mar 21 22:01:02 2019
New Revision: 269860

URL: https://gcc.gnu.org/viewcvs?rev=269860&root=gcc&view=rev
Log:
        PR c++/89767
        * parser.c (cp_parser_lambda_introducer): Add ids and first_capture_id
        variables, check for duplicates in this function.
        * lambda.c (add_capture): Don't check for duplicates nor use
        IDENTIFIER_MARKED.
        (register_capture_members): Don't clear IDENTIFIER_MARKED here.

        * g++.dg/cpp1y/lambda-init18.C: New test.
        * g++.dg/cpp1y/lambda-init19.C: New test.
        * g++.dg/cpp1y/pr89767.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-init18.C
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-init19.C
    trunk/gcc/testsuite/g++.dg/cpp1y/pr89767.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/lambda.c
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-638135-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 22:03:43 2019
Return-Path: <gcc-bugs-return-638135-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33820 invoked by alias); 21 Mar 2019 22:03: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 33754 invoked by uid 55); 21 Mar 2019 22:03:40 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/71446] Incorrect overload resolution when using designated initializers
Date: Thu, 21 Mar 2019 22: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: 5.3.0
X-Bugzilla-Keywords: accepts-invalid, rejects-valid
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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-71446-4-7JHfV1cLF1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71446-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71446-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02429.txt.bz2
Content-length: 630

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

--- Comment #21 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Mar 21 22:03:07 2019
New Revision: 269861

URL: https://gcc.gnu.org/viewcvs?rev=269861&root=gcc&view=rev
Log:
        PR c++/71446
        * call.c (filed_in_pset): Change pset from hash_set<tree> * to
        hash_set<tree, true> &, adjust uses accordingly.
        (build_aggr_conv): Change pset from hash_set<tree> *
        to hash_set<tree, true>.  Replace goto fail; with return NULL;,
        adjust pset uses.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
>From gcc-bugs-return-638136-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 22:05:05 2019
Return-Path: <gcc-bugs-return-638136-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39746 invoked by alias); 21 Mar 2019 22: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 39665 invoked by uid 55); 21 Mar 2019 22:05:01 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/89692] [9 Regression] ICE in streamer_write_chain, at tree-streamer-out.c:506
Date: Thu, 21 Mar 2019 22:05: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, lto
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:
Message-ID: <bug-89692-4-pDGdYksCw9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89692-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89692-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02430.txt.bz2
Content-length: 854

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

--- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Mar 21 22:04:29 2019
New Revision: 269862

URL: https://gcc.gnu.org/viewcvs?rev=269862&root=gcc&view=rev
Log:
        PR lto/89692
        * tree.c (fld_type_variant, fld_incomplete_type_of,
        fld_process_array_type): Call fld->pset.add and don't call
        add_tree_to_fld_list if it returns true.
        (free_lang_data_in_type): Similarly with self-recursive call.  Purge
        non-marked types from TYPE_NEXT_VARIANT list.
        (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).

        * g++.dg/other/pr89692.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/other/pr89692.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree.c
>From gcc-bugs-return-638137-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 21 22:32:40 2019
Return-Path: <gcc-bugs-return-638137-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33708 invoked by alias); 21 Mar 2019 22:32: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 33197 invoked by uid 48); 21 Mar 2019 22:32:35 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/89692] [9 Regression] ICE in streamer_write_chain, at tree-streamer-out.c:506
Date: Thu, 21 Mar 2019 22:32: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, lto
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-89692-4-IZvmL5mRGq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89692-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89692-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02431.txt.bz2
Content-length: 424

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

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

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

--- Comment #17 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-638138-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 01:27:37 2019
Return-Path: <gcc-bugs-return-638138-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 899 invoked by alias); 22 Mar 2019 01:27: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 835 invoked by uid 48); 22 Mar 2019 01:27:32 -0000
From: "mte.zych at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug driver/87769] GCC build from source uses headers and libraries from directories host machine.
Date: Fri, 22 Mar 2019 01:27: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:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mte.zych 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-87769-4-dRhAV35VOz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87769-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87769-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02432.txt.bz2
Content-length: 2629

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

--- Comment #9 from Mateusz Zych <mte.zych at gmail dot com> ---
Hi ;)

I've analysed this issue further and
tested all combinations of different vendors in host and target triplets.

Here are the results:
             +-----------------------------------+
             |               host                |
             |-----------------------------------|
             |  ----  |  glibc |unknown |   pc   |
+------------+-----------------------------------+
|   |  ----  |  FAIL  |  PASS  |  PASS  |  FAIL  |
| t |--------|--------|--------|--------|--------|
| a |  glibc |  PASS  |  FAIL  |  PASS  |  PASS  |
| r |--------|--------|--------|--------|--------|
| g |unknown |  PASS  |  PASS  |  FAIL  |  PASS  |
| e |--------|--------|--------|--------|--------|
| t |   pc   |  FAIL  |  PASS  |  PASS  |  FAIL  |
+------------+-----------------------------------+

Looks like building isolated compiler (target == host) doesn't work at all
and for some reason cross-compiling by combining no vendor with pc vendor fails
as well.

Note that, all failing configurations are encountering the same issue
with compilation of libstdc++-v3 during first GCC build:

  checking whether the 
  /home/mzych/Downloads/build-many-glibcs/gcc-first-build/./gcc/xgcc 
  -B/home/mzych/Downloads/build-many-glibcs/gcc-first-build/./gcc/ 
  -B/home/mzych/Downloads/build-many-glibcs/gcc/x86_64-pc-linux-gnu/bin/ 
  -B/home/mzych/Downloads/build-many-glibcs/gcc/x86_64-pc-linux-gnu/lib/ 
  -isystem
/home/mzych/Downloads/build-many-glibcs/gcc/x86_64-pc-linux-gnu/include 
  -isystem
/home/mzych/Downloads/build-many-glibcs/gcc/x86_64-pc-linux-gnu/sys-include    
  linker
(/home/mzych/Downloads/build-many-glibcs/gcc-first-build/./gcc/collect-ld -m
elf_x86_64) 
  supports shared libraries... yes
  checking dynamic linker characteristics... 
  configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
  Makefile:18985: recipe for target 'configure-stage1-target-libstdc++-v3'
failed

Initially I was thinking that there might be something wrong with the script,
which I've used to build GCC (CreateToolchain.sh),
but it seems unlikely, since other configurations work without any issues.

To me this looks very surprising that changing vendor in a triplet causes GCC
to fail to compile.
Can somebody help with figuring out what's going on here?

I think that the script CreateToolchain.sh could benefit the whole GCC
community,
because developers could use it to compile GCC by simply choosing desired
configuration.

Thank you, Mateusz
>From gcc-bugs-return-638139-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 01:37:39 2019
Return-Path: <gcc-bugs-return-638139-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15403 invoked by alias); 22 Mar 2019 01:37: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 15335 invoked by uid 48); 22 Mar 2019 01:37:35 -0000
From: "mte.zych at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug driver/87769] GCC build from source uses headers and libraries from directories host machine.
Date: Fri, 22 Mar 2019 01:37: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:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mte.zych 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: attachments.created
Message-ID: <bug-87769-4-mjieN8W2i9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87769-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87769-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02433.txt.bz2
Content-length: 291

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

--- Comment #10 from Mateusz Zych <mte.zych at gmail dot com> ---
Created attachment 46005
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46005&action=edit
Build log of first GCC, ending on compilation failure of libstdc++-v3.
>From gcc-bugs-return-638140-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 01:53:28 2019
Return-Path: <gcc-bugs-return-638140-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93532 invoked by alias); 22 Mar 2019 01:53: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 92961 invoked by uid 48); 22 Mar 2019 01:53:23 -0000
From: "mte.zych at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug driver/87769] GCC build from source uses headers and libraries from directories host machine.
Date: Fri, 22 Mar 2019 01:53: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:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mte.zych 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-87769-4-rjo20h1yGw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87769-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87769-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02434.txt.bz2
Content-length: 577

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

--- Comment #11 from Mateusz Zych <mte.zych at gmail dot com> ---
Oh, I forgot to mention that I've also tested this configuration:

    HOST=x86_64-abc-linux-gnu
    TARGET=x86_64-xyz-linux-gnu

and it worked without any issues.

I don't understand why would these configurations fail:

   HOST   = x86_64-linux-gnu
   TARGET = x86_64-pc-linux-gnu

   HOST   = x86_64-pc-linux-gnu
   TARGET = x86_64-pc-linux-gnu

yet such a fabricated configuration works.
This is really confusing. @.@

Best regards, Mateusz
>From gcc-bugs-return-638141-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 02:22:07 2019
Return-Path: <gcc-bugs-return-638141-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1113 invoked by alias); 22 Mar 2019 02:22: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 1079 invoked by uid 48); 22 Mar 2019 02:22:03 -0000
From: "crazylht at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89784] Missing AVX512 intrinsics
Date: Fri, 22 Mar 2019 02:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: crazylht at gmail dot com
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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89784-4-hEH0oPBlcq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89784-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89784-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02435.txt.bz2
Content-length: 297

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

--- Comment #5 from Hongtao.liu <crazylht at gmail dot com> ---
(In reply to Jakub Jelinek from comment #4)
> Created attachment 46004 [details]
> gcc9-pr89784.patch
> 
> Untested patch, so far without testsuite coverage.

I'll do the test.
>From gcc-bugs-return-638142-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 02:33:11 2019
Return-Path: <gcc-bugs-return-638142-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15618 invoked by alias); 22 Mar 2019 02:33: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 15513 invoked by uid 48); 22 Mar 2019 02:33:07 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/85412] [8/9 Regression] ICE in put_TImodes, at sel-sched.c:7191
Date: Fri, 22 Mar 2019 02:33: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: deferred, 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-85412-4-jpOMMhlx6C@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85412-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85412-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02436.txt.bz2
Content-length: 204

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

--- Comment #13 from Arseny Solokha <asolokha at gmx dot com> ---
The patch in comment 8 fixes testcases from both comment 9 and comment 12 for
me.
>From gcc-bugs-return-638143-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 02:47:11 2019
Return-Path: <gcc-bugs-return-638143-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33957 invoked by alias); 22 Mar 2019 02:47: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 33883 invoked by uid 48); 22 Mar 2019 02:47:07 -0000
From: "qrzhang at gatech dot edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/89792] New: gcc generates wrong debug information at -O3
Date: Fri, 22 Mar 2019 02:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: qrzhang at gatech dot edu
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-89792-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02437.txt.bz2
Content-length: 1333

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

            Bug ID: 89792
           Summary: gcc generates wrong debug information at -O3
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: qrzhang at gatech dot edu
  Target Milestone: ---

It affects gcc-8 and gcc-trunk. gcc-7 works fine.

The testcase looks similar to Bug 89463. But they affect different gcc versions
and bisect points to different revisions. It would be helpful to have them
fixed.

For this bug, bisect points to r255569.



$ cat abc.c
volatile int a, b;
static int c;
int main() {
  int i;
  b = 0;
  i = 0;
  for (; i < 3; i++)
    a = c;
  i = 0;
  for (; i < 5; i++)
    ;
  optimize_me_not();
}

$ cat outer.c
void optimize_me_not() {}

$ cat cmds
b 12
r
p i
kill
q



#Correct output#
$ gcc-trunk -g  abc.c outer.c
$ gdb -x cmds -batch a.out
Breakpoint 1 at 0x400496: file abc.c, line 12.

Breakpoint 1, main () at abc.c:12
12        optimize_me_not();
$1 = 5

#Wrong output#
$ gcc-trunk -g -O3 abc.c outer.c
$ gdb -x cmds -batch a.out
Breakpoint 1 at 0x4003ae: file abc.c, line 12.

Breakpoint 1, main () at abc.c:12
12        optimize_me_not();
$1 = 0
>From gcc-bugs-return-638144-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 02:50:17 2019
Return-Path: <gcc-bugs-return-638144-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37644 invoked by alias); 22 Mar 2019 02:50: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 37516 invoked by uid 48); 22 Mar 2019 02:50:12 -0000
From: "qrzhang at gatech dot edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/89792] gcc generates wrong debug information at -O3
Date: Fri, 22 Mar 2019 02:50: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: qrzhang at gatech dot edu
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89792-4-BO5IQ50ob9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89792-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89792-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02438.txt.bz2
Content-length: 428

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

--- Comment #1 from Qirun Zhang <qrzhang at gatech dot edu> ---
This might be a latent issue.

Attaching my gcc version:

$ gcc-trunk -v
Thread model: posix
gcc version 9.0.1 20190321 (experimental) [trunk revision 269832] (GCC)

$ gcc-7 -v
Thread model: posix
gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~16.04~ppa1)

$ gcc-8 -v
gcc version 8.1.0 (Ubuntu 8.1.0-5ubuntu1~16.04)
>From gcc-bugs-return-638146-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 02:59:21 2019
Return-Path: <gcc-bugs-return-638146-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75988 invoked by alias); 22 Mar 2019 02:59:20 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 75897 invoked by uid 48); 22 Mar 2019 02:59:17 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89350] [9 Regression] Wrong -Wstringop-overflow= warning since r261518
Date: Fri, 22 Mar 2019 02:59: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: diagnostic, 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: P1
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-89350-4-lAepO6rktA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89350-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89350-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02440.txt.bz2
Content-length: 445

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

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

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

--- Comment #12 from Martin Sebor <msebor at gcc dot gnu.org> ---
Patch committed in r269867.
>From gcc-bugs-return-638147-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 02:59:22 2019
Return-Path: <gcc-bugs-return-638147-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76063 invoked by alias); 22 Mar 2019 02:59: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 75932 invoked by uid 48); 22 Mar 2019 02:59:18 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/88443] [meta-bug] bogus/missing -Wstringop-overflow warnings
Date: Fri, 22 Mar 2019 02:59: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: 9.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: bug_status resolution
Message-ID: <bug-88443-4-aZVITYUeRX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88443-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88443-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02441.txt.bz2
Content-length: 493

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

Bug 89350 Summary: [9 Regression] Wrong -Wstringop-overflow= warning since r261518
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89350

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-638145-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 02:59:04 2019
Return-Path: <gcc-bugs-return-638145-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75223 invoked by alias); 22 Mar 2019 02:59: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 75139 invoked by uid 55); 22 Mar 2019 02:58:59 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89350] [9 Regression] Wrong -Wstringop-overflow= warning since r261518
Date: Fri, 22 Mar 2019 02:59: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: 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: P1
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89350-4-ii9DHEd9vQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89350-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89350-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02439.txt.bz2
Content-length: 2298

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

--- Comment #11 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Fri Mar 22 02:58:27 2019
New Revision: 269867

URL: https://gcc.gnu.org/viewcvs?rev=269867&root=gcc&view=rev
Log:
PR tree-optimization/89350 - Wrong -Wstringop-overflow= warning since r261518

gcc/ChangeLog:

        PR tree-optimization/89350
        * builtins.c (compute_objsize): Also ignore offsets whose upper
        bound is negative.
        * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
        (builtin_memref::builtin_memref): Initialize new member.
        Allow EXPR to be null.
        (builtin_memref::extend_offset_range): Replace local with a member.
        Avoid assuming pointer offsets are unsigned.
        (builtin_memref::set_base_and_offset): Determine base object
        before computing offset range.
        (builtin_access::builtin_access): Handle memset.
        (builtin_access::generic_overlap): Replace local with a member.
        (builtin_access::strcat_overlap): Same.
        (builtin_access::overlap): Same.
        (maybe_diag_overlap): Same.
        (maybe_diag_access_bounds): Same.
        (wrestrict_dom_walker::check_call): Handle memset.
        (check_bounds_or_overlap): Same.

gcc/testsuite/ChangeLog:

        PR tree-optimization/89350
        * gcc.dg/Wstringop-overflow.c: Xfail overly ambitious tests.
        * gcc.dg/Wstringop-overflow-11.c: New test.
        * gcc.dg/Wstringop-overflow-12.c: New test.
        * gcc.dg/pr89350.c: New test.
        * gcc.dg/pr40340-1.c: Adjust expected warning.
        * gcc.dg/pr40340-2.c: Same.
        * gcc.dg/pr40340-4.c: Same.
        * gcc.dg/pr40340-5.c: Same.


Added:
    trunk/gcc/testsuite/gcc.dg/Wstringop-overflow-11.c
    trunk/gcc/testsuite/gcc.dg/Wstringop-overflow-12.c
    trunk/gcc/testsuite/gcc.dg/pr89350.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/builtins.c
    trunk/gcc/gimple-ssa-warn-restrict.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/Warray-bounds-40.c
    trunk/gcc/testsuite/gcc.dg/Wstringop-overflow.c
    trunk/gcc/testsuite/gcc.dg/pr40340-1.c
    trunk/gcc/testsuite/gcc.dg/pr40340-2.c
    trunk/gcc/testsuite/gcc.dg/pr40340-4.c
    trunk/gcc/testsuite/gcc.dg/pr40340-5.c
>From gcc-bugs-return-638148-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 03:14:33 2019
Return-Path: <gcc-bugs-return-638148-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96669 invoked by alias); 22 Mar 2019 03:14: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 96604 invoked by uid 48); 22 Mar 2019 03:14:28 -0000
From: "duyang.seu at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89793] New: Implicit conversion to std::string is ambiguous on GCC 8.2 but not GCC 7.3
Date: Fri, 22 Mar 2019 03:14: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: duyang.seu 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-89793-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02442.txt.bz2
Content-length: 8240

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

            Bug ID: 89793
           Summary: Implicit conversion to std::string is ambiguous on GCC
                    8.2 but not GCC 7.3
           Product: gcc
           Version: 8.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: duyang.seu at gmail dot com
  Target Milestone: ---

Created attachment 46006
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46006&action=edit
the preprocessed file

GCC Version:
gcc version 8.2.1 20180905 (Red Hat 8.2.1-3) (GCC) 

System Type:
CentOS Linux release 7.5.1804 (Core) 

GCC Configured options:
COLLECT_LTO_WRAPPER=/opt/rh/devtoolset-8/root/usr/libexec/gcc/x86_64-redhat-linux/8/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap
--enable-languages=c,c++,fortran,lto --prefix=/opt/rh/devtoolset-8/root/usr
--mandir=/opt/rh/devtoolset-8/root/usr/share/man
--infodir=/opt/rh/devtoolset-8/root/usr/share/info
--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared
--enable-threads=posix --enable-checking=release --enable-multilib
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions
--enable-gnu-unique-object --enable-linker-build-id
--with-gcc-major-version-only --with-linker-hash-style=gnu
--with-default-libstdcxx-abi=gcc4-compatible --enable-plugin
--enable-initfini-array
--with-isl=/builddir/build/BUILD/gcc-8.2.1-20180905/obj-x86_64-redhat-linux/isl-install
--disable-libmpx --enable-gnu-indirect-function --with-tune=generic
--with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix

Compilation errors:

message.cpp: In instantiation of ‘Message::Message(String&&) [with String =
StringType]’:
/opt/rh/devtoolset-8/root/usr/include/c++/8/ext/new_allocator.h:136:4:  
required from ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...)
[with _Up = Message; _Args =
 {StringType}; _Tp = Message]’
/opt/rh/devtoolset-8/root/usr/include/c++/8/bits/alloc_traits.h:475:4:  
required from ‘static void std::allocator_traits<std::allocator<_CharT>
>::construct(std::allocator_traits<s
td::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up =
Message; _Args = {StringType}; _Tp = Message;
std::allocator_traits<std::allocator<_CharT> >::allocator_type
 = std::allocator<Message>]’
/opt/rh/devtoolset-8/root/usr/include/c++/8/bits/shared_ptr_base.h:543:39:  
required from ‘std::_Sp_counted_ptr_inplace<_Tp, _Alloc,
_Lp>::_Sp_counted_ptr_inplace(_Alloc, _Args&& .
..) [with _Args = {StringType}; _Tp = Message; _Alloc =
std::allocator<Message>; __gnu_cxx::_Lock_policy _Lp =
(__gnu_cxx::_Lock_policy)2]’
/opt/rh/devtoolset-8/root/usr/include/c++/8/bits/shared_ptr_base.h:656:4:  
required from
‘std::__shared_count<_Lp>::__shared_count(std::_Sp_make_shared_tag, _Tp*, const
_Alloc&, _A
rgs&& ...) [with _Tp = Message; _Alloc = std::allocator<Message>; _Args =
{StringType}; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2]’
/opt/rh/devtoolset-8/root/usr/include/c++/8/bits/shared_ptr_base.h:1322:35:  
required from ‘std::__shared_ptr<_Tp,
_Lp>::__shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args
&& ...) [with _Alloc = std::allocator<Message>; _Args = {StringType}; _Tp =
Message; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2]’
/opt/rh/devtoolset-8/root/usr/include/c++/8/bits/shared_ptr.h:360:64:  
required from ‘std::shared_ptr<_Tp>::shared_ptr(std::_Sp_make_shared_tag, const
_Alloc&, _Args&& ...) [with _
Alloc = std::allocator<Message>; _Args = {StringType}; _Tp = Message]’
/opt/rh/devtoolset-8/root/usr/include/c++/8/bits/shared_ptr.h:706:14:  
required from ‘std::shared_ptr<_Tp> std::allocate_shared(const _Alloc&, _Args&&
...) [with _Tp = Message; _Al
loc = std::allocator<Message>; _Args = {StringType}]’
/opt/rh/devtoolset-8/root/usr/include/c++/8/bits/shared_ptr.h:722:39:  
required from ‘std::shared_ptr<_Tp> std::make_shared(_Args&& ...) [with _Tp =
Message; _Args = {StringType}]’
message.cpp:77:44:   required from ‘void Queue<M>::EnqueueImpl(T1&&, const
Queue<M>::Type<T2>&) [with T1 = StringType; T2 = StringType; M = Message]’
message.cpp:63:5:   required from ‘void Queue<M>::Enqueue(T&&) [with T =
StringType; M = Message]’
message.cpp:86:29:   required from here
message.cpp:47:60: error: call of overloaded ‘basic_string(<brace-enclosed
initializer list>)’ is ambiguous
   Message(String&& data) : data_{std::forward<String>(data)} {}
                                                            ^
In file included from /opt/rh/devtoolset-8/root/usr/include/c++/8/string:52,
                 from /usr/local/include/boost/utility/string_view_fwd.hpp:21,
                 from /usr/local/include/boost/utility/string_view.hpp:22,
                 from /usr/local/include/boost/beast/core/string.hpp:19,
                 from /usr/local/include/boost/beast/core/file_base.hpp:14,
                 from /usr/local/include/boost/beast/core/type_traits.hpp:14,
                 from
/usr/local/include/boost/beast/http/basic_dynamic_body.hpp:14,
                 from /usr/local/include/boost/beast/http.hpp:15,
                 from message.cpp:1:
/opt/rh/devtoolset-8/root/usr/include/c++/8/bits/basic_string.h:3562:7: note:
candidate: ‘std::basic_string<_CharT, _Traits,
_Alloc>::basic_string(std::basic_string<_CharT, _Traits,
 _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc =
std::allocator<char>]’
       basic_string(basic_string&& __str)
       ^~~~~~~~~~~~
In file included from /opt/rh/devtoolset-8/root/usr/include/c++/8/string:53,
                 from /usr/local/include/boost/utility/string_view_fwd.hpp:21,
                 from /usr/local/include/boost/utility/string_view.hpp:22,
                 from /usr/local/include/boost/beast/core/string.hpp:19,
                 from /usr/local/include/boost/beast/core/file_base.hpp:14,
                 from /usr/local/include/boost/beast/core/type_traits.hpp:14,
                 from
/usr/local/include/boost/beast/http/basic_dynamic_body.hpp:14,
                 from /usr/local/include/boost/beast/http.hpp:15,
                 from message.cpp:1:
/opt/rh/devtoolset-8/root/usr/include/c++/8/bits/basic_string.tcc:609:5: note:
candidate: ‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const
std::basic_string<_CharT, _
Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc
= std::allocator<char>]’
     basic_string<_CharT, _Traits, _Alloc>::
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /opt/rh/devtoolset-8/root/usr/include/c++/8/string:52,
                 from /usr/local/include/boost/utility/string_view_fwd.hpp:21,
                 from /usr/local/include/boost/utility/string_view.hpp:22,
                 from /usr/local/include/boost/beast/core/string.hpp:19,
                 from /usr/local/include/boost/beast/core/file_base.hpp:14,
                 from /usr/local/include/boost/beast/core/type_traits.hpp:14,
                 from
/usr/local/include/boost/beast/http/basic_dynamic_body.hpp:14,
                 from /usr/local/include/boost/beast/http.hpp:15,
                 from message.cpp:1:
/opt/rh/devtoolset-8/root/usr/include/c++/8/bits/basic_string.h:3491:7: note:
candidate: ‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const
_Alloc&) [with _CharT = char
; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
       basic_string(const _Alloc& __a);
       ^~~~~~~~~~~~


Command to reproduce the compilation errors:
g++ -O2 -Wall -std=c++17 message.cpp -o test_message

Comments:

No such error on GCC7.3.1. The version is,
gcc version 7.3.1 20180303 (Red Hat 7.3.1-5) (GCC).
>From gcc-bugs-return-638149-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 03:17:21 2019
Return-Path: <gcc-bugs-return-638149-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102175 invoked by alias); 22 Mar 2019 03:17: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 102111 invoked by uid 48); 22 Mar 2019 03:17:17 -0000
From: "yjf.victor at foxmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/19852] Segmentation fault during: build/genmodes -h > tmp-modes.h
Date: Fri, 22 Mar 2019 03:17: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: 4.0.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: yjf.victor at foxmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WORKSFORME
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-19852-4-j6DdtDXwwh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-19852-4@http.gcc.gnu.org/bugzilla/>
References: <bug-19852-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02443.txt.bz2
Content-length: 1283

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

yjf.victor at foxmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yjf.victor at foxmail dot com

--- Comment #4 from yjf.victor at foxmail dot com ---
I have the same problem.

```
make[3]: Entering directory '/dev/fs/E/22/gcc/bindir/gcc'
build/genmodes -h > tmp-modes.h
Memory fault (core dumped)
make[3]: *** [Makefile:2206: s-modes-h] Error 139
make[3]: Leaving directory '/dev/fs/E/22/gcc/bindir/gcc'
make[2]: *** [Makefile:4369: all-stage1-gcc] Error 2
make[2]: Leaving directory '/dev/fs/E/22/gcc/bindir'
make[1]: *** [Makefile:19210: stage1-bubble] Error 2
make[1]: Leaving directory '/dev/fs/E/22/gcc/bindir'
make: *** [Makefile:902: all] Error 2
[ -f stage_final ] || echo stage3 > stage_final
make[1]: Entering directory '/dev/fs/E/22/gcc/bindir'
make[2]: Entering directory '/dev/fs/E/22/gcc/bindir'
make[3]: Entering directory '/dev/fs/E/22/gcc/bindir'
^Cmake[3]: *** [Makefile:19168: stage1-end] Interrupt
make[2]: *** [Makefile:19125: stage1-start] Error 130
make[1]: *** [Makefile:19210: stage1-bubble] Error 130
make: *** [Makefile:902: all] Error 130
```
>From gcc-bugs-return-638150-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 03:32:26 2019
Return-Path: <gcc-bugs-return-638150-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36762 invoked by alias); 22 Mar 2019 03:32: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 36710 invoked by uid 48); 22 Mar 2019 03:32:22 -0000
From: "yjf.victor at foxmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/19852] Segmentation fault during: build/genmodes -h > tmp-modes.h
Date: Fri, 22 Mar 2019 03:32: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: 4.0.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: yjf.victor at foxmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WORKSFORME
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:
Message-ID: <bug-19852-4-asn7pSZPgw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-19852-4@http.gcc.gnu.org/bugzilla/>
References: <bug-19852-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02444.txt.bz2
Content-length: 223

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

--- Comment #5 from yjf.victor at foxmail dot com ---
I ran the command directly, and here it show:


% build/genmodes -h > tmp-modes.h
Segmentation fault (core dumped)
>From gcc-bugs-return-638151-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 03:49:28 2019
Return-Path: <gcc-bugs-return-638151-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107685 invoked by alias); 22 Mar 2019 03:49: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 107646 invoked by uid 48); 22 Mar 2019 03:49:23 -0000
From: "yjf.victor at foxmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/19852] Segmentation fault during: build/genmodes -h > tmp-modes.h
Date: Fri, 22 Mar 2019 03:49: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: 4.0.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: yjf.victor at foxmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WORKSFORME
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:
Message-ID: <bug-19852-4-PSU7S2DhIR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-19852-4@http.gcc.gnu.org/bugzilla/>
References: <bug-19852-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02445.txt.bz2
Content-length: 1264

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

--- Comment #6 from yjf.victor at foxmail dot com ---
According to my debugging on gdb, it failed to allocate the memory via the
`alloca()` function, and therefore resulted in Segmentation fault.

```
% gdb build/genmodes
GNU gdb 2002-11-11-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-pc-interix3"...
.gdbinit:13: Error in sourced command file:
/dev/fs/E/22/gcc/gcc-5.5.0/gcc/gdbinit.in:212: Error in sourced command file:
Command not implemented yet.
(gdb) b genmodes.c:851
Breakpoint 1 at 0x403899: file /dev/fs/E/22/gcc/gcc-5.5.0/gcc/genmodes.c, line
8
51.
(gdb) r -h
Starting program: /dev/fs/E/22/gcc/bindir/gcc/build/genmodes -h

Breakpoint 1, _Z15calc_wider_modev ()
    at /dev/fs/E/22/gcc/gcc-5.5.0/gcc/genmodes.c:851
851       sortbuf = XALLOCAVEC (struct mode_data *, max_n_modes + 1);
(gdb) n

Program received signal SIGSEGV, Segmentation fault.
0x0083ff7a in ?? ()
(gdb)
```
>From gcc-bugs-return-638152-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 03:54:22 2019
Return-Path: <gcc-bugs-return-638152-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113122 invoked by alias); 22 Mar 2019 03:54: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 113050 invoked by uid 48); 22 Mar 2019 03:54:18 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/19852] Segmentation fault during: build/genmodes -h > tmp-modes.h
Date: Fri, 22 Mar 2019 03:54: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: 4.0.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WORKSFORME
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:
Message-ID: <bug-19852-4-zd27khPpz4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-19852-4@http.gcc.gnu.org/bugzilla/>
References: <bug-19852-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02446.txt.bz2
Content-length: 462

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

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to yjf.victor from comment #6)
> According to my debugging on gdb, it failed to allocate the memory via the
> `alloca()` function, and therefore resulted in Segmentation fault.

If the problem is alloca, then you should be able to increase the stack size
limit and have it work.  Also i586-pc-interix3 is no longer supported IIRC.
>From gcc-bugs-return-638153-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 04:01:33 2019
Return-Path: <gcc-bugs-return-638153-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4262 invoked by alias); 22 Mar 2019 04:01: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 3751 invoked by uid 48); 22 Mar 2019 04:01:28 -0000
From: "yjf.victor at foxmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/19852] Segmentation fault during: build/genmodes -h > tmp-modes.h
Date: Fri, 22 Mar 2019 04:01: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: 4.0.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: yjf.victor at foxmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WORKSFORME
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:
Message-ID: <bug-19852-4-xDbpea05g0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-19852-4@http.gcc.gnu.org/bugzilla/>
References: <bug-19852-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02447.txt.bz2
Content-length: 895

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

--- Comment #8 from yjf.victor at foxmail dot com ---
It seems that the stack size is unlimited.

```
% limit
cputime      unlimited
filesize     unlimited
datasize     unlimited
stacksize    unlimited
coredumpsize unlimited
vmemoryuse   unlimited
descriptors  1024
% limit -h
cputime      unlimited
filesize     unlimited
datasize     unlimited
stacksize    unlimited
coredumpsize unlimited
vmemoryuse   unlimited
descriptors  1024
```


However, it fails at `alloca()` when it only try to allocate `31 *
sizeof(struct mode_data *)` bytes of memory.

```
Breakpoint 1, _Z15calc_wider_modev ()
    at /dev/fs/E/22/gcc/gcc-5.5.0/gcc/genmodes.c:851
851       sortbuf = XALLOCAVEC (struct mode_data *, max_n_modes + 1);
(gdb) p max_n_modes
$1 = 31
(gdb) n

Program received signal SIGSEGV, Segmentation fault.
0x0083ff7a in ?? ()
(gdb)
```
>From gcc-bugs-return-638154-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 05:33:05 2019
Return-Path: <gcc-bugs-return-638154-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16322 invoked by alias); 22 Mar 2019 05:33: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 16284 invoked by uid 48); 22 Mar 2019 05:33:01 -0000
From: "crazylht at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89784] Missing AVX512 intrinsics
Date: Fri, 22 Mar 2019 05: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: crazylht at gmail dot com
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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-89784-4-2X0zPrRGyZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89784-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89784-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02448.txt.bz2
Content-length: 249

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

--- Comment #6 from Hongtao.liu <crazylht at gmail dot com> ---
Created attachment 46007
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46007&action=edit
add cover tests for intrinsics
>From gcc-bugs-return-638155-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 07:41:01 2019
Return-Path: <gcc-bugs-return-638155-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21260 invoked by alias); 22 Mar 2019 07:41: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 21216 invoked by uid 48); 22 Mar 2019 07:40:57 -0000
From: "crazylht at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89784] Missing AVX512 intrinsics
Date: Fri, 22 Mar 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: target
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: crazylht at gmail dot com
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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created
Message-ID: <bug-89784-4-zpGsV13RnP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89784-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89784-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02449.txt.bz2
Content-length: 641

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

Hongtao.liu <crazylht at gmail dot com> changed:

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

--- Comment #7 from Hongtao.liu <crazylht at gmail dot com> ---
Created attachment 46008
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46008&action=edit
add cover tests for intrinsics v2.

Add runtime tests for them.

Cover tests ok. bootstrap ok.
didn't run regression tests for x86_64/i386
>From gcc-bugs-return-638156-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 07:43:12 2019
Return-Path: <gcc-bugs-return-638156-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25516 invoked by alias); 22 Mar 2019 07:43: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 25437 invoked by uid 48); 22 Mar 2019 07:43:08 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/89790] [9 Regression] ICE segfault in operand_equal_p() at fold-const.c:3000 with -Wduplicated-cond since r269838
Date: Fri, 22 Mar 2019 07:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 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: priority bug_status cf_reconfirmed_on assigned_to target_milestone everconfirmed
Message-ID: <bug-89790-4-a7ZgVI32uU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89790-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89790-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02450.txt.bz2
Content-length: 696

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2019-03-22
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
   Target Milestone|---                         |9.0
     Ever confirmed|0                           |1

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Will get to this next week.
>From gcc-bugs-return-638157-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 09:21:24 2019
Return-Path: <gcc-bugs-return-638157-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21317 invoked by alias); 22 Mar 2019 09:21: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 21224 invoked by uid 48); 22 Mar 2019 09:21:20 -0000
From: "harald at gigawatt dot nl" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89793] Implicit conversion to std::string is ambiguous on GCC 8.2 but not GCC 7.3
Date: Fri, 22 Mar 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: c++
X-Bugzilla-Version: 8.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: harald at gigawatt dot nl
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-89793-4-TQ2uvFgoP6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89793-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89793-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02451.txt.bz2
Content-length: 1015

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

Harald van Dijk <harald at gigawatt dot nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |harald at gigawatt dot nl

--- Comment #1 from Harald van Dijk <harald at gigawatt dot nl> ---
Your StringType provides a conversion operator to HTTPResponse, which
indirectly has std::allocator<char> as a private base class. Overload
resolution happens before access checks, so the fact that it is a private base
class does not prevent the construction of std::string from being ambiguous:
the conversion to HTTPResponse could be used followed by the construction of a
new std::string using the HTTPResponse as the allocator.

This appears to work the same way in GCC 8 as it does in GCC 7, although it is
possible that for whatever reason, the GCC 7 version ends up not including
std::allocator<char> as a base class.
>From gcc-bugs-return-638158-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 09:28:07 2019
Return-Path: <gcc-bugs-return-638158-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38952 invoked by alias); 22 Mar 2019 09:28: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 38474 invoked by uid 48); 22 Mar 2019 09:28:02 -0000
From: "iains at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/60702] thread_local initialization
Date: Fri, 22 Mar 2019 09:28: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.8.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: iains 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-60702-4-zQQDxgczMS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60702-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60702-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02452.txt.bz2
Content-length: 779

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

Iain Sandoe <iains at gcc dot gnu.org> changed:

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

--- Comment #11 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #10)
> Created attachment 45976 [details]
> gcc9-pr60702.patch
> 
> Untested fix.

For emulated TLS on x86_64-Darwin16, this progresses 
thread_local12c.C 
thread_local12d.C
thread_local12i.C
thread_local12j.C
thread_local12l.C

which fail without the patch and pass with it,

thread_local11.C 
fails for every instance of _ZTH*
(passes for _ZTW* 2 gimple)
>From gcc-bugs-return-638159-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 10:09:21 2019
Return-Path: <gcc-bugs-return-638159-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84436 invoked by alias); 22 Mar 2019 10:09: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 72551 invoked by uid 55); 22 Mar 2019 10:09:12 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89784] Missing AVX512 intrinsics
Date: Fri, 22 Mar 2019 10:09: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: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89784-4-638fx1Gh1w@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89784-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89784-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02453.txt.bz2
Content-length: 6657

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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Mar 22 10:08:40 2019
New Revision: 269868

URL: https://gcc.gnu.org/viewcvs?rev=269868&root=gcc&view=rev
Log:
        PR target/89784
        * config/i386/i386.c (enum ix86_builtins): Remove
        IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
        * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
        __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
        __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
        __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
        __builtin_ia32_vfmsubss3_mask3): New builtins.
        * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
        avx512f_vmfmadd_<mode>_mask3<round_name>,
        avx512f_vmfmadd_<mode>_maskz_1<round_name>,
        *avx512f_vmfmsub_<mode>_mask<round_name>,
        avx512f_vmfmsub_<mode>_mask3<round_name>,
        *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
        *avx512f_vmfnmadd_<mode>_mask<round_name>,
        *avx512f_vmfnmadd_<mode>_mask3<round_name>,
        *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
        *avx512f_vmfnmsub_<mode>_mask<round_name>,
        *avx512f_vmfnmsub_<mode>_mask3<round_name>,
        *avx512f_vmfnmasub_<mode>_maskz_1<round_name>): New define_insns.
        (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
        * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
        _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
        _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
        _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
        _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
        _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
        _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
        _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
        _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
        _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
        _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
        _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
        _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
        _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
        _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
        _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
        _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
        _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
        _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
        _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.

        * gcc.target/i386/sse-13.c (__builtin_ia32_vfmaddsd3_mask,
        __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
        __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
        __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
        __builtin_ia32_vfmsubss3_mask3): Define.
        * gcc.target/i386/sse-23.c (__builtin_ia32_vfmaddsd3_mask,
        __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
        __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
        __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
        __builtin_ia32_vfmsubss3_mask3): Define.
        * gcc.target/i386/avx-1.c (__builtin_ia32_vfmaddsd3_mask,
        __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
        __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
        __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
        __builtin_ia32_vfmsubss3_mask3): Define.
        * gcc.target/i386/sse-14.c: Add tests for
        _mm_mask{,3,z}_f{,n}m{add,sub}_round_s{s,d} builtins.
        * gcc.target/i386/sse-22.c: Likewise.

2019-03-22  Hongtao Liu  <hongtao.liu@intel.com>

        * gcc.target/i386/avx512f-vfmaddXXXsd-1.c (avx512f_test): Add tests
        for _mm_mask{,3,z}_*.
        * gcc.target/i386/avx512f-vfmaddXXXss-1.c (avx512f_test): Likewise.
        * gcc.target/i386/avx512f-vfmsubXXXsd-1.c (avx512f_test): Likewise.
        * gcc.target/i386/avx512f-vfmsubXXXss-1.c (avx512f_test): Likewise.
        * gcc.target/i386/avx512f-vfnmaddXXXsd-1.c (avx512f_test): Likewise.
        * gcc.target/i386/avx512f-vfnmaddXXXss-1.c (avx512f_test): Likewise.
        * gcc.target/i386/avx512f-vfnmsubXXXsd-1.c (avx512f_test): Likewise.
        * gcc.target/i386/avx512f-vfnmsubXXXss-1.c (avx512f_test): Likewise.
        * gcc.target/i386/avx512f-vfmaddXXXsd-2.c: New test.
        * gcc.target/i386/avx512f-vfmaddXXXss-2.c: New test.
        * gcc.target/i386/avx512f-vfmsubXXXsd-2.c: New test.
        * gcc.target/i386/avx512f-vfmsubXXXss-2.c: New test.
        * gcc.target/i386/avx512f-vfnmaddXXXsd-2.c: New test.
        * gcc.target/i386/avx512f-vfnmaddXXXss-2.c: New test.
        * gcc.target/i386/avx512f-vfnmsubXXXsd-2.c: New test.
        * gcc.target/i386/avx512f-vfnmsubXXXss-2.c: New test.

Added:
    trunk/gcc/testsuite/gcc.target/i386/avx512f-vfmaddXXXsd-2.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-vfmaddXXXss-2.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-vfmsubXXXsd-2.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-vfmsubXXXss-2.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-vfnmaddXXXsd-2.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-vfnmaddXXXss-2.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-vfnmsubXXXsd-2.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-vfnmsubXXXss-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/avx512fintrin.h
    trunk/gcc/config/i386/i386-builtin.def
    trunk/gcc/config/i386/i386.c
    trunk/gcc/config/i386/sse.md
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/i386/avx-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-vfmaddXXXsd-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-vfmaddXXXss-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-vfmsubXXXsd-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-vfmsubXXXss-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-vfnmaddXXXsd-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-vfnmaddXXXss-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-vfnmsubXXXsd-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-vfnmsubXXXss-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
>From gcc-bugs-return-638160-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 10:28:43 2019
Return-Path: <gcc-bugs-return-638160-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93662 invoked by alias); 22 Mar 2019 10:28: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 93573 invoked by uid 48); 22 Mar 2019 10:28:39 -0000
From: "duyang.seu at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89793] Implicit conversion to std::string is ambiguous on GCC 8.2 but not GCC 7.3
Date: Fri, 22 Mar 2019 10:28: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: duyang.seu 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: attachments.created
Message-ID: <bug-89793-4-sdifat9fuK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89793-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89793-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02454.txt.bz2
Content-length: 1348

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

--- Comment #2 from du yang <duyang.seu at gmail dot com> ---
Created attachment 46009
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46009&action=edit
GCC 7.3.1 source file dump

GCC version:
gcc version 7.3.1 20180303 (Red Hat 7.3.1-5) (GCC) 

System Type:
CentOS Linux release 7.5.1804 (Core) 

GCC Configured options:
Configured with: ../configure --enable-bootstrap
--enable-languages=c,c++,fortran,lto --prefix=/opt/rh/devtoolset-7/root/usr
--mandir=/opt/rh/devtoolset-7/root/usr/share/man
--infodir=/opt/rh/devtoolset-7/root/usr/share/info
--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared
--enable-threads=posix --enable-checking=release --enable-multilib
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions
--enable-gnu-unique-object --enable-linker-build-id
--with-gcc-major-version-only --enable-plugin --with-linker-hash-style=gnu
--enable-initfini-array --with-default-libstdcxx-abi=gcc4-compatible
--with-isl=/builddir/build/BUILD/gcc-7.3.1-20180303/obj-x86_64-redhat-linux/isl-install
--enable-libmpx --enable-gnu-indirect-function --with-tune=generic
--with-arch_32=i686 --build=x86_64-redhat-linux

Comments:
Please see attached for a GCC 7.3.1 source file dump and help confirm your
assumptions.
>From gcc-bugs-return-638161-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 10:59:29 2019
Return-Path: <gcc-bugs-return-638161-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44057 invoked by alias); 22 Mar 2019 10:59: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 43977 invoked by uid 48); 22 Mar 2019 10:59:26 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80559] Duplicate "template argument x is invalid" diagnostics
Date: Fri, 22 Mar 2019 10: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.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords target_milestone short_desc
Message-ID: <bug-80559-4-qMSmEheIQ6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80559-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80559-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02455.txt.bz2
Content-length: 659

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|error-recovery,             |diagnostic
                   |ice-on-invalid-code         |
   Target Milestone|7.5                         |---
            Summary|[7/8/9 Regression]          |Duplicate "template
                   |Segmentation fault on       |argument x is invalid"
                   |invalid initializer list    |diagnostics
                   |template arguments          |
>From gcc-bugs-return-638162-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 11:13:20 2019
Return-Path: <gcc-bugs-return-638162-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85094 invoked by alias); 22 Mar 2019 11:13: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 85017 invoked by uid 48); 22 Mar 2019 11:13:16 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89512] [7/8/9 Regression] ICE in get_expr_operands, at tree-ssa-operands.c:882
Date: Fri, 22 Mar 2019 11:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
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: bug_status cc assigned_to
Message-ID: <bug-89512-4-bX0UrxulTi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89512-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89512-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02456.txt.bz2
Content-length: 442

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|jakub at gcc dot gnu.org           |
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
>From gcc-bugs-return-638163-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 11:18:09 2019
Return-Path: <gcc-bugs-return-638163-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14051 invoked by alias); 22 Mar 2019 11:18: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 13910 invoked by uid 48); 22 Mar 2019 11:18:04 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89512] [7/8 Regression] ICE in get_expr_operands, at tree-ssa-operands.c:882
Date: Fri, 22 Mar 2019 11: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-invalid-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-89512-4-4FtSvYDaMH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89512-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89512-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02457.txt.bz2
Content-length: 525

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[7/8/9 Regression] ICE in   |[7/8 Regression] ICE in
                   |get_expr_operands, at       |get_expr_operands, at
                   |tree-ssa-operands.c:882     |tree-ssa-operands.c:882

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Yes.
>From gcc-bugs-return-638164-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 11:42:07 2019
Return-Path: <gcc-bugs-return-638164-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100619 invoked by alias); 22 Mar 2019 11:42: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 100514 invoked by uid 48); 22 Mar 2019 11:42:03 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89781] Misleading error messages when initializing a static data member in-class
Date: Fri, 22 Mar 2019 11:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: diagnostic
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-89781-4-PNVwds6SBv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89781-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89781-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02458.txt.bz2
Content-length: 682

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

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> ---
Why do you think so?  Inline variables in C++17 are only variables with
explicit inline keyword or constexpr static data members.  So it is correct
this is rejected.

Are you suggesting the diagnostics should say something like either 'constexpr'
needed ... or static data member needs to be 'inline' ?
>From gcc-bugs-return-638166-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 11:55:08 2019
Return-Path: <gcc-bugs-return-638166-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118596 invoked by alias); 22 Mar 2019 11:55: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 118406 invoked by uid 48); 22 Mar 2019 11:55:04 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88918] [meta-bug] x86 intrinsic issues
Date: Fri, 22 Mar 2019 11:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_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: 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-88918-4-cEFgdds88j@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88918-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88918-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02460.txt.bz2
Content-length: 451

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

Bug 89784 Summary: Missing AVX512 intrinsics
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89784

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-638165-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 11:55:07 2019
Return-Path: <gcc-bugs-return-638165-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118490 invoked by alias); 22 Mar 2019 11:55: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 118361 invoked by uid 48); 22 Mar 2019 11:55:04 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89784] Missing AVX512 intrinsics
Date: Fri, 22 Mar 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: 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-89784-4-TohoGTTSiB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89784-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89784-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02459.txt.bz2
Content-length: 482

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

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

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

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Implemented on the trunk.  Thanks for the testcase coverage work.
>From gcc-bugs-return-638167-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 11:58:36 2019
Return-Path: <gcc-bugs-return-638167-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130638 invoked by alias); 22 Mar 2019 11:58: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 130580 invoked by uid 48); 22 Mar 2019 11:58:33 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89789] [9 Regression] Compile time hog during RPO VN
Date: Fri, 22 Mar 2019 11: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: 9.0
X-Bugzilla-Keywords: compile-time-hog
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 target_milestone everconfirmed
Message-ID: <bug-89789-4-2T26kiX47q@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89789-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89789-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02461.txt.bz2
Content-length: 745

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-03-22
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |rguenth at gcc dot gnu.org
   Target Milestone|---                         |9.0
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r263875.
>From gcc-bugs-return-638168-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 12:25:32 2019
Return-Path: <gcc-bugs-return-638168-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35911 invoked by alias); 22 Mar 2019 12:25: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 35847 invoked by uid 48); 22 Mar 2019 12:25:28 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89781] Misleading error messages when initializing a static data member in-class
Date: Fri, 22 Mar 2019 12:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: diagnostic
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-89781-4-8JfkSsQwJK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89781-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89781-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02462.txt.bz2
Content-length: 232

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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Yeah I guess the diagnostics could be improved for C++17 and up to say that
using 'inline' would make it valid.
>From gcc-bugs-return-638169-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 12:28:15 2019
Return-Path: <gcc-bugs-return-638169-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62358 invoked by alias); 22 Mar 2019 12:28: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 62330 invoked by uid 48); 22 Mar 2019 12:28:10 -0000
From: "zsojka at seznam dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/89794] New: wrong code with -Og -fno-forward-propagate
Date: Fri, 22 Mar 2019 12:28: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: 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-89794-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02463.txt.bz2
Content-length: 2331

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

            Bug ID: 89794
           Summary: wrong code with -Og -fno-forward-propagate
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: armv7a-hardfloat-linux-gnueabi

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

Output:
$ armv7a-hardfloat-linux-gnueabi-gcc -Og -fno-forward-propagate testcase.c
-static
$ ./a.out 
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault

The instruction:
...
@ testcase.c:12:   __builtin_memset (&i, c, 2);
        movw    r1, #:lower16:c @ tmp132,
        movt    r1, #:upper16:c @ tmp132,
        ldr     ip, [r1]        @ c.2_7, c
        uxtb    r3, ip  @ c.2_7, c.2_7
        add     r3, r3, r3, lsl #8      @ tmp140, c.2_7, c.2_7,
        strh    r3, [sp]        @ movhi @ tmp140, MEM[(void *)&i]

overwrites return address


$ armv7a-hardfloat-linux-gnueabi-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-armv7a-hardfloat/bin/armv7a-hardfloat-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-269795-checking-yes-rtl-df-extra-armv7a-hardfloat/bin/../libexec/gcc/armv7a-hardfloat-linux-gnueabi/9.0.1/lto-wrapper
Target: armv7a-hardfloat-linux-gnueabi
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-float=hard --with-fpu=vfpv4
--with-arch=armv7-a --with-sysroot=/usr/armv7a-hardfloat-linux-gnueabi
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=armv7a-hardfloat-linux-gnueabi
--with-ld=/usr/bin/armv7a-hardfloat-linux-gnueabi-ld
--with-as=/usr/bin/armv7a-hardfloat-linux-gnueabi-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-269795-checking-yes-rtl-df-extra-armv7a-hardfloat
Thread model: posix
gcc version 9.0.1 20190319 (experimental) (GCC)
>From gcc-bugs-return-638170-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 12:37:39 2019
Return-Path: <gcc-bugs-return-638170-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77286 invoked by alias); 22 Mar 2019 12:37: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 77251 invoked by uid 48); 22 Mar 2019 12:37:34 -0000
From: "zsojka at seznam dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/89795] New: wrong code with -O2 -fno-dce -fno-forward-propagate -fno-sched-pressure
Date: Fri, 22 Mar 2019 12:37: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: 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-89795-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02464.txt.bz2
Content-length: 2070

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

            Bug ID: 89795
           Summary: wrong code with -O2 -fno-dce -fno-forward-propagate
                    -fno-sched-pressure
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: armv7a-hardfloat-linux-gnueabi

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

Compiler output:
$ armv7a-hardfloat-linux-gnueabi-gcc -O2 -fno-dce -fno-forward-propagate
-fno-sched-pressure testcase.c -static
$ ./a.out 
qemu: uncaught target signal 6 (Aborted) - core dumped
Aborted

Correct value is 0xf7, invalid value is 0xfffffff7 (sign extended).

$ armv7a-hardfloat-linux-gnueabi-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-armv7a-hardfloat/bin/armv7a-hardfloat-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-269795-checking-yes-rtl-df-extra-armv7a-hardfloat/bin/../libexec/gcc/armv7a-hardfloat-linux-gnueabi/9.0.1/lto-wrapper
Target: armv7a-hardfloat-linux-gnueabi
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-float=hard --with-fpu=vfpv4
--with-arch=armv7-a --with-sysroot=/usr/armv7a-hardfloat-linux-gnueabi
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=armv7a-hardfloat-linux-gnueabi
--with-ld=/usr/bin/armv7a-hardfloat-linux-gnueabi-ld
--with-as=/usr/bin/armv7a-hardfloat-linux-gnueabi-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-269795-checking-yes-rtl-df-extra-armv7a-hardfloat
Thread model: posix
gcc version 9.0.1 20190319 (experimental) (GCC)
>From gcc-bugs-return-638171-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 12:41:51 2019
Return-Path: <gcc-bugs-return-638171-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90606 invoked by alias); 22 Mar 2019 12:41: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 90472 invoked by uid 48); 22 Mar 2019 12:41:47 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89093] [9 Regression] C++ exception handling clobbers d8 VFP register
Date: Fri, 22 Mar 2019 12: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: 9.0
X-Bugzilla-Keywords: EH, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: ramana at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89093-4-JYQjinvPwv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89093-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89093-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02465.txt.bz2
Content-length: 472

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

--- Comment #31 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Ramana Radhakrishnan from comment #30)
> (In reply to Jakub Jelinek from comment #29)
> > Ramana, any progress on this?
> 
> I'm still trying to get the various spec files and the t-multilib bits
> sorted and half-term has intervened here in the UK.

Any further progress?  This is a wrong-code P1, so really has to be fixed for
GCC9.
>From gcc-bugs-return-638172-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 12:52:47 2019
Return-Path: <gcc-bugs-return-638172-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87680 invoked by alias); 22 Mar 2019 12: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 87628 invoked by uid 48); 22 Mar 2019 12:52:43 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89780] -Wpessimizing-move is too agressive with templates and recommends pessimization
Date: Fri, 22 Mar 2019 12:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: mpolacek 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-89780-4-up6Zn5cHoD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89780-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89780-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02466.txt.bz2
Content-length: 572

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2019-03-22
                 CC|                            |mpolacek at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |mpolacek at gcc dot gnu.org
     Ever confirmed|0                           |1
>From gcc-bugs-return-638173-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 13:19:10 2019
Return-Path: <gcc-bugs-return-638173-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7098 invoked by alias); 22 Mar 2019 13:19: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 6998 invoked by uid 48); 22 Mar 2019 13:19:05 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89793] Implicit conversion to std::string is ambiguous on GCC 8.2 but not GCC 7.3
Date: Fri, 22 Mar 2019 13: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: 8.2.1
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-89793-4-j4dnHmJMhm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89793-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89793-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02467.txt.bz2
Content-length: 569

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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I haven't analysed whether it's valid yet, but it started to fail with r258755

            PR c++/81311 - wrong C++17 overload resolution.

            * call.c (build_user_type_conversion_1): Remove C++17 code.
            (conv_binds_ref_to_prvalue): New.
            (build_over_call): Handle C++17 copy elision.
            (build_special_member_call): Only do C++17 copy elision here if the
            argument is already the right type.
>From gcc-bugs-return-638174-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 13:31:26 2019
Return-Path: <gcc-bugs-return-638174-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67066 invoked by alias); 22 Mar 2019 13:31: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 66694 invoked by uid 48); 22 Mar 2019 13:31:14 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89793] Implicit conversion to std::string is ambiguous on GCC 8.2 but not GCC 7.3
Date: Fri, 22 Mar 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: c++
X-Bugzilla-Version: 8.2.1
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-89793-4-Lo3Kj7FnPw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89793-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89793-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02468.txt.bz2
Content-length: 1198

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

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Harald van Dijk from comment #1)
> Your StringType provides a conversion operator to HTTPResponse, which
> indirectly has std::allocator<char> as a private base class. Overload
> resolution happens before access checks, so the fact that it is a private
> base class does not prevent the construction of std::string from being
> ambiguous: the conversion to HTTPResponse could be used followed by the
> construction of a new std::string using the HTTPResponse as the allocator.

Right, the code is equivalent to this:

#include <string>

struct NotString : std::allocator<char> { };

struct String {
  operator std::string() const;
  operator NotString() const;
};

struct Message {
  template<typename T>
    Message(T&& t) : s{t} { }
  std::string s;
};

int main()
{
  String s;
  Message m(s);
}


> This appears to work the same way in GCC 8 as it does in GCC 7, although it
> is possible that for whatever reason, the GCC 7 version ends up not
> including std::allocator<char> as a base class.

There was a change in overload resolution between GCC 7 and 8.
>From gcc-bugs-return-638175-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 13:33:56 2019
Return-Path: <gcc-bugs-return-638175-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75476 invoked by alias); 22 Mar 2019 13:33: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 75397 invoked by uid 48); 22 Mar 2019 13:33:51 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89793] Implicit conversion to std::string is ambiguous on GCC 8.2 but not GCC 7.3
Date: Fri, 22 Mar 2019 13: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:
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-89793-4-U7jmOxEzdG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89793-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89793-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02469.txt.bz2
Content-length: 1525

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

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Minimal testcase:

struct allocator { };

struct string {
  string(const string&);
  string(const allocator&);
};

struct NotString : allocator { };

struct String {
  operator string() const;
  operator NotString() const;
};

struct Message {
  template<typename T>
    Message(T&& t) : s{t} { }
  string s;
};

int main()
{
  String s;
  Message m(s);
}

This is rejected by GCC 8:

s.cc: In instantiation of ‘Message::Message(T&&) [with T = String&]’:
s.cc:24:14:   required from here
s.cc:17:25: error: call of overloaded ‘string(<brace-enclosed initializer
list>)’ is ambiguous
     Message(T&& t) : s{t} { }
                         ^
s.cc:5:3: note: candidate: ‘string::string(const allocator&)’
   string(const allocator&);
   ^~~~~~
s.cc:4:3: note: candidate: ‘string::string(const string&)’
   string(const string&);
   ^~~~~~

EDG also rejects it:

"s.cc", line 17: error: more than one instance of constructor "string::string"
          matches the argument list:
            function "string::string(const string &)"
            function "string::string(const allocator &)"
            argument types are: (String)
      Message(T&& t) : s{t} { }
                        ^
          detected during instantiation of "Message::Message(T &&) [with
                    T=String &]" at line 24


It's accepted by Clang.
>From gcc-bugs-return-638176-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 13:37:38 2019
Return-Path: <gcc-bugs-return-638176-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22508 invoked by alias); 22 Mar 2019 13:37: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 22441 invoked by uid 48); 22 Mar 2019 13:37:33 -0000
From: "harald at gigawatt dot nl" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89793] Implicit conversion to std::string is ambiguous on GCC 8.2 but not GCC 7.3
Date: Fri, 22 Mar 2019 13: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:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: harald at gigawatt dot nl
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-89793-4-b7GKdIOg9o@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89793-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89793-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02470.txt.bz2
Content-length: 645

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

--- Comment #6 from Harald van Dijk <harald at gigawatt dot nl> ---
(In reply to Jonathan Wakely from comment #4)
> (In reply to Harald van Dijk from comment #1)
> > This appears to work the same way in GCC 8 as it does in GCC 7, although it
> > is possible that for whatever reason, the GCC 7 version ends up not
> > including std::allocator<char> as a base class.
> 
> There was a change in overload resolution between GCC 7 and 8.

Ah, sorry, I just realised I was testing a smaller version without -std=c++17
on GCC 7. Yeah, I see the difference between GCC 7 and GCC 8 as well.
>From gcc-bugs-return-638177-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 13:42:48 2019
Return-Path: <gcc-bugs-return-638177-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48834 invoked by alias); 22 Mar 2019 13:42: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 48746 invoked by uid 48); 22 Mar 2019 13:42:43 -0000
From: "piotrwn1 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/78830] std::prev accepts ForwardIterator-s
Date: Fri, 22 Mar 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: libstdc++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: piotrwn1 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: cc
Message-ID: <bug-78830-4-a7au7tbLNS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78830-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78830-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02471.txt.bz2
Content-length: 1287

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

Piotr Nycz <piotrwn1 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |piotrwn1 at gmail dot com

--- Comment #5 from Piotr Nycz <piotrwn1 at gmail dot com> ---
Still not "enhanced" (gcc9). 
CLANG with its std-lib correctly (IMO) does not compile it.

I understand this is UB - but implementation might suggest it is checked that
iterator is biderectional (at least ) but this check has no effect.

```

  template<typename _BidirectionalIterator>
    inline _BidirectionalIterator
    prev(_BidirectionalIterator __x, typename
         iterator_traits<_BidirectionalIterator>::difference_type __n = 1) 
    {
      // concept requirements
      __glibcxx_function_requires(_BidirectionalIteratorConcept<
                                  _BidirectionalIterator>)
      std::advance(__x, -__n);
      return __x;
    }

``` 

it is very troublesome to realize that there is something wrong here - when you
have UB="very long time consuming loop (LONG_MAX iteration probably)"

Is there anything that can be done to increase importance of this enhancement?
>From gcc-bugs-return-638178-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 13:49:00 2019
Return-Path: <gcc-bugs-return-638178-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130427 invoked by alias); 22 Mar 2019 13:48: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 25005 invoked by uid 48); 22 Mar 2019 13:48:06 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89793] Implicit conversion to std::string is ambiguous on GCC 8.2 but not GCC 7.3
Date: Fri, 22 Mar 2019 13:48: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: 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: cc
Message-ID: <bug-89793-4-LOIjQWFpH1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89793-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89793-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02472.txt.bz2
Content-length: 718

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

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

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

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Jason, I'm not sure if this is a regression in gcc-8 or a bug in gcc-7 that was
fixed.

It looks like both conversion sequences (String -> string -> const string& and
String -> NotString -> const allocator&) have Conversion rank, although the
lack of a derived-to-base conversion in the first one would naively seem to
make it better.
>From gcc-bugs-return-638179-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 13:51:29 2019
Return-Path: <gcc-bugs-return-638179-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65139 invoked by alias); 22 Mar 2019 13:51:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 65082 invoked by uid 48); 22 Mar 2019 13:51:25 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/78830] std::prev accepts ForwardIterator-s
Date: Fri, 22 Mar 2019 13:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
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-78830-4-ROo6wsH7M1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78830-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78830-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02473.txt.bz2
Content-length: 617

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

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Piotr Nycz from comment #5)
> CLANG with its std-lib correctly (IMO) does not compile it.

As explained above, GCC is already correct here.

> I understand this is UB - but implementation might suggest it is checked
> that iterator is biderectional (at least ) but this check has no effect.

It does if you compile with -D_GLIBCXX_CONCEPT_CHECKS


> Is there anything that can be done to increase importance of this
> enhancement?

Write a patch?

https://gcc.gnu.org/contribute.html
>From gcc-bugs-return-638180-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 13:52:24 2019
Return-Path: <gcc-bugs-return-638180-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75363 invoked by alias); 22 Mar 2019 13:52: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 75294 invoked by uid 48); 22 Mar 2019 13:52:18 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89785] Incorrect "not a constant expression" error with switch statement that returns
Date: Fri, 22 Mar 2019 13:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: rejects-valid
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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-89785-4-Ch4C9V7I2M@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89785-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89785-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02474.txt.bz2
Content-length: 3010

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-03-22
     Ever confirmed|0                           |1

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The bug is then in potential_constant_expression_1:
    case SWITCH_STMT:
      if (!RECUR (SWITCH_STMT_COND (t), rval))
        return false;
      /* FIXME we don't check SWITCH_STMT_BODY currently, because even
         unreachable labels would be checked.  */
      return true;

This is not conservatively correct as the testcases show.
The question is how much effort we do want to spend on that.

The simplest might be to add *jump_target = integer_zero_node; before the
return true; above, that will just assume any switch can return and not check
both the switch body (which isn't checked even now) nor anything after the
switch.

Another option, slightly more involved, is say cp_walk_tree on
SWITCH_STMT_BODY, looking for any RETURN_EXPRs or CONTINUE_STMTs (the latter
only when not nested inside of a FOR_STMT, DO_STMT, WHILE_STMT and
RANGE_FOR_STMT) and if we find a RETURN_EXPR, set jump_target to that, if we
don't, but find a CONTINUE_STMT not nested in further looping constructs, set
*jump_target to that CONTINUE_STMT, otherwise keep it unchanged.  To me this
looks like the best approach for now.

Another option is try to do something for the case when SWITCH_STMT_COND is
constant, but already for that we'd need to greatly extend the simplified:
  if (*jump_target)
    /* If we are jumping, ignore everything.  This is simpler than the
       cxx_eval_constant_expression handling because we only need to be
       conservatively correct, and we don't necessarily have a constant value
       available, so we don't bother with switch tracking.  */
    return true;
so that we do walk statements that can embed other statements like
cxx_eval_constant_expression does and all of that stuff, with label_matches
etc.

And if the above is done, we could have some also some mode in which for
non-constant SWITCH_STMT_COND we could say set *jump_target to the SWITCH_STMT
itself and treat it as a walk which walks the switch body, if it finds some
CASE_LABEL_EXPR, it will change it to some other mode which will start
processing all the expressions; if we detect something that is not a potential
constant expression, we would at the level of whole stmts switch back to that
*jump_target = SWITCH_STMT mode and keep looking for another CASE_LABEL_EXPR
and that way, if for any of the switch condition values there would be a
potential constant expression, we'd succeed, otherwise fail, and even set
jump_target properly based on that.  But this would be quite a lot of work.

Jason, any preferences here?
>From gcc-bugs-return-638181-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 13:58:37 2019
Return-Path: <gcc-bugs-return-638181-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66185 invoked by alias); 22 Mar 2019 13:58: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 60165 invoked by uid 48); 22 Mar 2019 13:58:30 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/78830] std::prev accepts ForwardIterator-s
Date: Fri, 22 Mar 2019 13:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
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-78830-4-qkhlaKs3vN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78830-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78830-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02475.txt.bz2
Content-length: 4508

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

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #6)
> (In reply to Piotr Nycz from comment #5)
> > CLANG with its std-lib correctly (IMO) does not compile it.
> 
> As explained above, GCC is already correct here.
> 
> > I understand this is UB - but implementation might suggest it is checked
> > that iterator is biderectional (at least ) but this check has no effect.
> 
> It does if you compile with -D_GLIBCXX_CONCEPT_CHECKS

If you enable concept checks it will fail to compile:

In file included from /usr/include/c++/8/bits/concept_check.h:56,
                 from /usr/include/c++/8/bits/move.h:34,
                 from /usr/include/c++/8/bits/stl_iterator.h:65,
                 from /usr/include/c++/8/bits/forward_list.h:37,
                 from /usr/include/c++/8/forward_list:38,
                 from prev.cc:1:
/usr/include/c++/8/bits/boost_concept_check.h: In instantiation of ‘void
__gnu_cxx::_BidirectionalIteratorConcept<_Tp>::__constraints() [with _Tp =
std::_Fwd_list_iterator<int>]’:
/usr/include/c++/8/bits/boost_concept_check.h:62:39:   required from ‘void
__gnu_cxx::__function_requires() [with _Concept =
__gnu_cxx::_BidirectionalIteratorConcept<std::_Fwd_list_iterator<int> >]’
/usr/include/c++/8/bits/stl_iterator_base_funcs.h:228:7:   required from
‘_BidirectionalIterator std::prev(_BidirectionalIterator, typename
std::iterator_traits<_Iter>::difference_type) [with _BidirectionalIterator =
std::_Fwd_list_iterator<int>; typename
std::iterator_traits<_Iter>::difference_type = long int]’
prev.cc:7:35:   required from here
/usr/include/c++/8/bits/boost_concept_check.h:506:7: error: no match for
‘operator--’ (operand type is ‘std::_Fwd_list_iterator<int>’)
       --__i;                            // require predecrement operator
       ^~~~~
/usr/include/c++/8/bits/boost_concept_check.h:507:10: error: no
‘operator--(int)’ declared for postfix ‘--’ [-fpermissive]
       __i--;                            // require postdecrement operator
       ~~~^~
/usr/include/c++/8/bits/boost_concept_check.h: In instantiation of ‘void
__gnu_cxx::_ConvertibleConcept<_From, _To>::__constraints() [with _From =
std::forward_iterator_tag; _To = std::bidirectional_iterator_tag]’:
/usr/include/c++/8/bits/boost_concept_check.h:62:39:   required from ‘void
__gnu_cxx::__function_requires() [with _Concept =
__gnu_cxx::_ConvertibleConcept<std::forward_iterator_tag,
std::bidirectional_iterator_tag>]’
/usr/include/c++/8/bits/boost_concept_check.h:505:43:   required from ‘void
__gnu_cxx::_BidirectionalIteratorConcept<_Tp>::__constraints() [with _Tp =
std::_Fwd_list_iterator<int>]’
/usr/include/c++/8/bits/boost_concept_check.h:62:39:   required from ‘void
__gnu_cxx::__function_requires() [with _Concept =
__gnu_cxx::_BidirectionalIteratorConcept<std::_Fwd_list_iterator<int> >]’
/usr/include/c++/8/bits/stl_iterator_base_funcs.h:228:7:   required from
‘_BidirectionalIterator std::prev(_BidirectionalIterator, typename
std::iterator_traits<_Iter>::difference_type) [with _BidirectionalIterator =
std::_Fwd_list_iterator<int>; typename
std::iterator_traits<_Iter>::difference_type = long int]’
prev.cc:7:35:   required from here
/usr/include/c++/8/bits/boost_concept_check.h:223:27: error: conversion from
‘std::forward_iterator_tag’ to non-scalar type
‘std::bidirectional_iterator_tag’ requested
       _To __y _IsUnused = __x;
                           ^~~

But I don't recommend using those concepts checks for C++11 or later, because
some of the checks are outdated and only enforce the C++98 requirements, so
they're wrong for the current standard.

If you compile with -D_GLIBCXX_ASSERTIONS (or -D_GLIBCXX_DEBUG which also
enables the former) then it will fail at runtime when trying to advance a
non-bidirectional iterator by a negative number:

/usr/include/c++/8/bits/stl_iterator_base_funcs.h:151: constexpr void
std::__advance(_InputIterator&, _Distance, std::input_iterator_tag) [with
_InputIterator = std::_Fwd_list_iterator<int>; _Distance = long int]: Assertion
'__n >= 0' failed.
Aborted (core dumped)

So we actually already provide two ways to prevent this UB.
>From gcc-bugs-return-638182-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 13:59:41 2019
Return-Path: <gcc-bugs-return-638182-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78201 invoked by alias); 22 Mar 2019 13:59: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 78145 invoked by uid 55); 22 Mar 2019 13:59:37 -0000
From: "pmderodat at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/89583] GNAT.Sockets.Bind_Socket fails with IPv4 address
Date: Fri, 22 Mar 2019 13:59: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pmderodat 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-89583-4-BSF60WLncR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89583-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89583-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02476.txt.bz2
Content-length: 1112

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

--- Comment #1 from pmderodat at gcc dot gnu.org ---
Author: pmderodat
Date: Fri Mar 22 13:59:02 2019
New Revision: 269873

URL: https://gcc.gnu.org/viewcvs?rev=269873&root=gcc&view=rev
Log:
[Ada] GNAT.Sockets: fix recent regressions

The support for IPv6 that was added since last release triggered
regressions on various platforms. The size of structures passed to low
level routines was not correct anymore: it should depend on the address
family, now.

2019-03-22  Dmitriy Anisimkov  <anisimko@adacore.com>

gcc/ada/

        PR ada/89583
        * libgnat/g-socket.adb (Bind_Socket, Connect_Socket,
        Send_Socket): Fix the computation of structure lengths passed to
        low level routines.
        (Is_IPv6_Address): Fix the number of expected colons.

2019-03-22  Simon Wright  <simon@pushface.org>

gcc/testsuite/

        PR ada/89583
        * gnat.dg/socket2.adb: New.

Added:
    trunk/gcc/testsuite/gnat.dg/socket2.adb
Modified:
    trunk/gcc/ada/ChangeLog
    trunk/gcc/ada/libgnat/g-socket.adb
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-638183-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 14:41:36 2019
Return-Path: <gcc-bugs-return-638183-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35779 invoked by alias); 22 Mar 2019 14:41: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 35680 invoked by uid 55); 22 Mar 2019 14:41:31 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/87481] [7/8/9 Regression] Endless loop with optimisation in C++17
Date: Fri, 22 Mar 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: c++
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: compile-time-hog, ice-on-invalid-code, memory-hog
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-87481-4-Dp1PQqgZZc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87481-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87481-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02477.txt.bz2
Content-length: 1206

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

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Mar 22 14:40:59 2019
New Revision: 269874

URL: https://gcc.gnu.org/viewcvs?rev=269874&root=gcc&view=rev
Log:
        PR c++/87481
        * doc/invoke.texi (-fconstexpr-ops-limit=): Document.

        * c.opt (-fconstexpr-ops-limit=): New option.

        * constexpr.c (struct constexpr_ctx): Add constexpr_ops_count member.
        (cxx_eval_constant_expression): When not skipping, not constant class
        or location wrapper, increment *ctx->constexpr_ops_count and if it is
        above constexpr_loop_nest_limit, diagnose failure.
        (cxx_eval_outermost_constant_expr): Add constexpr_ops_count and
        initialize ctx.constexpr_ops_count to its address.
        (is_sub_constant_expr): Likewise.

        * g++.dg/cpp1y/constexpr-87481.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/constexpr-87481.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c.opt
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/constexpr.c
    trunk/gcc/doc/invoke.texi
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-638184-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 14:43:34 2019
Return-Path: <gcc-bugs-return-638184-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39168 invoked by alias); 22 Mar 2019 14:43: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 39091 invoked by uid 55); 22 Mar 2019 14:43:30 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/60702] thread_local initialization
Date: Fri, 22 Mar 2019 14: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: 4.8.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-60702-4-9bhQmPqgZP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60702-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60702-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02478.txt.bz2
Content-length: 2413

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

--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Mar 22 14:42:57 2019
New Revision: 269875

URL: https://gcc.gnu.org/viewcvs?rev=269875&root=gcc&view=rev
Log:
        PR c++/60702
        * cp-tree.h (get_tls_wrapper_fn): Remove declaration.
        (maybe_get_tls_wrapper_call): Declare.
        * decl2.c (get_tls_wrapper_fn): Make static.
        (maybe_get_tls_wrapper_call): New function.
        * typeck.c (build_class_member_access_expr): Handle accesses to TLS
        variables.
        * semantics.c (finish_qualified_id_expr): Likewise.
        (finish_id_expression_1): Use maybe_get_tls_wrapper_call.
        * pt.c (tsubst_copy_and_build): Likewise.

        * g++.dg/tls/thread_local11.C: New test.
        * g++.dg/tls/thread_local11.h: New test.
        * g++.dg/tls/thread_local12a.C: New test.
        * g++.dg/tls/thread_local12b.C: New test.
        * g++.dg/tls/thread_local12c.C: New test.
        * g++.dg/tls/thread_local12d.C: New test.
        * g++.dg/tls/thread_local12e.C: New test.
        * g++.dg/tls/thread_local12f.C: New test.
        * g++.dg/tls/thread_local12g.C: New test.
        * g++.dg/tls/thread_local12h.C: New test.
        * g++.dg/tls/thread_local12i.C: New test.
        * g++.dg/tls/thread_local12j.C: New test.
        * g++.dg/tls/thread_local12k.C: New test.
        * g++.dg/tls/thread_local12l.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/tls/thread_local11.C
    trunk/gcc/testsuite/g++.dg/tls/thread_local11.h
    trunk/gcc/testsuite/g++.dg/tls/thread_local12a.C
    trunk/gcc/testsuite/g++.dg/tls/thread_local12b.C
    trunk/gcc/testsuite/g++.dg/tls/thread_local12c.C
    trunk/gcc/testsuite/g++.dg/tls/thread_local12d.C
    trunk/gcc/testsuite/g++.dg/tls/thread_local12e.C
    trunk/gcc/testsuite/g++.dg/tls/thread_local12f.C
    trunk/gcc/testsuite/g++.dg/tls/thread_local12g.C
    trunk/gcc/testsuite/g++.dg/tls/thread_local12h.C
    trunk/gcc/testsuite/g++.dg/tls/thread_local12i.C
    trunk/gcc/testsuite/g++.dg/tls/thread_local12j.C
    trunk/gcc/testsuite/g++.dg/tls/thread_local12k.C
    trunk/gcc/testsuite/g++.dg/tls/thread_local12l.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/decl2.c
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/semantics.c
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-638185-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 14:44:53 2019
Return-Path: <gcc-bugs-return-638185-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40850 invoked by alias); 22 Mar 2019 14:44: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 40767 invoked by uid 48); 22 Mar 2019 14:44:48 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/78830] std::prev accepts ForwardIterator-s
Date: Fri, 22 Mar 2019 14:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 10.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-78830-4-OaVWG6kH0x@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78830-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78830-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02479.txt.bz2
Content-length: 1049

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID
   Target Milestone|---                         |10.0

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I don't think it's conforming to reject this at compile-time, because
std::prev(it, -1) is equivalent to std::advance(it, 1) which is valid for
forward iterators. So libc++ has a bug, it is not allowed to reject forward
iterators unconditionally (only when it can prove the argument to prev is
greater than zero).

The best we can do is check for negative values at runtime and abort, which we
already do.

One day I hope to be able to enhance those assertions to warn at compile-time
if the compiler can tell the assertion will fail, but that is not currently
possible.
>From gcc-bugs-return-638186-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 14:46:26 2019
Return-Path: <gcc-bugs-return-638186-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43760 invoked by alias); 22 Mar 2019 14:46: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 43675 invoked by uid 48); 22 Mar 2019 14:46:22 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89785] Incorrect "not a constant expression" error with switch statement that returns
Date: Fri, 22 Mar 2019 14: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: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-89785-4-YGvxEf31Yv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89785-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89785-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02480.txt.bz2
Content-length: 486

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

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

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

--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
(I'd be interested in implementing one of the above, but would also like to
hear from Jason first.)
>From gcc-bugs-return-638187-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 14:48:58 2019
Return-Path: <gcc-bugs-return-638187-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53736 invoked by alias); 22 Mar 2019 14:48: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 51416 invoked by uid 48); 22 Mar 2019 14:48:46 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/78830] std::prev accepts ForwardIterator-s
Date: Fri, 22 Mar 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: libstdc++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 10.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78830-4-CC7zeTdapv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78830-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78830-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02481.txt.bz2
Content-length: 273

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

--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> ---
P.S. in C++2a std::ranges::prev does make it ill-formed to pass arguments that
don't satisfy the BidirectionalIterator concept. But std::prev doesn't.
>From gcc-bugs-return-638188-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 15:01:23 2019
Return-Path: <gcc-bugs-return-638188-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99138 invoked by alias); 22 Mar 2019 15:01: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 96915 invoked by uid 48); 22 Mar 2019 15:01:13 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/60702] thread_local initialization
Date: Fri, 22 Mar 2019 15:01: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.8.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-60702-4-fdNEmdy9Uq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60702-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60702-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02482.txt.bz2
Content-length: 3520

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

--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Iain Sandoe from comment #11)
> (In reply to Jakub Jelinek from comment #10)
> > Created attachment 45976 [details]
> > gcc9-pr60702.patch
> > 
> > Untested fix.
> 
> For emulated TLS on x86_64-Darwin16, this progresses 
> thread_local12c.C 
> thread_local12d.C
> thread_local12i.C
> thread_local12j.C
> thread_local12l.C
> 
> which fail without the patch and pass with it,
> 
> thread_local11.C 
> fails for every instance of _ZTH*
> (passes for _ZTW* 2 gimple)

Doesn't thread_local-wrap3.C FAIL then as well?
If yes, then perhaps:
--- gcc/testsuite/g++.dg/tls/thread_local11.C.jj        2019-03-22
15:42:02.506993141 +0100
+++ gcc/testsuite/g++.dg/tls/thread_local11.C   2019-03-22 15:56:11.077364204
+0100
@@ -15,18 +15,18 @@
 // { dg-final { scan-tree-dump-times "_ZTWN1T2u6E" 2 "gimple" } }
 // { dg-final { scan-tree-dump-times "_ZTWN1T2u7E" 2 "gimple" } }
 // { dg-final { scan-tree-dump-times "_ZTWN1T2u8E" 2 "gimple" } }
-// { dg-final { scan-tree-dump-times "_ZTH2s1" 1 "gimple" } }
-// { dg-final { scan-tree-dump-times "_ZTH2s2" 1 "gimple" } }
-// { dg-final { scan-tree-dump-times "_ZTH2s3" 1 "gimple" } }
-// { dg-final { scan-tree-dump-times "_ZTH2s4" 1 "gimple" } }
-// { dg-final { scan-tree-dump-times "_ZTHN1T2u1E" 1 "gimple" } }
-// { dg-final { scan-tree-dump-times "_ZTHN1T2u2E" 1 "gimple" } }
-// { dg-final { scan-tree-dump-times "_ZTHN1T2u3E" 1 "gimple" } }
-// { dg-final { scan-tree-dump-times "_ZTHN1T2u4E" 1 "gimple" } }
-// { dg-final { scan-tree-dump-times "_ZTHN1T2u5E" 1 "gimple" } }
-// { dg-final { scan-tree-dump-times "_ZTHN1T2u6E" 1 "gimple" } }
-// { dg-final { scan-tree-dump-times "_ZTHN1T2u7E" 1 "gimple" } }
-// { dg-final { scan-tree-dump-times "_ZTHN1T2u8E" 1 "gimple" } }
+// { dg-final { scan-tree-dump-times "_ZTH2s1" 1 "gimple" { target tls_native
} } }
+// { dg-final { scan-tree-dump-times "_ZTH2s2" 1 "gimple" { target tls_native
} } }
+// { dg-final { scan-tree-dump-times "_ZTH2s3" 1 "gimple" { target tls_native
} } }
+// { dg-final { scan-tree-dump-times "_ZTH2s4" 1 "gimple" { target tls_native
} } }
+// { dg-final { scan-tree-dump-times "_ZTHN1T2u1E" 1 "gimple" { target
tls_native } } }
+// { dg-final { scan-tree-dump-times "_ZTHN1T2u2E" 1 "gimple" { target
tls_native } } }
+// { dg-final { scan-tree-dump-times "_ZTHN1T2u3E" 1 "gimple" { target
tls_native } } }
+// { dg-final { scan-tree-dump-times "_ZTHN1T2u4E" 1 "gimple" { target
tls_native } } }
+// { dg-final { scan-tree-dump-times "_ZTHN1T2u5E" 1 "gimple" { target
tls_native } } }
+// { dg-final { scan-tree-dump-times "_ZTHN1T2u6E" 1 "gimple" { target
tls_native } } }
+// { dg-final { scan-tree-dump-times "_ZTHN1T2u7E" 1 "gimple" { target
tls_native } } }
+// { dg-final { scan-tree-dump-times "_ZTHN1T2u8E" 1 "gimple" { target
tls_native } } }

 #include "thread_local11.h"

If that test doesn't fail, then perhaps instead:
--- gcc/testsuite/g++.dg/tls/thread_local11.C.jj        2019-03-22
15:42:02.506993141 +0100
+++ gcc/testsuite/g++.dg/tls/thread_local11.C   2019-03-22 16:00:08.863486555
+0100
@@ -1,6 +1,7 @@
 // PR c++/60702
 // { dg-do compile { target c++11 } }
 // { dg-add-options tls }
+// { dg-require-alias "" }
 // { dg-require-effective-target tls_runtime }
 // { dg-additional-options "-fdump-tree-gimple" }
 // { dg-final { scan-tree-dump-times "_ZTW2s1" 2 "gimple" } }

(sadly there is no effective target alias).
>From gcc-bugs-return-638189-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 15:15:56 2019
Return-Path: <gcc-bugs-return-638189-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13451 invoked by alias); 22 Mar 2019 15:15: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 13199 invoked by uid 48); 22 Mar 2019 15:15:35 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80472] cannot use push/pop with #pragma GCC diagnostic warning "-Wsystem-headers"
Date: Fri, 22 Mar 2019 15:15: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.1
X-Bugzilla-Keywords: diagnostic, easyhack
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-80472-4-Pk2NBWPfdw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80472-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80472-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02483.txt.bz2
Content-length: 1231

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

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Another place where I'd like to selectively enable warnings is for this code
(from PR 78830):

#include <forward_list>
#include <algorithm>

int main()
{
    std::forward_list<int> il = {1, 2, 3, 4, 5, 6, 7}; 
    auto iter = std::prev(il.end());
}


With -Wall -O1 -Wsystem-headers GCC detects the undefined behaviour:

In file included from
/home/jwakely/gcc/9/include/c++/9.0.1/bits/stl_algobase.h:66,
                 from
/home/jwakely/gcc/9/include/c++/9.0.1/bits/forward_list.h:38,
                 from /home/jwakely/gcc/9/include/c++/9.0.1/forward_list:38,
                 from prev.cc:1:
/home/jwakely/gcc/9/include/c++/9.0.1/bits/stl_iterator_base_funcs.h:153:7:
warning: iteration 9223372036854775807 invokes undefined behavior
[-Waggressive-loop-optimizations]
  153 |       while (__n--)
      |       ^~~~~
/home/jwakely/gcc/9/include/c++/9.0.1/bits/stl_iterator_base_funcs.h:153:7:
note: within this loop

but that very useful warning is suppressed by default. This bug prevents me
from locally enabling -Wsystem-headers around the relevant functions in
<bits/stl_iterator_base_funcs.h>.
>From gcc-bugs-return-638190-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 15:21:26 2019
Return-Path: <gcc-bugs-return-638190-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43227 invoked by alias); 22 Mar 2019 15:21: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 43081 invoked by uid 48); 22 Mar 2019 15:21:22 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/43167] Warnings should not be disabled when instantiating templates defined in system headers
Date: Fri, 22 Mar 2019 15: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: 4.5.0
X-Bugzilla-Keywords: diagnostic
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: cf_reconfirmed_on see_also
Message-ID: <bug-43167-4-HHjubbPkR6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-43167-4@http.gcc.gnu.org/bugzilla/>
References: <bug-43167-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02484.txt.bz2
Content-length: 1314

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2017-01-24 00:00:00         |2019-3-22
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=80472

--- Comment #16 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Bug 80472 comment 4 is another case where GCC detects undefined behaviour
caused by user-provided values, but the warning is suppressed because it's
inside a template defined in a system header:

In file included from
/home/jwakely/gcc/9/include/c++/9.0.1/bits/stl_algobase.h:66,
                 from
/home/jwakely/gcc/9/include/c++/9.0.1/bits/forward_list.h:38,
                 from /home/jwakely/gcc/9/include/c++/9.0.1/forward_list:38,
                 from prev.cc:1:
/home/jwakely/gcc/9/include/c++/9.0.1/bits/stl_iterator_base_funcs.h:153:7:
warning: iteration 9223372036854775807 invokes undefined behavior
[-Waggressive-loop-optimizations]
  153 |       while (__n--)
      |       ^~~~~
/home/jwakely/gcc/9/include/c++/9.0.1/bits/stl_iterator_base_funcs.h:153:7:
note: within this loop
>From gcc-bugs-return-638191-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 15:22:05 2019
Return-Path: <gcc-bugs-return-638191-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45436 invoked by alias); 22 Mar 2019 15:22: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 45336 invoked by uid 48); 22 Mar 2019 15:22:00 -0000
From: "akrzemi1 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/78830] std::prev accepts ForwardIterator-s
Date: Fri, 22 Mar 2019 15:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: akrzemi1 at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 10.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78830-4-rNoO4mahvj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78830-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78830-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02485.txt.bz2
Content-length: 415

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

--- Comment #10 from Andrzej Krzemienski <akrzemi1 at gmail dot com> ---
For `std::prev()` it is UB, but by my reading of UB
(http://eel.is/c++draft/intro.defs#defns.undefined) it is legal for the
implementation to respond with "terminating a translation" "with the issuance
of a diagnostic message", given that the UB in question can be detected
statically.
>From gcc-bugs-return-638192-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 15:31:26 2019
Return-Path: <gcc-bugs-return-638192-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71715 invoked by alias); 22 Mar 2019 15:31: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 70344 invoked by uid 48); 22 Mar 2019 15:31:09 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/43167] Warnings should not be disabled when instantiating templates defined in system headers
Date: Fri, 22 Mar 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: c++
X-Bugzilla-Version: 4.5.0
X-Bugzilla-Keywords: diagnostic
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-43167-4-sq2yngNMpt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-43167-4@http.gcc.gnu.org/bugzilla/>
References: <bug-43167-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02486.txt.bz2
Content-length: 1139

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

--- Comment #17 from Jonathan Wakely <redi at gcc dot gnu.org> ---
And Bug 87614 is a simpler form of Ian's original example in comment 0:

#include <vector>

int main() {
    std::vector<unsigned short> a;
    a.emplace_back(70000);
}

With -Wsystem-header -Wconversion:

[...]
87614.cc:5:25:   required from here
/home/jwakely/gcc/9/include/c++/9.0.1/ext/new_allocator.h:147:4: warning:
conversion from 'int' to 'short unsigned int' may change value [-Wconversion]
  147 |  { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
      |    ^

This error comes from the user's code, the fact the actual conversion happens
deep inside libstdc++ rather than at the call site is only because the function
templates preserves the original type all the way down. But the error is in the
user's code, not in the libstdc++ code which is just doing what it was told to
by the user.

The better GCC gets at detecting such problems and warning about them, the
bigger a problem it becomes that using templates from the C++ standard library
suppresses all GCC's useful warnings.
>From gcc-bugs-return-638193-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 15:33:33 2019
Return-Path: <gcc-bugs-return-638193-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34720 invoked by alias); 22 Mar 2019 15:33: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 32270 invoked by uid 48); 22 Mar 2019 15:33:29 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/43167] Warnings should not be disabled when instantiating templates defined in system headers
Date: Fri, 22 Mar 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: c++
X-Bugzilla-Version: 4.5.0
X-Bugzilla-Keywords: diagnostic
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-43167-4-dEcVVWIvtI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-43167-4@http.gcc.gnu.org/bugzilla/>
References: <bug-43167-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02487.txt.bz2
Content-length: 318

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

--- Comment #18 from Jonathan Wakely <redi at gcc dot gnu.org> ---
From Matthias Kretz on IRC:

GCC needs to make a difference between warnings that apply when reading the
system headers and warnings that only manifest on a template instantiation or
constprop
>From gcc-bugs-return-638194-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 15:34:44 2019
Return-Path: <gcc-bugs-return-638194-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65955 invoked by alias); 22 Mar 2019 15:34: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 64657 invoked by uid 48); 22 Mar 2019 15:34:40 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/78830] std::prev accepts ForwardIterator-s
Date: Fri, 22 Mar 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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 10.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78830-4-XA0Vz0fm95@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78830-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78830-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02488.txt.bz2
Content-length: 357

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

--- Comment #11 from Jonathan Wakely <redi at gcc dot gnu.org> ---
As I already said:

(In reply to Jonathan Wakely from comment #8)
> One day I hope to be able to enhance those assertions to warn at
> compile-time if the compiler can tell the assertion will fail, but that is
> not currently possible.
>From gcc-bugs-return-638195-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 15:36:18 2019
Return-Path: <gcc-bugs-return-638195-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82893 invoked by alias); 22 Mar 2019 15:36: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 76377 invoked by uid 48); 22 Mar 2019 15:36:13 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/78830] std::prev accepts ForwardIterator-s
Date: Fri, 22 Mar 2019 15:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 10.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78830-4-gRWouWaHv1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78830-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78830-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02489.txt.bz2
Content-length: 682

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

--- Comment #12 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Finally, with -Waggressive-loop-optimizations -Wsystem-headers -O1 it does
terminate translation:

/usr/include/c++/8/bits/stl_iterator_base_funcs.h: In function ‘int main()’:
/usr/include/c++/8/bits/stl_iterator_base_funcs.h:152:7: error: iteration
9223372036854775807 invokes undefined behavior
[-Werror=aggressive-loop-optimizations]
       while (__n--)
       ^~~~~
/usr/include/c++/8/bits/stl_iterator_base_funcs.h:152:7: note: within this loop

It's not currently possible to make this work automatically, without
-Wsystem-headers.
>From gcc-bugs-return-638196-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 15:58:06 2019
Return-Path: <gcc-bugs-return-638196-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105021 invoked by alias); 22 Mar 2019 15:58: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 104978 invoked by uid 48); 22 Mar 2019 15:58:01 -0000
From: "perard at cg dot uni-saarland.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89796] New: Incorrect warning generated with OpenMP atomic capture
Date: Fri, 22 Mar 2019 15: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: perard at cg dot uni-saarland.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-89796-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02490.txt.bz2
Content-length: 945

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

            Bug ID: 89796
           Summary: Incorrect warning generated with OpenMP atomic capture
           Product: gcc
           Version: 8.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: perard at cg dot uni-saarland.de
  Target Milestone: ---

Created attachment 46012
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46012&action=edit
Sample code that reproduces the issue

Hello,

I get the warning "warning: value computed is not used [-Wunused-value]" when
compiling the attached code snippet with:

    g++ test.cpp -fopenmp -Wall -o test

This warning is incorrect, as the value referred to by the warning is in fact
used. Moreover, the warning does not show up when OpenMP is disabled (by
omitting -fopenmp from the command line).
>From gcc-bugs-return-638197-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 16:25:17 2019
Return-Path: <gcc-bugs-return-638197-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78892 invoked by alias); 22 Mar 2019 16:25: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 78804 invoked by uid 48); 22 Mar 2019 16:25:12 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/87481] [7/8 Regression] Endless loop with optimisation in C++17
Date: Fri, 22 Mar 2019 16:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: compile-time-hog, ice-on-invalid-code, memory-hog
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-87481-4-d9O054FWWQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87481-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87481-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02491.txt.bz2
Content-length: 535

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[7/8/9 Regression] Endless  |[7/8 Regression] Endless
                   |loop with optimisation in   |loop with optimisation in
                   |C++17                       |C++17

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed on the trunk so far.
>From gcc-bugs-return-638198-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 16:26:13 2019
Return-Path: <gcc-bugs-return-638198-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81604 invoked by alias); 22 Mar 2019 16: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 81080 invoked by uid 48); 22 Mar 2019 16:26:07 -0000
From: "ramana at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89093] [9 Regression] C++ exception handling clobbers d8 VFP register
Date: Fri, 22 Mar 2019 16: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: 9.0
X-Bugzilla-Keywords: EH, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ramana at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: ramana at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created
Message-ID: <bug-89093-4-QfPH5F2ltq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89093-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89093-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02492.txt.bz2
Content-length: 1205

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

Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #45552|0                           |1
        is obsolete|                            |
  Attachment #45580|0                           |1
        is obsolete|                            |

--- Comment #32 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> ---
Created attachment 46013
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46013&action=edit
updated patch.

Having discussed this with Richard further , instead of adding -mfpu=none , we
would prefer a mgeneral-regs-only option which keeps the 2 separate. 

I'm sorry about the time it has taken to get back but this is what I have right
now. The hunk in eh_personality.cc isn't very pleasing for me but that's
because of the warning in the ABI code which triggers on the build for a hard
float build because we do have inline functions consuming floating point. 


Either I drop the warning or I keep the hunk in eh_personality.cc - any
preferences / thoughts ?
>From gcc-bugs-return-638199-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 16:59:58 2019
Return-Path: <gcc-bugs-return-638199-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34513 invoked by alias); 22 Mar 2019 16: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 34473 invoked by uid 55); 22 Mar 2019 16:59:53 -0000
From: "vmakarov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/89676] [7/8/9 Regression] Redundant moves for long long shift on 32bit x86
Date: Fri, 22 Mar 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: rtl-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vmakarov 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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89676-4-NRsGWSmzwK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89676-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89676-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02493.txt.bz2
Content-length: 772

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

--- Comment #8 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
Author: vmakarov
Date: Fri Mar 22 16:59:21 2019
New Revision: 269878

URL: https://gcc.gnu.org/viewcvs?rev=269878&root=gcc&view=rev
Log:
2019-03-22  Vladimir Makarov  <vmakarov@redhat.com>

        PR rtl-optimization/89676
        * lra-constraints.c (curr_insn_transform): Do match reload for
        early clobbers even if the match was successful.

2019-03-22  Vladimir Makarov  <vmakarov@redhat.com>

        PR rtl-optimization/89676
        * gcc.target/i386/pr89676.c: New.


Added:
    trunk/gcc/testsuite/gcc.target/i386/pr89676.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/lra-constraints.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-638200-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 17:12:31 2019
Return-Path: <gcc-bugs-return-638200-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67612 invoked by alias); 22 Mar 2019 17:12: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 67531 invoked by uid 48); 22 Mar 2019 17:12:27 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/89797] New: ICE on a vector_size (1LU << 33) int variable
Date: Fri, 22 Mar 2019 17:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor 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-89797-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02494.txt.bz2
Content-length: 2125

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

            Bug ID: 89797
           Summary: ICE on a vector_size (1LU << 33) int variable
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: msebor at gcc dot gnu.org
  Target Milestone: ---

The following most likely invalid test case causes an ICE.  See also bug 69973
for a similar ICE.

$ cat z.c && gcc -S -Wall -Wextra z.c
#define N (1LU << 33)

__attribute__ ((vector_size (N))) int v;
z.c:3:1: internal compiler error: in tree_to_shwi, at tree.c:7267
    3 | __attribute__ ((vector_size (N))) int v;
      | ^~~~~~~~~~~~~
0x15ba089 tree_to_shwi(tree_node const*)
        /src/gcc/svn/gcc/tree.c:7267
0x1170c66 default_vector_alignment(tree_node const*)
        /src/gcc/svn/gcc/targhooks.c:1254
0x1163396 layout_type(tree_node*)
        /src/gcc/svn/gcc/stor-layout.c:2396
0x15c4adb make_vector_type
        /src/gcc/svn/gcc/tree.c:10135
0x15cba94 build_vector_type(tree_node*, poly_int<1u, long>)
        /src/gcc/svn/gcc/tree.c:11055
0x97f342 handle_vector_size_attribute
        /src/gcc/svn/gcc/c-family/c-attribs.c:3545
0x7f2bc1 decl_attributes(tree_node**, tree_node*, int, tree_node*)
        /src/gcc/svn/gcc/attribs.c:718
0x80da64 c_decl_attributes
        /src/gcc/svn/gcc/c/c-decl.c:4817
0x80e006 start_decl(c_declarator*, c_declspecs*, bool, tree_node*)
        /src/gcc/svn/gcc/c/c-decl.c:4956
0x8862ac c_parser_declaration_or_fndef
        /src/gcc/svn/gcc/c/c-parser.c:2154
0x884f1a c_parser_external_declaration
        /src/gcc/svn/gcc/c/c-parser.c:1653
0x884a1b c_parser_translation_unit
        /src/gcc/svn/gcc/c/c-parser.c:1534
0x8beced c_parse_file()
        /src/gcc/svn/gcc/c/c-parser.c:19854
0x94ea72 c_common_parse_file()
        /src/gcc/svn/gcc/c-family/c-opts.c:1156
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.
>From gcc-bugs-return-638201-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 17:13:07 2019
Return-Path: <gcc-bugs-return-638201-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68850 invoked by alias); 22 Mar 2019 17:13: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 68773 invoked by uid 48); 22 Mar 2019 17:13:04 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/89797] ICE on a vector_size (1LU << 33) int variable
Date: Fri, 22 Mar 2019 17:13: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: 9.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor 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 cf_known_to_fail
Message-ID: <bug-89797-4-kErJBIvlb2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89797-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89797-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02495.txt.bz2
Content-length: 621

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
      Known to fail|                            |4.1.3, 4.3.5, 4.4.7, 4.8.5,
                   |                            |4.9.4, 5.4.0, 6.4.0, 7.3.0,
                   |                            |8.3.0, 9.0

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
The ICE goes as far back as GCC 4.
>From gcc-bugs-return-638202-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 17:26:19 2019
Return-Path: <gcc-bugs-return-638202-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96209 invoked by alias); 22 Mar 2019 17:26: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 96077 invoked by uid 48); 22 Mar 2019 17:26:15 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/89798] New: excessive vector_size silently accepted and truncated
Date: Fri, 22 Mar 2019 17:26: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: msebor 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-89798-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02496.txt.bz2
Content-length: 1261

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

            Bug ID: 89798
           Summary: excessive vector_size silently accepted and truncated
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: msebor at gcc dot gnu.org
  Target Milestone: ---

In the following test case the declaration of v0 is accepted and its size
matches the size specified by the vector_size attribute.  The declaration of v1
is also accepted but its size does not match that specified by the same
attribute.  See also pr89797 for a similar test case that triggers an ICE.

GCC should validate the attribute argument against its internal maximum and
reject excessive arguments with a descriptive error.

$ cat z.c && gcc -S -Wall -Wextra z.c
#define N0   (1LU << 30)

__attribute__ ((vector_size (N0))) char v0;
_Static_assert (N0 == sizeof v0);   // passes


#define N1   (1LU << 34)

__attribute__ ((vector_size (N1))) char v1;
_Static_assert (N1 == sizeof v1);   // fails
z.c:10:1: error: static assertion failed
   10 | _Static_assert (N1 == sizeof v1);   // fails
      | ^~~~~~~~~~~~~~
>From gcc-bugs-return-638203-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 17:27:34 2019
Return-Path: <gcc-bugs-return-638203-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 104865 invoked by alias); 22 Mar 2019 17:27: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 104807 invoked by uid 48); 22 Mar 2019 17:27:30 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/89798] excessive vector_size silently accepted and truncated
Date: Fri, 22 Mar 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: 9.0
X-Bugzilla-Keywords: accepts-invalid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor 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 see_also
Message-ID: <bug-89798-4-xYtSXO30g5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89798-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89798-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02497.txt.bz2
Content-length: 811

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=89797

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
ICC 19 issues the following errors:

z.c(3): error: vector size is too large
  __attribute__ ((vector_size (N0))) char v0;
                  ^
z.c(9): error: vector size is too large
  __attribute__ ((vector_size (N1))) char v1;
                  ^
compilation aborted for <source> (code 2)
>From gcc-bugs-return-638204-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 18:11:03 2019
Return-Path: <gcc-bugs-return-638204-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102842 invoked by alias); 22 Mar 2019 18:11: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 102721 invoked by uid 48); 22 Mar 2019 18:10:58 -0000
From: "bernd.edlinger at hotmail dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89093] [9 Regression] C++ exception handling clobbers d8 VFP register
Date: Fri, 22 Mar 2019 18: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: EH, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bernd.edlinger at hotmail dot de
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: ramana at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89093-4-Lu035J9HWc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89093-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89093-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02498.txt.bz2
Content-length: 625

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

--- Comment #33 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
(In reply to Ramana Radhakrishnan from comment #32)
> 
> Either I drop the warning or I keep the hunk in eh_personality.cc - any
> preferences / thoughts ?

It would feel safer, if only the functions that need it
had a target attribute like:

_Unwind_Reason_Code
#ifdef __ARM_EABI_UNWINDER__
__attribute__((target("general-regs-only")))
PERSONALITY_FUNCTION (_Unwind_State state,
                      struct _Unwind_Exception* ue_header,
                      struct _Unwind_Context* context)
>From gcc-bugs-return-638205-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 18:16:12 2019
Return-Path: <gcc-bugs-return-638205-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120704 invoked by alias); 22 Mar 2019 18: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 119930 invoked by uid 55); 22 Mar 2019 18:15:47 -0000
From: "law at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/87761] [9 regression][MIPS] New FAIL: gcc.target/mips/fix-r4000-10.c   -O1 start with r265398
Date: Fri, 22 Mar 2019 18:16: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: missed-optimization, ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law 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-87761-4-XqVnqE89Xx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87761-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87761-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02499.txt.bz2
Content-length: 726

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

--- Comment #17 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Author: law
Date: Fri Mar 22 18:14:56 2019
New Revision: 269880

URL: https://gcc.gnu.org/viewcvs?rev=269880&root=gcc&view=rev
Log:
        PR rtl-optimization/87761
        * config/mips/mips-protos.h (mips_split_move): Add new argument.
        (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
        (mips_split_move): Accept new INSN argument.  Try to forward SRC
        into the next instruction.
        (mips_split_move_insn): Pass INSN through to mips_split_move.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/mips/mips-protos.h
    trunk/gcc/config/mips/mips.c
>From gcc-bugs-return-638206-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 18:36:01 2019
Return-Path: <gcc-bugs-return-638206-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62369 invoked by alias); 22 Mar 2019 18:36: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 62296 invoked by uid 48); 22 Mar 2019 18:35:57 -0000
From: "redbeard0531 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89781] Misleading error messages when initializing a static data member in-class
Date: Fri, 22 Mar 2019 18:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redbeard0531 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-89781-4-NgHoCu8QKl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89781-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89781-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02500.txt.bz2
Content-length: 381

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

--- Comment #3 from Mathias Stearn <redbeard0531 at gmail dot com> ---
Yeah, my point wasn't that this code should be accepted, it was that the error
messages should be improved. Ideally there would even be fixits suggesting
adding constexpr where it would be valid, otherwise suggesting inline.

Sorry if that wasn't clear.
>From gcc-bugs-return-638207-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 18:46:14 2019
Return-Path: <gcc-bugs-return-638207-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84267 invoked by alias); 22 Mar 2019 18:46: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 84191 invoked by uid 48); 22 Mar 2019 18:46:10 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/89797] ICE on a vector_size (1LU << 33) int variable
Date: Fri, 22 Mar 2019 18:46: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: 9.0
X-Bugzilla-Keywords: ice-on-invalid-code
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-89797-4-aBcHW36NUO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89797-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89797-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02501.txt.bz2
Content-length: 160

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Related to PR 69973 (which was fixed).
>From gcc-bugs-return-638208-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 19:39:57 2019
Return-Path: <gcc-bugs-return-638208-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125488 invoked by alias); 22 Mar 2019 19:39: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 125409 invoked by uid 48); 22 Mar 2019 19:39:51 -0000
From: "iains at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/60702] thread_local initialization
Date: Fri, 22 Mar 2019 19:39: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.8.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: iains 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-60702-4-su7nfBahR9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60702-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60702-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02502.txt.bz2
Content-length: 4199

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

--- Comment #14 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #13)
> (In reply to Iain Sandoe from comment #11)
> > (In reply to Jakub Jelinek from comment #10)
> > > Created attachment 45976 [details]
> > > gcc9-pr60702.patch
> > > 
> > > Untested fix.
> > 
> > For emulated TLS on x86_64-Darwin16, this progresses 
> > thread_local12c.C 
> > thread_local12d.C
> > thread_local12i.C
> > thread_local12j.C
> > thread_local12l.C
> > 
> > which fail without the patch and pass with it,
> > 
> > thread_local11.C 
> > fails for every instance of _ZTH*
> > (passes for _ZTW* 2 gimple)
> 
> Doesn't thread_local-wrap3.C FAIL then as well?

No, because it already 
// { dg-require-alias "" }
so it's unsupported.


> --- gcc/testsuite/g++.dg/tls/thread_local11.C.jj	2019-03-22
> 15:42:02.506993141 +0100
> +++ gcc/testsuite/g++.dg/tls/thread_local11.C	2019-03-22 15:56:11.077364204
> +0100
> @@ -15,18 +15,18 @@
>  // { dg-final { scan-tree-dump-times "_ZTWN1T2u6E" 2 "gimple" } }
>  // { dg-final { scan-tree-dump-times "_ZTWN1T2u7E" 2 "gimple" } }
>  // { dg-final { scan-tree-dump-times "_ZTWN1T2u8E" 2 "gimple" } }
> -// { dg-final { scan-tree-dump-times "_ZTH2s1" 1 "gimple" } }
> -// { dg-final { scan-tree-dump-times "_ZTH2s2" 1 "gimple" } }
> -// { dg-final { scan-tree-dump-times "_ZTH2s3" 1 "gimple" } }
> -// { dg-final { scan-tree-dump-times "_ZTH2s4" 1 "gimple" } }
> -// { dg-final { scan-tree-dump-times "_ZTHN1T2u1E" 1 "gimple" } }
> -// { dg-final { scan-tree-dump-times "_ZTHN1T2u2E" 1 "gimple" } }
> -// { dg-final { scan-tree-dump-times "_ZTHN1T2u3E" 1 "gimple" } }
> -// { dg-final { scan-tree-dump-times "_ZTHN1T2u4E" 1 "gimple" } }
> -// { dg-final { scan-tree-dump-times "_ZTHN1T2u5E" 1 "gimple" } }
> -// { dg-final { scan-tree-dump-times "_ZTHN1T2u6E" 1 "gimple" } }
> -// { dg-final { scan-tree-dump-times "_ZTHN1T2u7E" 1 "gimple" } }
> -// { dg-final { scan-tree-dump-times "_ZTHN1T2u8E" 1 "gimple" } }
> +// { dg-final { scan-tree-dump-times "_ZTH2s1" 1 "gimple" { target
> tls_native } } }
> +// { dg-final { scan-tree-dump-times "_ZTH2s2" 1 "gimple" { target
> tls_native } } }
> +// { dg-final { scan-tree-dump-times "_ZTH2s3" 1 "gimple" { target
> tls_native } } }
> +// { dg-final { scan-tree-dump-times "_ZTH2s4" 1 "gimple" { target
> tls_native } } }
> +// { dg-final { scan-tree-dump-times "_ZTHN1T2u1E" 1 "gimple" { target
> tls_native } } }
> +// { dg-final { scan-tree-dump-times "_ZTHN1T2u2E" 1 "gimple" { target
> tls_native } } }
> +// { dg-final { scan-tree-dump-times "_ZTHN1T2u3E" 1 "gimple" { target
> tls_native } } }
> +// { dg-final { scan-tree-dump-times "_ZTHN1T2u4E" 1 "gimple" { target
> tls_native } } }
> +// { dg-final { scan-tree-dump-times "_ZTHN1T2u5E" 1 "gimple" { target
> tls_native } } }
> +// { dg-final { scan-tree-dump-times "_ZTHN1T2u6E" 1 "gimple" { target
> tls_native } } }
> +// { dg-final { scan-tree-dump-times "_ZTHN1T2u7E" 1 "gimple" { target
> tls_native } } }
> +// { dg-final { scan-tree-dump-times "_ZTHN1T2u8E" 1 "gimple" { target
> tls_native } } }
>  
>  #include "thread_local11.h"

^^ works for me, results below.

I guess we could do something more clever to detect that the __tls_init calls
are present for !tls_native.  c.f. PR84497 where we don't generate the call
(not had a chance to analyse that yet).

===

Running /src/gcc-trunk/gcc/testsuite/g++.dg/tls/tls.exp ...

                === g++ Summary for unix/-m64 ===

# of expected passes            307
# of expected failures          2
# of unsupported tests          55
Running target unix/-m32

Running /src/gcc-trunk/gcc/testsuite/g++.dg/tls/tls.exp ...

                === g++ Summary for unix/-m32 ===

# of expected passes            307
# of expected failures          2
# of unsupported tests          55

                === g++ Summary ===

# of expected passes            614
# of expected failures          4
# of unsupported tests          110
/scratch/10-12-sie/gcc-trunk-unpatched/gcc/testsuite/g++/../../xg++  version
9.0.1 20190322 (experimental) [trunk revision 269875] (GCC)
>From gcc-bugs-return-638209-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 20:21:18 2019
Return-Path: <gcc-bugs-return-638209-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115075 invoked by alias); 22 Mar 2019 20: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 114985 invoked by uid 55); 22 Mar 2019 20:21:14 -0000
From: "lopezibanez at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/43167] Warnings should not be disabled when instantiating templates defined in system headers
Date: Fri, 22 Mar 2019 20:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.5.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: lopezibanez 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-43167-4-u2Hemnelu8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-43167-4@http.gcc.gnu.org/bugzilla/>
References: <bug-43167-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02503.txt.bz2
Content-length: 946

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

--- Comment #19 from Manuel López-Ibáñez <lopezibanez at gmail dot com> ---
I think the solution is to have more locations. If the diagnostic code knew
where the user value came from then it will know to not suppress the
diagnostic. I wonder what happens if you used something that actually has a
location, like an expression, for the first test case using emplace().



On Fri, 22 Mar 2019, 15:33 redi at gcc dot gnu.org, <
gcc-bugzilla@gcc.gnu.org> wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43167
>
> --- Comment #18 from Jonathan Wakely <redi at gcc dot gnu.org> ---
> From Matthias Kretz on IRC:
>
> GCC needs to make a difference between warnings that apply when reading the
> system headers and warnings that only manifest on a template instantiation
> or
> constprop
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
>From gcc-bugs-return-638210-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 20:25:40 2019
Return-Path: <gcc-bugs-return-638210-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38411 invoked by alias); 22 Mar 2019 20:25: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 38085 invoked by uid 55); 22 Mar 2019 20:25:35 -0000
From: "lopezibanez at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80472] cannot use push/pop with #pragma GCC diagnostic warning "-Wsystem-headers"
Date: Fri, 22 Mar 2019 20:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords: diagnostic, easyhack
X-Bugzilla-Severity: normal
X-Bugzilla-Who: lopezibanez 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-80472-4-HEjuIM5qIU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80472-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80472-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02504.txt.bz2
Content-length: 313

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

--- Comment #5 from Manuel López-Ibáñez <lopezibanez at gmail dot com> ---
This warning will be incomprehensible to users because the warning never
mentions any code that the user can modify. What should the user do
according to the warning?
>From gcc-bugs-return-638211-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 20:47:04 2019
Return-Path: <gcc-bugs-return-638211-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39334 invoked by alias); 22 Mar 2019 20:47: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 34172 invoked by uid 48); 22 Mar 2019 20:47:00 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/85013] [7/8/9 Regression] <stdin>:1:41: internal compiler error: in wide_int_to_tree_1, at tree.c:1567 0x4097e2b wide_int_to_tree_1
Date: Fri, 22 Mar 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: 8.0.1
X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: paolo.carlini at oracle dot com
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-85013-4-BPolwjzjWC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85013-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85013-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02505.txt.bz2
Content-length: 471

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |paolo.carlini at oracle dot com

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Mine.
>From gcc-bugs-return-638212-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 20:47:47 2019
Return-Path: <gcc-bugs-return-638212-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55619 invoked by alias); 22 Mar 2019 20:47: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 55547 invoked by uid 48); 22 Mar 2019 20:47:43 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/84661] [7/8/9 Regression] internal compiler error: Segmentation fault (strip_array_types())
Date: Fri, 22 Mar 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: 8.0.1
X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: paolo.carlini at oracle dot com
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-84661-4-sQLMTRozoa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-84661-4@http.gcc.gnu.org/bugzilla/>
References: <bug-84661-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02506.txt.bz2
Content-length: 471

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |paolo.carlini at oracle dot com

--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Mine.
>From gcc-bugs-return-638213-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 21:16:31 2019
Return-Path: <gcc-bugs-return-638213-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30767 invoked by alias); 22 Mar 2019 21:16: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 30674 invoked by uid 48); 22 Mar 2019 21:16:27 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80472] cannot use push/pop with #pragma GCC diagnostic warning "-Wsystem-headers"
Date: Fri, 22 Mar 2019 21: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: 6.3.1
X-Bugzilla-Keywords: diagnostic, easyhack
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-80472-4-4JgkzRtyuV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80472-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80472-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02507.txt.bz2
Content-length: 332

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

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Is it better to silently generate code with undefined behaviour, or issue a
flawed warning about that undefined behaviour?

If the warning doesn't show the template instantiation context that's a
separate issue.
>From gcc-bugs-return-638214-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 21:21:55 2019
Return-Path: <gcc-bugs-return-638214-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41359 invoked by alias); 22 Mar 2019 21:21: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 40177 invoked by uid 48); 22 Mar 2019 21:21:50 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80472] cannot use push/pop with #pragma GCC diagnostic warning "-Wsystem-headers"
Date: Fri, 22 Mar 2019 21: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.3.1
X-Bugzilla-Keywords: diagnostic, easyhack
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-80472-4-pnk10NcDWn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80472-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80472-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02508.txt.bz2
Content-length: 1065

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

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
A comment added to the code would make the caret diagnostic self-explanatory:

--- a/libstdc++-v3/include/bits/stl_iterator_base_funcs.h
+++ b/libstdc++-v3/include/bits/stl_iterator_base_funcs.h
@@ -149,7 +149,7 @@ _GLIBCXX_END_NAMESPACE_CONTAINER
       // concept requirements
       __glibcxx_function_requires(_InputIteratorConcept<_InputIterator>)
       __glibcxx_assert(__n >= 0);
-      while (__n--)
+      while (__n--) // if n is negative this has undefined behaviour
        ++__i;
     }

That would make the diagnostic look like:

/home/jwakely/gcc/9/include/c++/9.0.1/bits/stl_iterator_base_funcs.h:152:7:
warning: iteration 9223372036854775807 invokes undefined behavior
[-Waggressive-loop-optimizations]
  152 |       while (__n--) // if n is negative this has undefined behaviour
      |     


It's still a bug that there's no "In instantiation of ... required from ...
required from here" context shown though.
>From gcc-bugs-return-638215-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 21:39:28 2019
Return-Path: <gcc-bugs-return-638215-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94521 invoked by alias); 22 Mar 2019 21:39: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 94450 invoked by uid 48); 22 Mar 2019 21:39:22 -0000
From: "anlauf at gmx dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/86277] Presence of optional arguments not recognized for zero length arrays
Date: Fri, 22 Mar 2019 21: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: 8.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: anlauf at gmx dot de
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
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-86277-4-dLDzkMiwop@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86277-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86277-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02509.txt.bz2
Content-length: 1281

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

--- Comment #3 from Harald Anlauf <anlauf at gmx dot de> ---
(In reply to Harald Anlauf from comment #2)
> Actually, the problem is not related to zero length arrays, but to the
> constructor [integer::].  I think this is related to several other PRs.

Looking at the dump-tree parts related to the lines

>   integer, parameter :: m(0) = 42
>   call i(m)
>   call i([integer::])
>   call i([integer::m])

shows that only the first call variant has a sane version of the
actual argument, while the other two have two(!) strange array
descriptors with a NULL data pointer, e.g.:

      struct array01_integer(kind=4) atmp.8;
      struct array01_integer(kind=4) atmp.10;

            typedef integer(kind=4) [0];
      atmp.8.dtype = {.elem_len=4, .rank=1, .type=1};
      atmp.8.dim[0].stride = 1;
      atmp.8.dim[0].lbound = 0;
      atmp.8.dim[0].ubound = -1;
      atmp.8.data = 0B;
      atmp.8.offset = 0;
            typedef integer(kind=4) [0];
      atmp.10.dtype = {.elem_len=4, .rank=1, .type=1};
      atmp.10.dim[0].stride = 1;
      atmp.10.dim[0].lbound = 0;
      atmp.10.dim[0].ubound = -1;
      atmp.10.data = 0B;
      atmp.10.offset = 0;

A bookkeeping issue?
>From gcc-bugs-return-638216-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 21:58:02 2019
Return-Path: <gcc-bugs-return-638216-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8272 invoked by alias); 22 Mar 2019 21:58: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 8158 invoked by uid 55); 22 Mar 2019 21:57:57 -0000
From: "lopezibanez at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80472] cannot use push/pop with #pragma GCC diagnostic warning "-Wsystem-headers"
Date: Fri, 22 Mar 2019 21: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: 6.3.1
X-Bugzilla-Keywords: diagnostic, easyhack
X-Bugzilla-Severity: normal
X-Bugzilla-Who: lopezibanez 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-80472-4-GVyEgwefor@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80472-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80472-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02510.txt.bz2
Content-length: 1462

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

--- Comment #8 from Manuel López-Ibáñez <lopezibanez at gmail dot com> ---
There is no negative n__ in user code.

On Fri, 22 Mar 2019, 21:21 redi at gcc dot gnu.org, <
gcc-bugzilla@gcc.gnu.org> wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80472
>
> --- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
> A comment added to the code would make the caret diagnostic
> self-explanatory:
>
> --- a/libstdc++-v3/include/bits/stl_iterator_base_funcs.h
> +++ b/libstdc++-v3/include/bits/stl_iterator_base_funcs.h
> @@ -149,7 +149,7 @@ _GLIBCXX_END_NAMESPACE_CONTAINER
>        // concept requirements
>        __glibcxx_function_requires(_InputIteratorConcept<_InputIterator>)
>        __glibcxx_assert(__n >= 0);
> -      while (__n--)
> +      while (__n--) // if n is negative this has undefined behaviour
>         ++__i;
>      }
>
> That would make the diagnostic look like:
>
> /home/jwakely/gcc/9/include/c++/9.0.1/bits/stl_iterator_base_funcs.h:152:7:
> warning: iteration 9223372036854775807 invokes undefined behavior
> [-Waggressive-loop-optimizations]
>   152 |       while (__n--) // if n is negative this has undefined
> behaviour
>       |
>
>
> It's still a bug that there's no "In instantiation of ... required from ...
> required from here" context shown though.
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
>From gcc-bugs-return-638217-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 22:09:34 2019
Return-Path: <gcc-bugs-return-638217-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36790 invoked by alias); 22 Mar 2019 22:09: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 36737 invoked by uid 48); 22 Mar 2019 22:09:30 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/89798] excessive vector_size silently accepted and truncated
Date: Fri, 22 Mar 2019 22: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: 9.0
X-Bugzilla-Keywords: accepts-invalid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed
Message-ID: <bug-89798-4-xxXsqMltn6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89798-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89798-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02511.txt.bz2
Content-length: 490

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2019-03-22
           Assignee|unassigned at gcc dot gnu.org      |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1
>From gcc-bugs-return-638218-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 22:09:46 2019
Return-Path: <gcc-bugs-return-638218-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37471 invoked by alias); 22 Mar 2019 22:09: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 37439 invoked by uid 48); 22 Mar 2019 22:09:43 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/89797] ICE on a vector_size (1LU << 33) int variable
Date: Fri, 22 Mar 2019 22:09: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: 9.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed
Message-ID: <bug-89797-4-zof0ttXTe1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89797-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89797-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02512.txt.bz2
Content-length: 490

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2019-03-22
           Assignee|unassigned at gcc dot gnu.org      |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1
>From gcc-bugs-return-638219-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 22:16:18 2019
Return-Path: <gcc-bugs-return-638219-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46555 invoked by alias); 22 Mar 2019 22:16: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 46506 invoked by uid 48); 22 Mar 2019 22:16:14 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80472] cannot use push/pop with #pragma GCC diagnostic warning "-Wsystem-headers"
Date: Fri, 22 Mar 2019 22: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: 6.3.1
X-Bugzilla-Keywords: diagnostic, easyhack
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-80472-4-gkIe1ylTdJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80472-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80472-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02513.txt.bz2
Content-length: 623

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

--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> ---
There is though. std::prev(it, n) is specified as std::advance(it, -n). Calling
prev means advancing a negative amount.

But I'm not sure what your point is. Currently there's no warning by default
even though the compiler has detected UB. Are you saying it is better to not
warn at all, and just have silent UB?

If you want the warning to be improved, please open a separate bug report. This
one is about the inability to enable warnings in system headers, not the
quality of individual warnings.
>From gcc-bugs-return-638220-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 22:18:29 2019
Return-Path: <gcc-bugs-return-638220-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48810 invoked by alias); 22 Mar 2019 22:18: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 48748 invoked by uid 48); 22 Mar 2019 22:18:25 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80472] cannot use push/pop with #pragma GCC diagnostic warning "-Wsystem-headers"
Date: Fri, 22 Mar 2019 22: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: 6.3.1
X-Bugzilla-Keywords: diagnostic, easyhack
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-80472-4-tZofpLlCXG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80472-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80472-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02514.txt.bz2
Content-length: 742

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

--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Manuel López-Ibáñez from comment #8)
> There is no negative n__ in user code.

If you want to be pedantic, there's no __n at all in user code. Because it's a
function parameter of std::advance. But clearly if the compiler says "undefined
behaviour detected at this line" and the line has a comment saying "undefined
if n is negative" then the user can figure out that the function got called
with negative n.

Is that perfect? No. Is it better than printing nothing when UB is detected? To
me the answer is obviously yes, so it seems like you're just objecting to
making improvements.
>From gcc-bugs-return-638221-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 22:58:49 2019
Return-Path: <gcc-bugs-return-638221-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50988 invoked by alias); 22 Mar 2019 22:58: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 50943 invoked by uid 48); 22 Mar 2019 22:58:44 -0000
From: "anlauf at gmx dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/84868] [7/8/9 Regression] ICE in gfc_conv_descriptor_offset, at fortran/trans-array.c:208
Date: Fri, 22 Mar 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: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: anlauf at gmx dot de
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-84868-4-fsN7SaG5FO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-84868-4@http.gcc.gnu.org/bugzilla/>
References: <bug-84868-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02515.txt.bz2
Content-length: 1530

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

Harald Anlauf <anlauf at gmx dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anlauf at gmx dot de

--- Comment #5 from Harald Anlauf <anlauf at gmx dot de> ---
There is a variant that is wrongly rejected:

module m
  implicit none
contains
  function f(n) result(z)
    character, save      :: c(3) = ['x', 'y', 'z']
    integer,  intent(in) :: n
    character(len_trim(c(n))) :: z
    z = c(n)
  end
end
program p
  use m
  print *, f(2)
end

pr84868b.f90:7:23:

     character(len_trim(c(n))) :: z
                       1
Error: Variable 'c' cannot appear in the expression at (1)

With the following patch len_trim is accepted in a specification expression:

Index: expr.c
===================================================================
--- expr.c      (revision 269880)
+++ expr.c      (working copy)
@@ -3402,10 +3402,13 @@
       return false;
     }

-  if (!gfc_simplify_expr (e, 0))
-    return false;
+  if (gfc_simplify_expr (e, 0))
+    return true;

-  return check_restricted (e);
+  if (check_restricted (e))
+    return true;
+
+  return false;
 }

But then we hit the following issue at link time:

pr84868b.f90:(.text+0x12c): undefined reference to `___MOD_c'
>From gcc-bugs-return-638222-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 23:02:10 2019
Return-Path: <gcc-bugs-return-638222-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59806 invoked by alias); 22 Mar 2019 23:02: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 57617 invoked by uid 55); 22 Mar 2019 23:02:06 -0000
From: "lopezibanez at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80472] cannot use push/pop with #pragma GCC diagnostic warning "-Wsystem-headers"
Date: Fri, 22 Mar 2019 23: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: 6.3.1
X-Bugzilla-Keywords: diagnostic, easyhack
X-Bugzilla-Severity: normal
X-Bugzilla-Who: lopezibanez 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-80472-4-52ViDuJi2z@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80472-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80472-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02516.txt.bz2
Content-length: 1600

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

--- Comment #11 from Manuel López-Ibáñez <lopezibanez at gmail dot com> ---
I'm not being pedantic for the sake of being pedantic. It is trivial to fix
the #pragma as I explained above. However, that won't give the user any
idea about which user code is triggering the warning. For that, we need to
have at the point of warning a token that comes from user code or we need
to propagate a user location to the tokens that made up this particular
instantation of the template, so that the diagnostic code can windup the
location stack and find the user code that triggered the warning.


On Fri, 22 Mar 2019, 22:18 redi at gcc dot gnu.org, <
gcc-bugzilla@gcc.gnu.org> wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80472
>
> --- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> ---
> (In reply to Manuel López-Ibáñez from comment #8)
> > There is no negative n__ in user code.
>
> If you want to be pedantic, there's no __n at all in user code. Because
> it's a
> function parameter of std::advance. But clearly if the compiler says
> "undefined
> behaviour detected at this line" and the line has a comment saying
> "undefined
> if n is negative" then the user can figure out that the function got called
> with negative n.
>
> Is that perfect? No. Is it better than printing nothing when UB is
> detected? To
> me the answer is obviously yes, so it seems like you're just objecting to
> making improvements.
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
>From gcc-bugs-return-638224-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 23:11:46 2019
Return-Path: <gcc-bugs-return-638224-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75942 invoked by alias); 22 Mar 2019 23:11: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 75890 invoked by uid 48); 22 Mar 2019 23:11:42 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89795] wrong code with -O2 -fno-dce -fno-forward-propagate -fno-sched-pressure
Date: Fri, 22 Mar 2019 23: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: wrong-code
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-89795-4-jrD2p49M1l@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89795-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89795-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02518.txt.bz2
Content-length: 154

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Most likely related to PR 89434.
>From gcc-bugs-return-638223-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 23:11:34 2019
Return-Path: <gcc-bugs-return-638223-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75203 invoked by alias); 22 Mar 2019 23:11: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 75146 invoked by uid 48); 22 Mar 2019 23:11:30 -0000
From: "anlauf at gmx dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/84868] [7/8/9 Regression] ICE in gfc_conv_descriptor_offset, at fortran/trans-array.c:208
Date: Fri, 22 Mar 2019 23:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: anlauf at gmx dot de
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
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-84868-4-Qu898PJuKL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-84868-4@http.gcc.gnu.org/bugzilla/>
References: <bug-84868-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02517.txt.bz2
Content-length: 259

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

--- Comment #6 from Harald Anlauf <anlauf at gmx dot de> ---
(In reply to Harald Anlauf from comment #5)
> With the following patch len_trim is accepted in a specification expression:

Just forget that.
>From gcc-bugs-return-638225-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 23:12:28 2019
Return-Path: <gcc-bugs-return-638225-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77002 invoked by alias); 22 Mar 2019 23:12: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 76946 invoked by uid 48); 22 Mar 2019 23:12:24 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89794] wrong code with -Og -fno-forward-propagate
Date: Fri, 22 Mar 2019 23: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: wrong-code
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: component
Message-ID: <bug-89794-4-eMBoKhiB8C@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89794-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89794-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02519.txt.bz2
Content-length: 396

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|rtl-optimization            |target

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Most likely related to PR 89434.
>From gcc-bugs-return-638226-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 23:22:41 2019
Return-Path: <gcc-bugs-return-638226-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 83969 invoked by alias); 22 Mar 2019 23:22: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 83840 invoked by uid 48); 22 Mar 2019 23:22:29 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80472] cannot use push/pop with #pragma GCC diagnostic warning "-Wsystem-headers"
Date: Fri, 22 Mar 2019 23:22: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.1
X-Bugzilla-Keywords: diagnostic, easyhack
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-80472-4-jZtcaW5ILv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80472-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80472-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02520.txt.bz2
Content-length: 1370

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

--- Comment #12 from Jonathan Wakely <redi at gcc dot gnu.org> ---
And as I've already said, the quality of the particular
-Waggressive-loop-optimizations warning is a separate issue, and should be
dealt with in a separate PR.

PR 58876 (mentioned in comment 0 as the reason for creating this bug) shows a
proper instantiation trace when -Wsystem-headers is used:

In file included from /home/jwakely/gcc/9/include/c++/9.0.1/memory:80,
                 from up.cc:1:
/home/jwakely/gcc/9/include/c++/9.0.1/bits/unique_ptr.h: In instantiation of
'void std::default_delete<_Tp>::operator()(_Tp*) const [with _Tp = A]':
/home/jwakely/gcc/9/include/c++/9.0.1/bits/unique_ptr.h:289:17:   required from
'std::unique_ptr<_Tp, _Dp>::~unique_ptr() [with _Tp = A; _Dp =
std::default_delete<A>]'
up.cc:12:30:   required from here
/home/jwakely/gcc/9/include/c++/9.0.1/bits/unique_ptr.h:81:2: warning: deleting
object of abstract class type 'A' which has non-virtual destructor will cause
undefined behavior [-Wdelete-non-virtual-dtor]
   81 |  delete __ptr;
      |  ^~~~~~

That shows the up.cc:12 location from the user code that triggers the warning.

But I can't make libstdc++ show that warning because of this bug with the
diagnostic pragmas.

Improving the warning in comment 4 is irrelevant to this bug.
>From gcc-bugs-return-638227-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 23:25:18 2019
Return-Path: <gcc-bugs-return-638227-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87061 invoked by alias); 22 Mar 2019 23:25: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 86977 invoked by uid 48); 22 Mar 2019 23:25:13 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/43167] Warnings should not be disabled when instantiating templates defined in system headers
Date: Fri, 22 Mar 2019 23:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.5.0
X-Bugzilla-Keywords: diagnostic
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-43167-4-9et4vsaHou@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-43167-4@http.gcc.gnu.org/bugzilla/>
References: <bug-43167-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02521.txt.bz2
Content-length: 359

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

--- Comment #20 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Manuel López-Ibáñez from comment #19)
> I wonder what happens if you used something that actually has a
> location, like an expression, for the first test case using emplace().

It doesn't make any difference.
>From gcc-bugs-return-638228-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 23:44:24 2019
Return-Path: <gcc-bugs-return-638228-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112285 invoked by alias); 22 Mar 2019 23:44: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 112251 invoked by uid 48); 22 Mar 2019 23:44:16 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/89799] New: no warning declaring an misaligned array of overaligned structs
Date: Fri, 22 Mar 2019 23:44: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: msebor 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-89799-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02522.txt.bz2
Content-length: 1851

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

            Bug ID: 89799
           Summary: no warning declaring an misaligned array of
                    overaligned structs
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: msebor at gcc dot gnu.org
  Target Milestone: ---

Attribute warn_if_not_aligned is documented like so:

    This attribute specifies a threshold for the structure field, measured in
bytes. If the structure field is aligned below the threshold, a warning will be
issued.

The test case below shows that the attributed does not have the documented
effect when an object of a type of a struct with an overaligned member is
defined with a less restrictive alignment.

$ cat z.c && gcc -O2 -S -Wall -Wextra -fdump-tree-optimized=/dev/stdout  z.c
#define ALIGN(N) __attribute__ ((aligned (N), warn_if_not_aligned (N)))

struct ALIGN (64) S { ALIGN (64) char a[64]; };

struct S __attribute__ ((aligned (8))) s;   // unaligned, missing warning

int f (void) { return __alignof__ (s); }


typedef struct S __attribute__ ((aligned (8))) A[1];   // unaligned, missing
warning

A a;   // unaligned, missing warning

int g (void) { return __alignof__ (a); }
int h (void) { return __alignof__ (a[0]); }

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

f ()
{
  <bb 2> [local count: 1073741824]:
  return 8;

}



;; Function g (g, funcdef_no=4, decl_uid=1914, cgraph_uid=2, symbol_order=3)

g ()
{
  <bb 2> [local count: 1073741824]:
  return 8;

}



;; Function h (h, funcdef_no=2, decl_uid=1917, cgraph_uid=3, symbol_order=4)

h ()
{
  <bb 2> [local count: 1073741824]:
  return 64;

}
>From gcc-bugs-return-638229-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 23:51:22 2019
Return-Path: <gcc-bugs-return-638229-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119587 invoked by alias); 22 Mar 2019 23:51: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 119501 invoked by uid 48); 22 Mar 2019 23:51:17 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89800] New: -Waggressive-loop-optimization warning doesn't have useful location
Date: Fri, 22 Mar 2019 23:51: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: diagnostic
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: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-89800-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02523.txt.bz2
Content-length: 4208

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

            Bug ID: 89800
           Summary: -Waggressive-loop-optimization warning doesn't have
                    useful location
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
  Target Milestone: ---

Given:

template<typename T>
T foo(T t, int n)
{
  while (n--)
    ++t;
  return t;
}

int bar(int n) { return foo(1, n); }

int main()
{
  return bar(-1);
}

GCC prints:

loop.cc: In function 'int main()':
loop.cc:4:3: warning: iteration 2147483647 invokes undefined behavior
[-Waggressive-loop-optimizations]
    4 |   while (n--)
      |   ^~~~~
loop.cc:4:3: note: within this loop

This isn't very helpful, because the loop isn't in the function 'int main()' as
shown, it's in foo, and there's no indication of how foo was called from main
(there could be several different places in main that indirectly end up calling
foo).

I would expect to see something more like:


loop.cc:4:3: warning: iteration 2147483647 invokes undefined behavior
[-Waggressive-loop-optimizations]
    4 |   while (n--)
      |   ^~~~~
loop.cc:4:3: note: within this loop
loop.cc:2:1 In instantiation of 'foo<T>(T, int) [with T = int]':
loop.cc:9:25  required from 'int bar(int)':
loop.cc:13:10: required from here


A more realistic example is:

#include <array>
#include <forward_list>
#include <iterator>

template<typename T>
typename T::value_type
back(const T& t)
{
  return *std::prev(t.end());
}

int main()
{
  std::array<int, 2> a = { {1, 2} };
  std::forward_list<int> l = {1, 2, 3};
  return back(a) - back(l);
}

With -Wall -Wsystem-headers -O1 this prints:

In file included from
/home/jwakely/gcc/9/include/c++/9.0.1/bits/stl_algobase.h:66,
                 from
/home/jwakely/gcc/9/include/c++/9.0.1/bits/char_traits.h:39,
                 from /home/jwakely/gcc/9/include/c++/9.0.1/string:40,
                 from /home/jwakely/gcc/9/include/c++/9.0.1/stdexcept:39,
                 from /home/jwakely/gcc/9/include/c++/9.0.1/array:39,
                 from prev.cc:1:
/home/jwakely/gcc/9/include/c++/9.0.1/bits/stl_iterator_base_funcs.h: In
function 'int main()':
/home/jwakely/gcc/9/include/c++/9.0.1/bits/stl_iterator_base_funcs.h:153:7:
warning: iteration 9223372036854775806 invokes undefined behavior
[-Waggressive-loop-optimizations]
  153 |       while (__n--)
      |       ^~~~~
/home/jwakely/gcc/9/include/c++/9.0.1/bits/stl_iterator_base_funcs.h:153:7:
note: within this loop

The only location info is the "In file included from" which only shows the
header include stack and the lines of the #include directives, not the call
stack that reached std::__advance where the UB is detected.

The headers suggest that it maybe came from the <array> header, but the back(a)
call is fine, the problem is the back(l) call. (The reason is shows the array
header is  that that's the route by which the <bits/stl_iterator_base_funcs.h>
header gets included, but is not the call stack for the undefined call).

To be useful the warning needs to show the template instantiation context,
something like:

void std::__advance<_InputIterator, _Distance>(_InputIterator&, _Distance,
input_iterator_tag) [with _InputIterator =
std::forward_list<int>::const_iterator, _Distance = int]

void std::advance<_InputIterator, _Distance>(_InputIterator&, _Distance) [with
_InputIterator = std::forward_list<int>::const_iterator, _Distance = int]

void std::prev<_BidirectionalIterator>(_BidirectionalIterator&, ...) [with
_BidirectionalIterator = std::forward_list<int>::const_iterator]

T::value_type back(const T&) [with T = std::forward_list<int>]

prev.cc:16:20 required from here
     return back(a) - back(l);
                      ^^^^^^^

This allows the user to see how the undefined behaviour happened.

(As an aside, should it say "results in undefined behavior" or "has undefined
behavior" not "invokes undefined behavior"? You don't invoke UB, it's not a
function.)
>From gcc-bugs-return-638230-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 22 23:52:07 2019
Return-Path: <gcc-bugs-return-638230-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120842 invoked by alias); 22 Mar 2019 23: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 120778 invoked by uid 48); 22 Mar 2019 23:52:03 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/80472] cannot use push/pop with #pragma GCC diagnostic warning "-Wsystem-headers"
Date: Fri, 22 Mar 2019 23:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords: diagnostic, easyhack
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-80472-4-5fUZ7jAtKC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80472-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80472-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02524.txt.bz2
Content-length: 321

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

--- Comment #13 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #12)
> Improving the warning in comment 4 is irrelevant to this bug.

I've created Bug 89800 for improving that warning, please move that discussion
there.
>From gcc-bugs-return-638231-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 01:01:04 2019
Return-Path: <gcc-bugs-return-638231-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50768 invoked by alias); 23 Mar 2019 01:01: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 50599 invoked by uid 48); 23 Mar 2019 01:01:00 -0000
From: "qrzhang at gatech dot edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/89801] New: gcc generates wrong debug information at -O2
Date: Sat, 23 Mar 2019 01:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: qrzhang at gatech dot edu
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-89801-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02525.txt.bz2
Content-length: 1399

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

            Bug ID: 89801
           Summary: gcc generates wrong debug information at -O2
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: qrzhang at gatech dot edu
  Target Milestone: ---

It affects gcc-6 to gcc-trunk. gcc-5 works fine.

Bisect points to r222305.


$ gcc-trunk -v
gcc version 9.0.1 20190322 (experimental) [trunk revision 269869] (GCC)

$ gdb -v
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1


# Correct ouutput #
$ gcc-trunk  -g abc.c outer.c
$ gdb -x cmds -batch a.out
Breakpoint 1 at 0x400486: file abc.c, line 9.

Breakpoint 1, d () at abc.c:9
9         c = 3;
$1 = 1


# Incorrect output at O2 #
$ gcc-trunk  -g abc.c outer.c -O2
$ gdb -x cmds -batch a.out
Breakpoint 1 at 0x400380: file abc.c, line 9.

Breakpoint 1, main () at abc.c:18
18        for (; i < 5; i++)
$1 = 0





$ cat abc.c
long a, b;
static int c, f;
static long d() {
  int *e = &c;
  int i = 0;
  for (; i < 1; i++)
    ;
  *e ^= b;
  c = 3;
  for (; 0;)
    optimize_me_not();
  ;
}
int main() {
  int i;
  d();
  i = 0;
  for (; i < 5; i++)
    for (; f; f++)
      ;
  a = c;
}


$ cat outer.c
void optimize_me_not() {}

$ cat cmds
b 9
r
p i
kill
q
>From gcc-bugs-return-638232-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 04:29:09 2019
Return-Path: <gcc-bugs-return-638232-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92842 invoked by alias); 23 Mar 2019 04:29: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 92809 invoked by uid 48); 23 Mar 2019 04:29:04 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/85528] ICE in code_motion_process_successors, at sel-sched.c:6403
Date: Sat, 23 Mar 2019 04:29: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.1
X-Bugzilla-Keywords: ice-checking, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: asolokha at gmx dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_gcctarget
Message-ID: <bug-85528-4-DaeCsikXis@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85528-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85528-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02526.txt.bz2
Content-length: 3644

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

Arseny Solokha <asolokha at gmx dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|powerpc-*-linux-gnu*,       |powerpc-*-linux-gnu*,
                   |powerpcspe-*-linux-gnu*     |powerpcspe-*-linux-gnu*,
                   |                            |x86_64-unknown-linux-gnu

--- Comment #3 from Arseny Solokha <asolokha at gmx dot com> ---
The following testcase fails for x86_64 w/ the current trunk:

int oh;
__int128 ii, pa;
unsigned __int128 kn;

void
vz (void)
{
  while (oh < 1)
    {
      if (oh <= kn)
        {
          __int128 *iu;

          if (oh == 0)
            {
              ii |= pa;
              if (ii != 0)
                while (kn != 0)
                  ++kn;
            }

          iu = &pa;
          kn *= 3;
          pa += kn;
        }

      ++oh;
    }
}

% x86_64-unknown-linux-gnu-gcc-9.0.0-alpha20190317 -O2 -fselective-scheduling2
-fvar-tracking-assignments -fno-tree-ter -w -c kchunwgx.c
during RTL pass: sched2
kchunwgx.c: In function 'vz':
kchunwgx.c:29:1: internal compiler error: in code_motion_process_successors, at
sel-sched.c:6399
   29 | }
      | ^
0x6806f9 code_motion_process_successors
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190317/work/gcc-9-20190317/gcc/sel-sched.c:6399
0x6806f9 code_motion_path_driver
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190317/work/gcc-9-20190317/gcc/sel-sched.c:6621
0xd3013b code_motion_process_successors
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190317/work/gcc-9-20190317/gcc/sel-sched.c:6355
0xd3013b code_motion_path_driver
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190317/work/gcc-9-20190317/gcc/sel-sched.c:6621
0xd32f39 move_op
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190317/work/gcc-9-20190317/gcc/sel-sched.c:6713
0xd32f39 move_exprs_to_boundary
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190317/work/gcc-9-20190317/gcc/sel-sched.c:5236
0xd32f39 schedule_expr_on_boundary
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190317/work/gcc-9-20190317/gcc/sel-sched.c:5449
0xd34627 fill_insns
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190317/work/gcc-9-20190317/gcc/sel-sched.c:5591
0xd34627 schedule_on_fences
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190317/work/gcc-9-20190317/gcc/sel-sched.c:7364
0xd34627 sel_sched_region_2
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190317/work/gcc-9-20190317/gcc/sel-sched.c:7502
0xd36538 sel_sched_region_1
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190317/work/gcc-9-20190317/gcc/sel-sched.c:7544
0xd38056 sel_sched_region(int)
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190317/work/gcc-9-20190317/gcc/sel-sched.c:7645
0xd38056 sel_sched_region(int)
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190317/work/gcc-9-20190317/gcc/sel-sched.c:7630
0xd38beb run_selective_scheduling()
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190317/work/gcc-9-20190317/gcc/sel-sched.c:7731
0xd172a5 rest_of_handle_sched2
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190317/work/gcc-9-20190317/gcc/sched-rgn.c:3731
0xd172a5 execute
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190317/work/gcc-9-20190317/gcc/sched-rgn.c:3875
>From gcc-bugs-return-638233-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 05:26:13 2019
Return-Path: <gcc-bugs-return-638233-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112352 invoked by alias); 23 Mar 2019 05:26: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 112314 invoked by uid 48); 23 Mar 2019 05:26:09 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89802] New: [9 Regresssion] ICE: verify_gimple failed (error: dead STMT in EH table)
Date: Sat, 23 Mar 2019 05:26: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: ice-checking, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: asolokha at gmx dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-89802-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02527.txt.bz2
Content-length: 1694

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

            Bug ID: 89802
           Summary: [9 Regresssion] ICE: verify_gimple failed (error: dead
                    STMT in EH table)
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: ice-checking, ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

g++-9.0.0-alpha20190317 snapshot (r269746) ICEs when compiling the following
testcase w/ -mfma -O2 (-O3, -Os) -fnon-call-exceptions:

struct ef {
  ef (double xy) : m6 (xy)
  {
  }

  ~ef ()
  {
  }

  double m6;
};

ef
operator- (ef &db, ef oa)
{
  return db.m6 - oa.m6;
}

ef
vu (ef &db)
{
  return db - ef (db.m6 * 1.1);
}

% x86_64-unknown-linux-gnu-g++-9.0.0-alpha20190317 -mfma -O2
-fnon-call-exceptions -c xct1znkp.cc
xct1znkp.cc: In function 'ef vu(ef&)':
xct1znkp.cc:20:1: error: dead STMT in EH table
   20 | vu (ef &db)
      | ^~
_6 = .FMA (_7, 1.100000000000000088817841970012523233890533447265625e+0, _3);
during GIMPLE pass: widening_mul
xct1znkp.cc:20:1: internal compiler error: verify_gimple failed
0xfe2271 verify_gimple_in_cfg(function*, bool)
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190317/work/gcc-9-20190317/gcc/tree-cfg.c:5386
0xeb7dff execute_function_todo
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190317/work/gcc-9-20190317/gcc/passes.c:1977
0xeb8d3e execute_todo
       
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190317/work/gcc-9-20190317/gcc/passes.c:2031
>From gcc-bugs-return-638234-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 07:20:41 2019
Return-Path: <gcc-bugs-return-638234-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32229 invoked by alias); 23 Mar 2019 07:20: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 32193 invoked by uid 48); 23 Mar 2019 07:20:37 -0000
From: "duyang.seu at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89793] Implicit conversion to std::string is ambiguous on GCC 8.2 but not GCC 7.3
Date: Sat, 23 Mar 2019 07:20: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: duyang.seu 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-89793-4-UK5SFeIxNN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89793-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89793-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02528.txt.bz2
Content-length: 418

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

--- Comment #8 from du yang <duyang.seu at gmail dot com> ---

> 
> struct Message {
>   template<typename T>
>     Message(T&& t) : s{t} { }
>   string s;
> };
> 

By the way, it works on both GCC 8 & 7, if change the code above as below
(change to use assignment),

 struct Message {
   template<typename T>
     Message(T&& t) { s = t; }
   string s;
 };
>From gcc-bugs-return-638235-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 11:12:01 2019
Return-Path: <gcc-bugs-return-638235-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25768 invoked by alias); 23 Mar 2019 11: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 25722 invoked by uid 48); 23 Mar 2019 11:11:56 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/89583] GNAT.Sockets.Bind_Socket fails with IPv4 address
Date: Sat, 23 Mar 2019 11:12: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
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-89583-4-BJ1LkeTHAk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89583-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89583-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02529.txt.bz2
Content-length: 323

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

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Added:
>    trunk/gcc/testsuite/gnat.dg/socket2.adb

This test fails on x86_64-apple-darwin18:

raised GNAT.SOCKETS.SOCKET_ERROR : [22] Invalid argument
FAIL: gnat.dg/socket2.adb execution test
>From gcc-bugs-return-638236-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 12:25:52 2019
Return-Path: <gcc-bugs-return-638236-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12461 invoked by alias); 23 Mar 2019 12:25: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 12402 invoked by uid 48); 23 Mar 2019 12:25:48 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88521] GCC from r266355 miscompiles x265 for mingw-w64 target
Date: Sat, 23 Mar 2019 12:25: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: ABI
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou 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: cc component target_milestone short_desc
Message-ID: <bug-88521-4-H2gquUV81K@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88521-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88521-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02530.txt.bz2
Content-length: 719

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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu.org
          Component|c++                         |target
   Target Milestone|---                         |9.0
            Summary|gcc 9.0 from r266355        |GCC from r266355
                   |miscompile x265 for         |miscompiles x265 for
                   |mingw-w64 target            |mingw-w64 target

--- Comment #11 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Recategorizing.
>From gcc-bugs-return-638237-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 12:27:23 2019
Return-Path: <gcc-bugs-return-638237-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15012 invoked by alias); 23 Mar 2019 12:27: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 14922 invoked by uid 48); 23 Mar 2019 12:27:20 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/85667] ms_abi rules aren't followed when returning short structs with float values
Date: Sat, 23 Mar 2019 12: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.0.1
X-Bugzilla-Keywords: ABI
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_gcctarget bug_status cf_reconfirmed_on cc short_desc everconfirmed
Message-ID: <bug-85667-4-deiV2DYZgR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85667-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85667-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02531.txt.bz2
Content-length: 1058

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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|x86_64-pc-linux-gnu         |i?86-*-* x86_64-*-*
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-03-23
                 CC|                            |ebotcazou at gcc dot gnu.org
            Summary|(x86_64) ms_abi rules       |ms_abi rules aren't
                   |aren't followed when        |followed when returning
                   |returning short structs     |short structs with float
                   |with float values           |values
     Ever confirmed|0                           |1

--- Comment #7 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
The original issue exists in both 32-bit and 64-bit modes.  r266355 was broken
but got fixed by r267622 (PR target/88521) so the issue is fixed in 64-bit
mode.
>From gcc-bugs-return-638239-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 13:27:27 2019
Return-Path: <gcc-bugs-return-638239-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70349 invoked by alias); 23 Mar 2019 13:27: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 70172 invoked by uid 48); 23 Mar 2019 13:27:23 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/77504] "is used uninitialized" with allocatable string and array constructors
Date: Sat, 23 Mar 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: fortran
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: diagnostic
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: cc
Message-ID: <bug-77504-4-zt46zVwhaC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77504-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77504-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02533.txt.bz2
Content-length: 465

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrew at fluidgravity dot co.uk

--- Comment #9 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
*** Bug 87143 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-638238-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 13:27:27 2019
Return-Path: <gcc-bugs-return-638238-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70242 invoked by alias); 23 Mar 2019 13:27: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 70144 invoked by uid 48); 23 Mar 2019 13:27:22 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/87143] Uninitialized warnings when using automatic array allocation
Date: Sat, 23 Mar 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: fortran
X-Bugzilla-Version: 7.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-87143-4-LIjLRrDTCd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87143-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87143-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02532.txt.bz2
Content-length: 509

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

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

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

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Duplicate.

*** This bug has been marked as a duplicate of bug 77504 ***
>From gcc-bugs-return-638240-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 13:27:31 2019
Return-Path: <gcc-bugs-return-638240-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70751 invoked by alias); 23 Mar 2019 13:27: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 70228 invoked by uid 48); 23 Mar 2019 13:27:25 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/24639] [meta-bug] bug to track all Wuninitialized issues
Date: Sat, 23 Mar 2019 13:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.1.0
X-Bugzilla-Keywords: diagnostic, meta-bug
X-Bugzilla-Severity: trivial
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 resolution
Message-ID: <bug-24639-4-K05hzcrChp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-24639-4@http.gcc.gnu.org/bugzilla/>
References: <bug-24639-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02534.txt.bz2
Content-length: 492

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

Bug 87143 Summary: Uninitialized warnings when using automatic array allocation
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87143

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |DUPLICATE
>From gcc-bugs-return-638241-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 13:43:10 2019
Return-Path: <gcc-bugs-return-638241-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103007 invoked by alias); 23 Mar 2019 13:43: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 99656 invoked by uid 48); 23 Mar 2019 13:43:02 -0000
From: "iains at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/60821] gcc 4.8 on MacOS fails depending on -arch order
Date: Sat, 23 Mar 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: target
X-Bugzilla-Version: 4.8.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: iains at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P4
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-60821-4-qUAkV8iT8w@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60821-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60821-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02535.txt.bz2
Content-length: 1234

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

Iain Sandoe <iains at gcc dot gnu.org> changed:

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

--- Comment #8 from Iain Sandoe <iains at gcc dot gnu.org> ---
For at least 5.x+ the following has been done.

1. note that "-arch xxxx" has a different semantic in the Apple driver from the
general semantic of GCC options.  I.E. it is *meant* to be used more than once,
thus there's no positional significance to a given instance. 

This has no meaning with the regular GCC driver as noted in the various
comments.

2. If multiple arch flags are presented that conflict (e.g. -arch i386 -arch
x86_64) then a diagnostic is issued and *ALL* the -arch entries are discarded
(the compiler produces code according to its default multilib).

 - given (1), there is no reasonable strategy for deciding a "winner" so all
lose.

 - at least, it allows a single -arch xxxx to be used in lieu of the GCC
regular multilib flags.

this is present on all open branches so closing as fixed.
>From gcc-bugs-return-638244-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 13:47:20 2019
Return-Path: <gcc-bugs-return-638244-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23662 invoked by alias); 23 Mar 2019 13:47: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 23078 invoked by uid 48); 23 Mar 2019 13:47:14 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/24639] [meta-bug] bug to track all Wuninitialized issues
Date: Sat, 23 Mar 2019 13:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.1.0
X-Bugzilla-Keywords: diagnostic, meta-bug
X-Bugzilla-Severity: trivial
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 resolution
Message-ID: <bug-24639-4-PnjITFKTN1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-24639-4@http.gcc.gnu.org/bugzilla/>
References: <bug-24639-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02538.txt.bz2
Content-length: 509

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

Bug 87968 Summary: [7/8/9 Regression] Warning about uninizialized variables in array constructor
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87968

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE
>From gcc-bugs-return-638243-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 13:47:16 2019
Return-Path: <gcc-bugs-return-638243-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23240 invoked by alias); 23 Mar 2019 13:47: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 23005 invoked by uid 48); 23 Mar 2019 13:47:12 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/77504] "is used uninitialized" with allocatable string and array constructors
Date: Sat, 23 Mar 2019 13:47: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: diagnostic
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-77504-4-YXbHXTto6W@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77504-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77504-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02537.txt.bz2
Content-length: 190

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

--- Comment #10 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
*** Bug 87968 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-638242-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 13:47:15 2019
Return-Path: <gcc-bugs-return-638242-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23109 invoked by alias); 23 Mar 2019 13:47: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 22948 invoked by uid 48); 23 Mar 2019 13:47:11 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/87968] [7/8/9 Regression] Warning about uninizialized variables in array constructor
Date: Sat, 23 Mar 2019 13:47: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: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-87968-4-MOy7mwKVsp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87968-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87968-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02536.txt.bz2
Content-length: 509

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

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

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

--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Duplicate.

*** This bug has been marked as a duplicate of bug 77504 ***
>From gcc-bugs-return-638245-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 13:52:28 2019
Return-Path: <gcc-bugs-return-638245-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40965 invoked by alias); 23 Mar 2019 13:52:27 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 40905 invoked by uid 48); 23 Mar 2019 13:52:24 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/77504] "is used uninitialized" with allocatable string and array constructors
Date: Sat, 23 Mar 2019 13: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: unknown
X-Bugzilla-Keywords: diagnostic
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-77504-4-rzPXfmP13c@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77504-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77504-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02539.txt.bz2
Content-length: 527

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

--- Comment #11 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
The test in comment 7 compiles without any warning with gfortran 6.4.1 and
before.

In a similar way the original test starts to give the warnings

pr77504.f90:10:0: Warning: 'help_text.dim[0].lbound' is used uninitialized in
this function [-Wuninitialized]
pr77504.f90:10:0: Warning: 'help_text.dim[0].ubound' is used uninitialized in
this function [-Wuninitialized]

for gfortran 7 and above.
>From gcc-bugs-return-638246-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 13:53:51 2019
Return-Path: <gcc-bugs-return-638246-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47748 invoked by alias); 23 Mar 2019 13:53: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 47682 invoked by uid 48); 23 Mar 2019 13:53:46 -0000
From: "iains at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/43038] DECL_PRESERVE_P or attribute((used)) static globals not completely preserved with -flto
Date: Sat, 23 Mar 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: lto
X-Bugzilla-Version: 4.5.0
X-Bugzilla-Keywords: lto, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: iains 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-43038-4-8tBiSMVRLs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-43038-4@http.gcc.gnu.org/bugzilla/>
References: <bug-43038-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02540.txt.bz2
Content-length: 467

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

Iain Sandoe <iains at gcc dot gnu.org> changed:

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

--- Comment #18 from Iain Sandoe <iains at gcc dot gnu.org> ---
fixed on all open branches (and at least 5.x and 6.x)
>From gcc-bugs-return-638247-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 13:56:35 2019
Return-Path: <gcc-bugs-return-638247-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50426 invoked by alias); 23 Mar 2019 13:56: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 50352 invoked by uid 48); 23 Mar 2019 13:56:30 -0000
From: "iains at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libffi/34311] libffi.call/nested_struct5.c execution tests fail under darwin9 on powerpc
Date: Sat, 23 Mar 2019 13:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libffi
X-Bugzilla-Version: 4.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: iains at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WONTFIX
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-34311-4-06pThwHzt3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-34311-4@http.gcc.gnu.org/bugzilla/>
References: <bug-34311-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02541.txt.bz2
Content-length: 458

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

Iain Sandoe <iains at gcc dot gnu.org> changed:

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

--- Comment #5 from Iain Sandoe <iains at gcc dot gnu.org> ---
libffi is not used for Darwin GCC any more.
>From gcc-bugs-return-638248-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 14:42:06 2019
Return-Path: <gcc-bugs-return-638248-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44521 invoked by alias); 23 Mar 2019 14:42: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 44482 invoked by uid 48); 23 Mar 2019 14:42:03 -0000
From: "simon at pushface dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/89583] GNAT.Sockets.Bind_Socket fails with IPv4 address
Date: Sat, 23 Mar 2019 14:42: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: simon at pushface dot org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89583-4-vntP43t8BW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89583-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89583-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02542.txt.bz2
Content-length: 388

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

--- Comment #3 from simon at pushface dot org ---
I just rebuilt r269886 on x86_64-apple-darwin15 (with --disable-bootstrap) 
and it passed:

PASS: gnat.dg/socket2.adb (test for excess errors)
PASS: gnat.dg/socket2.adb execution test

Also, running just that test with that compiler on an x64_64-apple-darwin18
machine succeeded.
>From gcc-bugs-return-638249-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 15:01:43 2019
Return-Path: <gcc-bugs-return-638249-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13691 invoked by alias); 23 Mar 2019 15:01: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 9692 invoked by uid 48); 23 Mar 2019 15:01:36 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/81962] -Wmaybe-uninitialized refers to wrong line (and only works with -O3) (Fortran)
Date: Sat, 23 Mar 2019 15:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.1.0
X-Bugzilla-Keywords: diagnostic
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-81962-4-0mKCugDxYl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-81962-4@http.gcc.gnu.org/bugzilla/>
References: <bug-81962-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02543.txt.bz2
Content-length: 321

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

--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> But this is very likely to be the effect of inlining, and gcc should be able
> to print an inline "stack trace": ...

The warning is gone if I compile the test with '-Wall -O3 -fno-inline'.
>From gcc-bugs-return-638250-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 15:06:27 2019
Return-Path: <gcc-bugs-return-638250-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30408 invoked by alias); 23 Mar 2019 15:06: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 30247 invoked by uid 48); 23 Mar 2019 15:06:22 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/88455] False positive for allocatable character array of deferred length, ALLOCATE using SOURCE/MOLD [-Wuninitialized]
Date: Sat, 23 Mar 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: fortran
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
X-Bugzilla-Priority: P4
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-88455-4-jMpYkFbi7A@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88455-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88455-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02544.txt.bz2
Content-length: 509

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

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

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

--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Duplicate.

*** This bug has been marked as a duplicate of bug 56670 ***
>From gcc-bugs-return-638252-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 15:06:30 2019
Return-Path: <gcc-bugs-return-638252-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30795 invoked by alias); 23 Mar 2019 15:06: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 30373 invoked by uid 48); 23 Mar 2019 15:06:26 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/24639] [meta-bug] bug to track all Wuninitialized issues
Date: Sat, 23 Mar 2019 15:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.1.0
X-Bugzilla-Keywords: diagnostic, meta-bug
X-Bugzilla-Severity: trivial
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 resolution
Message-ID: <bug-24639-4-VjdM4qcM1M@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-24639-4@http.gcc.gnu.org/bugzilla/>
References: <bug-24639-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02545.txt.bz2
Content-length: 543

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

Bug 88455 Summary: False positive for allocatable character array of deferred length, ALLOCATE using SOURCE/MOLD [-Wuninitialized]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88455

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE
>From gcc-bugs-return-638251-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 15:06:27 2019
Return-Path: <gcc-bugs-return-638251-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30415 invoked by alias); 23 Mar 2019 15:06: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 30285 invoked by uid 48); 23 Mar 2019 15:06:23 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/56670] Allocatable-length character var causes bogus warning with -Wuninitialized
Date: Sat, 23 Mar 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: fortran
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: diagnostic
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: cc
Message-ID: <bug-56670-4-QPKXdMdXrT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56670-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56670-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02546.txt.bz2
Content-length: 464

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adam at aphirst dot karoo.co.uk

--- Comment #8 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
*** Bug 88455 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-638253-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 15:10:43 2019
Return-Path: <gcc-bugs-return-638253-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35870 invoked by alias); 23 Mar 2019 15:10: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 35804 invoked by uid 48); 23 Mar 2019 15:10:39 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/56670] Allocatable-length character var causes bogus warning with -Wuninitialized
Date: Sat, 23 Mar 2019 15:10: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.8.0
X-Bugzilla-Keywords: diagnostic
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-56670-4-596FF7NT2U@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56670-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56670-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02547.txt.bz2
Content-length: 494

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

--- Comment #9 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
The dump-tree-original shows

...
    if (name_format != 0B) goto L.1;
    name_format = (character(kind=1)[1:.name_format] *) __builtin_malloc (1);
    goto L.2;
    L.1:;
    if (.name_format == 0) goto L.2;
    name_format = (character(kind=1)[1:.name_format] *) __builtin_realloc
((void *) name_format, 1);
    L.2:;
    .name_format = 0;
...
>From gcc-bugs-return-638254-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 15:32:42 2019
Return-Path: <gcc-bugs-return-638254-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 97107 invoked by alias); 23 Mar 2019 15:32: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 87664 invoked by uid 48); 23 Mar 2019 15:32:39 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/77504] "is used uninitialized" with allocatable string and array constructors
Date: Sat, 23 Mar 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: fortran
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: diagnostic
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: see_also
Message-ID: <bug-77504-4-HZ0BGOgjP3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77504-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77504-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02548.txt.bz2
Content-length: 573

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=56670

--- Comment #12 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Warning: '.help_text' is used uninitialized in this function [-Wuninitialized]

This is pr56670.
>From gcc-bugs-return-638255-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 15:48:54 2019
Return-Path: <gcc-bugs-return-638255-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60945 invoked by alias); 23 Mar 2019 15:48: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 60847 invoked by uid 48); 23 Mar 2019 15:48:49 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/77504] [7/8/9 Regression] "is used uninitialized" with allocatable string and array constructors
Date: Sat, 23 Mar 2019 15: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: unknown
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone short_desc
Message-ID: <bug-77504-4-4QM63pvKmN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77504-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77504-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02549.txt.bz2
Content-length: 1146

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |7.5
            Summary|"is used uninitialized"     |[7/8/9 Regression] "is used
                   |with allocatable string and |uninitialized" with
                   |array constructors          |allocatable string and
                   |                            |array constructors

--- Comment #13 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
(In reply to Dominique d'Humieres from comment #11)
> The test in comment 7 compiles without any warning with gfortran 6.4.1 and
> before.
> 
> In a similar way the original test starts to give the warnings
> 
> pr77504.f90:10:0: Warning: 'help_text.dim[0].lbound' is used uninitialized
> in this function [-Wuninitialized]
> pr77504.f90:10:0: Warning: 'help_text.dim[0].ubound' is used uninitialized
> in this function [-Wuninitialized]
> 
> for gfortran 7 and above.

So, a regression then.
>From gcc-bugs-return-638256-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 15:59:02 2019
Return-Path: <gcc-bugs-return-638256-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70312 invoked by alias); 23 Mar 2019 15:59: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 70014 invoked by uid 55); 23 Mar 2019 15:58:58 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/68009] [7/8 Regression] prototype for gfortran_runtime_error with inline matmul
Date: Sat, 23 Mar 2019 15:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-68009-4-LEoMiojfoN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68009-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68009-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02550.txt.bz2
Content-length: 576

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

--- Comment #14 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Author: tkoenig
Date: Sat Mar 23 15:58:25 2019
New Revision: 269889

URL: https://gcc.gnu.org/viewcvs?rev=269889&root=gcc&view=rev
Log:
2019-03-23  Thomas Koenig  <tkoeng@gcc.gnu.org>

    PR fortran/68009
    Backport from trunk
    * iresolve.c: Include trans.h.
    (gfc_resolve_fe_runtine_error): Set backend_decl on
    resolved_sym.


Modified:
    branches/gcc-8-branch/gcc/fortran/ChangeLog
    branches/gcc-8-branch/gcc/fortran/iresolve.c
>From gcc-bugs-return-638257-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 16:02:34 2019
Return-Path: <gcc-bugs-return-638257-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76796 invoked by alias); 23 Mar 2019 16:02: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 76456 invoked by uid 55); 23 Mar 2019 16:02:30 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/68009] [7/8 Regression] prototype for gfortran_runtime_error with inline matmul
Date: Sat, 23 Mar 2019 16: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: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-68009-4-TWGF14crvl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68009-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68009-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02551.txt.bz2
Content-length: 576

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

--- Comment #15 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Author: tkoenig
Date: Sat Mar 23 16:01:57 2019
New Revision: 269890

URL: https://gcc.gnu.org/viewcvs?rev=269890&root=gcc&view=rev
Log:
2019-03-23  Thomas Koenig  <tkoeng@gcc.gnu.org>

    PR fortran/68009
    Backport from trunk
    * iresolve.c: Include trans.h.
    (gfc_resolve_fe_runtine_error): Set backend_decl on
    resolved_sym.


Modified:
    branches/gcc-7-branch/gcc/fortran/ChangeLog
    branches/gcc-7-branch/gcc/fortran/iresolve.c
>From gcc-bugs-return-638259-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 16:03:24 2019
Return-Path: <gcc-bugs-return-638259-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79115 invoked by alias); 23 Mar 2019 16:03: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 78964 invoked by uid 48); 23 Mar 2019 16:03:20 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/37131] inline matmul for small matrix sizes
Date: Sat, 23 Mar 2019 16:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.4.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-37131-4-0ZLvVfvtqR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-37131-4@http.gcc.gnu.org/bugzilla/>
References: <bug-37131-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02553.txt.bz2
Content-length: 500

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

Bug 68009 Summary: [7/8 Regression] prototype for gfortran_runtime_error with inline matmul
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68009

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-638258-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 16:03:24 2019
Return-Path: <gcc-bugs-return-638258-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79036 invoked by alias); 23 Mar 2019 16:03: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 78930 invoked by uid 48); 23 Mar 2019 16:03:20 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/68009] [7/8 Regression] prototype for gfortran_runtime_error with inline matmul
Date: Sat, 23 Mar 2019 16:03: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: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-68009-4-ZQE81OGmD9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68009-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68009-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02552.txt.bz2
Content-length: 458

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

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

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

--- Comment #16 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Fixed on all open branches, closing.
>From gcc-bugs-return-638260-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 16:10:36 2019
Return-Path: <gcc-bugs-return-638260-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116674 invoked by alias); 23 Mar 2019 16:10: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 116642 invoked by uid 48); 23 Mar 2019 16:10:22 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/89574] [7/8/9 Regression] internal compiler error: in conv_function_val, at fortran/trans-expr.c:3792
Date: Sat, 23 Mar 2019 16:10: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.1.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-89574-4-0bcFkyzIJN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89574-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89574-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02554.txt.bz2
Content-length: 647

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

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

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

--- Comment #2 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
(In reply to Denis from comment #0)

> The bug occurs when you have a module with some name (lets name it init) and
> it uses a module with an aliased subroutine or function with the same name
> (init) - see the attached source file. 

That is invalid, right?
>From gcc-bugs-return-638261-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 16:16:34 2019
Return-Path: <gcc-bugs-return-638261-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 123306 invoked by alias); 23 Mar 2019 16:16: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 123234 invoked by uid 48); 23 Mar 2019 16:16:31 -0000
From: "danglin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/79540] [7/8/9 Regression] FAIL: gfortran.dg/fmt_fw_d.f90   -O0  execution test
Date: Sat, 23 Mar 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: libfortran
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: danglin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created
Message-ID: <bug-79540-4-nK7x8Wk4Qu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79540-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79540-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02555.txt.bz2
Content-length: 654

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

John David Anglin <danglin at gcc dot gnu.org> changed:

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

--- Comment #22 from John David Anglin <danglin at gcc dot gnu.org> ---
Created attachment 46014
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46014&action=edit
Patch

Previous patch broke gfortran.dg/fmt_g0_6.f08 on hppa64-hp-hpux11.11.  It
seems we need to handle the case where ndigits is zero.
>From gcc-bugs-return-638262-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 16:29:18 2019
Return-Path: <gcc-bugs-return-638262-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11976 invoked by alias); 23 Mar 2019 16: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 11919 invoked by uid 48); 23 Mar 2019 16:29:14 -0000
From: "dmitrievdv242 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/89574] [7/8/9 Regression] internal compiler error: in conv_function_val, at fortran/trans-expr.c:3792
Date: Sat, 23 Mar 2019 16:29: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.1.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dmitrievdv242 at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
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-89574-4-ueLgWXRA54@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89574-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89574-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02556.txt.bz2
Content-length: 983

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

--- Comment #3 from Denis <dmitrievdv242 at gmail dot com> ---
(In reply to Thomas Koenig from comment #2)
> (In reply to Denis from comment #0)
> 
> > The bug occurs when you have a module with some name (lets name it init) and
> > it uses a module with an aliased subroutine or function with the same name
> > (init) - see the attached source file. 
> 
> That is invalid, right?

No, this is valid, because 'init' module doesn't use the module with this
subroutine. It uses the module, in which this subroutine is aliased as
'test_init'. And the real 'init' subroutine is in another module. So, the
module used in 'init' doesn't contain the 'init' subroutine directly and it is
expected that 'init' module doesn't care about existence of this subroutine.
See the source file for clarification. 

Also I think this must work even with directly aliased subroutine, like

module init
  use test, test_init => init
>From gcc-bugs-return-638263-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 16:34:53 2019
Return-Path: <gcc-bugs-return-638263-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17384 invoked by alias); 23 Mar 2019 16:34: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 17341 invoked by uid 48); 23 Mar 2019 16:34:48 -0000
From: "dmitrievdv242 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/89574] [7/8/9 Regression] internal compiler error: in conv_function_val, at fortran/trans-expr.c:3792
Date: Sat, 23 Mar 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: fortran
X-Bugzilla-Version: 8.1.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dmitrievdv242 at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
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-89574-4-og9695k6Nu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89574-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89574-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02557.txt.bz2
Content-length: 1096

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

--- Comment #4 from Denis <dmitrievdv242 at gmail dot com> ---
(In reply to Thomas Koenig from comment #2)
> (In reply to Denis from comment #0)
> 
> > The bug occurs when you have a module with some name (lets name it init) and
> > it uses a module with an aliased subroutine or function with the same name
> > (init) - see the attached source file. 
> 
> That is invalid, right?

No, this is valid, because 'init' module doesn't use the module with this
subroutine. It uses the module, in which this subroutine is aliased as
'test_init'. And the real 'init' subroutine is in another module. So, the
module used in 'init' doesn't actually contain the 'init' subroutine and it is
expected that 'init' module doesn't care about the existence of this
subroutine. See the source file for clarification. 

Also I believe this must work even with directly aliased subroutine, like:

module init
  use test, test_init => init
  ...
  ...
end module init

Because this is one of the reasons aliases exist: to prevent name conflicts.
>From gcc-bugs-return-638264-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 16:51:54 2019
Return-Path: <gcc-bugs-return-638264-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46189 invoked by alias); 23 Mar 2019 16:51: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 46117 invoked by uid 48); 23 Mar 2019 16:51:50 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/77504] [7/8/9 Regression] "is used uninitialized" with allocatable string and array constructors
Date: Sat, 23 Mar 2019 16:51: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: diagnostic
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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-77504-4-0Wluij0bCF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77504-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77504-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02558.txt.bz2
Content-length: 862

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

--- Comment #14 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
In the dump-tree-original I see

...
        D.3906 = offset.2;
        D.3907 = ubound.0;
        D.3908 = (integer(kind=4)[0:] * restrict) c.data;
        D.3909 = c.offset;
        D.3910 = c.dim[0].lbound;
        D.3911 = c.dim[0].ubound;
        D.3912 = D.3910 + -1;
        {
...
            c.dim[0].lbound = 1;
            c.dim[0].ubound = NON_LVALUE_EXPR <D.3907>;
            c.dim[0].stride = 1;
            c.offset = -NON_LVALUE_EXPR <c.dim[0].lbound>;
            D.3909 = c.offset;
            D.3912 = c.dim[0].lbound + -1;
            c.span = 4;
            D.3921 = MAX_EXPR <(unsigned long) (D.3919 * 4), 1>;
...

i.e., c.offset and c.dim[0].*bound are used before they are set.
>From gcc-bugs-return-638265-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 17:08:20 2019
Return-Path: <gcc-bugs-return-638265-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115136 invoked by alias); 23 Mar 2019 17:08: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 114873 invoked by uid 48); 23 Mar 2019 17:08:16 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/40978] Use named return value (NRV) for functions returning the result as argument
Date: Sat, 23 Mar 2019 17:08: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: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WONTFIX
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-40978-4-hllpz3dCqx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-40978-4@http.gcc.gnu.org/bugzilla/>
References: <bug-40978-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02559.txt.bz2
Content-length: 537

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> No feedback in more than two years.

Closing as WONTFIX if this the only way to get some feedback!-(
>From gcc-bugs-return-638266-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 17:09:18 2019
Return-Path: <gcc-bugs-return-638266-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130609 invoked by alias); 23 Mar 2019 17:09:18 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 128637 invoked by uid 48); 23 Mar 2019 17:09:14 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89793] Implicit conversion to std::string is ambiguous on GCC 8.2 but not GCC 7.3
Date: Sat, 23 Mar 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.2.1
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-89793-4-d9UWPLCZXd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89793-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89793-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02560.txt.bz2
Content-length: 218

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

--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> ---
There's no assignment operator from std::allocator<char>, so it's not
equivalent to construction.
>From gcc-bugs-return-638267-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 17:18:35 2019
Return-Path: <gcc-bugs-return-638267-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18813 invoked by alias); 23 Mar 2019 17:18: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 18774 invoked by uid 48); 23 Mar 2019 17:18:32 -0000
From: "crazylht at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89803] New: Missing AVX512 intrinsics
Date: Sat, 23 Mar 2019 17:18: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: crazylht 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-89803-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02561.txt.bz2
Content-length: 542

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

            Bug ID: 89803
           Summary: Missing AVX512 intrinsics
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: crazylht at gmail dot com
  Target Milestone: ---

Missing

__mmask8 _mm_mask_fpclass_sd_mask( __mmask8 m, __m128d a, int c)
__mmask8 _mm_mask_fpclass_ss_mask( __mmask8 m, __m128 a, int c)
>From gcc-bugs-return-638268-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 17:25:07 2019
Return-Path: <gcc-bugs-return-638268-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37851 invoked by alias); 23 Mar 2019 17:25: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 37786 invoked by uid 48); 23 Mar 2019 17:25:02 -0000
From: "crazylht at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89803] Missing AVX512 intrinsics
Date: Sat, 23 Mar 2019 17:25: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: crazylht 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-89803-4-VcAVhM4RP1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89803-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89803-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02562.txt.bz2
Content-length: 981

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

--- Comment #1 from Hongtao.liu <crazylht at gmail dot com> ---
Also we can use constraint "vm" instead of "v" for vfpclassp[sd] instructions.

ndex: gcc/config/i386/sse.md
===================================================================
--- gcc/config/i386/sse.md      (revision 269868)
+++ gcc/config/i386/sse.md      (working copy)
@@ -21101,7 +21101,7 @@
 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"
   [(set (match_operand:<avx512fmaskmode> 0 "register_operand" "=k")
           (unspec:<avx512fmaskmode>
-            [(match_operand:VF_AVX512VL 1 "register_operand" "v")
+            [(match_operand:VF_AVX512VL 1 "register_operand" "vm")
              (match_operand:QI 2 "const_0_to_255_operand" "n")]
              UNSPEC_FPCLASS))]
    "TARGET_AVX512DQ"
>From gcc-bugs-return-638269-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 18:55:34 2019
Return-Path: <gcc-bugs-return-638269-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77628 invoked by alias); 23 Mar 2019 18:55: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 77559 invoked by uid 48); 23 Mar 2019 18:55:30 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/87838] Segmentation fault with function pointer to contained function
Date: Sat, 23 Mar 2019 18: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: 8.2.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-87838-4-jqhKgSIfQP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87838-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87838-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02563.txt.bz2
Content-length: 358

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

--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Could you please compile with the -g flag, in order to get a more meaningful
> backtrace? Alternatively try running the executable via gdb or valgrind
> for further debugging.

Any progress before closing the PR as WORKSFORME?
>From gcc-bugs-return-638270-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 18:59:09 2019
Return-Path: <gcc-bugs-return-638270-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80773 invoked by alias); 23 Mar 2019 18:59: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 80605 invoked by uid 48); 23 Mar 2019 18:59:05 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/64777] [Coarray] CO_BROADCAST: Finalization/dealloc of alloc components missing
Date: Sat, 23 Mar 2019 18:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-64777-4-OBH3hPDX7M@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64777-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64777-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02564.txt.bz2
Content-length: 537

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

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

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

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
No test provided after four years, closing as INVALID. Please open a new PR if
you have a test case.
>From gcc-bugs-return-638272-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 18:59:12 2019
Return-Path: <gcc-bugs-return-638272-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81067 invoked by alias); 23 Mar 2019 18:59: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 80719 invoked by uid 48); 23 Mar 2019 18:59:08 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/83700] [Meta-bug] Fortran Coarray issues
Date: Sat, 23 Mar 2019 18:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: 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-83700-4-6DteU7wHqC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-83700-4@http.gcc.gnu.org/bugzilla/>
References: <bug-83700-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02566.txt.bz2
Content-length: 502

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

Bug 64777 Summary: [Coarray] CO_BROADCAST: Finalization/dealloc of alloc components missing
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64777

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |INVALID
>From gcc-bugs-return-638271-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 18:59:12 2019
Return-Path: <gcc-bugs-return-638271-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81024 invoked by alias); 23 Mar 2019 18:59: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 80684 invoked by uid 48); 23 Mar 2019 18:59:07 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/37336] [F03] Finish derived-type finalization
Date: Sat, 23 Mar 2019 18:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: unknown
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: burnus at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-37336-4-EnueZPdheC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-37336-4@http.gcc.gnu.org/bugzilla/>
References: <bug-37336-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02565.txt.bz2
Content-length: 502

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

Bug 64777 Summary: [Coarray] CO_BROADCAST: Finalization/dealloc of alloc components missing
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64777

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |INVALID
>From gcc-bugs-return-638273-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 20:59:01 2019
Return-Path: <gcc-bugs-return-638273-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7416 invoked by alias); 23 Mar 2019 20: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 7368 invoked by uid 48); 23 Mar 2019 20:58:57 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/79540] [7/8/9 Regression] FAIL: gfortran.dg/fmt_fw_d.f90   -O0  execution test
Date: Sat, 23 Mar 2019 20:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libfortran
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jvdelisle at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
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-79540-4-wNqlQdYgkl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79540-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79540-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02567.txt.bz2
Content-length: 480

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

--- Comment #23 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
(In reply to John David Anglin from comment #22)
> Created attachment 46014 [details]
> Patch
> 
> Previous patch broke gfortran.dg/fmt_g0_6.f08 on hppa64-hp-hpux11.11.  It
> seems we need to handle the case where ndigits is zero.

I regression tested this on x86_64 and all is well. Patch is approved to commit
if fixes on hppa64.

Thanks for effort!
>From gcc-bugs-return-638274-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 23:08:48 2019
Return-Path: <gcc-bugs-return-638274-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89739 invoked by alias); 23 Mar 2019 23:08: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 89683 invoked by uid 48); 23 Mar 2019 23:08:44 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89776] sse-movmskb-1.c testcase fails on PPC64 BE 32 bit Power8
Date: Sat, 23 Mar 2019 23: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: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher 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: cf_gcctarget bug_status resolution
Message-ID: <bug-89776-4-wbvcNSUVpJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89776-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89776-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02568.txt.bz2
Content-length: 537

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|powerpc-*-*-*               |powerpc*-*-*
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Fixed (on trunk, this code is not on 8 (yet)).
>From gcc-bugs-return-638275-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 01:11:05 2019
Return-Path: <gcc-bugs-return-638275-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54181 invoked by alias); 24 Mar 2019 01:11: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 54089 invoked by uid 48); 24 Mar 2019 01:11:01 -0000
From: "asbeer at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/41861] [DR 887][C++0x] <condition_variable> does not use monotonic_clock
Date: Sun, 24 Mar 2019 01:11: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: 4.4.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: asbeer 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: cc
Message-ID: <bug-41861-4-JkJmdbn4Mk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41861-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41861-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02569.txt.bz2
Content-length: 1586

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

Austin Beer <asbeer at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |asbeer at gmail dot com

--- Comment #16 from Austin Beer <asbeer at gmail dot com> ---
Back in 2017 I spent a lot of time (along with the maintainer) testing and
fixing time-related QOI issues in the Boost.Thread library, which were included
in Boost 1.67. The two main solutions we employed were:

1. We used chrono::steady_clock as the primary clock inside condition_variable.
2. When converting from another clock to chrono::steady_clock in *_until()
functions, we polled the other clock periodically (i.e. every 100 milliseconds)
in case the other clock had jumped.

Here is the PR, the test code, and the final test results after fixing as much
as we could.

https://github.com/boostorg/thread/pull/142
https://github.com/austin-beer/test-time-jumps/blob/master/test_time_jumps.cpp
https://github.com/austin-beer/test-time-jumps/blob/master/linux_results_develop1_default.txt

I've also created a similar test for libstdc++ and uploaded those results. I
tested against GCC 8.3.0.

https://github.com/austin-beer/test-time-jumps/blob/master/test_time_jumps_libstdcxx.cpp
https://github.com/austin-beer/test-time-jumps/blob/master/test_time_jumps_libstdcxx_results.txt

So I support Mike Crowe's suggestion that std::condition_variable be changed to
use std::chrono::steady_clock.
>From gcc-bugs-return-638276-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 03:14:47 2019
Return-Path: <gcc-bugs-return-638276-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116104 invoked by alias); 24 Mar 2019 03:14: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 88642 invoked by uid 48); 24 Mar 2019 03:13:50 -0000
From: "jynelson at email dot sc.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/62181] [C/C++] Expected new warning: "adding 'char' to a string does not append to the string" [-Wstring-plus-int]
Date: Sun, 24 Mar 2019 03:14: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: 5.0
X-Bugzilla-Keywords: diagnostic, easyhack, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jynelson at email dot sc.edu
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-62181-4-DGVT7f6fpb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-62181-4@http.gcc.gnu.org/bugzilla/>
References: <bug-62181-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02570.txt.bz2
Content-length: 565

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

jynelson at email dot sc.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jynelson at email dot sc.edu

--- Comment #14 from jynelson at email dot sc.edu ---
Bump. This hit me recently, is there a reason the patch hasn't been merged? Any
changes I can contribute to get it in faster? I've checked on 8.2.0 and it
doesn't look like this is in either gcc or g++.
>From gcc-bugs-return-638277-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 06:36:55 2019
Return-Path: <gcc-bugs-return-638277-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109851 invoked by alias); 24 Mar 2019 06:36: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 109792 invoked by uid 48); 24 Mar 2019 06:36:50 -0000
From: "claprix at yandex dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/89804] New: optimization opportunity: move variable from stack to register
Date: Sun, 24 Mar 2019 06:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
X-Bugzilla-Version: 8.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: claprix at yandex dot ru
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-89804-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02571.txt.bz2
Content-length: 699

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

            Bug ID: 89804
           Summary: optimization opportunity: move variable from stack to
                    register
           Product: gcc
           Version: 8.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: claprix at yandex dot ru
  Target Milestone: ---

Description basically is here https://godbolt.org/z/vULPAZ

As I know from
https://stackoverflow.com/questions/55314885/compiler-optimization-move-variable-from-stack-to-register
a compiler is allowed to optimize a stack variable here.
>From gcc-bugs-return-638278-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 10:01:34 2019
Return-Path: <gcc-bugs-return-638278-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11453 invoked by alias); 24 Mar 2019 10:01: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 11422 invoked by uid 48); 24 Mar 2019 10:01:30 -0000
From: "jg at jguk dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/89805] New: Not accurate line number -Werror=unused-macros
Date: Sun, 24 Mar 2019 10:01: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: jg at jguk dot org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-89805-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02572.txt.bz2
Content-length: 1019

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

            Bug ID: 89805
           Summary: Not accurate line number -Werror=unused-macros
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jg at jguk dot org
  Target Milestone: ---

Godbolt trunk

should show line number of the macro, not the end of the file.

Expected:
<source>:1:1: error: macro "DISPLAY_SLEEPS" is not used [-Werror=unused-macros]

Actual:
<source>:6:1: error: macro "DISPLAY_SLEEPS" is not used [-Werror=unused-macros]


Full log below.

Clang has accurate line number BTW.



x86-64 gcc (trunk)
#1 with x86-64 gcc (trunk)
<source>:6:1: error: macro "DISPLAY_SLEEPS" is not used [-Werror=unused-macros]

    6 | }

      | ^

cc1plus: some warnings being treated as errors

Compiler returned: 1


#define DISPLAY_SLEEPS 0

int main(void)
{
 return 0;
}
>From gcc-bugs-return-638279-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 11:19:49 2019
Return-Path: <gcc-bugs-return-638279-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56280 invoked by alias); 24 Mar 2019 11:19: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 56243 invoked by uid 48); 24 Mar 2019 11:19:45 -0000
From: "nbkolchin at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89806] New: Different behaviour for "pragma diagnostic disabled" between gcc and g++
Date: Sun, 24 Mar 2019 11:19: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.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nbkolchin 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-89806-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02573.txt.bz2
Content-length: 1032

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

            Bug ID: 89806
           Summary: Different behaviour for "pragma diagnostic disabled"
                    between gcc and g++
           Product: gcc
           Version: 8.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nbkolchin at gmail dot com
  Target Milestone: ---

https://godbolt.org/z/J0xdIL

Sample code:

#pragma GCC diagnostic ignored "-Wdate-time"
const char* g_test = "dirty-" __DATE__;

When compiling with g++ (g++ -Werror=date-time) this produces:

<source>:2:31: error: macro "__DATE__" might prevent reproducible builds
[-Werror=date-time]

    2 | const char* g_test = "dirty-" __DATE__;

      |                               ^~~~~~~~

cc1plus: some warnings being treated as errors

Compiler returned: 1

But with GCC this compiles without errors (gcc -Werror=date-time).
https://godbolt.org/z/a4ZymR
>From gcc-bugs-return-638280-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 11:20:40 2019
Return-Path: <gcc-bugs-return-638280-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57372 invoked by alias); 24 Mar 2019 11:20: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 57339 invoked by uid 48); 24 Mar 2019 11:20:36 -0000
From: "crazylht at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89803] Missing AVX512 intrinsics
Date: Sun, 24 Mar 2019 11:20: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: crazylht 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: attachments.created
Message-ID: <bug-89803-4-I4HGCzr8pH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89803-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89803-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02574.txt.bz2
Content-length: 277

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

--- Comment #2 from Hongtao.liu <crazylht at gmail dot com> ---
Created attachment 46015
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46015&action=edit
Add intrinsics and tests.

Add intrinsics and cover tests.
>From gcc-bugs-return-638281-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 12:03:55 2019
Return-Path: <gcc-bugs-return-638281-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113450 invoked by alias); 24 Mar 2019 12:03: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 113422 invoked by uid 48); 24 Mar 2019 12:03:51 -0000
From: "nbkolchin at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/89807] New: Incorrect -Wconversion warning when shifting uint32_t with 24
Date: Sun, 24 Mar 2019 12:03: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.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nbkolchin 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-89807-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02575.txt.bz2
Content-length: 1428

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

            Bug ID: 89807
           Summary: Incorrect -Wconversion warning when shifting uint32_t
                    with 24
           Product: gcc
           Version: 8.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nbkolchin at gmail dot com
  Target Milestone: ---

https://godbolt.org/z/x2vI6l

Sample code:

#include <stdint.h>

int test(uint32_t v)
{
    uint8_t a = (v >> 24) & 0xFF; // ERROR: produces warning
    uint8_t a2 = v >> 24; // ERROR: produces warning
    uint8_t b = (v >> 16) & 0xFF; // OK 
    uint8_t c = (v >> 8) & 0xFF; // OK
    uint8_t d = v & 0xFF; // OK
    return a + a2 + b + c + d;
}

Compile with -Werror=conversion:

<source>: In function 'test':

<source>:5:17: error: conversion from 'uint32_t' {aka 'unsigned int'} to
'uint8_t' {aka 'unsigned char'} may change value [-Werror=conversion]

    5 |     uint8_t a = (v >> 24) & 0xFF;

      |                 ^

<source>:6:18: error: conversion from 'uint32_t' {aka 'unsigned int'} to
'uint8_t' {aka 'unsigned char'} may change value [-Werror=conversion]

    6 |     uint8_t a2 = v >> 24;

      |                  ^

cc1: some warnings being treated as errors

Compiler returned: 1

P.S. Clang compiles this code without warnings.
>From gcc-bugs-return-638282-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 12:51:56 2019
Return-Path: <gcc-bugs-return-638282-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40931 invoked by alias); 24 Mar 2019 12:51: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 40847 invoked by uid 55); 24 Mar 2019 12:51:51 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/78865] [7/8/9 Regression] ICE in create_tmp_var, at gimple-expr.c:473
Date: Sun, 24 Mar 2019 12:51: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
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-78865-4-aqMcWuzI4D@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78865-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78865-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02576.txt.bz2
Content-length: 1145

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

--- Comment #7 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Author: tkoenig
Date: Sun Mar 24 12:51:19 2019
New Revision: 269895

URL: https://gcc.gnu.org/viewcvs?rev=269895&root=gcc&view=rev
Log:
2019-03-24  Thomas Koenig  <tkoenig@gcc.gnu.org>

        PR fortran/78865
        * interface.c (compare_actual_formal): Change errors about
        missing or extra to gfc_error_now to make sure they are issued.
        Change "spec" to "specifier" in message.
        * resolve.c (resolve_global_procedure): Also check for mismatching
        interface with global symbols if the namespace has already been
        resolved.

2019-03-24  Thomas Koenig  <tkoenig@gcc.gnu.org>

        PR fortran/78865
        * gfortran.dg/altreturn_10.f90: New test.
        * gfortran.dg/whole_file_3.f90: Change dg-warning to dg-error.


Added:
    trunk/gcc/testsuite/gfortran.dg/altreturn_10.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/interface.c
    trunk/gcc/fortran/resolve.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/whole_file_3.f90
>From gcc-bugs-return-638283-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 13:10:45 2019
Return-Path: <gcc-bugs-return-638283-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85950 invoked by alias); 24 Mar 2019 13:10: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 85897 invoked by uid 48); 24 Mar 2019 13:10:41 -0000
From: "s_gcc_bugzilla at binarez dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89808] New: Disable "#pragma once in main file"
Date: Sun, 24 Mar 2019 13:10: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: s_gcc_bugzilla at binarez 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-89808-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02577.txt.bz2
Content-length: 985

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

            Bug ID: 89808
           Summary: Disable "#pragma once in main file"
           Product: gcc
           Version: 7.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: s_gcc_bugzilla at binarez dot com
  Target Milestone: ---

I am building an environnement to execute c++ code and I do need to use #pragma
once in my main cpp source code (and all cpp files actually). When I compile, I
get the "#pragma once in main file" warning.

The only way to turn this warning off is to disable all warnings with the -w
option. I want to only disable this specific warning and keep all the other
ones. gcc needs something like clang's -Wno-pragma-once-outside-header option.

I do appreciate that this warning is actually useful but there are corner cases
where this warning must be disabled.
>From gcc-bugs-return-638284-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 13:14:06 2019
Return-Path: <gcc-bugs-return-638284-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89081 invoked by alias); 24 Mar 2019 13:14: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 89012 invoked by uid 48); 24 Mar 2019 13:14:01 -0000
From: "nok.raven at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/86912] Function pointer imposes an optimization barrier
Date: Sun, 24 Mar 2019 13:14: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: 9.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nok.raven at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-86912-4-cK2A9c3CB5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86912-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86912-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02578.txt.bz2
Content-length: 523

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

Nikita Kniazev <nok.raven at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nok.raven at gmail dot com

--- Comment #1 from Nikita Kniazev <nok.raven at gmail dot com> ---
Making `visitors` a `static constexpr` turns the output to almost the same as
Clang produces for this code (except an unnecessary mov).
>From gcc-bugs-return-638285-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 13:16:19 2019
Return-Path: <gcc-bugs-return-638285-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93781 invoked by alias); 24 Mar 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 92215 invoked by uid 48); 24 Mar 2019 13:16:15 -0000
From: "iains at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/71409] darwin Comparing stages 2 and 3 slight failure
Date: Sun, 24 Mar 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: bootstrap
X-Bugzilla-Version: 6.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: iains 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 cc resolution
Message-ID: <bug-71409-4-12wwMuE2vr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71409-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71409-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02579.txt.bz2
Content-length: 595

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

Iain Sandoe <iains at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |iains at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #1 from Iain Sandoe <iains at gcc dot gnu.org> ---
bootstrap is successful on open branches [no compare fails] (and on 6.5 for
that matter) - closing as fixed.
>From gcc-bugs-return-638286-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 13:21:07 2019
Return-Path: <gcc-bugs-return-638286-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128102 invoked by alias); 24 Mar 2019 13:21: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 128032 invoked by uid 48); 24 Mar 2019 13:21:03 -0000
From: "iains at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/68771] Darwin: Profile guided optimisation with cold sections and invalid symbol redefinition
Date: Sun, 24 Mar 2019 13:21: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: 5.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: iains at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-68771-4-4zXSRZlTFr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68771-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68771-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02580.txt.bz2
Content-length: 634

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

Iain Sandoe <iains at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2019-03-24
     Ever confirmed|0                           |1

--- Comment #5 from Iain Sandoe <iains at gcc dot gnu.org> ---
have you had a chance to try with revised 7.x (or 8 or 9)?

NOTE: LTO debug support is still not going to work (we need changes outside of
GCC to make that happen).
>From gcc-bugs-return-638287-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 13:24:57 2019
Return-Path: <gcc-bugs-return-638287-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37108 invoked by alias); 24 Mar 2019 13:24: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 30993 invoked by uid 48); 24 Mar 2019 13:24:36 -0000
From: "iains at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug pch/62001] Many tests fail with PCH
Date: Sun, 24 Mar 2019 13:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: pch
X-Bugzilla-Version: 4.9.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: iains 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 cc resolution
Message-ID: <bug-62001-4-2PfOKSJECq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-62001-4@http.gcc.gnu.org/bugzilla/>
References: <bug-62001-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02581.txt.bz2
Content-length: 579

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

Iain Sandoe <iains at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |iains at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #3 from Iain Sandoe <iains at gcc dot gnu.org> ---
we only see the random fails mentioned in PR61250 on the open branches. 
Closing as fixed.
>From gcc-bugs-return-638288-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 13:27:59 2019
Return-Path: <gcc-bugs-return-638288-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37290 invoked by alias); 24 Mar 2019 13:27: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 33746 invoked by uid 48); 24 Mar 2019 13:27:55 -0000
From: "iains at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/61593] Support '#pragma mark - foo' on non-Darwin targets (by simply ignoring it without warning)
Date: Sun, 24 Mar 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: 4.9.0
X-Bugzilla-Keywords: easyhack
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: iains 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: 10.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc target_milestone bug_severity
Message-ID: <bug-61593-4-n8iFbNa0oi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61593-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61593-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02582.txt.bz2
Content-length: 627

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

Iain Sandoe <iains at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |iains at gcc dot gnu.org
   Target Milestone|---                         |10.0
           Severity|normal                      |enhancement

--- Comment #6 from Iain Sandoe <iains at gcc dot gnu.org> ---
I think you only require this to work for Darwin, right?
so as Eric says, we could have another darwin-specific pragma.
Patch Eric? ( ;) )
>From gcc-bugs-return-638289-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 13:31:08 2019
Return-Path: <gcc-bugs-return-638289-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53967 invoked by alias); 24 Mar 2019 13:30:45 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 53840 invoked by uid 48); 24 Mar 2019 13:30:41 -0000
From: "zerolo at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/68771] Darwin: Profile guided optimisation with cold sections and invalid symbol redefinition
Date: Sun, 24 Mar 2019 13:30: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: 5.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: zerolo at gmail dot com
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-68771-4-moMnQbX5yQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68771-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68771-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02583.txt.bz2
Content-length: 169

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

--- Comment #6 from Daniel Vollmer <zerolo at gmail dot com> ---
Is 7.4 or 8.3 new enough to be worthwhile trying?
>From gcc-bugs-return-638290-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 13:35:17 2019
Return-Path: <gcc-bugs-return-638290-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49716 invoked by alias); 24 Mar 2019 13:35: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 47809 invoked by uid 48); 24 Mar 2019 13:35:14 -0000
From: "iains at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/68771] Darwin: Profile guided optimisation with cold sections and invalid symbol redefinition
Date: Sun, 24 Mar 2019 13:35: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: 5.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: iains 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:
Message-ID: <bug-68771-4-2eeyKSFLBK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68771-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68771-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02584.txt.bz2
Content-length: 448

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

--- Comment #7 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Daniel Vollmer from comment #6)
> Is 7.4 or 8.3 new enough to be worthwhile trying?

The specific thing you reported should be fixed on both of those branches.

General support for LTO debug is not (I have patches for the GCC part, but some
changes are also needed to dsymutil and not had a chance to do those yet).
>From gcc-bugs-return-638291-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 13:55:32 2019
Return-Path: <gcc-bugs-return-638291-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73041 invoked by alias); 24 Mar 2019 13:55:32 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 72970 invoked by uid 48); 24 Mar 2019 13:55:28 -0000
From: "iains at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/80782] Configure options to use llvm/clang assembler on Mac
Date: Sun, 24 Mar 2019 13: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: iains 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:
Message-ID: <bug-80782-4-Wcj2Yl9Ni5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-80782-4@http.gcc.gnu.org/bugzilla/>
References: <bug-80782-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02585.txt.bz2
Content-length: 506

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

--- Comment #12 from Iain Sandoe <iains at gcc dot gnu.org> ---
AFAIK the use of the clang assembler (i.e. calling cctools as which then spawns
clang -cc1as) is working on all open branches (and on the closed 6.5).

please could you be more specific about exactly what's not working?
 - i.e if you're on an older version of the OS.
 - version of Xcode.

Note that the default for which assembler backend is called does depend on the
Xcode version.
>From gcc-bugs-return-638292-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 15:21:30 2019
Return-Path: <gcc-bugs-return-638292-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91696 invoked by alias); 24 Mar 2019 15:21:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 91636 invoked by uid 55); 24 Mar 2019 15:21:25 -0000
From: "law at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/87761] [9 regression][MIPS] New FAIL: gcc.target/mips/fix-r4000-10.c   -O1 start with r265398
Date: Sun, 24 Mar 2019 15:21: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: missed-optimization, ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law 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-87761-4-wUGeuuLpx7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87761-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87761-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02586.txt.bz2
Content-length: 761

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

--- Comment #18 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Author: law
Date: Sun Mar 24 15:20:52 2019
New Revision: 269896

URL: https://gcc.gnu.org/viewcvs?rev=269896&root=gcc&view=rev
Log:
        PR rtl-optimization/87761
        * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
        not INSN.  Also check RTX_FRAME_RELATED_P.  Queue insns for DF rescan
        as needed.
        (pass_cprop_hardreg::execute): Add df note problem and defer insn
        rescans.  Reprocess blocks as needed, calling df_analyze before
        reprocessing.  Always call df_analyze before fixing up debug bind
        insns.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/regcprop.c
>From gcc-bugs-return-638293-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 15:22:06 2019
Return-Path: <gcc-bugs-return-638293-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92666 invoked by alias); 24 Mar 2019 15:22: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 92597 invoked by uid 48); 24 Mar 2019 15:22:02 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/87761] [9 regression][MIPS] New FAIL: gcc.target/mips/fix-r4000-10.c   -O1 start with r265398
Date: Sun, 24 Mar 2019 15:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: missed-optimization, ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat 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-87761-4-wGNcPe7z76@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87761-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87761-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02587.txt.bz2
Content-length: 452

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

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

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

--- Comment #19 from Jeffrey A. Law <law at redhat dot com> ---
Fixed by various changes on the trunk.
>From gcc-bugs-return-638294-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 15:45:03 2019
Return-Path: <gcc-bugs-return-638294-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44344 invoked by alias); 24 Mar 2019 15:45: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 44254 invoked by uid 48); 24 Mar 2019 15:44:58 -0000
From: "sean@rogue-research.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/61593] Support '#pragma mark - foo' on non-Darwin targets (by simply ignoring it without warning)
Date: Sun, 24 Mar 2019 15:45: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.9.0
X-Bugzilla-Keywords: easyhack
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: sean@rogue-research.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: 10.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-61593-4-732XAhWZAQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61593-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61593-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02588.txt.bz2
Content-length: 142

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

--- Comment #7 from Sean <sean@rogue-research.com> ---
Iain, no. Please see comment #2.
>From gcc-bugs-return-638295-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 15:47:24 2019
Return-Path: <gcc-bugs-return-638295-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46547 invoked by alias); 24 Mar 2019 15:47: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 46482 invoked by uid 48); 24 Mar 2019 15:47:19 -0000
From: "xerofoify at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89796] Incorrect warning generated with OpenMP atomic capture
Date: Sun, 24 Mar 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: c++
X-Bugzilla-Version: 8.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: xerofoify at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-89796-4-qCLvfxEcUV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89796-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89796-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02589.txt.bz2
Content-length: 990

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

Nicholas Krause <xerofoify at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xerofoify at gmail dot com

--- Comment #1 from Nicholas Krause <xerofoify at gmail dot com> ---
I just compiled this like so:
./bin/g++ test.cpp -fopenmp -Wall -fconcepts -o name test2.cpp 
and got this on a build from yesterday:

g++: internal compiler error: Segmentation fault signal terminated program
cc1plus
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.

This code is linked to another version of this
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88395 as it crashes before your
warning issue. I posted to
the list here about a possible fix yesterday for it:

https://gcc.gnu.org/ml/gcc/2019-03/msg00185.html
>From gcc-bugs-return-638296-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 15:56:10 2019
Return-Path: <gcc-bugs-return-638296-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36689 invoked by alias); 24 Mar 2019 15:56: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 36618 invoked by uid 48); 24 Mar 2019 15:56:06 -0000
From: "iains at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/61593] Support '#pragma mark - foo' on non-Darwin targets (by simply ignoring it without warning)
Date: Sun, 24 Mar 2019 15:56: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.9.0
X-Bugzilla-Keywords: easyhack
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: iains 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: 10.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-61593-4-YLmNhrYSRf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61593-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61593-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02590.txt.bz2
Content-length: 365

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

--- Comment #8 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Sean from comment #7)
> Iain, no. Please see comment #2.

ah gotcha .. then it's a question of producing a general patch rather than a
darwin-specific one and posting it for review (with some suitable justification
as to its merit).
>From gcc-bugs-return-638297-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 16:51:21 2019
Return-Path: <gcc-bugs-return-638297-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69451 invoked by alias); 24 Mar 2019 16:51: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 69408 invoked by uid 48); 24 Mar 2019 16:51:17 -0000
From: "nok.raven at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89809] New: movzwl is not utilized when uint16_t is loaded with bit-shifts (while memcpy does)
Date: Sun, 24 Mar 2019 16:51: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: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nok.raven 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 keywords bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget
Message-ID: <bug-89809-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02591.txt.bz2
Content-length: 1432

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

            Bug ID: 89809
           Summary: movzwl is not utilized when uint16_t is loaded with
                    bit-shifts (while memcpy does)
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nok.raven at gmail dot com
  Target Milestone: ---
              Host: x86_64
            Target: x86_64

#include <cstdint>
#include <cstring>

// could be just a single movzwl
std::uint16_t foo(unsigned char const* p)
{
    return static_cast<std::uint16_t>(p[0])
        | (static_cast<std::uint16_t>(p[1]) << 8)
        ;
}

// the same, but for uint32_t is recognized
std::uint32_t bar(unsigned char const* p)
{
    return static_cast<std::uint32_t>(p[0])
        | (static_cast<std::uint32_t>(p[1]) << 8)
        | (static_cast<std::uint32_t>(p[2]) << 16)
        | (static_cast<std::uint32_t>(p[3]) << 24)
        ;
}

// memcpy for uint16_t is also good, and generates movzwl
std::uint16_t qaz(unsigned char const* p)
{
    std::uint16_t tmp = 0;
    std::memcpy(&tmp, p, sizeof(tmp));
    return tmp;
}


https://godbolt.org/z/ZQl1tF


movzwl could be also utilized in other byte-size integers load. See the
attachment or https://godbolt.org/z/PQwc87
>From gcc-bugs-return-638298-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 17:09:12 2019
Return-Path: <gcc-bugs-return-638298-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27946 invoked by alias); 24 Mar 2019 17:09: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 27899 invoked by uid 48); 24 Mar 2019 17:09:05 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89803] Missing AVX512 intrinsics
Date: Sun, 24 Mar 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: 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: 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-89803-4-DfwaU12kQw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89803-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89803-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02592.txt.bz2
Content-length: 1145

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Hongtao.liu from comment #1)
> Also we can use constraint "vm" instead of "v" for vfpclassp[sd]
> instructions.
> 
> ndex: gcc/config/i386/sse.md
> ===================================================================
> --- gcc/config/i386/sse.md      (revision 269868)
> +++ gcc/config/i386/sse.md      (working copy)
> @@ -21101,7 +21101,7 @@
>  (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"
>    [(set (match_operand:<avx512fmaskmode> 0 "register_operand" "=k")
>            (unspec:<avx512fmaskmode>
> -            [(match_operand:VF_AVX512VL 1 "register_operand" "v")
> +            [(match_operand:VF_AVX512VL 1 "register_operand" "vm")
>               (match_operand:QI 2 "const_0_to_255_operand" "n")]
>               UNSPEC_FPCLASS))]
>     "TARGET_AVX512DQ"

Either "register_operand" "v", or "vector_operand" "vm" (or
nonimmediate_operand etc.).
>From gcc-bugs-return-638299-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 17:17:56 2019
Return-Path: <gcc-bugs-return-638299-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78068 invoked by alias); 24 Mar 2019 17:17: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 78018 invoked by uid 48); 24 Mar 2019 17:17:52 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89809] movzwl is not utilized when uint16_t is loaded with bit-shifts (while memcpy does)
Date: Sun, 24 Mar 2019 17:17: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: 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: bug_status cf_reconfirmed_on component everconfirmed
Message-ID: <bug-89809-4-AiQghoowH1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89809-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89809-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02593.txt.bz2
Content-length: 690

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

Marc Glisse <glisse at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-03-24
          Component|target                      |tree-optimization
     Ever confirmed|0                           |1

--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
Strange, the bswap pass is supposed to handle 16 bits just as well as 32.
The shift is done in type 'int', maybe the mix between int and short confuses
it.
>From gcc-bugs-return-638300-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 17:45:59 2019
Return-Path: <gcc-bugs-return-638300-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122649 invoked by alias); 24 Mar 2019 17:45: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 122349 invoked by uid 48); 24 Mar 2019 17:45:35 -0000
From: "nok.raven at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89810] New: Suboptimal codegen: integer load/assemble from in-register array of uint8_t
Date: Sun, 24 Mar 2019 17:45: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: nok.raven 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 keywords bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-89810-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02594.txt.bz2
Content-length: 2953

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

            Bug ID: 89810
           Summary: Suboptimal codegen: integer load/assemble from
                    in-register array of uint8_t
           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: nok.raven at gmail dot com
  Target Milestone: ---

Clang optimizes it perfectly, while GCC does byte-per-byte assemble (except for
32/64bit cases) https://godbolt.org/z/8b_D9A

#include <cstdint>
#include <array>

// suboptimal
std::uint16_t foo(std::array<std::uint8_t, 2> x)
{
    return static_cast<std::uint16_t>(x[0])
        | (static_cast<std::uint16_t>(x[1]) << 8)
        ;
}

// suboptimal
std::uint32_t foo(std::array<std::uint8_t, 3> x)
{
    return static_cast<std::uint32_t>(x[0])
        | (static_cast<std::uint32_t>(x[1]) << 8)
        | (static_cast<std::uint32_t>(x[2]) << 16)
        ;
}

// good
std::uint32_t foo(std::array<std::uint8_t, 4> x)
{
    return static_cast<std::uint32_t>(x[0])
        | (static_cast<std::uint32_t>(x[1]) << 8)
        | (static_cast<std::uint32_t>(x[2]) << 16)
        | (static_cast<std::uint32_t>(x[3]) << 24)
        ;
}

// suboptimal
std::uint64_t foo(std::array<std::uint8_t, 5> x)
{
    return static_cast<std::uint64_t>(x[0])
        | (static_cast<std::uint64_t>(x[1]) << 8)
        | (static_cast<std::uint64_t>(x[2]) << 16)
        | (static_cast<std::uint64_t>(x[3]) << 24)
        | (static_cast<std::uint64_t>(x[4]) << 32)
        ;
}

// suboptimal
std::uint64_t foo(std::array<std::uint8_t, 6> x)
{
    return static_cast<std::uint64_t>(x[0])
        | (static_cast<std::uint64_t>(x[1]) << 8)
        | (static_cast<std::uint64_t>(x[2]) << 16)
        | (static_cast<std::uint64_t>(x[3]) << 24)
        | (static_cast<std::uint64_t>(x[4]) << 32)
        | (static_cast<std::uint64_t>(x[5]) << 40)
        ;
}

// suboptimal
std::uint64_t foo(std::array<std::uint8_t, 7> x)
{
    return static_cast<std::uint64_t>(x[0])
        | (static_cast<std::uint64_t>(x[1]) << 8)
        | (static_cast<std::uint64_t>(x[2]) << 16)
        | (static_cast<std::uint64_t>(x[3]) << 24)
        | (static_cast<std::uint64_t>(x[4]) << 32)
        | (static_cast<std::uint64_t>(x[5]) << 40)
        | (static_cast<std::uint64_t>(x[6]) << 48)
        ;
}

// good
std::uint64_t foo(std::array<std::uint8_t, 8> x)
{
    return static_cast<std::uint64_t>(x[0])
        | (static_cast<std::uint64_t>(x[1]) << 8)
        | (static_cast<std::uint64_t>(x[2]) << 16)
        | (static_cast<std::uint64_t>(x[3]) << 24)
        | (static_cast<std::uint64_t>(x[4]) << 32)
        | (static_cast<std::uint64_t>(x[5]) << 40)
        | (static_cast<std::uint64_t>(x[6]) << 48)
        | (static_cast<std::uint64_t>(x[7]) << 56)
        ;
}
>From gcc-bugs-return-638301-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 18:08:46 2019
Return-Path: <gcc-bugs-return-638301-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15377 invoked by alias); 24 Mar 2019 18:08:45 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 15309 invoked by uid 55); 24 Mar 2019 18:08:42 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/71861] [7/8/9 Regression] [F03] ICE in write_symbol(): bad module symbol
Date: Sun, 24 Mar 2019 18:08: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: 7.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: janus at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: janus at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-71861-4-JxqI3NoIJr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71861-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71861-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02595.txt.bz2
Content-length: 802

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

--- Comment #11 from janus at gcc dot gnu.org ---
Author: janus
Date: Sun Mar 24 18:08:10 2019
New Revision: 269898

URL: https://gcc.gnu.org/viewcvs?rev=269898&root=gcc&view=rev
Log:
fix PR 71861

2019-03-24  Janus Weil  <janus@gcc.gnu.org>

        PR fortran/71861
        * symbol.c (check_conflict): ABSTRACT attribute conflicts with
        INTRINSIC attribute.

2019-03-24  Janus Weil  <janus@gcc.gnu.org>

        PR fortran/71861
        * gfortran.dg/interface_abstract_5.f90: New test case.

Added:
    branches/gcc-8-branch/gcc/testsuite/gfortran.dg/interface_abstract_5.f90
Modified:
    branches/gcc-8-branch/gcc/fortran/ChangeLog
    branches/gcc-8-branch/gcc/fortran/symbol.c
    branches/gcc-8-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-638302-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 18:31:25 2019
Return-Path: <gcc-bugs-return-638302-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50420 invoked by alias); 24 Mar 2019 18:31: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 50340 invoked by uid 48); 24 Mar 2019 18:31:20 -0000
From: "nok.raven at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89811] New: uint32_t load is not recognized if shifts are done in a fixed-size loop
Date: Sun, 24 Mar 2019 18:31: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: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nok.raven 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 keywords bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget
Message-ID: <bug-89811-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02596.txt.bz2
Content-length: 1979

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

            Bug ID: 89811
           Summary: uint32_t load is not recognized if shifts are done in
                    a fixed-size loop
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nok.raven at gmail dot com
  Target Milestone: ---
              Host: x86_64
            Target: x86_64

I was expecting that fixed-size loop will be unrolled and the uint32_t load
pattern is recognized, but it does not happen. Clang has no problems with this
https://godbolt.org/z/8ES09V

#include <cstdint>
#include <cstring>

// recognized
std::uint32_t good(const unsigned char *p)
{
    std::uint32_t result = 0;
    result |= (static_cast<std::uint32_t>(p[0]) << 0);
    result |= (static_cast<std::uint32_t>(p[1]) << 8);
    result |= (static_cast<std::uint32_t>(p[2]) << 16);
    result |= (static_cast<std::uint32_t>(p[3]) << 24);
    return result;
}

// not recognized if done in a loop
std::uint32_t loop(const unsigned char *p)
{
  std::uint32_t result = 0;
  for (int i = 0; i < 4; ++i)
      result |= (static_cast<std::uint32_t>(p[i]) << (i * 8));

  return result;
}

// other variations are not recognized too
std::uint32_t bad(const unsigned char *p)
{
  std::uint32_t result = 0;
  //result <<= 8;
  result |= static_cast<std::uint32_t>(p[3]);
  result <<= 8;
  result |= static_cast<std::uint32_t>(p[2]);
  result <<= 8;
  result |= static_cast<std::uint32_t>(p[1]);
  result <<= 8;
  result |= static_cast<std::uint32_t>(p[0]);

  return result;
}

std::uint32_t loop2(const unsigned char *p)
{
  std::uint32_t result = 0;
  for (int i = 0; i < 4; ++i) {
      result <<= 8;
      result |= static_cast<std::uint32_t>(p[3 - i]);
  }

  return result;
}
>From gcc-bugs-return-638303-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 19:24:46 2019
Return-Path: <gcc-bugs-return-638303-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119734 invoked by alias); 24 Mar 2019 19:24: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 119600 invoked by uid 48); 24 Mar 2019 19:24:40 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89806] Different behaviour for "pragma diagnostic disabled" between gcc and g++
Date: Sun, 24 Mar 2019 19:24: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.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89806-4-7eDt0jEzyf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89806-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89806-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02597.txt.bz2
Content-length: 152

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Related or a dup of bug 53431.
>From gcc-bugs-return-638304-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 19:36:02 2019
Return-Path: <gcc-bugs-return-638304-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48141 invoked by alias); 24 Mar 2019 19:36: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 48084 invoked by uid 48); 24 Mar 2019 19:35:58 -0000
From: "perard at cg dot uni-saarland.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89796] Incorrect warning generated with OpenMP atomic capture
Date: Sun, 24 Mar 2019 19:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 8.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: perard at cg dot uni-saarland.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:
Message-ID: <bug-89796-4-uus4LitbtU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89796-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89796-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02598.txt.bz2
Content-length: 1090

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

--- Comment #2 from Arsène Pérard-Gayot <perard at cg dot uni-saarland.de> ---
(In reply to Nicholas Krause from comment #1)
> I just compiled this like so:
> ./bin/g++ test.cpp -fopenmp -Wall -fconcepts -o name test2.cpp 
> and got this on a build from yesterday:
> 
> g++: internal compiler error: Segmentation fault signal terminated program
> cc1plus
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <https://gcc.gnu.org/bugs/> for instructions.
> 
> This code is linked to another version of this
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88395 as it crashes before your
> warning issue. I posted to
> the list here about a possible fix yesterday for it:
> 
> https://gcc.gnu.org/ml/gcc/2019-03/msg00185.html

Could you please explain the connection with this bug? From what I see, what
you are reporting here is unrelated to the warning issue, and the segmentation
fault only occurs because of your use of the "-fconcepts" flag. Please correct
me if I am wrong.
>From gcc-bugs-return-638305-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 20:43:29 2019
Return-Path: <gcc-bugs-return-638305-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85416 invoked by alias); 24 Mar 2019 20:43: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 85290 invoked by uid 48); 24 Mar 2019 20:43:25 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/89805] Not accurate line number -Werror=unused-macros
Date: Sun, 24 Mar 2019 20: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:
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: cf_known_to_fail
Message-ID: <bug-89805-4-YAiigsr1HA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89805-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89805-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02599.txt.bz2
Content-length: 822

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |4.8.5, 7.3.0

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This only happens with the C++ front-end:
apinski@xeond:~/src/toolchain$ g++ t8.c -Werror=unused-macros
t8.c:6:1: error: macro "DISPLAY_SLEEPS" is not used [-Werror=unused-macros]
 }
 ^
cc1plus: some warnings being treated as errors
apinski@xeond:~/src/toolchain$ gcc t8.c -Werror=unused-macros
t8.c:1:0: error: macro "DISPLAY_SLEEPS" is not used [-Werror=unused-macros]
 #define DISPLAY_SLEEPS 0

cc1: some warnings being treated as errors
>From gcc-bugs-return-638306-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 20:45:57 2019
Return-Path: <gcc-bugs-return-638306-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89759 invoked by alias); 24 Mar 2019 20:45: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 89594 invoked by uid 48); 24 Mar 2019 20:45:47 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89805] Not accurate line number -Werror=unused-macros
Date: Sun, 24 Mar 2019 20:45: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: 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: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-89805-4-CFCwr1sxKp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89805-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89805-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02600.txt.bz2
Content-length: 818

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-03-24
     Ever confirmed|0                           |1

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
There are other related issues with the C++ front-end and the preprocessor and
line numbers.  IIRC this is due to C++ doing tokenization all at once rather
than doing it on demand.  That was done to speed up things but maybe it has
caused more problems than it solved.  Note that change was done a long time
ago, maybe 9 years ago or even more.
>From gcc-bugs-return-638307-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 21:16:51 2019
Return-Path: <gcc-bugs-return-638307-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12054 invoked by alias); 24 Mar 2019 21:16: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 12003 invoked by uid 48); 24 Mar 2019 21:16:44 -0000
From: "jg at jguk dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89805] Not accurate line number -Werror=unused-macros
Date: Sun, 24 Mar 2019 21: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: jg at jguk 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: cf_known_to_fail
Message-ID: <bug-89805-4-vEtSjP16yY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89805-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89805-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02601.txt.bz2
Content-length: 379

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

Jonny Grant <jg at jguk dot org> changed:

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

--- Comment #3 from Jonny Grant <jg at jguk dot org> ---
Many thanks for checking this Andrew
>From gcc-bugs-return-638308-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 21:18:37 2019
Return-Path: <gcc-bugs-return-638308-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13665 invoked by alias); 24 Mar 2019 21:18: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 13641 invoked by uid 48); 24 Mar 2019 21:18:34 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89804] optimization opportunity: move variable from stack to register
Date: Sun, 24 Mar 2019 21: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: 8.3.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
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: keywords bug_status cf_reconfirmed_on component everconfirmed bug_severity
Message-ID: <bug-89804-4-qZoKxPfH7J@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89804-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89804-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02602.txt.bz2
Content-length: 898

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-03-24
          Component|other                       |tree-optimization
     Ever confirmed|0                           |1
           Severity|normal                      |enhancement

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Here is the testcase (and removed use of the headers):
typedef unsigned long long uint64_t;

uint64_t uint5korr(const unsigned char *p)
{
  uint64_t result = 0;
  __builtin_memcpy(&result, p, 5);
  return result;
}
---- CUT ---
>From gcc-bugs-return-638309-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 21:21:21 2019
Return-Path: <gcc-bugs-return-638309-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16197 invoked by alias); 24 Mar 2019 21:21: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 16161 invoked by uid 48); 24 Mar 2019 21:21:18 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89804] optimization opportunity: move variable from stack to register
Date: Sun, 24 Mar 2019 21:21: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.3.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
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-89804-4-gsCrQrRNwY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89804-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89804-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02603.txt.bz2
Content-length: 504

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> Here is the testcase (and removed use of the headers):
> typedef unsigned long long uint64_t;
> 
> uint64_t uint5korr(const unsigned char *p)
> {
>   uint64_t result = 0;
>   __builtin_memcpy(&result, p, 5);
>   return result;
> }
> ---- CUT ---

The memcpy could be changed into a BIT_INSERT which will then be optimized
correctly.
>From gcc-bugs-return-638310-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 21:57:31 2019
Return-Path: <gcc-bugs-return-638310-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99004 invoked by alias); 24 Mar 2019 21:57: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 98977 invoked by uid 48); 24 Mar 2019 21:57:27 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBjLzg5ODEyXSBOZXc6IGluY29ycmVjdCBtYXhpbXVtIGluIGVycm9y?= =?UTF-8?B?OiByZXF1ZXN0ZWQgYWxpZ25tZW50IOKAmDUzNjg3MDkxMuKAmSBleGNlZWRz?= =?UTF-8?B?IG1heGltdW0gMjE0NzQ4MzY0OA==?Date: Sun, 24 Mar 2019 21:57: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: msebor 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-89812-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02604.txt.bz2
Content-length: 992

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

            Bug ID: 89812
           Summary: incorrect maximum in error: requested alignment
                    ‘536870912’ exceeds maximum 2147483648
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: msebor at gcc dot gnu.org
  Target Milestone: ---

The error below is justified but the value of the requested alignment (1 << 29,
or 536,870,912) does not exceed 2,147,483,648, or INT_MAX + 1U).

The maximum value looks like the result of a typo introduced in r265977
committed to fix bug 87795.

$ cat x.c && gcc -S x.c
typedef __attribute__ ((aligned (1U << 29))) char X;
x.c:1:1: error: requested alignment ‘536870912’ exceeds maximum 2147483648
    1 | typedef __attribute__ ((aligned (1U << 29))) char X;
      | ^~~~~~~
>From gcc-bugs-return-638311-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 21:57:49 2019
Return-Path: <gcc-bugs-return-638311-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99743 invoked by alias); 24 Mar 2019 21:57: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 99712 invoked by uid 48); 24 Mar 2019 21:57:45 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBjLzg5ODEyXSBpbmNvcnJlY3QgbWF4aW11bSBpbiBlcnJvcjogcmVx?= =?UTF-8?B?dWVzdGVkIGFsaWdubWVudCDigJg1MzY4NzA5MTLigJkgZXhjZWVkcyBtYXhp?= =?UTF-8?B?bXVtIDIxNDc0ODM2NDg=?Date: Sun, 24 Mar 2019 21: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: 9.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: minor
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on assigned_to everconfirmed bug_severity
Message-ID: <bug-89812-4-yJNHFMsVjK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89812-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89812-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02605.txt.bz2
Content-length: 605

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2019-03-24
           Assignee|unassigned at gcc dot gnu.org      |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1
           Severity|normal                      |minor
>From gcc-bugs-return-638312-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 22:03:43 2019
Return-Path: <gcc-bugs-return-638312-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 104097 invoked by alias); 24 Mar 2019 22:03: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 104027 invoked by uid 48); 24 Mar 2019 22:03:38 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/82721] [7/8/9 Regression] Error message with corrupted text, sometimes ICE
Date: Sun, 24 Mar 2019 22:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 8.0
X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code
X-Bugzilla-Severity: minor
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-82721-4-0TFkrWEZJy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-82721-4@http.gcc.gnu.org/bugzilla/>
References: <bug-82721-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02606.txt.bz2
Content-length: 1747

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

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

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

--- Comment #7 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Valgrind reports the problem as

asdf.f90:3:25:

    3 |    character(len(c)) :: b
      |                         1
Fehler: Symbol »b« bei (1) hat bereits grundlegenden Typen REAL
==28874== Invalid read of size 8
==28874==    at 0x8CD014: check_host_association (resolve.c:5756)
==28874==    by 0x8CD014: gfc_resolve_expr(gfc_expr*) (resolve.c:6879)
==28874==    by 0x8D1A98: resolve_index_expr(gfc_expr*) (resolve.c:11927)
==28874==    by 0x8D1BD4: resolve_charlen(gfc_charlen*) [clone .part.0]
(resolve.c:11979)
..

==28874==  Address 0x5872a18 is 40 bytes inside a block of size 48 free'd
==28874==    at 0x4C2B390: free (vg_replace_malloc.c:530)
==28874==    by 0x8EF361: gfc_delete_symtree(gfc_symtree**, char const*)
(symbol.c:2962)
==28874==    by 0x8F09F1: gfc_restore_last_undo_checkpoint() (symbol.c:3714)
==28874==    by 0x8ABE87: reject_statement() (parse.c:2576)
==28874==    by 0x8AC9C1: match_word (parse.c:70)
==28874==    by 0x8AC9C1: decode_statement() (parse.c:376)

...

Looking at where the error is issued, gfc_add_type notices that
there already is a symbol, hands this up to build_sym, which returns
false to variable_decl, and when things finally go up all the way
to match_word, reject_statement() deletes the symtree.
>From gcc-bugs-return-638313-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 22:58:44 2019
Return-Path: <gcc-bugs-return-638313-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23414 invoked by alias); 24 Mar 2019 22:58: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 23359 invoked by uid 48); 24 Mar 2019 22:58:40 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/85537] [7/8/9 Regression] Invalid memory reference at runtime when calling subroutine through procedure pointer
Date: Sun, 24 Mar 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: fortran
X-Bugzilla-Version: 4.8.5
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc attachments.created
Message-ID: <bug-85537-4-bKfxSvCN3u@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85537-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85537-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02607.txt.bz2
Content-length: 1227

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

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

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

--- Comment #7 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Created attachment 46016
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46016&action=edit
Assembly for test case

Looking at the assembly of the test case in comment #6 (with -g -fverbose-asm
only):

.LBE2:
# a.f90:29:       a = a + 1
        .loc 1 29 0
        movl    (%rbx), %eax    # CHAIN.4_10(D)->a, _11
        addl    $1, %eax        #, _12
        movl    %eax, (%rbx)    # _12, CHAIN.4_10(D)->a

When called through a procedure pointer, rbx no longer contains the
address of a.

Looking further up, we have

        movq    %r10, %rbx      # CHAIN.4, CHAIN.4
        movq    %r10, -552(%rbp)        # CHAIN.4,
.LBB2:

so %r10 is clobbered. This happens in the call of _gfortran_st_write.

Looking at the ABI, %r10 is not supposed to be preserved.

Data point: This works on POWER9.

This looks like a target bug to me.
>From gcc-bugs-return-638314-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 23:01:48 2019
Return-Path: <gcc-bugs-return-638314-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27721 invoked by alias); 24 Mar 2019 23:01: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 27646 invoked by uid 48); 24 Mar 2019 23:01:44 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/85537] [7/8/9 Regression] Invalid memory reference at runtime when calling subroutine through procedure pointer
Date: Sun, 24 Mar 2019 23:01: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.5
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_gcctarget priority component
Message-ID: <bug-85537-4-vkH3s8RaNw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85537-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85537-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02608.txt.bz2
Content-length: 592

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-pc-linux-gnu
           Priority|P4                          |P3
          Component|fortran                     |rtl-optimization

--- Comment #8 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Resetting priority to default, setting component to rtl-optimization and adding
failing target.
>From gcc-bugs-return-638315-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 23:02:36 2019
Return-Path: <gcc-bugs-return-638315-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28972 invoked by alias); 24 Mar 2019 23:02: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 28936 invoked by uid 48); 24 Mar 2019 23:02:32 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89803] Missing AVX512 intrinsics
Date: Sun, 24 Mar 2019 23:02: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: 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:
Message-ID: <bug-89803-4-seuXdCYhSf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89803-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89803-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02609.txt.bz2
Content-length: 1298

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

--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Jakub Jelinek from comment #3)
> (In reply to Hongtao.liu from comment #1)
> > Also we can use constraint "vm" instead of "v" for vfpclassp[sd]
> > instructions.
> > 
> > ndex: gcc/config/i386/sse.md
> > ===================================================================
> > --- gcc/config/i386/sse.md      (revision 269868)
> > +++ gcc/config/i386/sse.md      (working copy)
> > @@ -21101,7 +21101,7 @@
> >  (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"
> >    [(set (match_operand:<avx512fmaskmode> 0 "register_operand" "=k")
> >            (unspec:<avx512fmaskmode>
> > -            [(match_operand:VF_AVX512VL 1 "register_operand" "v")
> > +            [(match_operand:VF_AVX512VL 1 "register_operand" "vm")
> >               (match_operand:QI 2 "const_0_to_255_operand" "n")]
> >               UNSPEC_FPCLASS))]
> >     "TARGET_AVX512DQ"
> 
> Either "register_operand" "v", or "vector_operand" "vm" (or
> nonimmediate_operand etc.).

It should be nonimmediate_operand since it supports unaligned memory.
>From gcc-bugs-return-638316-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 23:06:39 2019
Return-Path: <gcc-bugs-return-638316-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32074 invoked by alias); 24 Mar 2019 23:06: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 32023 invoked by uid 48); 24 Mar 2019 23:06:35 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/85537] [7/8/9 Regression] Invalid memory reference at runtime when calling subroutine through procedure pointer
Date: Sun, 24 Mar 2019 23:06: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.5
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-85537-4-Kt1FDgGabr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85537-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85537-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02610.txt.bz2
Content-length: 445

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

--- Comment #9 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
(In reply to Dominique d'Humieres from comment #2)
> The test works for me with 4.8.5. The change occurred between revisions
> r2370089 (2016-06-04, OK) and r237310 + one patch (2016-06-10, wrong code).

The only Fortran commits in that range are r237105 and r237108,
neither of them appear to touch the area in question.
>From gcc-bugs-return-638317-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 23:09:09 2019
Return-Path: <gcc-bugs-return-638317-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34597 invoked by alias); 24 Mar 2019 23:09: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 34568 invoked by uid 48); 24 Mar 2019 23:09:04 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBjLzg5ODEyXSBbOSBSZWdyZXNzaW9uXSBpbmNvcnJlY3QgbWF4aW11?= =?UTF-8?B?bSBpbiBlcnJvcjogcmVxdWVzdGVkIGFsaWdubWVudCDigJg1MzY4NzA5MTI=?= =?UTF-8?B?4oCZIGV4Y2VlZHMgbWF4aW11bSAyMTQ3NDgzNjQ4?Date: Sun, 24 Mar 2019 23: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: 9.0
X-Bugzilla-Keywords: diagnostic, ice-on-invalid-code
X-Bugzilla-Severity: minor
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords short_desc
Message-ID: <bug-89812-4-ylGY2dTkWF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89812-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89812-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02611.txt.bz2
Content-length: 2236

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
            Summary|incorrect maximum in error: |[9 Regression] incorrect
                   |requested alignment         |maximum in error: requested
                   |‘536870912’ exceeds maximum |alignment ‘536870912’
                   |2147483648                  |exceeds maximum 2147483648

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Another bug in the same code:

$ cat x.c && gcc -S b.c
typedef __attribute__ ((aligned (1U << 29))) char X;
b.c:1:1: internal compiler error: in tree_to_shwi, at tree.c:7267
    1 | __attribute__ ((aligned ((__UINT64_TYPE__)1 << 63))) char x;
      | ^~~~~~~~~~~~~
0x15ba28f tree_to_shwi(tree_node const*)
        /src/gcc/git-svn/gcc/tree.c:7267
0x90f6ae check_user_alignment(tree_node const*, bool, bool)
        /src/gcc/git-svn/gcc/c-family/c-common.c:5302
0x97ab42 common_handle_aligned_attribute
        /src/gcc/git-svn/gcc/c-family/c-attribs.c:2024
0x97b4e4 handle_aligned_attribute
        /src/gcc/git-svn/gcc/c-family/c-attribs.c:2183
0x7f2bc1 decl_attributes(tree_node**, tree_node*, int, tree_node*)
        /src/gcc/git-svn/gcc/attribs.c:718
0x80da64 c_decl_attributes
        /src/gcc/git-svn/gcc/c/c-decl.c:4817
0x80e006 start_decl(c_declarator*, c_declspecs*, bool, tree_node*)
        /src/gcc/git-svn/gcc/c/c-decl.c:4956
0x8862ac c_parser_declaration_or_fndef
        /src/gcc/git-svn/gcc/c/c-parser.c:2154
0x884f1a c_parser_external_declaration
        /src/gcc/git-svn/gcc/c/c-parser.c:1653
0x884a1b c_parser_translation_unit
        /src/gcc/git-svn/gcc/c/c-parser.c:1534
0x8beced c_parse_file()
        /src/gcc/git-svn/gcc/c/c-parser.c:19854
0x94ea72 c_common_parse_file()
        /src/gcc/git-svn/gcc/c-family/c-opts.c:1156
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.
>From gcc-bugs-return-638318-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 24 23:15:51 2019
Return-Path: <gcc-bugs-return-638318-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39709 invoked by alias); 24 Mar 2019 23:15: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 39524 invoked by uid 48); 24 Mar 2019 23:15:36 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89803] Missing AVX512 intrinsics
Date: Sun, 24 Mar 2019 23:15:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89803-4-m3fkMJMmAE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89803-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89803-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02612.txt.bz2
Content-length: 272

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Well, it is a TARGET_AVX512DQ insn, which implies TARGET_AVX, and for
TARGET_AVX there is no difference between nonimmediate_operand and
vector_operand.
>From gcc-bugs-return-638319-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 00:22:28 2019
Return-Path: <gcc-bugs-return-638319-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90074 invoked by alias); 25 Mar 2019 00:22: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 89996 invoked by uid 48); 25 Mar 2019 00:22:24 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBjLzg5ODEyXSBbOSBSZWdyZXNzaW9uXSBpbmNvcnJlY3QgbWF4aW11?= =?UTF-8?B?bSBpbiBlcnJvcjogcmVxdWVzdGVkIGFsaWdubWVudCDigJg1MzY4NzA5MTI=?= =?UTF-8?B?4oCZIGV4Y2VlZHMgbWF4aW11bSAyMTQ3NDgzNjQ4?Date: Mon, 25 Mar 2019 00:22: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, ice-on-invalid-code, patch
X-Bugzilla-Severity: minor
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords
Message-ID: <bug-89812-4-XFwwLUlNL2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89812-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89812-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02613.txt.bz2
Content-length: 422

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

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

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

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Patch: https://gcc.gnu.org/ml/gcc-patches/2019-03/msg01166.html
>From gcc-bugs-return-638320-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 01:37:58 2019
Return-Path: <gcc-bugs-return-638320-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 83110 invoked by alias); 25 Mar 2019 01:37: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 83063 invoked by uid 48); 25 Mar 2019 01:37:54 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBjLzg5ODEzXSBOZXc6IGJvZ3VzIHdhcm5pbmc6IOKAmWFzc3VtZV9h?= =?UTF-8?B?bGlnbmVk4oCZIDxsYXJnZSBpbnRlZ2VyPiBpcyBub3QgYW4gaW50ZWdlciBj?= =?UTF-8?B?b25zdGFudA==?Date: Mon, 25 Mar 2019 01:37: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: msebor 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-89813-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02614.txt.bz2
Content-length: 1388

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

            Bug ID: 89813
           Summary: bogus warning: ’assume_aligned’ <large integer> is not
                    an integer constant
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: msebor at gcc dot gnu.org
  Target Milestone: ---

The warning below that 9223372036854775808 is not an integer constant is 
incorrect: the number is an integer constant, it just exceeds the supported
maximum.  It's caused by using tree_fits_shwi_p() to detect both excessive
values and non-integers.

The error below is an example of what a better warning should look like.

$ cat b.c && gcc -S b.c
#define N ((__UINT64_TYPE__)1 << 63)

__attribute__ ((assume_aligned (N))) void* f (void);

struct S
{
  __attribute__ ((warn_if_not_aligned (N))) int i;
};
b.c:3:1: warning: ‘assume_aligned’ attribute 9223372036854775808 is not an
integer constant [-Wattributes]
    3 | __attribute__ ((assume_aligned (N))) void* f (void);
      | ^~~~~~~~~~~~~
b.c:7:3: error: requested alignment ‘9223372036854775808’ exceeds maximum
2147483648
    7 |   __attribute__ ((warn_if_not_aligned (N))) int i;
      |   ^~~~~~~~~~~~~
>From gcc-bugs-return-638321-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 03:10:41 2019
Return-Path: <gcc-bugs-return-638321-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21868 invoked by alias); 25 Mar 2019 03:10: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 21758 invoked by uid 48); 25 Mar 2019 03:10:37 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libffi/34311] libffi.call/nested_struct5.c execution tests fail under darwin9 on powerpc
Date: Mon, 25 Mar 2019 03:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libffi
X-Bugzilla-Version: 4.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WONTFIX
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc see_also
Message-ID: <bug-34311-4-HsyNkogZkv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-34311-4@http.gcc.gnu.org/bugzilla/>
References: <bug-34311-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02615.txt.bz2
Content-length: 779

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

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

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

--- Comment #6 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Iain Sandoe from comment #5)
> libffi is not used for Darwin GCC any more.

Not currently, but it might be again if bug 46986 is ever fixed, since Go uses
libffi. So I guess we can reopen this then, if that ever happens.
>From gcc-bugs-return-638322-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 04:04:00 2019
Return-Path: <gcc-bugs-return-638322-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62245 invoked by alias); 25 Mar 2019 04:03: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 62192 invoked by uid 48); 25 Mar 2019 04:03:54 -0000
From: "xerofoify at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89796] Incorrect warning generated with OpenMP atomic capture
Date: Mon, 25 Mar 2019 04: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: 8.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: xerofoify 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-89796-4-bw8r9g3Ryr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89796-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89796-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02616.txt.bz2
Content-length: 2899

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

--- Comment #3 from Nicholas Krause <xerofoify at gmail dot com> ---
(In reply to Arsène Pérard-Gayot from comment #2)
> (In reply to Nicholas Krause from comment #1)
> > I just compiled this like so:
> > ./bin/g++ test.cpp -fopenmp -Wall -fconcepts -o name test2.cpp 
> > and got this on a build from yesterday:
> > 
> > g++: internal compiler error: Segmentation fault signal terminated program
> > cc1plus
> > Please submit a full bug report,
> > with preprocessed source if appropriate.
> > See <https://gcc.gnu.org/bugs/> for instructions.
> > 
> > This code is linked to another version of this
> > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88395 as it crashes before your
> > warning issue. I posted to
> > the list here about a possible fix yesterday for it:
> > 
> > https://gcc.gnu.org/ml/gcc/2019-03/msg00185.html
> 
> Could you please explain the connection with this bug? From what I see, what
> you are reporting here is unrelated to the warning issue, and the
> segmentation fault only occurs because of your use of the "-fconcepts" flag.
> Please correct me if I am wrong.

Yes that's correct. However the problem is that it needs to compile and you
would get this:
test.cpp:2:5: error: ‘concept’ does not name a type
    2 |     concept bool Concept2 = requires (T t, U u)
      |     ^~~~~~~
test.cpp:2:5: note: ‘concept’ only available with ‘-fconcepts’
test.cpp:8:5: error: ‘concept’ does not name a type
    8 |     concept bool Concept = Concept2 <T, T>;
      |     ^~~~~~~
test.cpp:8:5: note: ‘concept’ only available with ‘-fconcepts’
test.cpp:12:19: error: ‘Concept’ has not been declared
   12 |         template <Concept T>
      |                   ^~~~~~~
test.cpp:13:35: error: ‘T’ was not declared in this scope
   13 |         constexpr S& operator += (T o);
      |                                   ^
test.cpp:13:38: error: declaration of ‘operator+=’ as non-function
   13 |         constexpr S& operator += (T o);
      |                                      ^
test.cpp: In function ‘constexpr S operator*(S, S)’:
test.cpp:17:18: error: no match for ‘operator+=’ (operand types are ‘S’ and
‘S’)
   17 |         return a += b;
      |                ~~^~~~
test2.cpp: In member function ‘void S::test(size_t&)’:
test2.cpp:21:21: warning: value computed is not used [-Wunused-value]
   21 |             #pragma omp atomic capture
      |                     ^~~
Therefore it must be build must and that bug fixed first before we take on this
bug unless you can send me a example without concepts required and just openmp
code.
>From gcc-bugs-return-638323-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 05:22:58 2019
Return-Path: <gcc-bugs-return-638323-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77742 invoked by alias); 25 Mar 2019 05:22: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 77681 invoked by uid 48); 25 Mar 2019 05:22:55 -0000
From: "JunMa at linux dot alibaba.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/89341] [7/8/9 Regression] ICE in get, at cgraph.h:1332
Date: Mon, 25 Mar 2019 05:22: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: accepts-invalid, ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: JunMa at linux dot alibaba.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: cc
Message-ID: <bug-89341-4-zJ7TcWgOWy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02617.txt.bz2
Content-length: 540

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

JunMa <JunMa at linux dot alibaba.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |JunMa at linux dot alibaba.com

--- Comment #10 from JunMa <JunMa at linux dot alibaba.com> ---
I saw same issue with alias attribute. gcc should error out when weakref or
alias attribute attached to a definition. I'll send patch and test cases later.
>From gcc-bugs-return-638324-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 05:33:37 2019
Return-Path: <gcc-bugs-return-638324-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89233 invoked by alias); 25 Mar 2019 05:33: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 89190 invoked by uid 48); 25 Mar 2019 05:33:33 -0000
From: "xerofoify at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89796] Incorrect warning generated with OpenMP atomic capture
Date: Mon, 25 Mar 2019 05: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:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: xerofoify 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-89796-4-y60SWPhVkS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89796-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89796-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02618.txt.bz2
Content-length: 3145

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

--- Comment #4 from Nicholas Krause <xerofoify at gmail dot com> ---
(In reply to Nicholas Krause from comment #3)
> (In reply to Arsène Pérard-Gayot from comment #2)
> > (In reply to Nicholas Krause from comment #1)
> > > I just compiled this like so:
> > > ./bin/g++ test.cpp -fopenmp -Wall -fconcepts -o name test2.cpp 
> > > and got this on a build from yesterday:
> > > 
> > > g++: internal compiler error: Segmentation fault signal terminated program
> > > cc1plus
> > > Please submit a full bug report,
> > > with preprocessed source if appropriate.
> > > See <https://gcc.gnu.org/bugs/> for instructions.
> > > 
> > > This code is linked to another version of this
> > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88395 as it crashes before your
> > > warning issue. I posted to
> > > the list here about a possible fix yesterday for it:
> > > 
> > > https://gcc.gnu.org/ml/gcc/2019-03/msg00185.html
> > 
> > Could you please explain the connection with this bug? From what I see, what
> > you are reporting here is unrelated to the warning issue, and the
> > segmentation fault only occurs because of your use of the "-fconcepts" flag.
> > Please correct me if I am wrong.
> 
> Yes that's correct. However the problem is that it needs to compile and you
> would get this:
> test.cpp:2:5: error: ‘concept’ does not name a type
>     2 |     concept bool Concept2 = requires (T t, U u)
>       |     ^~~~~~~
> test.cpp:2:5: note: ‘concept’ only available with ‘-fconcepts’
> test.cpp:8:5: error: ‘concept’ does not name a type
>     8 |     concept bool Concept = Concept2 <T, T>;
>       |     ^~~~~~~
> test.cpp:8:5: note: ‘concept’ only available with ‘-fconcepts’
> test.cpp:12:19: error: ‘Concept’ has not been declared
>    12 |         template <Concept T>
>       |                   ^~~~~~~
> test.cpp:13:35: error: ‘T’ was not declared in this scope
>    13 |         constexpr S& operator += (T o);
>       |                                   ^
> test.cpp:13:38: error: declaration of ‘operator+=’ as non-function
>    13 |         constexpr S& operator += (T o);
>       |                                      ^
> test.cpp: In function ‘constexpr S operator*(S, S)’:
> test.cpp:17:18: error: no match for ‘operator+=’ (operand types are ‘S’ and
> ‘S’)
>    17 |         return a += b;
>       |                ~~^~~~
> test2.cpp: In member function ‘void S::test(size_t&)’:
> test2.cpp:21:21: warning: value computed is not used [-Wunused-value]
>    21 |             #pragma omp atomic capture
>       |                     ^~~
> Therefore it must be build must and that bug fixed first before we take on
> this bug unless you can send me a example without concepts required and just
> openmp code.

Sorry I was compiling a incorrect program your code is fine and this is now
confirmed.
>From gcc-bugs-return-638325-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 07:21:32 2019
Return-Path: <gcc-bugs-return-638325-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42752 invoked by alias); 25 Mar 2019 07:21: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 42681 invoked by uid 48); 25 Mar 2019 07:21:27 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/85537] [7/8/9 Regression] Invalid memory reference at runtime when calling subroutine through procedure pointer
Date: Mon, 25 Mar 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: rtl-optimization
X-Bugzilla-Version: 4.8.5
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tkoenig at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-85537-4-23g1aP2Rhw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-85537-4@http.gcc.gnu.org/bugzilla/>
References: <bug-85537-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02619.txt.bz2
Content-length: 1659

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

--- Comment #10 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Bisecting this leads to

/home/ig25/Gcc/Bisect-bin/./gcc/xgcc -B/home/ig25/Gcc/Bisect-bin/./gcc/ -xc -S
-c /dev/null -fself-test
../../Bisect/gcc/input.c:1154: FAIL: ASSERT_STREQ (exp_filename, LOCATION_FILE
(loc))
cc1: interner Compiler-Fehler: in fail, bei selftest.c:44
0x190e417 selftest::fail(char const*, int, char const*)
        ../../Bisect/gcc/selftest.c:44
0x191b6d9 assert_loceq
        ../../Bisect/gcc/input.c:1154
0x191bb1c test_builtins
        ../../Bisect/gcc/input.c:1213
0x191bc76 selftest::input_c_tests()
        ../../Bisect/gcc/input.c:1248
0x18b1e5c selftest::run_tests()
        ../../Bisect/gcc/selftest-run-tests.c:52
0xe8e510 toplev::run_self_tests()
        ../../Bisect/gcc/toplev.c:2048
Bitte senden Sie einen vollständigen Fehlerbericht auf Englisch ein;
inclusive vorverarbeitetem Quellcode, wenn es dienlich ist.

at r237159 :-(

Trying

Index: gcc/input.c
===================================================================
--- gcc/input.c (Revision 237159)
+++ gcc/input.c (Arbeitskopie)
@@ -1151,7 +1151,7 @@
 assert_loceq (const char *exp_filename, int exp_linenum, int exp_colnum,
              location_t loc)
 {
-  ASSERT_STREQ (exp_filename, LOCATION_FILE (loc));
+  // ASSERT_STREQ (exp_filename, LOCATION_FILE (loc));
   ASSERT_EQ (exp_linenum, LOCATION_LINE (loc));
   ASSERT_EQ (exp_colnum, LOCATION_COLUMN (loc));
 }

to let this continue...
>From gcc-bugs-return-638326-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 08:21:13 2019
Return-Path: <gcc-bugs-return-638326-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96926 invoked by alias); 25 Mar 2019 08:21: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 96876 invoked by uid 48); 25 Mar 2019 08:21:09 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89789] [9 Regression] Compile time hog during RPO VN
Date: Mon, 25 Mar 2019 08:21: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: compile-time-hog
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: bug_status assigned_to
Message-ID: <bug-89789-4-fKY4lBKEe0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89789-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89789-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02620.txt.bz2
Content-length: 458

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

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

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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mine.
>From gcc-bugs-return-638327-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 08:37:13 2019
Return-Path: <gcc-bugs-return-638327-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111905 invoked by alias); 25 Mar 2019 08:37:08 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 111820 invoked by uid 48); 25 Mar 2019 08:37:05 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/70742] Support div as a builtin
Date: Mon, 25 Mar 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: c
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: andres.tiraboschi at tallertechnologies dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-70742-4-fAt2hJlRlb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70742-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70742-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02621.txt.bz2
Content-length: 620

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

--- Comment #14 from Richard Biener <rguenth at gcc dot gnu.org> ---
We could implement __builtin_ variants with a different ABI, returning the
quotiend and remainder in a (GCC extension) _Complex int type.  The library
would then do

#define div(a, b) ({ div_t res; _Complex int r = __builtin_div(a,b); res.quot =
_Real r; res.rem = _Imag r; res; })

that's without an inline function.  It's also way nicer to GCC internally,
not requiring memory for the return value - we'd have to lower to this kind
of internal code anyways to make code-generation good.
>From gcc-bugs-return-638328-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 08:44:44 2019
Return-Path: <gcc-bugs-return-638328-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122289 invoked by alias); 25 Mar 2019 08:44: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 122167 invoked by uid 48); 25 Mar 2019 08:44:38 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/78263] Compile failure with AltiVec library on PPC64le and -std=c++11 flag
Date: Mon, 25 Mar 2019 08:44: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.4.0
X-Bugzilla-Keywords: deferred
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: wschmidt at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-78263-4-GJvvQKbgGp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78263-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78263-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02622.txt.bz2
Content-length: 589

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

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

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

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
Marking assigned to not defer forever.  Other options include to simply
document this behavior as it seems to be a long-standing issue.
>From gcc-bugs-return-638329-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 08:56:00 2019
Return-Path: <gcc-bugs-return-638329-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60062 invoked by alias); 25 Mar 2019 08:55: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 60007 invoked by uid 48); 25 Mar 2019 08:55:56 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/89791] gcc generates wrong debug information at -O3
Date: Mon, 25 Mar 2019 08:55: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-89791-4-1aqImH3ZfN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89791-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89791-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02623.txt.bz2
Content-length: 598

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

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

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

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.
>From gcc-bugs-return-638330-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 08:56:44 2019
Return-Path: <gcc-bugs-return-638330-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62392 invoked by alias); 25 Mar 2019 08:56: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 62320 invoked by uid 48); 25 Mar 2019 08:56:40 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/89792] gcc generates wrong debug information at -O3
Date: Mon, 25 Mar 2019 08:56: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: 8.3.1
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-89792-4-YUdO1ZZb5D@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89792-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89792-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02624.txt.bz2
Content-length: 651

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-debug
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-03-25
            Version|unknown                     |8.3.1
     Ever confirmed|0                           |1

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.  All these IV related issues are probably related.
>From gcc-bugs-return-638331-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 09:02:54 2019
Return-Path: <gcc-bugs-return-638331-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19787 invoked by alias); 25 Mar 2019 09:02: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 19713 invoked by uid 48); 25 Mar 2019 09:02:50 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/89798] excessive vector_size silently accepted and truncated
Date: Mon, 25 Mar 2019 09: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: 9.0
X-Bugzilla-Keywords: accepts-invalid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89798-4-xrv0QzgelR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89798-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89798-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02625.txt.bz2
Content-length: 349

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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Note that in theory we can handle vector sizes up to 1<<(1<<10) given we
store TYPE_VECTOR_SUBPARTS logarithmic and have 10 bits for the exponent...

If we want to limit it we should document the limit if it is not so already.
>From gcc-bugs-return-638332-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 09:07:14 2019
Return-Path: <gcc-bugs-return-638332-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29267 invoked by alias); 25 Mar 2019 09:07: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 29215 invoked by uid 48); 25 Mar 2019 09:07:11 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/89801] gcc generates wrong debug information at -O2
Date: Mon, 25 Mar 2019 09:07: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: unknown
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 everconfirmed
Message-ID: <bug-89801-4-3nGEPUiLM2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89801-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89801-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02626.txt.bz2
Content-length: 601

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-debug
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-03-25
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.  Likely related to the other issues eliding an IV/loop.
>From gcc-bugs-return-638333-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 09:09:08 2019
Return-Path: <gcc-bugs-return-638333-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32102 invoked by alias); 25 Mar 2019 09:09: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 32042 invoked by uid 48); 25 Mar 2019 09:09:05 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89802] [9 Regresssion] ICE: verify_gimple failed (error: dead STMT in EH table)
Date: Mon, 25 Mar 2019 09:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-checking, 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: priority bug_status cf_reconfirmed_on assigned_to target_milestone everconfirmed
Message-ID: <bug-89802-4-Aj9Yiuok7R@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89802-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89802-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02627.txt.bz2
Content-length: 685

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2019-03-25
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
   Target Milestone|---                         |9.0
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed, mine.
>From gcc-bugs-return-638335-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 09:12:33 2019
Return-Path: <gcc-bugs-return-638335-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36923 invoked by alias); 25 Mar 2019 09:12: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 36828 invoked by uid 48); 25 Mar 2019 09:12:30 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89795] [7/8/9 Regression] wrong code with -O2 -fno-dce -fno-forward-propagate -fno-sched-pressure
Date: Mon, 25 Mar 2019 09: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: 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: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority bug_status cf_reconfirmed_on cc target_milestone short_desc everconfirmed
Message-ID: <bug-89795-4-VXGqIxiQtc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89795-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89795-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02629.txt.bz2
Content-length: 1082

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-03-25
                 CC|                            |ebotcazou at gcc dot gnu.org,
                   |                            |jakub at gcc dot gnu.org
   Target Milestone|---                         |7.5
            Summary|wrong code with -O2         |[7/8/9 Regression] wrong
                   |-fno-dce                    |code with -O2 -fno-dce
                   |-fno-forward-propagate      |-fno-forward-propagate
                   |-fno-sched-pressure         |-fno-sched-pressure
     Ever confirmed|0                           |1

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r242326, so might be related or even a dup of PR89435.
>From gcc-bugs-return-638334-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 09:12:13 2019
Return-Path: <gcc-bugs-return-638334-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35948 invoked by alias); 25 Mar 2019 09:12: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 35894 invoked by uid 48); 25 Mar 2019 09:12:09 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89804] optimization opportunity: move variable from stack to register
Date: Mon, 25 Mar 2019 09:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 8.3.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: enhancement
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-89804-4-HAaqfgUAbN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89804-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89804-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02628.txt.bz2
Content-length: 273

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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
The decision is currently to limit GIMPLE-level memcpy "inlining" to
power-of-two
(mode-precision) (single) moves and leave the rest to RTL expansion.
>From gcc-bugs-return-638336-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 09:14:55 2019
Return-Path: <gcc-bugs-return-638336-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41922 invoked by alias); 25 Mar 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 41836 invoked by uid 48); 25 Mar 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/89795] [7/8/9 Regression] wrong code with -O2 -fno-dce -fno-forward-propagate -fno-sched-pressure
Date: Mon, 25 Mar 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: 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: 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-89795-4-upUo4rubsL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89795-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89795-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02630.txt.bz2
Content-length: 298

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Reproduced with -O2 -fno-dce -fno-forward-propagate -fno-sched-pressure
-mtune=generic-armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -mabi=aapcs-linux -marm
-march=armv7-a
>From gcc-bugs-return-638337-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 09:22:13 2019
Return-Path: <gcc-bugs-return-638337-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82275 invoked by alias); 25 Mar 2019 09:22: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 79784 invoked by uid 48); 25 Mar 2019 09:22:09 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89794] wrong code with -Og -fno-forward-propagate
Date: Mon, 25 Mar 2019 09:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 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: 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-89794-4-hiLSPLnh0B@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89794-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89794-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02631.txt.bz2
Content-length: 670

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-03-25
                 CC|                            |jakub at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
ICEs already in r217911, so likely started with the introduction of
__builtin_sub_overflow and before that has been just latent.
>From gcc-bugs-return-638338-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 09:27:28 2019
Return-Path: <gcc-bugs-return-638338-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101600 invoked by alias); 25 Mar 2019 09:27:28 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 100882 invoked by uid 48); 25 Mar 2019 09:27:24 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/89808] An option to disable warning "#pragma once in main file"
Date: Mon, 25 Mar 2019 09:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: preprocessor
X-Bugzilla-Version: 8.3.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
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 component version everconfirmed bug_severity
Message-ID: <bug-89808-4-Rsaxz55lTE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89808-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89808-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02632.txt.bz2
Content-length: 926

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-03-25
          Component|c++                         |preprocessor
            Version|unknown                     |8.3.1
     Ever confirmed|0                           |1
           Severity|normal                      |enhancement

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Testcase:

#pragma once
int main() {}

> g++ t.C -S
t.C:1:9: warning: #pragma once in main file
 #pragma once
         ^~~~


you could work around this by wrapping the pragma in a preprocessor
conditional
>From gcc-bugs-return-638339-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 09:31:08 2019
Return-Path: <gcc-bugs-return-638339-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106427 invoked by alias); 25 Mar 2019 09:30: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 106226 invoked by uid 48); 25 Mar 2019 09:30:38 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89811] uint32_t load is not recognized if shifts are done in a fixed-size loop
Date: Mon, 25 Mar 2019 09:30: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: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-89811-4-NrRyNEUMEU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89811-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89811-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02633.txt.bz2
Content-length: 511

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-03-25
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Unrolling happens too late for bswap.
>From gcc-bugs-return-638340-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 09:32:55 2019
Return-Path: <gcc-bugs-return-638340-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109047 invoked by alias); 25 Mar 2019 09:32: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 108946 invoked by uid 48); 25 Mar 2019 09:32:51 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBjLzg5ODEyXSBbOSBSZWdyZXNzaW9uXSBpbmNvcnJlY3QgbWF4aW11?= =?UTF-8?B?bSBpbiBlcnJvcjogcmVxdWVzdGVkIGFsaWdubWVudCDigJg1MzY4NzA5MTI=?= =?UTF-8?B?4oCZIGV4Y2VlZHMgbWF4aW11bSAyMTQ3NDgzNjQ4?Date: Mon, 25 Mar 2019 09: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: diagnostic, ice-on-invalid-code, patch
X-Bugzilla-Severity: minor
X-Bugzilla-Who: rguenth 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-89812-4-aHjoMbaNUq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89812-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89812-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02634.txt.bz2
Content-length: 293

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |9.0
>From gcc-bugs-return-638341-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 09:36:56 2019
Return-Path: <gcc-bugs-return-638341-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126497 invoked by alias); 25 Mar 2019 09:36: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 123682 invoked by uid 48); 25 Mar 2019 09:36:51 -0000
From: "crazylht at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89788] trunk/liboffloadmic/runtime/emulator/coi_host.cpp:175]: (error) Null pointer dereference
Date: Mon, 25 Mar 2019 09:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: crazylht 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-89788-4-7j1rBqa5Dw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89788-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89788-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02635.txt.bz2
Content-length: 390

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

--- Comment #1 from Hongtao.liu <crazylht at gmail dot com> ---
Yes, It seems to be a Typo.

The bellowing code also use path.

 202   if (closedir (dir) < 0)
 203     COIERROR ("Cannot close directory %s.", path);
 204   if (rmdir (path) < 0)
 205     COIERROR ("Cannot remove directory %s.", path);
 206 
 207   return COI_SUCCESS;
>From gcc-bugs-return-638342-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 09:39:10 2019
Return-Path: <gcc-bugs-return-638342-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130686 invoked by alias); 25 Mar 2019 09:39: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 130645 invoked by uid 48); 25 Mar 2019 09:39:06 -0000
From: "burnus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89814] New: [9 Regression] ICE (segfault) with -Wduplicated-cond
Date: Mon, 25 Mar 2019 09:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: diagnostic, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: burnus 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-89814-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02636.txt.bz2
Content-length: 1895

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

            Bug ID: 89814
           Summary: [9 Regression] ICE (segfault) with -Wduplicated-cond
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: diagnostic, ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
  Target Milestone: ---

GCC 9.0.1 20190325/x86_64-pc-linux-gnu
now segfaults with "g++ -Wduplicated-cond" - it worked about a week ago.


The real-world fail is in:

gcc-trunk/include/c++/9.0.1/bits/stl_iterator_base_funcs.h: In function
‘constexpr void std::__advance(_RandomAccessIterator&, _Distance,
std::random_access_iterator_tag)’:
gcc-trunk/include/c++/9.0.1/bits/stl_iterator_base_funcs.h:182:54: internal
compiler error: Segmentation fault


Backtrace of the fail below:

0xfadc8f crash_signal
        ../../gcc/toplev.c:326
0xcabedc operand_equal_p(tree_node const*, tree_node const*, unsigned int)
        ../../gcc/fold-const.c:2977
0xcac09a operand_equal_p(tree_node const*, tree_node const*, unsigned int)
        ../../gcc/fold-const.c:2950
0xb1d951 warn_duplicated_cond_add_or_warn(unsigned int, tree_node*,
vec<tree_node*, va_heap, vl_ptr>**)
        ../../gcc/c-family/c-warn.c:2318
0x9d4b05 cp_parser_selection_statement
        ../../gcc/cp/parser.c:11809


//----------------------
struct forward_iterator_tag { };
struct random_access_iterator_tag { };

template < typename _RandomAccessIterator,
           typename _Distance >
inline constexpr void
__advance (_RandomAccessIterator & __i, _Distance __n,
           random_access_iterator_tag)
{
  if (__builtin_constant_p (__n) && __n == 1)
    ++__i;
  else if (__builtin_constant_p (__n) && __n == -1)
    --__i;
  else
    __i += __n;
}
>From gcc-bugs-return-638343-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 09:50:45 2019
Return-Path: <gcc-bugs-return-638343-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77068 invoked by alias); 25 Mar 2019 09:50: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 76999 invoked by uid 48); 25 Mar 2019 09:50:42 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/89808] An option to disable warning "#pragma once in main file"
Date: Mon, 25 Mar 2019 09:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: preprocessor
X-Bugzilla-Version: 8.3.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-89808-4-mvPnqIFjJm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89808-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89808-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02637.txt.bz2
Content-length: 627

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

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> ---
You haven't explained why do you need to use #pragma once in the main cpp
source file, are you sometimes including it as a header and other times
compiling it as the TU itself?  Not to mention that it is best not to use
#pragma once at all anywhere.
>From gcc-bugs-return-638344-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 09:57:55 2019
Return-Path: <gcc-bugs-return-638344-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118707 invoked by alias); 25 Mar 2019 09:57: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 118638 invoked by uid 48); 25 Mar 2019 09:57:51 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89789] [9 Regression] Compile time hog during RPO VN
Date: Mon, 25 Mar 2019 09:57: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: compile-time-hog
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-89789-4-yIDgS8fXn7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89789-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89789-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02638.txt.bz2
Content-length: 464

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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
OK, so we oscillate for

# vh_5 = PHI <vh_12(3), vh_8(D)(2)>
vh_12 = vh_8(D) ^ vh_5;

where vh_8(D) is undefined.  First we get zero (vh_8 ^ vh_8) then we get,
with vh_5 == 0 (UNDEF meet 0) we get vh_8(D) and so on.

The issue is the vh_5 lattice changes UNDEF -> constant -> UNDEF where
we shouldn't go back to UNDEF but to VARYING.
>From gcc-bugs-return-638345-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 09:58:03 2019
Return-Path: <gcc-bugs-return-638345-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119487 invoked by alias); 25 Mar 2019 09:58:02 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 118970 invoked by uid 48); 25 Mar 2019 09:57:58 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89795] [7/8/9 Regression] wrong code with -O2 -fno-dce -fno-forward-propagate -fno-sched-pressure
Date: Mon, 25 Mar 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: target
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-89795-4-UYht518U1D@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89795-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89795-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02639.txt.bz2
Content-length: 476

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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

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

--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Investigating then.
>From gcc-bugs-return-638347-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 10:05:55 2019
Return-Path: <gcc-bugs-return-638347-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35583 invoked by alias); 25 Mar 2019 10:05: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 35202 invoked by uid 55); 25 Mar 2019 10:05:49 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/89790] [9 Regression] ICE segfault in operand_equal_p() at fold-const.c:3000 with -Wduplicated-cond since r269838
Date: Mon, 25 Mar 2019 10:05: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: 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:
Message-ID: <bug-89790-4-ORAlXLSoIK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89790-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89790-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02641.txt.bz2
Content-length: 619

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

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon Mar 25 10:05:15 2019
New Revision: 269907

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

        PR middle-end/89790
        * fold-const.c (operand_equal_p): Revert last change with
        updated comment.

        * g++.dg/pr89790.C: New testcase.

Added:
    trunk/gcc/testsuite/g++.dg/pr89790.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-638346-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 10:05:46 2019
Return-Path: <gcc-bugs-return-638346-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34870 invoked by alias); 25 Mar 2019 10:05: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 34833 invoked by uid 48); 25 Mar 2019 10:05:42 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/89790] [9 Regression] ICE segfault in operand_equal_p() at fold-const.c:3000 with -Wduplicated-cond since r269838
Date: Mon, 25 Mar 2019 10:05: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: 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-89790-4-gyZOij3Dns@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89790-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89790-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02640.txt.bz2
Content-length: 429

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

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

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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-638348-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 10:07:26 2019
Return-Path: <gcc-bugs-return-638348-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37408 invoked by alias); 25 Mar 2019 10:07: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 37339 invoked by uid 48); 25 Mar 2019 10:07:22 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89814] [9 Regression] ICE (segfault) with -Wduplicated-cond
Date: Mon, 25 Mar 2019 10: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: 9.0
X-Bugzilla-Keywords: diagnostic, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-89814-4-QhQODKJSp1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89814-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89814-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02642.txt.bz2
Content-length: 399

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

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> ---
Maybe dup of PR89790?
>From gcc-bugs-return-638349-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 10:19:33 2019
Return-Path: <gcc-bugs-return-638349-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85056 invoked by alias); 25 Mar 2019 10:19: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 84960 invoked by uid 55); 25 Mar 2019 10:19:29 -0000
From: "krebbel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89775] [7/8 Regression] S/390: Stackpointer save/restore instructions optimized away
Date: Mon, 25 Mar 2019 10:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: krebbel at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: krebbel at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89775-4-AXb76JoNsQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89775-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89775-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02643.txt.bz2
Content-length: 1543

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

--- Comment #4 from Andreas Krebbel <krebbel at gcc dot gnu.org> ---
Author: krebbel
Date: Mon Mar 25 10:18:57 2019
New Revision: 269910

URL: https://gcc.gnu.org/viewcvs?rev=269910&root=gcc&view=rev
Log:
S/390: Fix PR89775. Stackpointer save/restore instructions removed

Even if a global register is being clobbered in a function we usually
do not save and restore it. However, we still have to do this if it is
a special register. Most of the places in the backend handle this
correctly but not the prologue/epilogue optimization.

gcc/ChangeLog:

2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>

        Backport from mainline
        2019-03-20  Andreas Krebbel  <krebbel@linux.ibm.com>

        PR target/89775
        * config/s390/s390.c (global_not_special_regno_p): Move to make it
        available to ...
        (s390_optimize_register_info): Use global_not_special_regno_p to
        check for global regs.

2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>

        Backport from mainline
        2019-03-20  Jakub Jelinek  <jakub@redhat.com>

        PR target/89775
        * gcc.target/s390/pr89775-1.c: New test.
        * gcc.target/s390/pr89775-2.c: New test.


Added:
    branches/gcc-8-branch/gcc/testsuite/gcc.target/s390/pr89775-1.c
    branches/gcc-8-branch/gcc/testsuite/gcc.target/s390/pr89775-2.c
Modified:
    branches/gcc-8-branch/gcc/ChangeLog
    branches/gcc-8-branch/gcc/config/s390/s390.c
    branches/gcc-8-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-638350-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 10:44:37 2019
Return-Path: <gcc-bugs-return-638350-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19845 invoked by alias); 25 Mar 2019 10:44: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 19770 invoked by uid 48); 25 Mar 2019 10:44:33 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/89493] [9 Regression] Stack smashing on armv7hl
Date: Mon, 25 Mar 2019 10:44: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc
Message-ID: <bug-89493-4-LjW5UP03Ou@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89493-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89493-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02644.txt.bz2
Content-length: 593

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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

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

--- Comment #3 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Does this happen at -O1 too?  If not, can you try and disable strict aliasing
or scheduling (or other -O2 optimizations) and see what happens?
>From gcc-bugs-return-638351-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 10:59:21 2019
Return-Path: <gcc-bugs-return-638351-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86497 invoked by alias); 25 Mar 2019 10:59:20 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 86441 invoked by uid 48); 25 Mar 2019 10:59:17 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/88474] Inline built-in hypot for -ffast-math
Date: Mon, 25 Mar 2019 10: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: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ubizjak at gmail dot com
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-88474-4-ZjMhqh0zd8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88474-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88474-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02645.txt.bz2
Content-length: 498

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

Uroš Bizjak <ubizjak at gmail dot com> changed:

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

--- Comment #3 from Uroš Bizjak <ubizjak at gmail dot com> ---
Implemented for gcc-9.
>From gcc-bugs-return-638352-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 11:08:12 2019
Return-Path: <gcc-bugs-return-638352-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127053 invoked by alias); 25 Mar 2019 11:08: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 126935 invoked by uid 48); 25 Mar 2019 11:08:06 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/89463] debug information for iteractor of an empty loop is gone (at -O3)
Date: Mon, 25 Mar 2019 11:08: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: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-89463-4-6ERYXl7diF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89463-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89463-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02646.txt.bz2
Content-length: 2227

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

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

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

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
<bb 6> :
# i_5 = PHI <_11(5), 0(8)>
# DEBUG i => i_5
if (i_5 != 6)
  goto <bb 5>; [INV]
else
  goto <bb 7>; [100.00%]

<bb 5> :
# DEBUG BEGIN_STMT
# DEBUG i => i_5 + 1

So it goes like so the following.  First we remove the iterator update in
BB5 (unrelated).  Then we remove the control stmt, removing the edge 6 -> 5.

This leaves us with

# i_5 = PHI <0(8)>
# DEBUG i => i_5

then we remove the PHI node which inserts the bogus debug stmt.

Stmt and control-flow removal in DCE is somewhat a twisted maze but the fix
has to be there, avoiding the above situation.

For simple IVs we could compute the final value and insert a debug stmt
after the loop.  But for IVs we cannot analyze a similar situation will
arise and thus we have to somehow compute a # DEBUG i => NULL stmt from
the above.

But that means we have to queue edges we want to remove (plus eventually
blocks we can avoid looking at for stmt removal) and perform CFG pruning
only afterwards (like leave it to CFG cleanup by changing conditionals
to if (true/false)).  Doing that (just for conditions) gives us the
expected

@@ -24,22 +52,10 @@
   if (a.1_3 <= 9)
     goto <bb 3>; [INV]
   else
-    goto <bb 6>; [INV]
-
-  <bb 5> :
-  # DEBUG BEGIN_STMT
-  i_11 = i_5 + 1;
-  # DEBUG i => i_11
-
-  <bb 6> :
-  # i_5 = PHI <i_11(5), 0(4)>
-  # DEBUG i => i_5
-  if (i_5 != 6)
     goto <bb 5>; [INV]
-  else
-    goto <bb 7>; [INV]

-  <bb 7> :
+  <bb 5> :
+  # DEBUG i => NULL
   # DEBUG BEGIN_STMT
   optimize_me_not ();
   return 0;

but that's not because of CFG cleanup but because we do not remove the
edge so at PHI removal time we still have both values.

A non-loopy testcase may also go wrong I guess but it's usually optimized
earlier and not by DCE.

I have a patch.
>From gcc-bugs-return-638353-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 11:12:02 2019
Return-Path: <gcc-bugs-return-638353-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23776 invoked by alias); 25 Mar 2019 11:12: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 23012 invoked by uid 48); 25 Mar 2019 11:11:57 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/89794] wrong code with -Og -fno-forward-propagate
Date: Mon, 25 Mar 2019 11: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: 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-89794-4-kHwV5OdNHI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89794-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89794-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02647.txt.bz2
Content-length: 868

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ktkachov at gcc dot gnu.org,
                   |                            |ramana at gcc dot gnu.org,
                   |                            |rearnsha at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Guess with PR89475 fix this will be latent, unless one disables ccp.
Anyway, to me this looks like a backend bug.  The function is leaf, but for
some strange reason LRA uses the lr register and so lr needs to be pushed and
poped, but that push/pop doesn't seem to be accounted for in the afp to sp
elimination offset computation.
>From gcc-bugs-return-638354-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 11:18:33 2019
Return-Path: <gcc-bugs-return-638354-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33677 invoked by alias); 25 Mar 2019 11:18: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 33580 invoked by uid 48); 25 Mar 2019 11:18:29 -0000
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/78263] Compile failure with AltiVec library on PPC64le and -std=c++11 flag
Date: Mon, 25 Mar 2019 11: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: 5.4.0
X-Bugzilla-Keywords: deferred
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wschmidt at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: wschmidt at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78263-4-tvNWBYbSBG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78263-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78263-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02648.txt.bz2
Content-length: 296

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

--- Comment #9 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Right.  I am going to fix this early in stage 1 for GCC 10.  It slipped off my
radar again in 9, and I don't want to do it late in the release because of
potential fallout.
>From gcc-bugs-return-638355-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 11:21:35 2019
Return-Path: <gcc-bugs-return-638355-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37110 invoked by alias); 25 Mar 2019 11:21: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 37017 invoked by uid 48); 25 Mar 2019 11:21:31 -0000
From: "mac at mcrowe dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/41861] [DR 887][C++0x] <condition_variable> does not use monotonic_clock
Date: Mon, 25 Mar 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: libstdc++
X-Bugzilla-Version: 4.4.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mac at mcrowe 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-41861-4-kOo6ukrLNh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41861-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41861-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02649.txt.bz2
Content-length: 860

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

--- Comment #17 from Mike Crowe <mac at mcrowe dot com> ---
In https://sourceware.org/ml/libc-alpha/2019-02/msg00637.html , I proposed the
addition of the pthread_cond_clockwait function (among others) to glibc, and
whilst there are a few comments on the patches, there's been no fundamental
objections. I'm just working on sorting out some things in the test suite
before these patches can land.

Once this function is available in glibc, it will be relatively straightforward
to support both steady_clock and system_clock correctly in condition_variable.

After many years of me letting this languish, I'm optimistic that we can get
this fixed properly before the tenth anniversay of Aaron's original bug
submission!

However, in the meantime, I wouldn't object to using steady_clock by default.
>From gcc-bugs-return-638357-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 11:23:36 2019
Return-Path: <gcc-bugs-return-638357-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40335 invoked by alias); 25 Mar 2019 11:23: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 40247 invoked by uid 48); 25 Mar 2019 11:23:32 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/89790] [9 Regression] ICE segfault in operand_equal_p() at fold-const.c:3000 with -Wduplicated-cond since r269838
Date: Mon, 25 Mar 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: middle-end
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: cc
Message-ID: <bug-89790-4-dWnEXjZb4U@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89790-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89790-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02651.txt.bz2
Content-length: 446

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

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

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

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
*** Bug 89814 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-638356-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 11:23:36 2019
Return-Path: <gcc-bugs-return-638356-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40322 invoked by alias); 25 Mar 2019 11:23: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 40224 invoked by uid 48); 25 Mar 2019 11:23:32 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89814] [9 Regression] ICE (segfault) with -Wduplicated-cond
Date: Mon, 25 Mar 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: c++
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: diagnostic, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-89814-4-NInSOH0GSL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89814-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89814-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02650.txt.bz2
Content-length: 545

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

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

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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
dup

*** This bug has been marked as a duplicate of bug 89790 ***
>From gcc-bugs-return-638358-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 11:34:20 2019
Return-Path: <gcc-bugs-return-638358-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89766 invoked by alias); 25 Mar 2019 11:34: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 89695 invoked by uid 48); 25 Mar 2019 11:34:16 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/60702] thread_local initialization
Date: Mon, 25 Mar 2019 11:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-60702-4-0Clyy0yCK1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60702-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60702-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02652.txt.bz2
Content-length: 465

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

--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I think the dg-require-alias is the right thing though, this is not related to
native vs. non-native TLS, but:
  /* If the variable is internal, or if we can't generate aliases,
     call the local init function directly.  */
  if (!TREE_PUBLIC (var) || !TARGET_SUPPORTS_ALIASES)
    return get_local_tls_init_fn (DECL_SOURCE_LOCATION (var));
>From gcc-bugs-return-638359-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 11:36:20 2019
Return-Path: <gcc-bugs-return-638359-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91928 invoked by alias); 25 Mar 2019 11:36: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 91869 invoked by uid 48); 25 Mar 2019 11:36:16 -0000
From: "s_gcc_bugzilla at binarez dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/89808] An option to disable warning "#pragma once in main file"
Date: Mon, 25 Mar 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: preprocessor
X-Bugzilla-Version: 8.3.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: s_gcc_bugzilla at binarez 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-89808-4-FADaC7Rj0H@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89808-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89808-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02653.txt.bz2
Content-length: 532

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

--- Comment #3 from sduguay <s_gcc_bugzilla at binarez dot com> ---
(In reply to Richard Biener from comment #1)
> Testcase:
> 
> #pragma once
> int main() {}
> 
> > g++ t.C -S
> t.C:1:9: warning: #pragma once in main file
>  #pragma once
>          ^~~~
> 
> 
> you could work around this by wrapping the pragma in a preprocessor
> conditional

Hi, thanks for adding a minimal test case. I tried:

#if 1
#pragma once
#endif

but I'm still getting the warning.
>From gcc-bugs-return-638360-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 11:41:38 2019
Return-Path: <gcc-bugs-return-638360-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99510 invoked by alias); 25 Mar 2019 11:41: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 99430 invoked by uid 48); 25 Mar 2019 11:41:34 -0000
From: "iains at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/60702] thread_local initialization
Date: Mon, 25 Mar 2019 11: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: 4.8.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: iains 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-60702-4-dHLx3eA8w8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60702-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60702-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02654.txt.bz2
Content-length: 689

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

--- Comment #16 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #15)
> I think the dg-require-alias is the right thing though, this is not related
> to native vs. non-native TLS, but:
>   /* If the variable is internal, or if we can't generate aliases,
>      call the local init function directly.  */
>   if (!TREE_PUBLIC (var) || !TARGET_SUPPORTS_ALIASES)
>     return get_local_tls_init_fn (DECL_SOURCE_LOCATION (var));

yeah, that's fair enough.  Perhaps an additional test can be added when there's
more time (that checks for the __init_tls calls instead of the aliased refs to
it).
>From gcc-bugs-return-638361-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 11:42:25 2019
Return-Path: <gcc-bugs-return-638361-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100724 invoked by alias); 25 Mar 2019 11:42: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 100663 invoked by uid 48); 25 Mar 2019 11:42:20 -0000
From: "s_gcc_bugzilla at binarez dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/89808] An option to disable warning "#pragma once in main file"
Date: Mon, 25 Mar 2019 11:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: preprocessor
X-Bugzilla-Version: 8.3.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: s_gcc_bugzilla at binarez 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-89808-4-tTStMFpd6d@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89808-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89808-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02655.txt.bz2
Content-length: 838

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

--- Comment #4 from sduguay <s_gcc_bugzilla at binarez dot com> ---
(In reply to Jakub Jelinek from comment #2)
> You haven't explained why do you need to use #pragma once in the main cpp
> source file, are you sometimes including it as a header and other times
> compiling it as the TU itself?  Not to mention that it is best not to use
> #pragma once at all anywhere.

Yes, in the system I'm working on, there is no "main file", all C++ (xcpp files
actually) are small C++ programs that I link with a generated main file. xcpp
programs can use other programs (xcpp files) or libs (xhpp files).

This is all working pretty well right now, except for that #pragma once
warning. It's still under pretty heavy development.

You can try it @ https://github.com/binarez/xcpp


Thanks
>From gcc-bugs-return-638362-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 11:49:26 2019
Return-Path: <gcc-bugs-return-638362-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127287 invoked by alias); 25 Mar 2019 11:49: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 127207 invoked by uid 55); 25 Mar 2019 11:49:19 -0000
From: "danglin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/79540] [7/8/9 Regression] FAIL: gfortran.dg/fmt_fw_d.f90   -O0  execution test
Date: Mon, 25 Mar 2019 11:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libfortran
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: danglin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
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-79540-4-eSmGyvdWnZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79540-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79540-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02656.txt.bz2
Content-length: 485

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

--- Comment #24 from John David Anglin <danglin at gcc dot gnu.org> ---
Author: danglin
Date: Mon Mar 25 11:48:36 2019
New Revision: 269911

URL: https://gcc.gnu.org/viewcvs?rev=269911&root=gcc&view=rev
Log:
        PR libgfortran/79540
        * io/write_float.def (build_float_string): Don't copy digits when
        ndigits is negative.


Modified:
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/io/write_float.def
>From gcc-bugs-return-638363-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 11:54:33 2019
Return-Path: <gcc-bugs-return-638363-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42310 invoked by alias); 25 Mar 2019 11:54: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 42222 invoked by uid 55); 25 Mar 2019 11:54:29 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/60702] thread_local initialization
Date: Mon, 25 Mar 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: c++
X-Bugzilla-Version: 4.8.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-60702-4-n73zkg0ZsN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60702-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60702-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02657.txt.bz2
Content-length: 593

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

--- Comment #17 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Mar 25 11:53:56 2019
New Revision: 269912

URL: https://gcc.gnu.org/viewcvs?rev=269912&root=gcc&view=rev
Log:
        PR c++/60702
        * g++.dg/tls/thread_local11.C: Remove scan-tree-dump-times directives
        for _ZTH* calls.
        * g++.dg/tls/thread_local11a.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/tls/thread_local11a.C
Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/tls/thread_local11.C
>From gcc-bugs-return-638364-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 11:56:41 2019
Return-Path: <gcc-bugs-return-638364-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46603 invoked by alias); 25 Mar 2019 11:56: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 46522 invoked by uid 48); 25 Mar 2019 11:56:37 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/60702] thread_local initialization
Date: Mon, 25 Mar 2019 11:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-60702-4-Hf1fM8TjCf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60702-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60702-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02658.txt.bz2
Content-length: 154

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

--- Comment #18 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Should be fixed on the trunk now.
>From gcc-bugs-return-638365-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 12:00:50 2019
Return-Path: <gcc-bugs-return-638365-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116970 invoked by alias); 25 Mar 2019 12:00: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 101432 invoked by uid 48); 25 Mar 2019 12:00:25 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89802] [9 Regresssion] ICE: verify_gimple failed (error: dead STMT in EH table)
Date: Mon, 25 Mar 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: ice-checking, 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: P1
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-89802-4-gV4PjIdiKf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89802-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89802-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02659.txt.bz2
Content-length: 406

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

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> ---
Started to ICE with r260348.
>From gcc-bugs-return-638366-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 12:16:32 2019
Return-Path: <gcc-bugs-return-638366-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22055 invoked by alias); 25 Mar 2019 12:16: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 21614 invoked by uid 48); 25 Mar 2019 12:16:02 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89802] [9 Regresssion] ICE: verify_gimple failed (error: dead STMT in EH table)
Date: Mon, 25 Mar 2019 12:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-checking, 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-89802-4-RsrCjxyHQm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89802-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89802-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02660.txt.bz2
Content-length: 429

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

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

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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-638367-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 12:16:35 2019
Return-Path: <gcc-bugs-return-638367-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22401 invoked by alias); 25 Mar 2019 12:16: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 22027 invoked by uid 55); 25 Mar 2019 12:16:30 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89802] [9 Regresssion] ICE: verify_gimple failed (error: dead STMT in EH table)
Date: Mon, 25 Mar 2019 12:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-checking, 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:
Message-ID: <bug-89802-4-4YAV79tnis@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89802-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89802-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02661.txt.bz2
Content-length: 663

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

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon Mar 25 12:15:59 2019
New Revision: 269913

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

        PR tree-optimization/89802
        * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
        move EH data to folded stmt.

        * g++.dg/tree-ssa/pr89802.C: New testcase.

Added:
    trunk/gcc/testsuite/g++.dg/tree-ssa/pr89802.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-math-opts.c
>From gcc-bugs-return-638368-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 12:19:21 2019
Return-Path: <gcc-bugs-return-638368-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30675 invoked by alias); 25 Mar 2019 12:19: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 28623 invoked by uid 55); 25 Mar 2019 12:19:17 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: =?UTF-8?B?W0J1ZyBtaWRkbGUtZW5kLzg5Nzc5XSBbOSBSZWdyZXNzaW9uXSAgaW50ZXJu?= =?UTF-8?B?YWwgY29tcGlsZXIgZXJyb3I6IHRyZWUgY2hlY2s6IGV4cGVjdGVkIGNsYXNz?= =?UTF-8?B?IOKAmHR5cGXigJksIGhhdmUg4oCYZXhjZXB0aW9uYWzigJkgKGVycm9yX21h?= =?UTF-8?B?cmspIGluIHRyZWVfbm9wX2NvbnZlcnNpb25fcCwgYXQgdHJlZS5jOjEyNzk4?Date: Mon, 25 Mar 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: middle-end
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: 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-89779-4-ealvuAI1Mi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89779-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89779-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02662.txt.bz2
Content-length: 728

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

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon Mar 25 12:18:38 2019
New Revision: 269914

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

        PR tree-optimization/89779
        * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
        to remove IV defs, delay actual removal.
        (tree_ssa_iv_optimize_loop): Likewise.  Avoid SCEV reset.
        (tree_ssa_iv_optimize): Remove eliminated IV defs at the
        very end, properly also reset loop control IV information.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-ssa-loop-ivopts.c
>From gcc-bugs-return-638369-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 12:28:24 2019
Return-Path: <gcc-bugs-return-638369-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52660 invoked by alias); 25 Mar 2019 12:28: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 52609 invoked by uid 48); 25 Mar 2019 12:28:20 -0000
From: "zsojka at seznam dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/89815] New: [7/8/9 Regression] wrong code with -Og -march=armv4t -fno-tree-ccp -fno-tree-fre
Date: Mon, 25 Mar 2019 12:28: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: 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-89815-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02663.txt.bz2
Content-length: 3021

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

            Bug ID: 89815
           Summary: [7/8/9 Regression] wrong code with -Og -march=armv4t
                    -fno-tree-ccp -fno-tree-fre
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: armv7a-hardfloat-linux-gnueabi

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

Output:
$ armv7a-hardfloat-linux-gnueabi-gcc -Og -march=armv4t -fno-tree-ccp
-fno-tree-fre testcase.c -static
$ ./a.out
qemu: uncaught target signal 6 (Aborted) - core dumped
Aborted

Correct value is 0xff, wrong value is 0xffffffff. The wrong value seems to be
generated by the instruction:

...
@ testcase.c:10:   b = __builtin_sub_overflow (0xff, (u8) - d, &f);
        mvn     r4, #0  @ tmp143,
...

$ armv7a-hardfloat-linux-gnueabi-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-armv7a-hardfloat/bin/armv7a-hardfloat-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-269905-checking-yes-rtl-df-extra-armv7a-hardfloat/bin/../libexec/gcc/armv7a-hardfloat-linux-gnueabi/9.0.1/lto-wrapper
Target: armv7a-hardfloat-linux-gnueabi
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-float=hard --with-fpu=vfpv4
--with-arch=armv7-a --with-sysroot=/usr/armv7a-hardfloat-linux-gnueabi
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=armv7a-hardfloat-linux-gnueabi
--with-ld=/usr/bin/armv7a-hardfloat-linux-gnueabi-ld
--with-as=/usr/bin/armv7a-hardfloat-linux-gnueabi-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-269905-checking-yes-rtl-df-extra-armv7a-hardfloat
Thread model: posix
gcc version 9.0.1 20190325 (experimental) (GCC) 


The .ira dump has:
...
(insn 55 24 32 2 (set (reg:QI 145 [143])
        (const_int -1 [0xffffffffffffffff])) "testcase.c":10:7 191
{*arm_movqi_insn}
     (nil))
...
(insn 58 43 47 2 (set (reg:QI 143)
        (reg:QI 145 [143])) "testcase.c":13:1 191 {*arm_movqi_insn}
     (expr_list:REG_DEAD (reg:QI 145 [143])
        (nil)))
(insn 47 58 48 2 (set (reg/i:SI 0 r0)
        (subreg:SI (reg:QI 143) 0)) "testcase.c":13:1 654 {*arm_movsi_vfp}
     (expr_list:REG_DEAD (reg:QI 143)
        (nil)))
...

And the .reload dump has:
...
(insn 55 24 32 2 (set (reg:QI 4 r4 [143])
        (const_int -1 [0xffffffffffffffff])) "testcase.c":10:7 191
{*arm_movqi_insn}
     (nil))
...
(insn 58 43 48 2 (set (reg:QI 0 r0 [143])
        (reg:QI 4 r4 [143])) "testcase.c":13:1 191 {*arm_movqi_insn}
     (nil))
...
>From gcc-bugs-return-638370-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 12:37:36 2019
Return-Path: <gcc-bugs-return-638370-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9202 invoked by alias); 25 Mar 2019 12:37: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 9132 invoked by uid 48); 25 Mar 2019 12:37:33 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/89808] An option to disable warning "#pragma once in main file"
Date: Mon, 25 Mar 2019 12:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: preprocessor
X-Bugzilla-Version: 8.3.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
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-89808-4-DUSSfyTUN2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89808-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89808-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02664.txt.bz2
Content-length: 752

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

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to sduguay from comment #3)
> (In reply to Richard Biener from comment #1)
> > Testcase:
> > 
> > #pragma once
> > int main() {}
> > 
> > > g++ t.C -S
> > t.C:1:9: warning: #pragma once in main file
> >  #pragma once
> >          ^~~~
> > 
> > 
> > you could work around this by wrapping the pragma in a preprocessor
> > conditional
> 
> Hi, thanks for adding a minimal test case. I tried:
> 
> #if 1
> #pragma once
> #endif
> 
> but I'm still getting the warning.

I of course meant

#if !defined(THIS_IS_THE_MAIN_FILE)
#pragma once
#endif

and compile the main file with -DTHIS_IS_THE_MAIN_FILE
>From gcc-bugs-return-638371-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 13:28:11 2019
Return-Path: <gcc-bugs-return-638371-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17401 invoked by alias); 25 Mar 2019 13:28: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 16799 invoked by uid 48); 25 Mar 2019 13:28:06 -0000
From: "moritz.kreutzer at siemens dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89653] Missing vectorization of loop containing std::min/std::max and temporary
Date: Mon, 25 Mar 2019 13:28: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: moritz.kreutzer at siemens dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89653-4-3cFRd2Y7H1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89653-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89653-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02665.txt.bz2
Content-length: 269

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

--- Comment #7 from Moritz Kreutzer <moritz.kreutzer at siemens dot com> ---
Thanks for taking this up Richard! I just want to check back: Do you need any
assistance with testing or more information from my side?
>From gcc-bugs-return-638372-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 13:35:58 2019
Return-Path: <gcc-bugs-return-638372-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78468 invoked by alias); 25 Mar 2019 13:35: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 77938 invoked by uid 48); 25 Mar 2019 13:35:51 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/89808] An option to disable warning "#pragma once in main file"
Date: Mon, 25 Mar 2019 13:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: preprocessor
X-Bugzilla-Version: 8.3.1
X-Bugzilla-Keywords: diagnostic, easyhack
X-Bugzilla-Severity: enhancement
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: keywords
Message-ID: <bug-89808-4-H9IHoPVB18@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89808-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89808-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02666.txt.bz2
Content-length: 618

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

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

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

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
In any case, I agree with confirming this as a bug: all warnings should be
controllable by a -Wxxx option.

Adding such an option is quite easy, and a good first contribution to GCC. For
an example of adding a new option see https://gcc.gnu.org/r192968
>From gcc-bugs-return-638373-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 13:37:08 2019
Return-Path: <gcc-bugs-return-638373-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 83003 invoked by alias); 25 Mar 2019 13: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 82465 invoked by uid 48); 25 Mar 2019 13:37:02 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/62181] [C/C++] Expected new warning: "adding 'char' to a string does not append to the string" [-Wstring-plus-int]
Date: Mon, 25 Mar 2019 13: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: 5.0
X-Bugzilla-Keywords: diagnostic, easyhack, patch
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-62181-4-NH2zlVIeGm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-62181-4@http.gcc.gnu.org/bugzilla/>
References: <bug-62181-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02667.txt.bz2
Content-length: 211

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

--- Comment #15 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Was this question ever answered?
https://gcc.gnu.org/ml/gcc-patches/2017-06/msg01337.html
>From gcc-bugs-return-638374-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 13:38:44 2019
Return-Path: <gcc-bugs-return-638374-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87336 invoked by alias); 25 Mar 2019 13:38: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 87124 invoked by uid 48); 25 Mar 2019 13:38:38 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89806] Different behaviour for "pragma diagnostic disabled" between gcc and g++
Date: Mon, 25 Mar 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: c++
X-Bugzilla-Version: 8.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-89806-4-nCqmHHegRy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89806-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89806-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02668.txt.bz2
Content-length: 543

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

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

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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Yes let's close as a dup, and I'll add this example there.

*** This bug has been marked as a duplicate of bug 53431 ***
>From gcc-bugs-return-638375-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 13:38:48 2019
Return-Path: <gcc-bugs-return-638375-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87756 invoked by alias); 25 Mar 2019 13:38: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 87323 invoked by uid 48); 25 Mar 2019 13:38:43 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/53431] C++ preprocessor ignores #pragma GCC diagnostic
Date: Mon, 25 Mar 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: c++
X-Bugzilla-Version: 4.7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: minor
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: cc
Message-ID: <bug-53431-4-iTg6qFU6ER@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53431-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53431-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02669.txt.bz2
Content-length: 444

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nbkolchin at gmail dot com

--- Comment #36 from Jonathan Wakely <redi at gcc dot gnu.org> ---
*** Bug 89806 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-638376-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 13:39:17 2019
Return-Path: <gcc-bugs-return-638376-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89690 invoked by alias); 25 Mar 2019 13:39: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 89585 invoked by uid 48); 25 Mar 2019 13:39:13 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/53431] C++ preprocessor ignores #pragma GCC diagnostic
Date: Mon, 25 Mar 2019 13:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: minor
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-53431-4-bBxYiw9Qn2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53431-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53431-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02670.txt.bz2
Content-length: 641

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

--- Comment #37 from Jonathan Wakely <redi at gcc dot gnu.org> ---
From PR 89806:

Sample code:

#pragma GCC diagnostic ignored "-Wdate-time"
const char* g_test = "dirty-" __DATE__;

When compiling with g++ (g++ -Werror=date-time) this produces:

<source>:2:31: error: macro "__DATE__" might prevent reproducible builds
[-Werror=date-time]

    2 | const char* g_test = "dirty-" __DATE__;

      |                               ^~~~~~~~

cc1plus: some warnings being treated as errors

Compiler returned: 1

But with GCC this compiles without errors (gcc -Werror=date-time).
>From gcc-bugs-return-638377-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 13:41:46 2019
Return-Path: <gcc-bugs-return-638377-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 97692 invoked by alias); 25 Mar 2019 13:41: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 94254 invoked by uid 48); 25 Mar 2019 13:41:43 -0000
From: "antoshkka at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/89816] New: [9 Regression] std::variant move construction regressed since GCC 8.3
Date: Mon, 25 Mar 2019 13:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: antoshkka 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-89816-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02671.txt.bz2
Content-length: 844

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

            Bug ID: 89816
           Summary: [9 Regression] std::variant move construction
                    regressed since GCC 8.3
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: antoshkka at gmail dot com
  Target Milestone: ---

The following code


#include <variant>

struct my_type{
    my_type(my_type&&) noexcept;
};

using V1 = std::variant<int, float, long, double, my_type>;
V1 test1(V1 v ) { return v; }


Was producing a jump table of size 5 on GCC 8.3. GCC 9 produces huge jump
tables with over 30 entries. This leads to 3 times bigger binaries with GCC 9.
https://godbolt.org/z/SUWL5T
>From gcc-bugs-return-638378-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 13:42:23 2019
Return-Path: <gcc-bugs-return-638378-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130483 invoked by alias); 25 Mar 2019 13:42: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 126933 invoked by uid 48); 25 Mar 2019 13:42:19 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89653] Missing vectorization of loop containing std::min/std::max and temporary
Date: Mon, 25 Mar 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: tree-optimization
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89653-4-2eH6pk7Z5P@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89653-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89653-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02672.txt.bz2
Content-length: 426

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

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Moritz Kreutzer from comment #7)
> Thanks for taking this up Richard! I just want to check back: Do you need
> any assistance with testing or more information from my side?

Not at this point - this is an enhancement queued for next stage1 and GCC 10
only, so it has to wait at this moment.
>From gcc-bugs-return-638379-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 13:46:30 2019
Return-Path: <gcc-bugs-return-638379-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41136 invoked by alias); 25 Mar 2019 13: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 38399 invoked by uid 48); 25 Mar 2019 13:46:26 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/89816] [9 Regression] std::variant move construction regressed since GCC 8.3
Date: Mon, 25 Mar 2019 13:46: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: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords target_milestone
Message-ID: <bug-89816-4-w9WBsLjhiB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89816-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89816-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02673.txt.bz2
Content-length: 362

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
   Target Milestone|---                         |9.0
>From gcc-bugs-return-638381-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 13:54:27 2019
Return-Path: <gcc-bugs-return-638381-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74743 invoked by alias); 25 Mar 2019 13:54: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 74692 invoked by uid 55); 25 Mar 2019 13:54:22 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89789] [9 Regression] Compile time hog during RPO VN
Date: Mon, 25 Mar 2019 13: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: compile-time-hog
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:
Message-ID: <bug-89789-4-JtqYGKGzP9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89789-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89789-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02675.txt.bz2
Content-length: 675

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

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon Mar 25 13:53:50 2019
New Revision: 269917

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

        PR tree-optimization/89789
        * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
        changes from non-undefined back to undefined.

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

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr89789.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-sccvn.c
>From gcc-bugs-return-638380-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 13:54:04 2019
Return-Path: <gcc-bugs-return-638380-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73911 invoked by alias); 25 Mar 2019 13:54: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 73846 invoked by uid 48); 25 Mar 2019 13:54:00 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/89789] [9 Regression] Compile time hog during RPO VN
Date: Mon, 25 Mar 2019 13: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: compile-time-hog
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-89789-4-hGKu3ka3CB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89789-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89789-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02674.txt.bz2
Content-length: 429

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

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

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

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-638382-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 13:54:42 2019
Return-Path: <gcc-bugs-return-638382-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75584 invoked by alias); 25 Mar 2019 13:54: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 75506 invoked by uid 48); 25 Mar 2019 13:54:38 -0000
From: "xry111 at mengyan1223 dot wang" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/62181] [C/C++] Expected new warning: "adding 'char' to a string does not append to the string" [-Wstring-plus-int]
Date: Mon, 25 Mar 2019 13:54: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: 5.0
X-Bugzilla-Keywords: diagnostic, easyhack, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: xry111 at mengyan1223 dot wang
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-62181-4-EWDeDGE52P@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-62181-4@http.gcc.gnu.org/bugzilla/>
References: <bug-62181-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02676.txt.bz2
Content-length: 1057

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

--- Comment #16 from Xi Ruoyao <xry111 at mengyan1223 dot wang> ---
(In reply to Jonathan Wakely from comment #15)
> Was this question ever answered?
> https://gcc.gnu.org/ml/gcc-patches/2017-06/msg01337.html

Oh that's intentional.

This would make this warning more useful, while most people won't use a "char"
to address an array or something like.  For example, if someone has wrote a
string-like class but forgot to overload operator+=, this warning will detect
it when he writes "char c = getchar(); buggy_string t = s + c;".

And for something like

"char *p = s;  char x;  scanf("%hhd", &x);  p = p + x;"

1.  In C++ __INT8_TYPE__ is not __CHAR_TYPE__ so there will be no warning.  He
can use "int8_t x;" instead of "char x;".
2.  He can use p = &p[x], which is more clear and nobody will think this is an
append.

I remember I wrote a response, with an option to split this into
-Wstring-plus-int=1 and -Wstring-plus-int=2.  But why it wasn't sent?  I can't
remember.
>From gcc-bugs-return-638383-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 14:04:15 2019
Return-Path: <gcc-bugs-return-638383-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10485 invoked by alias); 25 Mar 2019 14: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 10367 invoked by uid 48); 25 Mar 2019 14:04:11 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/89816] [9 Regression] std::variant move construction regressed since GCC 8.3
Date: Mon, 25 Mar 2019 14:04: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: missed-optimization
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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-89816-4-AvdFMe7cJA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89816-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89816-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02677.txt.bz2
Content-length: 428

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

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

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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Ville, is this due to implementing it via visit?
>From gcc-bugs-return-638384-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 14:05:12 2019
Return-Path: <gcc-bugs-return-638384-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13049 invoked by alias); 25 Mar 2019 14:05: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 12986 invoked by uid 48); 25 Mar 2019 14:05:08 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/89463] debug information for iteractor of an empty loop is gone (at -O3)
Date: Mon, 25 Mar 2019 14:05: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: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89463-4-vtd5uDvtmm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89463-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89463-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02678.txt.bz2
Content-length: 281

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

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
Patch posted here: https://gcc.gnu.org/ml/gcc-patches/2019-03/msg01192.html

Some of your bugs might turn out as duplicates if they are fixed by that patch.
>From gcc-bugs-return-638385-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 14:10:15 2019
Return-Path: <gcc-bugs-return-638385-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23931 invoked by alias); 25 Mar 2019 14:10: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 23852 invoked by uid 48); 25 Mar 2019 14:10:11 -0000
From: "ville.voutilainen at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/89816] [9 Regression] std::variant move construction regressed since GCC 8.3
Date: Mon, 25 Mar 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: libstdc++
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ville.voutilainen 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-89816-4-taH2C1ll82@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89816-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89816-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02679.txt.bz2
Content-length: 452

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

Ville Voutilainen <ville.voutilainen at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ville.voutilainen at gmail dot com

--- Comment #2 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
Yes. That codegen looks.. ..bad.
>From gcc-bugs-return-638386-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 14:15:36 2019
Return-Path: <gcc-bugs-return-638386-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36370 invoked by alias); 25 Mar 2019 14:15: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 36103 invoked by uid 48); 25 Mar 2019 14:15:19 -0000
From: "ville.voutilainen at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/89816] [9 Regression] std::variant move construction regressed since GCC 8.3
Date: Mon, 25 Mar 2019 14:15: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: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ville.voutilainen 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89816-4-Jwex98nPYH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89816-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89816-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02680.txt.bz2
Content-length: 321

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

--- Comment #3 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
The problem here is that the older approach knows that it's always from type X1
to type X1, never from type X4 to X2. The visitation approach generates
combinations that we never use.
>From gcc-bugs-return-638388-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 14:17:50 2019
Return-Path: <gcc-bugs-return-638388-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45124 invoked by alias); 25 Mar 2019 14:17: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 45065 invoked by uid 48); 25 Mar 2019 14:17:45 -0000
From: "qrzhang at gatech dot edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/89463] debug information for iteractor of an empty loop is gone (at -O3)
Date: Mon, 25 Mar 2019 14:17: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: qrzhang at gatech dot edu
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89463-4-gtKn3VNSEG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89463-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89463-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02682.txt.bz2
Content-length: 418

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

--- Comment #9 from Qirun Zhang <qrzhang at gatech dot edu> ---
(In reply to Richard Biener from comment #8)
> Patch posted here: https://gcc.gnu.org/ml/gcc-patches/2019-03/msg01192.html
> 
> Some of your bugs might turn out as duplicates if they are fixed by that
> patch.

Thanks, Richard. When will the patch be landed? It helps a lot to reduce
duplicates.
>From gcc-bugs-return-638387-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 14:17:14 2019
Return-Path: <gcc-bugs-return-638387-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42626 invoked by alias); 25 Mar 2019 14:17: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 41972 invoked by uid 48); 25 Mar 2019 14:17:08 -0000
From: "antoshkka at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89700] Warn if move constructor is not generated and not deleted
Date: Mon, 25 Mar 2019 14:17: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: antoshkka 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-89700-4-rT6pOuJT3q@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89700-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89700-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02681.txt.bz2
Content-length: 304

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89700

--- Comment #6 from Antony Polukhin <antoshkka at gmail dot com> ---
Another way to workaround the warning is to use something like
`my_class(my_class&) requires false;`. That's too ugly to use.

I'd be fine with closing this issue as a 'won't fix'.
>From gcc-bugs-return-638389-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 14:21:06 2019
Return-Path: <gcc-bugs-return-638389-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66871 invoked by alias); 25 Mar 2019 14:21: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 66799 invoked by uid 48); 25 Mar 2019 14:21:01 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/89528] Wrong debug info generated at -Og [gcc-trunk]
Date: Mon, 25 Mar 2019 14:21: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-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: bug_status cf_reconfirmed_on component everconfirmed
Message-ID: <bug-89528-4-VJ390r4ECr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89528-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89528-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02683.txt.bz2
Content-length: 1112

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89528

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-03-25
          Component|debug                       |rtl-optimization
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed, this goes wrong on the RTL side somehow.

Breakpoint 2, n () at t.c:13
13          optimize_me_not();
(gdb) disassemble
Dump of assembler code for function n:
   0x00000000004005ce <+0>:     push   %rbx
=> 0x00000000004005cf <+1>:     mov    $0x0,%eax
   0x00000000004005d4 <+6>:     callq  0x4005cd <optimize_me_not>

while we expand from

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  _1 = j (1);
  l_1127_8 = _1 ^ -65536;
  # DEBUG l_1127 => l_1127_8
  # DEBUG BEGIN_STMT
  optimize_me_not ();

not sure how RTL DCE got rid of the call..
>From gcc-bugs-return-638390-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 14:23:54 2019
Return-Path: <gcc-bugs-return-638390-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71019 invoked by alias); 25 Mar 2019 14:23: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 70967 invoked by uid 48); 25 Mar 2019 14:23:50 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/89816] [9 Regression] std::variant move construction regressed since GCC 8.3
Date: Mon, 25 Mar 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: libstdc++
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: missed-optimization
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-89816-4-RyJOEmA5w1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89816-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89816-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02684.txt.bz2
Content-length: 403

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89816

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
So started with r269422 ?
>From gcc-bugs-return-638391-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 14:25:58 2019
Return-Path: <gcc-bugs-return-638391-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79639 invoked by alias); 25 Mar 2019 14:25: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 78311 invoked by uid 48); 25 Mar 2019 14:25:54 -0000
From: "ville.voutilainen at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/89816] [9 Regression] std::variant move construction regressed since GCC 8.3
Date: Mon, 25 Mar 2019 14:25: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: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ville.voutilainen 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89816-4-AOXNa7a6sm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89816-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89816-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02685.txt.bz2
Content-length: 144

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89816

--- Comment #5 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
Correct.
>From gcc-bugs-return-638392-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 14:30:39 2019
Return-Path: <gcc-bugs-return-638392-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12524 invoked by alias); 25 Mar 2019 14:30: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 12262 invoked by uid 48); 25 Mar 2019 14:30:16 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/89529] Wrong debug info generated at -Og [gcc-trunk]
Date: Mon, 25 Mar 2019 14:30: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: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-89529-4-4FnBPegrDS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89529-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89529-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02686.txt.bz2
Content-length: 1289

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89529

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-03-25
     Ever confirmed|0                           |1

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.  Alex - how do we distinguish before/after sequence point here
when breaking on line 7?  Is this a consumer issue?  As you can see the
actual breakpoint is on the implicit return, but in final the simple-return
pattern is associated with line 8... (but still covered by the line 7
DEBUG BEGIN_STMT it seems).

b ()
{
  <bb 2> [local count: 1073741824]:
  [t.c:3:5] # DEBUG BEGIN_STMT
  [t.c:3:11] # DEBUG l_1862 => 19071
  [t.c:4:5] # DEBUG BEGIN_STMT
  [t.c:4:7] a = 0;
  [t.c:5:5] # DEBUG BEGIN_STMT
  [t.c:7:5] # DEBUG BEGIN_STMT
  [t.c:7:5] # DEBUG l_1862 => 19070
  [t.c:8:1] return;

(gdb) disassemble
Dump of assembler code for function b:
   0x00000000004004b2 <+0>:     movl   $0x0,0x200b78(%rip)        # 0x601034
<a>
=> 0x00000000004004bc <+10>:    retq   
End of assembler dump.
>From gcc-bugs-return-638393-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 14:38:57 2019
Return-Path: <gcc-bugs-return-638393-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60956 invoked by alias); 25 Mar 2019 14:38: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 58376 invoked by uid 48); 25 Mar 2019 14:38:52 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/89530] Wrong debug informations for C array generated at -Og [gcc-trunk]
Date: Mon, 25 Mar 2019 14:38: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:
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: keywords
Message-ID: <bug-89530-4-XDTZZJLiXb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89530-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89530-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02687.txt.bz2
Content-length: 1324

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89530

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|wrong-debug                 |

--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
Hmm, there's not really anything "wrong" I think.  It is simply we're eliding
static storage initialization and inspecting memory contents from a debugger
is sensitive to dead code removal.

There doesn't seem to be a way to tell a consumer that storage is
"optimized out" when it is in fact still there.  Here at -Og we fail
to elide l_1404 completely but manage to prune the initializer
to only cover the read values at [0][7].

Not sure if DCE which does

--- t.c.036t.dse1       2019-03-25 15:37:19.556994432 +0100
+++ t.c.037t.cddce1     2019-03-25 15:37:19.556994432 +0100
@@ -56,10 +56,6 @@
   [t.c:7:5] # DEBUG BEGIN_STMT
   [t.c:8:5] # DEBUG BEGIN_STMT
   [t.c:8:20] MEM[(short unsigned int[3][9] *)&l_1404 + 8B] = {};
-  [t.c:8:20] l_1404[0][0] = 58143;
-  [t.c:8:20] l_1404[0][1] = 8;
-  [t.c:8:20] l_1404[0][2] = 5;
-  [t.c:8:20] l_1404[0][3] = 80;
   [t.c:9:5] # DEBUG BEGIN_STMT
   [t.c:9:5] goto <bb 9>; [INV]


could somehow "fix" this.
>From gcc-bugs-return-638394-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 14:39:14 2019
Return-Path: <gcc-bugs-return-638394-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64828 invoked by alias); 25 Mar 2019 14:39: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 64736 invoked by uid 48); 25 Mar 2019 14:39:10 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/62181] [C/C++] Expected new warning: "adding 'char' to a string does not append to the string" [-Wstring-plus-int]
Date: Mon, 25 Mar 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: c++
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: diagnostic, easyhack, patch
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:
Message-ID: <bug-62181-4-w4En7gtfVi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-62181-4@http.gcc.gnu.org/bugzilla/>
References: <bug-62181-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02688.txt.bz2
Content-length: 1680

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62181

--- Comment #17 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Xi Ruoyao from comment #16)
> (In reply to Jonathan Wakely from comment #15)
> > Was this question ever answered?
> > https://gcc.gnu.org/ml/gcc-patches/2017-06/msg01337.html
> 
> Oh that's intentional.
> 
> This would make this warning more useful, while most people won't use a
> "char" to address an array or something like.  For example, if someone has
> wrote a string-like class but forgot to overload operator+=, this warning
> will detect it when he writes "char c = getchar(); buggy_string t = s + c;".
> 
> And for something like
> 
> "char *p = s;  char x;  scanf("%hhd", &x);  p = p + x;"
> 
> 1.  In C++ __INT8_TYPE__ is not __CHAR_TYPE__ so there will be no warning. 
> He can use "int8_t x;" instead of "char x;".
> 2.  He can use p = &p[x], which is more clear and nobody will think this is
> an append.
> 
> I remember I wrote a response, with an option to split this into
> -Wstring-plus-int=1 and -Wstring-plus-int=2.  But why it wasn't sent?  I
> can't remember.

It was in other branches of the thread: 
https://gcc.gnu.org/ml/gcc-patches/2017-06/msg01345.html
https://gcc.gnu.org/ml/gcc-patches/2017-06/msg01347.html
Again, as I always do when people propose new numeric levels to warning flags,
I'd prefer splitting into new named options instead of adding numeric warning
levels, for individual controllability, and end-user clarity. So in this case,
maybe the final set could be:
-Wstring-plus-int
-Wstring-plus-char (-Wstring-plus-any-char?)
-Wstring-plus-char-literal
>From gcc-bugs-return-638395-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 14:40:12 2019
Return-Path: <gcc-bugs-return-638395-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69148 invoked by alias); 25 Mar 2019 14:40: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 69066 invoked by uid 48); 25 Mar 2019 14:40:09 -0000
From: "nbkolchin at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/53431] C++ preprocessor ignores #pragma GCC diagnostic
Date: Mon, 25 Mar 2019 14:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: minor
X-Bugzilla-Who: nbkolchin 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-53431-4-wNTfwoDWRP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53431-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53431-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02689.txt.bz2
Content-length: 244

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53431

--- Comment #38 from Nickolay Kolchin-Semyonov <nbkolchin at gmail dot com> ---
Since this is a long standing problem, maybe this limitation should be
mentioned in official documentation?
>From gcc-bugs-return-638396-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 14:40:25 2019
Return-Path: <gcc-bugs-return-638396-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69955 invoked by alias); 25 Mar 2019 14:40: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 69861 invoked by uid 55); 25 Mar 2019 14:40:21 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/89463] debug information for iteractor of an empty loop is gone (at -O3)
Date: Mon, 25 Mar 2019 14:40: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: rguenther at suse dot de
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89463-4-EATjadWhTt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89463-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89463-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02690.txt.bz2
Content-length: 660

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89463

--- Comment #10 from rguenther at suse dot de <rguenther at suse dot de> ---
On Mon, 25 Mar 2019, qrzhang at gatech dot edu wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89463
> 
> --- Comment #9 from Qirun Zhang <qrzhang at gatech dot edu> ---
> (In reply to Richard Biener from comment #8)
> > Patch posted here: https://gcc.gnu.org/ml/gcc-patches/2019-03/msg01192.html
> > 
> > Some of your bugs might turn out as duplicates if they are fixed by that
> > patch.
> 
> Thanks, Richard. When will the patch be landed? It helps a lot to reduce
> duplicates.

I'm waiting for testing/ACK.
>From gcc-bugs-return-638397-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 14:48:46 2019
Return-Path: <gcc-bugs-return-638397-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55692 invoked by alias); 25 Mar 2019 14:48: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 55589 invoked by uid 48); 25 Mar 2019 14:48:34 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/89791] gcc generates wrong debug information at -O3
Date: Mon, 25 Mar 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: 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: cc
Message-ID: <bug-89791-4-epb3TMyV0T@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89791-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89791-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02691.txt.bz2
Content-length: 2057

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89791

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aoliva at gcc dot gnu.org

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Here we have sth looking like a dup of PR89463 but not fixed by its patch. 
With
the patch we end up with

main ()
{
  <bb 2> [local count: 1073741824]:
  [t.c:2:5] # DEBUG BEGIN_STMT
  [t.c:2:9] # DEBUG i => 0
  [t.c:3:5] # DEBUG BEGIN_STMT
  # DEBUG i => NULL
  [t.c:5:5] # DEBUG BEGIN_STMT
  [t.c:5:5] optimize_me_not ();
  [<built-in>:0:0] return 0;

and in .final:

(note 1 0 3 NOTE_INSN_DELETED)
(note 3 1 20 2 [bb 2] NOTE_INSN_BASIC_BLOCK)
(note 20 3 2 2 NOTE_INSN_PROLOGUE_END)
(note 2 20 27 2 NOTE_INSN_FUNCTION_BEG)
(note 27 2 30 2 t.c:2 NOTE_INSN_BEGIN_STMT)
(note 30 27 28 2 (var_location i (const_int 0 [0])) NOTE_INSN_VAR_LOCATION)
(note 28 30 31 2 t.c:3 NOTE_INSN_BEGIN_STMT)
(note 31 28 29 2 (var_location i (nil)) NOTE_INSN_VAR_LOCATION)
(note 29 31 24 2 t.c:5 NOTE_INSN_BEGIN_STMT)
...
(call_insn:TI 11 24 25 2 (set (reg:SI 0 ax)
        (call (mem:QI (symbol_ref:DI ("optimize_me_not") [flags 0x3] 
<function_decl 0x7fa85fd3f100 optimize_me_not>) [0 optimize_me_not S1 A8])
            (const_int 0 [0]))) "t.c":5:5 677 {*call_value}

which looks good to me.  But then we still get

 <2><133>: Abbrev Number: 4 (DW_TAG_variable)
    <134>   DW_AT_name        : i
    <136>   DW_AT_decl_file   : 1
    <137>   DW_AT_decl_line   : 2
    <138>   DW_AT_decl_column : 9
    <139>   DW_AT_type        : <0x165>
    <13d>   DW_AT_location    : 0x2 (location list)
    <141>   DW_AT_GNU_locviews: 0x0

    00000002 v000000000000002 v000000000000003 views at 00000000 for:
             00000000004003e0 00000000004003e0 (DW_OP_lit0; DW_OP_stack_value)

so we somehow lost the optimized-out association?  Or is my consumer
just not behaving? (gdb 8.2)
>From gcc-bugs-return-638398-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 15:30:50 2019
Return-Path: <gcc-bugs-return-638398-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30255 invoked by alias); 25 Mar 2019 15:30: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 26639 invoked by uid 48); 25 Mar 2019 15:30:06 -0000
From: "sandra at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/89817] New: remove references to type modes from user docs for vector extensions
Date: Mon, 25 Mar 2019 15:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sandra 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-89817-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02692.txt.bz2
Content-length: 847

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89817

            Bug ID: 89817
           Summary: remove references to type modes from user docs for
                    vector extensions
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sandra at gcc dot gnu.org
  Target Milestone: ---

The existing user documentation for vector extensions (including the type and
variable attributes and not just the Vector Extensions section) is full of
references to type modes.  This is an internal GCC implementation detail and
probably only confuses ordinary users.  We need to rewrite this documentation
to remove the references and explain the concepts in some other way.
>From gcc-bugs-return-638399-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 15:34:52 2019
Return-Path: <gcc-bugs-return-638399-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41534 invoked by alias); 25 Mar 2019 15:34: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 41138 invoked by uid 48); 25 Mar 2019 15:34:46 -0000
From: "antoshkka at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/89816] [9 Regression] std::variant move construction regressed since GCC 8.3
Date: Mon, 25 Mar 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: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: antoshkka 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89816-4-Lu4wPW7iXK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89816-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89816-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02693.txt.bz2
Content-length: 897

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89816

--- Comment #6 from Antony Polukhin <antoshkka at gmail dot com> ---
The fix seems pretty trivial: in function `__variant_construct` get the address
of the sorage before entering the `__do_visit` and make it switch only by the
`__rhs`.

Pseudo-code:

  template<typename... _Types, typename _Tp, typename _Up>
    void __variant_construct(_Tp&& __lhs, _Up&& __rhs)
    {
      __lhs._M_index = __rhs._M_index;
      void* storage = std::addressof(__lhs._M_u);
      __do_visit([storage](auto&& __rhs_mem)
                 -> __detail::__variant::__variant_cookie
        {
          using _Type = remove_reference_t<decltype(__rhs_mem)>;
          ::new (storage)
              _Type(std::forward<decltype(__rhs_mem)>(__rhs_mem));
          return {};
        }, __variant_cast<_Types...>(std::forward<decltype(__rhs)>(__rhs)));
  }
>From gcc-bugs-return-638400-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 15:50:57 2019
Return-Path: <gcc-bugs-return-638400-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111697 invoked by alias); 25 Mar 2019 15:50: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 111588 invoked by uid 48); 25 Mar 2019 15:50:53 -0000
From: "ville.voutilainen at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/89816] [9 Regression] std::variant move construction regressed since GCC 8.3
Date: Mon, 25 Mar 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: libstdc++
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ville.voutilainen 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89816-4-etM4g7i96c@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89816-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89816-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02694.txt.bz2
Content-length: 173

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89816

--- Comment #7 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
Looks good - I'll do a patch shortly.
>From gcc-bugs-return-638402-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 16:10:48 2019
Return-Path: <gcc-bugs-return-638402-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44138 invoked by alias); 25 Mar 2019 16:10: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 43995 invoked by uid 55); 25 Mar 2019 16:10:43 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89705] [7/8/9 Regression] ICE in convert_like_real, at cp/call.c:7334
Date: Mon, 25 Mar 2019 16:10: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, rejects-valid
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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89705-4-HO1xViR9Et@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89705-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89705-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02696.txt.bz2
Content-length: 688

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89705

--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Mon Mar 25 16:10:06 2019
New Revision: 269918

URL: https://gcc.gnu.org/viewcvs?rev=269918&root=gcc&view=rev
Log:
        PR c++/89705 - ICE with reference binding with conversion function.
        * call.c (reference_binding): If the result of the conversion function
        is a prvalue of non-class type, use the cv-unqualified type.

        * g++.dg/cpp0x/rv-conv2.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/rv-conv2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-638401-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 16:10:46 2019
Return-Path: <gcc-bugs-return-638401-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44031 invoked by alias); 25 Mar 2019 16:10: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 43791 invoked by uid 48); 25 Mar 2019 16:10:41 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89796] Incorrect warning generated with OpenMP atomic capture
Date: Mon, 25 Mar 2019 16:10: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: diagnostic, openmp
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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed attachments.created
Message-ID: <bug-89796-4-jSrXM8pyyr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89796-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89796-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02695.txt.bz2
Content-length: 820

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89796

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2019-03-25
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 46018
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46018&action=edit
gcc9-pr89796.patch

Untested fix.

You could have used simpler
#pragma omp atomic capture
prev = c++;
that wouldn't warn (so, if you want a workaround, use that).
>From gcc-bugs-return-638403-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 16:16:11 2019
Return-Path: <gcc-bugs-return-638403-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60043 invoked by alias); 25 Mar 2019 16:16: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 59161 invoked by uid 48); 25 Mar 2019 16:16:02 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89705] [7/8 Regression] ICE in convert_like_real, at cp/call.c:7334
Date: Mon, 25 Mar 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: c++
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: ice-on-valid-code, rejects-valid
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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-89705-4-LnEb2J9GZm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89705-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89705-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02697.txt.bz2
Content-length: 540

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89705

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[7/8/9 Regression] ICE in   |[7/8 Regression] ICE in
                   |convert_like_real, at       |convert_like_real, at
                   |cp/call.c:7334              |cp/call.c:7334

--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed on trunk so far.
>From gcc-bugs-return-638404-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 16:25:55 2019
Return-Path: <gcc-bugs-return-638404-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92079 invoked by alias); 25 Mar 2019 16:25: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 92022 invoked by uid 48); 25 Mar 2019 16:25:51 -0000
From: "ville.voutilainen at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/89816] [9 Regression] std::variant move construction regressed since GCC 8.3
Date: Mon, 25 Mar 2019 16:25: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: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ville.voutilainen 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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89816-4-aYEpinBIuM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89816-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89816-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02698.txt.bz2
Content-length: 199

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89816

--- Comment #8 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
Patch: https://gcc.gnu.org/ml/gcc-patches/2019-03/msg01200.html
>From gcc-bugs-return-638405-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 16:26:09 2019
Return-Path: <gcc-bugs-return-638405-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92899 invoked by alias); 25 Mar 2019 16: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 92830 invoked by uid 48); 25 Mar 2019 16:26:06 -0000
From: "ville.voutilainen at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/89816] [9 Regression] std::variant move construction regressed since GCC 8.3
Date: Mon, 25 Mar 2019 16:26: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: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ville.voutilainen at gmail dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ville.voutilainen at gmail dot com
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed
Message-ID: <bug-89816-4-PyboFu7O5I@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89816-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89816-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02699.txt.bz2
Content-length: 513

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89816

Ville Voutilainen <ville.voutilainen at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2019-03-25
           Assignee|unassigned at gcc dot gnu.org      |ville.voutilainen at gmail dot com
     Ever confirmed|0                           |1
>From gcc-bugs-return-638406-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 16:39:26 2019
Return-Path: <gcc-bugs-return-638406-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 2013 invoked by alias); 25 Mar 2019 16:39: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 1954 invoked by uid 55); 25 Mar 2019 16:39:21 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89214] [7/8/9 Regression] ICE in digest_init_r, at cp/typeck2.c:1211 with -std=c++17
Date: Mon, 25 Mar 2019 16:39: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-checking, ice-on-valid-code, patch
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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89214-4-hNwFKPxXRN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89214-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89214-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02700.txt.bz2
Content-length: 727

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89214

--- Comment #11 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Mon Mar 25 16:38:48 2019
New Revision: 269919

URL: https://gcc.gnu.org/viewcvs?rev=269919&root=gcc&view=rev
Log:
        PR c++/89214 - ICE when initializing aggregates with bases.
        * typeck2.c (digest_init_r): Warn about object slicing instead of
        crashing.

        * g++.dg/cpp1z/aggr-base8.C: New test.
        * g++.dg/cpp1z/aggr-base9.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1z/aggr-base8.C
    trunk/gcc/testsuite/g++.dg/cpp1z/aggr-base9.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck2.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-638407-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 16:44:52 2019
Return-Path: <gcc-bugs-return-638407-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13947 invoked by alias); 25 Mar 2019 16:44: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 13883 invoked by uid 48); 25 Mar 2019 16:44:48 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89214] [7/8 Regression] ICE in digest_init_r, at cp/typeck2.c:1211 with -std=c++17
Date: Mon, 25 Mar 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-checking, ice-on-valid-code, patch
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: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-89214-4-20SZqlK06q@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89214-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89214-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02701.txt.bz2
Content-length: 609

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89214

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[7/8/9 Regression] ICE in   |[7/8 Regression] ICE in
                   |digest_init_r, at           |digest_init_r, at
                   |cp/typeck2.c:1211 with      |cp/typeck2.c:1211 with
                   |-std=c++17                  |-std=c++17

--- Comment #12 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed on trunk so far.
>From gcc-bugs-return-638408-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 16:53:06 2019
Return-Path: <gcc-bugs-return-638408-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95983 invoked by alias); 25 Mar 2019 16:53: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 87705 invoked by uid 48); 25 Mar 2019 16:53:02 -0000
From: "tromey at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89818] New: possibly invalid name mangling
Date: Mon, 25 Mar 2019 16:53: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tromey 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-89818-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02702.txt.bz2
Content-length: 914

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89818

            Bug ID: 89818
           Summary: possibly invalid name mangling
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tromey at gcc dot gnu.org
  Target Milestone: ---

Apologies for the vagueness of this bug.  I ran across a
pull request that mentions that gcc will sometimes emit an erroneous
'sr' mangling:

https://github.com/gimli-rs/cpp_demangle/pull/173

In particular that bug claims that gcc can emit this
symbol, which it further claims is invalid:

_ZN4base8internal14CheckedSubImplIlEENSt9enable_ifIXsrSt14numeric_limitsIT_E10is_integerEbE4typeES4_S4_PS4_

I don't know whether these claims are accurate, but I figured
it would be worth filing, just in case.
>From gcc-bugs-return-638409-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 16:57:00 2019
Return-Path: <gcc-bugs-return-638409-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7999 invoked by alias); 25 Mar 2019 16: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 1083 invoked by uid 48); 25 Mar 2019 16:56:56 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89818] possibly invalid name mangling
Date: Mon, 25 Mar 2019 16:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
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-89818-4-PxvYGQaim3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89818-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89818-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02703.txt.bz2
Content-length: 154

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89818

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
related to PR 88413 and PR 67343
>From gcc-bugs-return-638410-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 16:57:15 2019
Return-Path: <gcc-bugs-return-638410-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23248 invoked by alias); 25 Mar 2019 16:57: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 16231 invoked by uid 48); 25 Mar 2019 16:57:10 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/88413] g++ mangles names involving unresolved names in function argument template parameters differently from the ABI standard.
Date: Mon, 25 Mar 2019 16: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.2.0
X-Bugzilla-Keywords: ABI, 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-88413-4-YPVCcUROsV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-88413-4@http.gcc.gnu.org/bugzilla/>
References: <bug-88413-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02704.txt.bz2
Content-length: 143

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88413

--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
related to PR 67343.
>From gcc-bugs-return-638411-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 16:57:59 2019
Return-Path: <gcc-bugs-return-638411-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96523 invoked by alias); 25 Mar 2019 16:57: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 88830 invoked by uid 48); 25 Mar 2019 16:57:55 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89818] possibly invalid name mangling
Date: Mon, 25 Mar 2019 16: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: unknown
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-89818-4-WtuKZfnqD5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89818-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89818-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02705.txt.bz2
Content-length: 215

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89818

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
And related to the upstream ABI issue:
https://github.com/itanium-cxx-abi/cxx-abi/issues/38 .
>From gcc-bugs-return-638412-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 16:58:51 2019
Return-Path: <gcc-bugs-return-638412-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38400 invoked by alias); 25 Mar 2019 16:58: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 30538 invoked by uid 48); 25 Mar 2019 16:58:47 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/67343] C++ mangler does not follow ABI for local names in expressions
Date: Mon, 25 Mar 2019 16: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: 5.0
X-Bugzilla-Keywords: ABI, wrong-code
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: keywords see_also
Message-ID: <bug-67343-4-mpAVzp0Buu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67343-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67343-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02706.txt.bz2
Content-length: 648

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67343

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ABI, wrong-code
           See Also|                            |https://github.com/itanium-
                   |                            |cxx-abi/cxx-abi/issues/38

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Related to the upstream ABI issue:
https://github.com/itanium-cxx-abi/cxx-abi/issues/38

related to PR 88413 and PR 89818 .
>From gcc-bugs-return-638413-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 17:15:45 2019
Return-Path: <gcc-bugs-return-638413-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84388 invoked by alias); 25 Mar 2019 17:15: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 84034 invoked by uid 48); 25 Mar 2019 17:15:31 -0000
From: "perard at cg dot uni-saarland.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89796] Incorrect warning generated with OpenMP atomic capture
Date: Mon, 25 Mar 2019 17:15: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: diagnostic, openmp
X-Bugzilla-Severity: normal
X-Bugzilla-Who: perard at cg dot uni-saarland.de
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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89796-4-R75VwTY4MR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89796-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89796-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02707.txt.bz2
Content-length: 638

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89796

--- Comment #6 from Arsène Pérard-Gayot <perard at cg dot uni-saarland.de> ---
(In reply to Jakub Jelinek from comment #5)
> Created attachment 46018 [details]
> gcc9-pr89796.patch
> 
> Untested fix.
> 
> You could have used simpler
> #pragma omp atomic capture
> prev = c++;
> that wouldn't warn (so, if you want a workaround, use that).

Thank you for the workaround. Sadly, I cannot apply it to my problem, because
in my original code, the increment is not one. I need to do something like:

  #pragma omp atomic capture
  { prev = counter; counter += K; }
>From gcc-bugs-return-638414-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 17:29:42 2019
Return-Path: <gcc-bugs-return-638414-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36098 invoked by alias); 25 Mar 2019 17:29:42 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 35991 invoked by uid 48); 25 Mar 2019 17:29:38 -0000
From: "antoshkka at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/89819] New: [9 Regression] std::variant operators regressed since GCC 8.3
Date: Mon, 25 Mar 2019 17:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: antoshkka 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 keywords bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-89819-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02708.txt.bz2
Content-length: 2280

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89819

            Bug ID: 89819
           Summary: [9 Regression] std::variant operators regressed since
                    GCC 8.3
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: antoshkka at gmail dot com
  Target Milestone: ---

The following code


#include <variant>

struct my_type{};
bool operator==(const my_type&, const my_type&) noexcept;

using V1 = std::variant<int, float, long, double, my_type>;
auto test1(const V1& v) { return v == v; }


Was producing a jump table of size 5 on GCC 8.3. GCC 9 produces huge jump
tables with over 30 entries. This leads to ~15 times bigger binaries with GCC 9
and ~25% compilation slowdown. https://godbolt.org/z/yoAIrP

This could be fixed by changing the `_VARIANT_RELATION_FUNCTION_TEMPLATE` from
binary visitation to unary via first checking the `index()` of `__lhs` +
`__rhs` and doing the visitation only if they match (hold the same type).

Pseudo-code:

#define _VARIANT_RELATION_FUNCTION_TEMPLATE(__OP, __NAME) \
  template<typename... _Types> \
    constexpr bool operator __OP(const variant<_Types...>& __lhs, \
                                 const variant<_Types...>& __rhs) \
    { \
      bool __ret = true; \
      if ((__lhs.index() + 1) != (__rhs.index() + 1)) { \
          return (__lhs.index() + 1) __OP (__rhs.index() + 1); \
      } \
      __do_visit([&__ret, &__lhs] \
                 (auto&& __rhs_mem) mutable     \
                   -> __detail::__variant::__variant_cookie \
        { \
          using __Type = remove_reference_t<decltype(__rhs_mem)>; \
          if constexpr (!is_same_v< \
                                  __Type, \
                                  __detail::__variant::__variant_cookie>) \
            __ret =
__detail::__variant::__get<__detail::__variant::__index_of_v<__Type,
_Types...>>(__this_mem) __OP __rhs_mem; \
          return {}; \
        }, __rhs); \
      return __ret; \
    } \
\
  constexpr bool operator __OP(monostate, monostate) noexcept \
{ return 0 __OP 0; }
>From gcc-bugs-return-638415-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 17:32:24 2019
Return-Path: <gcc-bugs-return-638415-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52386 invoked by alias); 25 Mar 2019 17:32: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 52292 invoked by uid 48); 25 Mar 2019 17:32:19 -0000
From: "antoshkka at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/89816] [9 Regression] std::variant move construction regressed since GCC 8.3
Date: Mon, 25 Mar 2019 17: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: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: antoshkka at gmail dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ville.voutilainen at gmail dot com
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89816-4-sk4lDIvXXH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89816-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89816-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02709.txt.bz2
Content-length: 373

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89816

--- Comment #9 from Antony Polukhin <antoshkka at gmail dot com> ---
BTW, I think there are some other cases where binary visitation could be
simplified to unary (significantly reducing the code size and improving the
compile times). I've filled Bug 89819, but looks like assignment and swap could
be also optimized.
>From gcc-bugs-return-638416-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 17:36:52 2019
Return-Path: <gcc-bugs-return-638416-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57277 invoked by alias); 25 Mar 2019 17:36: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 57224 invoked by uid 48); 25 Mar 2019 17:36:48 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/89815] [7/8/9 Regression] wrong code with -Og -march=armv4t -fno-tree-ccp -fno-tree-fre
Date: Mon, 25 Mar 2019 17:36: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: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc target_milestone everconfirmed
Message-ID: <bug-89815-4-0gLkH2g7Or@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89815-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89815-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02710.txt.bz2
Content-length: 704

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89815

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-03-25
                 CC|                            |ebotcazou at gcc dot gnu.org,
                   |                            |jakub at gcc dot gnu.org
   Target Milestone|---                         |7.5
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Also regressed with r242326.
>From gcc-bugs-return-638417-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 17:39:13 2019
Return-Path: <gcc-bugs-return-638417-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60593 invoked by alias); 25 Mar 2019 17:39: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 60493 invoked by uid 48); 25 Mar 2019 17:39:09 -0000
From: "ville.voutilainen at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/89819] [9 Regression] std::variant operators regressed since GCC 8.3
Date: Mon, 25 Mar 2019 17: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: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ville.voutilainen at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-89819-4-H3fBuLMjN9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89819-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89819-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02711.txt.bz2
Content-length: 678

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89819

Ville Voutilainen <ville.voutilainen at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ville.voutilainen at gmail dot com

--- Comment #1 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
The problem with this idea is that it brings back a run-time branch that the
visitation got rid of. What we probably need is a different generated table for
these functions, a table that uses the same index for both variants or invokes
a cookie-function.
>From gcc-bugs-return-638418-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 17:41:46 2019
Return-Path: <gcc-bugs-return-638418-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66164 invoked by alias); 25 Mar 2019 17:41: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 65690 invoked by uid 48); 25 Mar 2019 17:41:40 -0000
From: "ville.voutilainen at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/89816] [9 Regression] std::variant move construction regressed since GCC 8.3
Date: Mon, 25 Mar 2019 17:41: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: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ville.voutilainen at gmail dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ville.voutilainen at gmail dot com
X-Bugzilla-Target-Milestone: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-89816-4-1AeH0hoYeQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89816-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89816-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02712.txt.bz2
Content-length: 332

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89816

--- Comment #10 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
Assignment can be made to avoid double-visitation, instead of using
_M_destructive_move/copy. Other than that, getting it to generate fewer table
items needs the idea from the other bug report.
>From gcc-bugs-return-638419-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 17:42:15 2019
Return-Path: <gcc-bugs-return-638419-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68280 invoked by alias); 25 Mar 2019 17:42: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 68145 invoked by uid 48); 25 Mar 2019 17:42:11 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/89817] remove references to type modes from user docs for vector extensions
Date: Mon, 25 Mar 2019 17:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
X-Bugzilla-Version: 9.0
X-Bugzilla-Keywords: documentation
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: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-89817-4-8eqyDQtJAS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89817-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89817-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02713.txt.bz2
Content-length: 565

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89817

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-03-25
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
confirmed
>From gcc-bugs-return-638420-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 17:54:05 2019
Return-Path: <gcc-bugs-return-638420-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116961 invoked by alias); 25 Mar 2019 17:54: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 115127 invoked by uid 48); 25 Mar 2019 17:54:01 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/89767] [8 Regression] ICE with tuple and optimization
Date: Mon, 25 Mar 2019 17:54: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.3.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: 9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-89767-4-PFsn3TJi3x@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89767-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89767-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02714.txt.bz2
Content-length: 475

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89767

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[8/9 Regression] ICE with   |[8 Regression] ICE with
                   |tuple and optimization      |tuple and optimization

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed on the trunk so far.
>From gcc-bugs-return-638421-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 18:24:50 2019
Return-Path: <gcc-bugs-return-638421-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61590 invoked by alias); 25 Mar 2019 18:24: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 61324 invoked by uid 48); 25 Mar 2019 18:24:20 -0000
From: "egallager at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/89808] An option to disable warning "#pragma once in main file"
Date: Mon, 25 Mar 2019 18:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: preprocessor
X-Bugzilla-Version: 8.3.1
X-Bugzilla-Keywords: diagnostic, easyhack
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: egallager at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc blocked
Message-ID: <bug-89808-4-cYXNwgXXwW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-89808-4@http.gcc.gnu.org/bugzilla/>
References: <bug-89808-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02715.txt.bz2
Content-length: 925

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89808

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |egallager at gcc dot gnu.org
             Blocks|                            |44209

--- Comment #7 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #6)
> In any case, I agree with confirming this as a bug: all warnings should be
> controllable by a -Wxxx option.

This is bug 44209

> 
> Adding such an option is quite easy, and a good first contribution to GCC.
> For an example of adding a new option see https://gcc.gnu.org/r192968


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44209
[Bug 44209] [meta-bug] Some warnings are not linked to diagnostics options
>From gcc-bugs-return-638422-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 18:27:45 2019
Return-Path: <gcc-bugs-return-638422-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71612 invoked by alias); 25 Mar 2019 18:27: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 71502 invoked by uid 55); 25 Mar 2019 18:27:40 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/87748] [8/9 Regression] G++-8 treats SFINAE as error
Date: Mon, 25 Mar 2019 18: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: 8.1.1
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: P2
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-87748-4-jumxHWPRwI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87748-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87748-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02716.txt.bz2
Content-length: 907

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87748

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Mar 25 18:27:08 2019
New Revision: 269921

URL: https://gcc.gnu.org/viewcvs?rev=269921&root=gcc&view=rev
Log:
        PR c++/87748 - substitution failure error with decltype.

This issue is similar to PR 87480; in both cases we were doing non-dependent
substitution with processing_template_decl set, leading to member access
expressions seeming still instantiation-dependent, and therefore decltype
not being simplified to its actual type.  And as in that PR, the fix is to
clear processing_template_decl while substituting a default template
argument.

        * pt.c (most_specialized_partial_spec): Clear
        processing_template_decl.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/sfinae64.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
>From gcc-bugs-return-638423-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 18:27:45 2019
Return-Path: <gcc-bugs-return-638423-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71628 invoked by alias); 25 Mar 2019 18:27: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 71512 invoked by uid 55); 25 Mar 2019 18:27:40 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/87480] [8/9 Regression] SFINAE constructor not matched, only in templated function
Date: Mon, 25 Mar 2019 18: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: 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: P2
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-87480-4-tclhxDAARP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87480-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87480-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02717.txt.bz2
Content-length: 907

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87480

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Mar 25 18:27:08 2019
New Revision: 269921

URL: https://gcc.gnu.org/viewcvs?rev=269921&root=gcc&view=rev
Log:
        PR c++/87748 - substitution failure error with decltype.

This issue is similar to PR 87480; in both cases we were doing non-dependent
substitution with processing_template_decl set, leading to member access
expressions seeming still instantiation-dependent, and therefore decltype
not being simplified to its actual type.  And as in that PR, the fix is to
clear processing_template_decl while substituting a default template
argument.

        * pt.c (most_specialized_partial_spec): Clear
        processing_template_decl.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/sfinae64.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
>From gcc-bugs-return-638425-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 18:28:40 2019
Return-Path: <gcc-bugs-return-638425-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76109 invoked by alias); 25 Mar 2019 18: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 76051 invoked by uid 48); 25 Mar 2019 18:28:35 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/87480] [8 Regression] SFINAE constructor not matched, only in templated function
Date: Mon, 25 Mar 2019 18:28: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: P2
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-87480-4-Ipv4XBgozr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87480-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87480-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02719.txt.bz2
Content-length: 547

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87480

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[8/9 Regression] SFINAE     |[8 Regression] SFINAE
                   |constructor not matched,    |constructor not matched,
                   |only in templated function  |only in templated function

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed on trunk so far.
>From gcc-bugs-return-638424-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 18:28:04 2019
Return-Path: <gcc-bugs-return-638424-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73080 invoked by alias); 25 Mar 2019 18:28: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 72928 invoked by uid 48); 25 Mar 2019 18:27:59 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/87748] [8 Regression] G++-8 treats SFINAE as error
Date: Mon, 25 Mar 2019 18:28: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: 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.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-87748-4-TcdCfUl7wa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-87748-4@http.gcc.gnu.org/bugzilla/>
References: <bug-87748-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02718.txt.bz2
Content-length: 468

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87748

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[8/9 Regression] G++-8      |[8 Regression] G++-8 treats
                   |treats SFINAE as error      |SFINAE as error

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed on trunk so far.
>From gcc-bugs-return-638426-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 18:30:07 2019
Return-Path: <gcc-bugs-return-638426-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77691 invoked by alias); 25 Mar 2019 18:30: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 77367 invoked by uid 48); 25 Mar 2019 18:30:00 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/86521] [8 Regression] GCC 8 selects incorrect overload of ref-qualified conversion operator template
Date: Mon, 25 Mar 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: c++
X-Bugzilla-Version: 8.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: P2
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-86521-4-dYLQLRgpt1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-86521-4@http.gcc.gnu.org/bugzilla/>
References: <bug-86521-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
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-03/txt/msg02720.txt.bz2
Content-length: 616

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86521

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[8/9 Regression] GCC 8      |[8 Regression] GCC 8
                   |selects incorrect overload  |selects incorrect overload
                   |of ref-qualified conversion |of ref-qualified conversion
                   |operator template           |operator template

--- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed on trunk so far.
>From gcc-bugs-return-638427-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 25 19:10:35 2019
Return-Path: <gcc-bugs-return-638427-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128647 invoked by alias); 25 Mar 2019 19:10: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 128184 invoked by uid 89); 25 Mar 2019 19:10:34 -0000
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=2.0 required=5.0 testsºYES_80,HTML_MESSAGE,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.1 spammy=H*x:12.0, H*UA:12.0, North, north
X-HELO: a2nlsmtp01-02.prod.iad2.secureserver.net
Received: from a2nlsmtp01-02.prod.iad2.secureserver.net (HELO a2nlsmtp01-02.prod.iad2.secureserver.net) (198.71.225.36) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 25 Mar 2019 19:10:32 +0000
Received: from a2plcpnl0492.prod.iad2.secureserver.net ([198.71.235.87])	by : HOSTING RELAY : with ESMTP	id 8UyPhWZVyO5E58UyPhbssu; Mon, 25 Mar 2019 12:09:29 -0700
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;	d=primeventleads.com; sÞfault; h=Content-Type:MIME-Version:Message-ID:Date:	Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:	Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc	:Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:	List-Subscribe:List-Post:List-Owner:List-Archive;	bh=NfyeN9KA9KvUazQSbgAy51f7vDlfN//JXqO/SJFkDhk=; b=J5vaRr3Hw1UyWyvTCFCXKaBFa3	wV55/1UOcAWXoqhvGU0XF7Bs0/935xjB521pk+HqVvaXekj/Aw9QJZ8AoM3FkGxpQztss4gvIPOoB	Zrp8rUBoNv/TUri5ql+IWAaj9VudNqfLf8bJWEDAwGPAnvU1wWiE9XcUqTzrWGh2smD7Pj85xffG/	0K0Y+3UnK57dFF+aaAne+cb/htqXxd2fboGBkzBT5k7/H/gx1I/dRf5IKxe9TOh4dFKKRYO7zjsjh	gFLX0oinjzKsreH7LOa+FHQju5Iywh+H8qD5bS76Dh6uMgsUpNv+GSrEC4vdOUksXQwnTmZzKHrx3	+4qKbBzQ==;
Received: from [106.200.199.77] (portY721 helo=LAPTOPP77A7JP1)	by a2plcpnl0492.prod.iad2.secureserver.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256)	(Exim 4.91)	(envelope-from <maria.lena@primeventleads.com>)	id 1h8UYe-002xdG-7z	for gcc-bugs@gcc.gnu.org; Mon, 25 Mar 2019 11:42:52 -0700
From: "Maria Lena" <maria.lena@primeventleads.com>
To: <gcc-bugs@gcc.gnu.org>
Subject: North Carolina Statewide Safety Conference- 2019
Date: Mon, 25 Mar 2019 19:10:00 -0000
Message-ID: <!&!AAAAAAAAAAAYAAAAAAAAAOMhnk2VdLhGiUS+N4vpHg/CgAAAEAAAAONspy/ecHVCjhAWEl3kLwABAAAAAA==@primeventleads.com>
MIME-Version: 1.0
Content-Type: text/plain;	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-SW-Source: 2019-03/txt/msg02721.txt.bz2
Content-length: 278

Hi,

Would you be interested in acquiring a list of "Attendees List of North
Carolina Statewide Safety Conference- 2019?"

Please let me know your interest to send you the number of Attendees and
cost.

Awaiting for your reply.

Regards,

Maria Lena/Marketing Coordinator.




^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2019-03-18 23:49 ` [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds msebor at gcc dot gnu.org
@ 2020-04-13 20:27 ` msebor at gcc dot gnu.org
  2020-04-18 18:22 ` law at redhat dot com
                   ` (72 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-04-13 20:27 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 81172, which changed state.

Bug 81172 Summary: Expected new warning option -Warray-bounds-pointer-arithmetic
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81172

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2020-04-13 20:27 ` msebor at gcc dot gnu.org
@ 2020-04-18 18:22 ` law at redhat dot com
  2020-04-21 17:15 ` msebor at gcc dot gnu.org
                   ` (71 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: law at redhat dot com @ 2020-04-18 18:22 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 89550, which changed state.

Bug 89550 Summary: [8/9/10 Regression] Spurious array-bounds warning when using __PRETTY_FUNCTION__ as a string_view
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89550

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2020-04-18 18:22 ` law at redhat dot com
@ 2020-04-21 17:15 ` msebor at gcc dot gnu.org
  2020-05-18 22:06 ` msebor at gcc dot gnu.org
                   ` (70 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-04-21 17:15 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 94647, which changed state.

Bug 94647 Summary: [10 Regression] bogus -Warray-bounds on strncpy into a larger member array from a smaller array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94647

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2020-04-21 17:15 ` msebor at gcc dot gnu.org
@ 2020-05-18 22:06 ` msebor at gcc dot gnu.org
  2020-05-19 21:07 ` msebor at gcc dot gnu.org
                   ` (69 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-05-18 22:06 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 94940, which changed state.

Bug 94940 Summary: [10 Regression] spurious -Warray-bounds for a zero length array member of union since r10-4300-g49fb45c81f4ac068
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94940

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2020-05-18 22:06 ` msebor at gcc dot gnu.org
@ 2020-05-19 21:07 ` msebor at gcc dot gnu.org
  2020-06-01 17:14 ` msebor at gcc dot gnu.org
                   ` (68 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-05-19 21:07 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 53890, which changed state.

Bug 53890 Summary: bogus array bounds warning
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53890

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (8 preceding siblings ...)
  2020-05-19 21:07 ` msebor at gcc dot gnu.org
@ 2020-06-01 17:14 ` msebor at gcc dot gnu.org
  2020-06-10 17:41 ` msebor at gcc dot gnu.org
                   ` (67 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-06-01 17:14 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 95461, which changed state.

Bug 95461 Summary: GCC misses -Warray-bounds warning message
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95461

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (9 preceding siblings ...)
  2020-06-01 17:14 ` msebor at gcc dot gnu.org
@ 2020-06-10 17:41 ` msebor at gcc dot gnu.org
  2020-07-21 20:08 ` msebor at gcc dot gnu.org
                   ` (66 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-06-10 17:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 88992, which changed state.

Bug 88992 Summary: missing -Warray-bounds indexing into a zero-length array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88992

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (10 preceding siblings ...)
  2020-06-10 17:41 ` msebor at gcc dot gnu.org
@ 2020-07-21 20:08 ` msebor at gcc dot gnu.org
  2020-07-21 21:31 ` msebor at gcc dot gnu.org
                   ` (65 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-07-21 20:08 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 95988, which changed state.

Bug 95988 Summary: [10/11 Regression] Bogus -Warray-bounds/-Wstringop-overflow warning  with loop
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95988

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (11 preceding siblings ...)
  2020-07-21 20:08 ` msebor at gcc dot gnu.org
@ 2020-07-21 21:31 ` msebor at gcc dot gnu.org
  2020-07-27 20:09 ` msebor at gcc dot gnu.org
                   ` (64 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-07-21 21:31 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 84051, which changed state.

Bug 84051 Summary: [7/8/9 Regression] missing -Warray-bounds on an out-of-bounds access via an array pointer
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84051

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |ASSIGNED
         Resolution|WONTFIX                     |---

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (12 preceding siblings ...)
  2020-07-21 21:31 ` msebor at gcc dot gnu.org
@ 2020-07-27 20:09 ` msebor at gcc dot gnu.org
  2020-08-20 17:14 ` msebor at gcc dot gnu.org
                   ` (63 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-07-27 20:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 84079, which changed state.

Bug 84079 Summary: missing -Warray-bounds taking the address of a multidimensional array element
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84079

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (13 preceding siblings ...)
  2020-07-27 20:09 ` msebor at gcc dot gnu.org
@ 2020-08-20 17:14 ` msebor at gcc dot gnu.org
  2020-08-20 17:27 ` msebor at gcc dot gnu.org
                   ` (62 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-08-20 17:14 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 92828, which changed state.

Bug 92828 Summary: array out of bounds access in libcpp/mkdeps.c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92828

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (14 preceding siblings ...)
  2020-08-20 17:14 ` msebor at gcc dot gnu.org
@ 2020-08-20 17:27 ` msebor at gcc dot gnu.org
  2020-09-20  0:09 ` msebor at gcc dot gnu.org
                   ` (61 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-08-20 17:27 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 90367, which changed state.

Bug 90367 Summary: Spurious warning array subscript is above array bounds
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90367

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WORKSFORME

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (15 preceding siblings ...)
  2020-08-20 17:27 ` msebor at gcc dot gnu.org
@ 2020-09-20  0:09 ` msebor at gcc dot gnu.org
  2020-09-27 20:25 ` msebor at gcc dot gnu.org
                   ` (60 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-09-20  0:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 84051, which changed state.

Bug 84051 Summary: [7/8/9 Regression] missing -Warray-bounds on an out-of-bounds access via an array pointer
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84051

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (16 preceding siblings ...)
  2020-09-20  0:09 ` msebor at gcc dot gnu.org
@ 2020-09-27 20:25 ` msebor at gcc dot gnu.org
  2020-10-14 21:38 ` msebor at gcc dot gnu.org
                   ` (59 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-09-27 20:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 94195, which changed state.

Bug 94195 Summary: missing warning reading a smaller object via an lvalue of a larger type
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94195

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (17 preceding siblings ...)
  2020-09-27 20:25 ` msebor at gcc dot gnu.org
@ 2020-10-14 21:38 ` msebor at gcc dot gnu.org
  2020-11-29 22:35 ` msebor at gcc dot gnu.org
                   ` (58 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-10-14 21:38 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 97391, which changed state.

Bug 97391 Summary: [11 Regression] bogus -Warray-bounds accessing a multidimensional array parameter
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97391

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (18 preceding siblings ...)
  2020-10-14 21:38 ` msebor at gcc dot gnu.org
@ 2020-11-29 22:35 ` msebor at gcc dot gnu.org
  2021-01-04 16:06 ` msebor at gcc dot gnu.org
                   ` (57 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-11-29 22:35 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 92936, which changed state.

Bug 92936 Summary: missing warning on a past-the-end store to a PHI
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92936

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (19 preceding siblings ...)
  2020-11-29 22:35 ` msebor at gcc dot gnu.org
@ 2021-01-04 16:06 ` msebor at gcc dot gnu.org
  2021-01-04 16:20 ` w at 1wt dot eu
                   ` (56 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-01-04 16:06 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 98503, which changed state.

Bug 98503 Summary: [11 regression] -Warray-bounds false positive with global variables at -O2 since r11-3306-g3f9a497d1b0dd9da
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98503

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (20 preceding siblings ...)
  2021-01-04 16:06 ` msebor at gcc dot gnu.org
@ 2021-01-04 16:20 ` w at 1wt dot eu
  2021-01-04 17:41 ` msebor at gcc dot gnu.org
                   ` (55 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: w at 1wt dot eu @ 2021-01-04 16:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 98503, which changed state.

Bug 98503 Summary: [11 regression] -Warray-bounds false positive with global variables at -O2 since r11-3306-g3f9a497d1b0dd9da
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98503

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (21 preceding siblings ...)
  2021-01-04 16:20 ` w at 1wt dot eu
@ 2021-01-04 17:41 ` msebor at gcc dot gnu.org
  2021-01-04 22:43 ` w at 1wt dot eu
                   ` (54 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-01-04 17:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 98503, which changed state.

Bug 98503 Summary: [11 regression] -Warray-bounds false positive with global variables at -O2 since r11-3306-g3f9a497d1b0dd9da
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98503

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |INVALID

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (22 preceding siblings ...)
  2021-01-04 17:41 ` msebor at gcc dot gnu.org
@ 2021-01-04 22:43 ` w at 1wt dot eu
  2021-01-06 11:15 ` ebotcazou at gcc dot gnu.org
                   ` (53 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: w at 1wt dot eu @ 2021-01-04 22:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 98503, which changed state.

Bug 98503 Summary: [11 regression] -Warray-bounds false positive with global variables at -O2 since r11-3306-g3f9a497d1b0dd9da
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98503

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (23 preceding siblings ...)
  2021-01-04 22:43 ` w at 1wt dot eu
@ 2021-01-06 11:15 ` ebotcazou at gcc dot gnu.org
  2021-01-14 20:11 ` msebor at gcc dot gnu.org
                   ` (52 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2021-01-06 11:15 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 90806, which changed state.

Bug 90806 Summary: Warray-bounds-2.c fail on cross-aarch64 on RH6 host
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90806

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (24 preceding siblings ...)
  2021-01-06 11:15 ` ebotcazou at gcc dot gnu.org
@ 2021-01-14 20:11 ` msebor at gcc dot gnu.org
  2021-02-10 21:36 ` msebor at gcc dot gnu.org
                   ` (51 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-01-14 20:11 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 96984, which changed state.

Bug 96984 Summary: bogus -Warray-bounds with -fsanitize due to FRE substituting subobjects at the same address
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96984

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (25 preceding siblings ...)
  2021-01-14 20:11 ` msebor at gcc dot gnu.org
@ 2021-02-10 21:36 ` msebor at gcc dot gnu.org
  2021-03-08 20:39 ` msebor at gcc dot gnu.org
                   ` (50 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-02-10 21:36 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 92879, which changed state.

Bug 92879 Summary: [10/11 Regression] incorrect warning of __builtin_memset offset is out of the bounds on zero-size allocation and initialization
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92879

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (26 preceding siblings ...)
  2021-02-10 21:36 ` msebor at gcc dot gnu.org
@ 2021-03-08 20:39 ` msebor at gcc dot gnu.org
  2021-05-05 19:31 ` msebor at gcc dot gnu.org
                   ` (49 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-03-08 20:39 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 98266, which changed state.

Bug 98266 Summary: [11 Regression] bogus array subscript is partly outside array bounds on virtual inheritance
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98266

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (27 preceding siblings ...)
  2021-03-08 20:39 ` msebor at gcc dot gnu.org
@ 2021-05-05 19:31 ` msebor at gcc dot gnu.org
  2021-05-14 11:16 ` jakub at gcc dot gnu.org
                   ` (48 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-05-05 19:31 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 100430, which changed state.

Bug 100430 Summary: False positive for -Warray-bounds and pointers
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100430

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |WONTFIX

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (28 preceding siblings ...)
  2021-05-05 19:31 ` msebor at gcc dot gnu.org
@ 2021-05-14 11:16 ` jakub at gcc dot gnu.org
  2021-05-14 11:38 ` jakub at gcc dot gnu.org
                   ` (47 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-05-14 11:16 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 88800, which changed state.

Bug 88800 Summary: [8 Regression] Spurious -Werror=array-bounds for non-taken branch
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88800

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (29 preceding siblings ...)
  2021-05-14 11:16 ` jakub at gcc dot gnu.org
@ 2021-05-14 11:38 ` jakub at gcc dot gnu.org
  2021-07-06 21:32 ` msebor at gcc dot gnu.org
                   ` (46 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-05-14 11:38 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 89644, which changed state.

Bug 89644 Summary: [8 Regression] false-positive -Warray-bounds on strncpy with unterminated array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89644

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (30 preceding siblings ...)
  2021-05-14 11:38 ` jakub at gcc dot gnu.org
@ 2021-07-06 21:32 ` msebor at gcc dot gnu.org
  2021-07-08 22:12 ` msebor at gcc dot gnu.org
                   ` (45 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-07-06 21:32 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 86650, which changed state.

Bug 86650 Summary: -Warray-bounds missing inlining context
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86650

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (31 preceding siblings ...)
  2021-07-06 21:32 ` msebor at gcc dot gnu.org
@ 2021-07-08 22:12 ` msebor at gcc dot gnu.org
  2021-07-08 22:42 ` msebor at gcc dot gnu.org
                   ` (44 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-07-08 22:12 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 100451, which changed state.

Bug 100451 Summary: g++.dg/warn/Warray-bounds-20.C XPASSes
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100451

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (32 preceding siblings ...)
  2021-07-08 22:12 ` msebor at gcc dot gnu.org
@ 2021-07-08 22:42 ` msebor at gcc dot gnu.org
  2021-07-13 17:02 ` msebor at gcc dot gnu.org
                   ` (43 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-07-08 22:42 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 101372, which changed state.

Bug 101372 Summary: [12 Regression] -Warray-bounds in gcc/cp/module.cc causing bootstrap failure
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101372

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (33 preceding siblings ...)
  2021-07-08 22:42 ` msebor at gcc dot gnu.org
@ 2021-07-13 17:02 ` msebor at gcc dot gnu.org
  2021-07-20 14:38 ` msebor at gcc dot gnu.org
                   ` (42 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-07-13 17:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 101436, which changed state.

Bug 101436 Summary: Yet another bogus "array subscript is partly outside array bounds"
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101436

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WONTFIX

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (34 preceding siblings ...)
  2021-07-13 17:02 ` msebor at gcc dot gnu.org
@ 2021-07-20 14:38 ` msebor at gcc dot gnu.org
  2021-08-24 16:50 ` msebor at gcc dot gnu.org
                   ` (41 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-07-20 14:38 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 93437, which changed state.

Bug 93437 Summary: [9 Regression] bogus -Warray-bounds on protobuf generated code
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93437

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (35 preceding siblings ...)
  2021-07-20 14:38 ` msebor at gcc dot gnu.org
@ 2021-08-24 16:50 ` msebor at gcc dot gnu.org
  2021-08-24 16:50 ` msebor at gcc dot gnu.org
                   ` (40 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-08-24 16:50 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 101600, which changed state.

Bug 101600 Summary: [12 Regression] Spurious -Warray-bounds downcasting a polymorphic pointer
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101600

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (36 preceding siblings ...)
  2021-08-24 16:50 ` msebor at gcc dot gnu.org
@ 2021-08-24 16:50 ` msebor at gcc dot gnu.org
  2021-09-01 15:02 ` msebor at gcc dot gnu.org
                   ` (39 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-08-24 16:50 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 101977, which changed state.

Bug 101977 Summary: [12 Regression] array subscript 0 is outside array bounds
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101977

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (37 preceding siblings ...)
  2021-08-24 16:50 ` msebor at gcc dot gnu.org
@ 2021-09-01 15:02 ` msebor at gcc dot gnu.org
  2021-09-15 20:16 ` msebor at gcc dot gnu.org
                   ` (38 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-09-01 15:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 102151, which changed state.

Bug 102151 Summary: Spurious warning by -Warray-bounds when allocating with flexible array member
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102151

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (38 preceding siblings ...)
  2021-09-01 15:02 ` msebor at gcc dot gnu.org
@ 2021-09-15 20:16 ` msebor at gcc dot gnu.org
  2021-10-13 17:09 ` msebor at gcc dot gnu.org
                   ` (37 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-09-15 20:16 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 102346, which changed state.

Bug 102346 Summary: Missing -Warray-bounds due to constant folding
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102346

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (39 preceding siblings ...)
  2021-09-15 20:16 ` msebor at gcc dot gnu.org
@ 2021-10-13 17:09 ` msebor at gcc dot gnu.org
  2021-10-26 23:02 ` msebor at gcc dot gnu.org
                   ` (36 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-10-13 17:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 102630, which changed state.

Bug 102630 Summary: [12 Regression] Spurious -Warray-bounds with named address space
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102630

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (40 preceding siblings ...)
  2021-10-13 17:09 ` msebor at gcc dot gnu.org
@ 2021-10-26 23:02 ` msebor at gcc dot gnu.org
  2021-11-23 10:01 ` pinskia at gcc dot gnu.org
                   ` (35 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-10-26 23:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 102453, which changed state.

Bug 102453 Summary: buffer overflow by atomic built-ins not diagnosed
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102453

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (41 preceding siblings ...)
  2021-10-26 23:02 ` msebor at gcc dot gnu.org
@ 2021-11-23 10:01 ` pinskia at gcc dot gnu.org
  2021-12-09 19:59 ` msebor at gcc dot gnu.org
                   ` (34 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-23 10:01 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 102216, which changed state.

Bug 102216 Summary: [12 Regression] missed optimization causing Warray-bounds
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102216

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (42 preceding siblings ...)
  2021-11-23 10:01 ` pinskia at gcc dot gnu.org
@ 2021-12-09 19:59 ` msebor at gcc dot gnu.org
  2021-12-15 16:23 ` msebor at gcc dot gnu.org
                   ` (33 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-12-09 19:59 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 103215, which changed state.

Bug 103215 Summary: [12 regression] gcc generates unexpected warnings on libx11-1.7.2: error: array subscript -2 is outside array bounds of since r12-3124-g820f0940d7ace130
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103215

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (43 preceding siblings ...)
  2021-12-09 19:59 ` msebor at gcc dot gnu.org
@ 2021-12-15 16:23 ` msebor at gcc dot gnu.org
  2021-12-15 17:27 ` msebor at gcc dot gnu.org
                   ` (32 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-12-15 16:23 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 91457, which changed state.

Bug 91457 Summary: FAIL: g++.dg/warn/Warray-bounds-4.C  -std=gnu++98  (test for warnings, line 25)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91457

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (44 preceding siblings ...)
  2021-12-15 16:23 ` msebor at gcc dot gnu.org
@ 2021-12-15 17:27 ` msebor at gcc dot gnu.org
  2022-01-19  8:55 ` rguenth at gcc dot gnu.org
                   ` (31 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-12-15 17:27 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 85651, which changed state.

Bug 85651 Summary: Invalid -Warray-bounds warning with -O3
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85651

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (45 preceding siblings ...)
  2021-12-15 17:27 ` msebor at gcc dot gnu.org
@ 2022-01-19  8:55 ` rguenth at gcc dot gnu.org
  2022-01-26 17:52 ` msebor at gcc dot gnu.org
                   ` (30 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-01-19  8:55 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 102706, which changed state.

Bug 102706 Summary: [12 regression] -O2 vectorization causes regression in Warray-bounds-48.c on many targets
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102706

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (46 preceding siblings ...)
  2022-01-19  8:55 ` rguenth at gcc dot gnu.org
@ 2022-01-26 17:52 ` msebor at gcc dot gnu.org
  2022-02-01 12:54 ` marxin at gcc dot gnu.org
                   ` (29 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2022-01-26 17:52 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 91462, which changed state.

Bug 91462 Summary: [9 Regression] missing -Warray-bounds writing to an empty flexible array member in a ctor
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91462

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (47 preceding siblings ...)
  2022-01-26 17:52 ` msebor at gcc dot gnu.org
@ 2022-02-01 12:54 ` marxin at gcc dot gnu.org
  2022-02-16 17:25 ` msebor at gcc dot gnu.org
                   ` (28 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-02-01 12:54 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 86341, which changed state.

Bug 86341 Summary: Aggressive loop unrolling in gcc 7.x produces out-of-bounds index
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86341

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (48 preceding siblings ...)
  2022-02-01 12:54 ` marxin at gcc dot gnu.org
@ 2022-02-16 17:25 ` msebor at gcc dot gnu.org
  2022-03-17 20:02 ` msebor at gcc dot gnu.org
                   ` (27 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2022-02-16 17:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 102006, which changed state.

Bug 102006 Summary: A false warning "Array subscript -N is outside array bounds warning"
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102006

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (49 preceding siblings ...)
  2022-02-16 17:25 ` msebor at gcc dot gnu.org
@ 2022-03-17 20:02 ` msebor at gcc dot gnu.org
  2022-03-23  8:31 ` rguenth at gcc dot gnu.org
                   ` (26 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2022-03-17 20:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 90752, which changed state.

Bug 90752 Summary: missing -Warray-bounds accessing the result of string functions
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90752

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (50 preceding siblings ...)
  2022-03-17 20:02 ` msebor at gcc dot gnu.org
@ 2022-03-23  8:31 ` rguenth at gcc dot gnu.org
  2022-03-30  8:16 ` jakub at gcc dot gnu.org
                   ` (25 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-03-23  8:31 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 98503, which changed state.

Bug 98503 Summary: [11/12 regression] -Warray-bounds false positive with global variables at -O2 since r11-3306-g3f9a497d1b0dd9da
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98503

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (51 preceding siblings ...)
  2022-03-23  8:31 ` rguenth at gcc dot gnu.org
@ 2022-03-30  8:16 ` jakub at gcc dot gnu.org
  2022-04-21 12:36 ` redi at gcc dot gnu.org
                   ` (24 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-03-30  8:16 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 99578, which changed state.

Bug 99578 Summary: [11 Regression] gcc-11 -Warray-bounds or -Wstringop-overread warning when accessing a pointer from integer literal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99578

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (52 preceding siblings ...)
  2022-03-30  8:16 ` jakub at gcc dot gnu.org
@ 2022-04-21 12:36 ` redi at gcc dot gnu.org
  2022-05-27  8:15 ` rguenth at gcc dot gnu.org
                   ` (23 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: redi at gcc dot gnu.org @ 2022-04-21 12:36 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 104966, which changed state.

Bug 104966 Summary: [11/12 Regression] Yet another bogus -Warray-bounds warning in libstdc++ headers
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104966

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (53 preceding siblings ...)
  2022-04-21 12:36 ` redi at gcc dot gnu.org
@ 2022-05-27  8:15 ` rguenth at gcc dot gnu.org
  2022-05-27  8:33 ` rguenth at gcc dot gnu.org
                   ` (22 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-27  8:15 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 84053, which changed state.

Bug 84053 Summary: [9 Regression] missing -Warray-bounds accessing a local array across inlined function boundaries
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84053

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (54 preceding siblings ...)
  2022-05-27  8:15 ` rguenth at gcc dot gnu.org
@ 2022-05-27  8:33 ` rguenth at gcc dot gnu.org
  2022-05-31 14:42 ` msebor at gcc dot gnu.org
                   ` (21 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-27  8:33 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 90387, which changed state.

Bug 90387 Summary: [9 Regression] __builtin_constant_p and -Warray-bounds warnings
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90387

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (55 preceding siblings ...)
  2022-05-27  8:33 ` rguenth at gcc dot gnu.org
@ 2022-05-31 14:42 ` msebor at gcc dot gnu.org
  2022-06-15  9:50 ` rguenth at gcc dot gnu.org
                   ` (20 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: msebor at gcc dot gnu.org @ 2022-05-31 14:42 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 105762, which changed state.

Bug 105762 Summary: [12/13 Regression] -Warray-bounds false positives for integer-to-pointer casts since r12-2132-ga110855667782dac
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105762

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (56 preceding siblings ...)
  2022-05-31 14:42 ` msebor at gcc dot gnu.org
@ 2022-06-15  9:50 ` rguenth at gcc dot gnu.org
  2022-09-12  7:57 ` rguenth at gcc dot gnu.org
                   ` (19 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-06-15  9:50 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 105726, which changed state.

Bug 105726 Summary: [10/11 Regression] spurious warning with -Warray-bounds
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105726

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (57 preceding siblings ...)
  2022-06-15  9:50 ` rguenth at gcc dot gnu.org
@ 2022-09-12  7:57 ` rguenth at gcc dot gnu.org
  2022-09-13 16:48 ` pinskia at gcc dot gnu.org
                   ` (18 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-09-12  7:57 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 106901, which changed state.

Bug 106901 Summary: [13 Regression] False positive -Warray-bounds with -O2 or higher?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106901

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (58 preceding siblings ...)
  2022-09-12  7:57 ` rguenth at gcc dot gnu.org
@ 2022-09-13 16:48 ` pinskia at gcc dot gnu.org
  2022-12-16 14:14 ` marxin at gcc dot gnu.org
                   ` (17 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-09-13 16:48 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 106920, which changed state.

Bug 106920 Summary: -Warray-bound false positive regression with -O2 or -Os and constant address
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106920

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (59 preceding siblings ...)
  2022-09-13 16:48 ` pinskia at gcc dot gnu.org
@ 2022-12-16 14:14 ` marxin at gcc dot gnu.org
  2022-12-19 21:38 ` pinskia at gcc dot gnu.org
                   ` (16 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-12-16 14:14 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 108127, which changed state.

Bug 108127 Summary: FP due to combination of -Warray-bounds and UBSAN
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108127

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (60 preceding siblings ...)
  2022-12-16 14:14 ` marxin at gcc dot gnu.org
@ 2022-12-19 21:38 ` pinskia at gcc dot gnu.org
  2022-12-20 14:06 ` rguenth at gcc dot gnu.org
                   ` (15 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-12-19 21:38 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 91584, which changed state.

Bug 91584 Summary: [9 Regression] Bogus warning from -Warray-bounds during string assignment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91584

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (61 preceding siblings ...)
  2022-12-19 21:38 ` pinskia at gcc dot gnu.org
@ 2022-12-20 14:06 ` rguenth at gcc dot gnu.org
  2022-12-24 20:14 ` pinskia at gcc dot gnu.org
                   ` (14 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-12-20 14:06 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 106149, which changed state.

Bug 106149 Summary: [13 regression] g++.dg/warn/Warray-bounds-16.C had bogus errors after r13-1366-g1eef21ccfa5988
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106149

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (62 preceding siblings ...)
  2022-12-20 14:06 ` rguenth at gcc dot gnu.org
@ 2022-12-24 20:14 ` pinskia at gcc dot gnu.org
  2022-12-24 20:35 ` jhaberman at gmail dot com
                   ` (13 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-12-24 20:14 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 108217, which changed state.

Bug 108217 Summary: bogus -Warray-bounds with pointer to constant local
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108217

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (63 preceding siblings ...)
  2022-12-24 20:14 ` pinskia at gcc dot gnu.org
@ 2022-12-24 20:35 ` jhaberman at gmail dot com
  2022-12-24 20:46 ` pinskia at gcc dot gnu.org
                   ` (12 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: jhaberman at gmail dot com @ 2022-12-24 20:35 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 108217, which changed state.

Bug 108217 Summary: bogus -Warray-bounds with pointer to constant local
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108217

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|DUPLICATE                   |---

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (64 preceding siblings ...)
  2022-12-24 20:35 ` jhaberman at gmail dot com
@ 2022-12-24 20:46 ` pinskia at gcc dot gnu.org
  2023-01-27 14:39 ` amacleod at redhat dot com
                   ` (11 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-12-24 20:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 108217, which changed state.

Bug 108217 Summary: bogus -Warray-bounds with pointer to constant local
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108217

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (65 preceding siblings ...)
  2022-12-24 20:46 ` pinskia at gcc dot gnu.org
@ 2023-01-27 14:39 ` amacleod at redhat dot com
  2023-01-27 15:16 ` rguenth at gcc dot gnu.org
                   ` (10 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: amacleod at redhat dot com @ 2023-01-27 14:39 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 108306, which changed state.

Bug 108306 Summary: [12/13 Regression] false-positive -Warray-bounds warning emitted with -fsanitize=shift
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108306

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (66 preceding siblings ...)
  2023-01-27 14:39 ` amacleod at redhat dot com
@ 2023-01-27 15:16 ` rguenth at gcc dot gnu.org
  2023-01-30 21:12 ` amacleod at redhat dot com
                   ` (9 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-01-27 15:16 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 108306, which changed state.

Bug 108306 Summary: [12 Regression] false-positive -Warray-bounds warning emitted with -fsanitize=shift
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108306

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |NEW
         Resolution|FIXED                       |---

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (67 preceding siblings ...)
  2023-01-27 15:16 ` rguenth at gcc dot gnu.org
@ 2023-01-30 21:12 ` amacleod at redhat dot com
  2023-02-13  9:02 ` rguenth at gcc dot gnu.org
                   ` (8 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: amacleod at redhat dot com @ 2023-01-30 21:12 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 108306, which changed state.

Bug 108306 Summary: [12 Regression] false-positive -Warray-bounds warning emitted with -fsanitize=shift
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108306

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (68 preceding siblings ...)
  2023-01-30 21:12 ` amacleod at redhat dot com
@ 2023-02-13  9:02 ` rguenth at gcc dot gnu.org
  2023-03-09 18:29 ` pinskia at gcc dot gnu.org
                   ` (7 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-02-13  9:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 108768, which changed state.

Bug 108768 Summary: bogus -Warray-bounds warnings
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108768

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (69 preceding siblings ...)
  2023-02-13  9:02 ` rguenth at gcc dot gnu.org
@ 2023-03-09 18:29 ` pinskia at gcc dot gnu.org
  2023-04-27 11:45 ` rguenth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-03-09 18:29 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 108980, which changed state.

Bug 108980 Summary: [13 Regression] Warning text missing the warning itself (GCC 13)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108980

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (70 preceding siblings ...)
  2023-03-09 18:29 ` pinskia at gcc dot gnu.org
@ 2023-04-27 11:45 ` rguenth at gcc dot gnu.org
  2023-05-17 15:05 ` pinskia at gcc dot gnu.org
                   ` (5 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-04-27 11:45 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 107852, which changed state.

Bug 107852 Summary: [12 Regression] Spurious warnings stringop-overflow and array-bounds copying data as bytes into vector
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107852

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (71 preceding siblings ...)
  2023-04-27 11:45 ` rguenth at gcc dot gnu.org
@ 2023-05-17 15:05 ` pinskia at gcc dot gnu.org
  2023-07-07  8:45 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-05-17 15:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 106900, which changed state.

Bug 106900 Summary: Regression after memchr optimization
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106900

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (72 preceding siblings ...)
  2023-05-17 15:05 ` pinskia at gcc dot gnu.org
@ 2023-07-07  8:45 ` rguenth at gcc dot gnu.org
  2023-07-07  9:25 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07  8:45 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 92815, which changed state.

Bug 92815 Summary: [10 Regression] spurious -Wstringop-overflow writing into a flexible array of an extern struct
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92815

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (73 preceding siblings ...)
  2023-07-07  8:45 ` rguenth at gcc dot gnu.org
@ 2023-07-07  9:25 ` rguenth at gcc dot gnu.org
  2023-08-09 18:53 ` gjl at gcc dot gnu.org
                   ` (2 subsequent siblings)
  77 siblings, 0 replies; 79+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07  9:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 99121, which changed state.

Bug 99121 Summary: [10 Regression] ICE tree check: expected integer_cst, have var_decl in get_len, at tree.h:6037
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99121

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (74 preceding siblings ...)
  2023-07-07  9:25 ` rguenth at gcc dot gnu.org
@ 2023-08-09 18:53 ` gjl at gcc dot gnu.org
  2024-01-19  4:34 ` sandra at gcc dot gnu.org
  2024-01-20 19:49 ` pinskia at gcc dot gnu.org
  77 siblings, 0 replies; 79+ messages in thread
From: gjl at gcc dot gnu.org @ 2023-08-09 18:53 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 105523, which changed state.

Bug 105523 Summary: Wrong warning array subscript [0] is outside array bounds
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (75 preceding siblings ...)
  2023-08-09 18:53 ` gjl at gcc dot gnu.org
@ 2024-01-19  4:34 ` sandra at gcc dot gnu.org
  2024-01-20 19:49 ` pinskia at gcc dot gnu.org
  77 siblings, 0 replies; 79+ messages in thread
From: sandra at gcc dot gnu.org @ 2024-01-19  4:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 104355, which changed state.

Bug 104355 Summary: Misleading -Warray-bounds documentation says "always out of bounds"
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104355

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

* [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds
  2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
                   ` (76 preceding siblings ...)
  2024-01-19  4:34 ` sandra at gcc dot gnu.org
@ 2024-01-20 19:49 ` pinskia at gcc dot gnu.org
  77 siblings, 0 replies; 79+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-20 19:49 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
Bug 56456 depends on bug 109744, which changed state.

Bug 109744 Summary: mesa/panvk: bogus Warray-bounds on gcc 12.2, fixed in 13 branch
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109744

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 79+ messages in thread

end of thread, other threads:[~2024-01-20 19:49 UTC | newest]

Thread overview: 79+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-26  9:48 [Bug tree-optimization/56456] New: [meta-bug] bogus warning when inlining: "array subscript is above array bounds" amylaar at gcc dot gnu.org
2013-02-26 10:18 ` [Bug tree-optimization/56456] " rguenth at gcc dot gnu.org
2014-06-12 13:07 ` [Bug tree-optimization/56456] [meta-bug] bogus warning when inlining or unrolling: " rguenth at gcc dot gnu.org
2015-02-24 14:05 ` rguenth at gcc dot gnu.org
2019-03-18 23:49 ` [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds msebor at gcc dot gnu.org
2020-04-13 20:27 ` msebor at gcc dot gnu.org
2020-04-18 18:22 ` law at redhat dot com
2020-04-21 17:15 ` msebor at gcc dot gnu.org
2020-05-18 22:06 ` msebor at gcc dot gnu.org
2020-05-19 21:07 ` msebor at gcc dot gnu.org
2020-06-01 17:14 ` msebor at gcc dot gnu.org
2020-06-10 17:41 ` msebor at gcc dot gnu.org
2020-07-21 20:08 ` msebor at gcc dot gnu.org
2020-07-21 21:31 ` msebor at gcc dot gnu.org
2020-07-27 20:09 ` msebor at gcc dot gnu.org
2020-08-20 17:14 ` msebor at gcc dot gnu.org
2020-08-20 17:27 ` msebor at gcc dot gnu.org
2020-09-20  0:09 ` msebor at gcc dot gnu.org
2020-09-27 20:25 ` msebor at gcc dot gnu.org
2020-10-14 21:38 ` msebor at gcc dot gnu.org
2020-11-29 22:35 ` msebor at gcc dot gnu.org
2021-01-04 16:06 ` msebor at gcc dot gnu.org
2021-01-04 16:20 ` w at 1wt dot eu
2021-01-04 17:41 ` msebor at gcc dot gnu.org
2021-01-04 22:43 ` w at 1wt dot eu
2021-01-06 11:15 ` ebotcazou at gcc dot gnu.org
2021-01-14 20:11 ` msebor at gcc dot gnu.org
2021-02-10 21:36 ` msebor at gcc dot gnu.org
2021-03-08 20:39 ` msebor at gcc dot gnu.org
2021-05-05 19:31 ` msebor at gcc dot gnu.org
2021-05-14 11:16 ` jakub at gcc dot gnu.org
2021-05-14 11:38 ` jakub at gcc dot gnu.org
2021-07-06 21:32 ` msebor at gcc dot gnu.org
2021-07-08 22:12 ` msebor at gcc dot gnu.org
2021-07-08 22:42 ` msebor at gcc dot gnu.org
2021-07-13 17:02 ` msebor at gcc dot gnu.org
2021-07-20 14:38 ` msebor at gcc dot gnu.org
2021-08-24 16:50 ` msebor at gcc dot gnu.org
2021-08-24 16:50 ` msebor at gcc dot gnu.org
2021-09-01 15:02 ` msebor at gcc dot gnu.org
2021-09-15 20:16 ` msebor at gcc dot gnu.org
2021-10-13 17:09 ` msebor at gcc dot gnu.org
2021-10-26 23:02 ` msebor at gcc dot gnu.org
2021-11-23 10:01 ` pinskia at gcc dot gnu.org
2021-12-09 19:59 ` msebor at gcc dot gnu.org
2021-12-15 16:23 ` msebor at gcc dot gnu.org
2021-12-15 17:27 ` msebor at gcc dot gnu.org
2022-01-19  8:55 ` rguenth at gcc dot gnu.org
2022-01-26 17:52 ` msebor at gcc dot gnu.org
2022-02-01 12:54 ` marxin at gcc dot gnu.org
2022-02-16 17:25 ` msebor at gcc dot gnu.org
2022-03-17 20:02 ` msebor at gcc dot gnu.org
2022-03-23  8:31 ` rguenth at gcc dot gnu.org
2022-03-30  8:16 ` jakub at gcc dot gnu.org
2022-04-21 12:36 ` redi at gcc dot gnu.org
2022-05-27  8:15 ` rguenth at gcc dot gnu.org
2022-05-27  8:33 ` rguenth at gcc dot gnu.org
2022-05-31 14:42 ` msebor at gcc dot gnu.org
2022-06-15  9:50 ` rguenth at gcc dot gnu.org
2022-09-12  7:57 ` rguenth at gcc dot gnu.org
2022-09-13 16:48 ` pinskia at gcc dot gnu.org
2022-12-16 14:14 ` marxin at gcc dot gnu.org
2022-12-19 21:38 ` pinskia at gcc dot gnu.org
2022-12-20 14:06 ` rguenth at gcc dot gnu.org
2022-12-24 20:14 ` pinskia at gcc dot gnu.org
2022-12-24 20:35 ` jhaberman at gmail dot com
2022-12-24 20:46 ` pinskia at gcc dot gnu.org
2023-01-27 14:39 ` amacleod at redhat dot com
2023-01-27 15:16 ` rguenth at gcc dot gnu.org
2023-01-30 21:12 ` amacleod at redhat dot com
2023-02-13  9:02 ` rguenth at gcc dot gnu.org
2023-03-09 18:29 ` pinskia at gcc dot gnu.org
2023-04-27 11:45 ` rguenth at gcc dot gnu.org
2023-05-17 15:05 ` pinskia at gcc dot gnu.org
2023-07-07  8:45 ` rguenth at gcc dot gnu.org
2023-07-07  9:25 ` rguenth at gcc dot gnu.org
2023-08-09 18:53 ` gjl at gcc dot gnu.org
2024-01-19  4:34 ` sandra at gcc dot gnu.org
2024-01-20 19:49 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).