public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/79399] New: GCC fails to compile big source at -O0
@ 2017-02-06 23:28 babokin at gmail dot com
  0 siblings, 0 replies; only message in thread
From: babokin at gmail dot com @ 2017-02-06 23:28 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: 3123884 bytes --]

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

            Bug ID: 79399
           Summary: GCC fails to compile big source at -O0
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: babokin at gmail dot com
  Target Milestone: ---

The bug report is not very typical, but it may help fixing the real issue,
which is hard to find and debug in other corricumstances. I don't mind if it's
closed as "will not be fixed", but still hope it could be useful.

The test case is huge auto generated C++ file - 260Mb of source code (1.7Mb
when compressed). The code is scalar. So I would expect that GCC compiles it
without issues at least at -O0. But it fails trying to allocate
18446744071569032860 bytes, which is... 1.8*10^19. Which is too much in any
case. This is unreasonable value. But if converted to hex format it's
0xffffffff806a469c. Probably someone tries to allocate more than 2^32 bytes in
64bit compiler and has an issue with passing 64 bit size (size_t actually) and
uses 32 bit value instead?

> /usr/bin/time --format="Max %M kb\nreal %E\nuser %U\nsys %S" g++ -std=c++11 -w -O0 -march=nehalem -o gcc_no_opt_func.o -c func.cpp

cc1plus: out of memory allocating 18446744071569032860 bytes after a total of
9836802048 bytes
Max 24979592 kb
real 22:27.38
user 1321.54
sys 24.45

The test case is, again, 1.7Mb when compressed, so I can't attach it to the bug
report. But it's available here:

https://drive.google.com/open?id=0Bxh4sVF04yhxWFNzazVxUWVnUDA

Compiler that I'm using is couple days old trunk:
> gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/gcc/bin_svn/libexec/gcc/x86_64-pc-linux-gnu/7.0.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc_svn/configure --with-arch=corei7 --with-cpu=corei7
--enable-clocale=gnu --with-system-zlib --enable-shared --with-demangler-in-ld
--enable-cloog-backend=isl --with-fpmath=sse --prefix=/gcc/bin_svn/
--enable-languages=c,c++,lto : (reconfigured) ../gcc_svn_intel/configure
--with-arch=corei7 --with-cpu=corei7 --enable-clocale=gnu --with-system-zlib
--enable-shared --with-demangler-in-ld --enable-cloog-backend=isl
--with-fpmath=sse --prefix=/gcc/bin_svn/ --enable-languages=c,c++,lto
--no-create --no-recursion : (reconfigured) ../gcc_svn/configure
--with-arch=corei7 --with-cpu=corei7 --enable-clocale=gnu --with-system-zlib
--enable-shared --with-demangler-in-ld --enable-cloog-backend=isl
--with-fpmath=sse --prefix=/gcc/bin_svn/ --enable-languages=c,c++,lto
--no-create --no-recursion : (reconfigured) ../gcc_svn/configure
--with-arch=corei7 --with-cpu=corei7 --enable-clocale=gnu --with-system-zlib
--enable-shared --with-demangler-in-ld --enable-cloog-backend=isl
--with-fpmath=sse --prefix=/gcc/bin_svn/ --enable-languages=c,c++,lto
--no-create --no-recursion
Thread model: posix
gcc version 7.0.1 20170203 (experimental) (GCC)
>From gcc-bugs-return-553186-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 06 23:31:39 2017
Return-Path: <gcc-bugs-return-553186-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103369 invoked by alias); 6 Feb 2017 23:31: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 103249 invoked by uid 55); 6 Feb 2017 23:31:25 -0000
From: "walt.brainerd at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79382] DTIO ICE
Date: Mon, 06 Feb 2017 23: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: walt.brainerd 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-79382-4-FYl1mAWiL1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79382-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79382-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00718.txt.bz2
Content-length: 2017

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

--- Comment #7 from Walt Brainerd <walt.brainerd at gmail dot com> ---
With GENERIC and PUBLIC statements
   ifort says "No visible interface"
   gfortran gets an ICE
   So I assume the code is wrong, as you suggest, but both give funny
messages

With the other "bug" I filed: program g_bug2:
With an interface block and PUBLIC
   gfortran gives a strange message about "Module nature" on the USE
statement
   ifort works correctly.

I hope this helps; let me know if I can do anything else.

On Mon, Feb 6, 2017 at 11:01 AM, paul.richard.thomas at gmail dot com <
gcc-bugzilla@gcc.gnu.org> wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79382
>
> --- Comment #5 from paul.richard.thomas at gmail dot com
> <paul.richard.thomas at gmail dot com> ---
> Hi Walt,
>
> My reading of the situation is that since, in this version, the
> generic procedure is typebound in a public derived type, the PUBLIC
> attribute is already accorded it..... I think!
>
> Do you have access to a recent copy of ifort? Mine is on my
> workstation, which is still in storage after a house move. I would be
> curious to know how it responds to both the typebound and the explicit
> generic interface versions.
>
> Best regards
>
> Paul
>
> On 6 February 2017 at 17:50, walt.brainerd at gmail dot com
> <gcc-bugzilla@gcc.gnu.org> wrote:
> > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79382
> >
> > --- Comment #4 from Walt Brainerd <walt.brainerd at gmail dot com> ---
> > Sorry, I forgot to remove the extraneous USE statement
> > which cutting down from the original code.
> >
> > I am not good with this new stuff; please explain what
> > the syntax error is? If the PUBLIC statement is not correct,
> > how do you make the write(formatted) interface public?
> >
> > Thanks for looking at this so quickly.
> >
> > --
> > You are receiving this mail because:
> > You are on the CC list for the bug.
>
> --
> You are receiving this mail because:
> You reported the bug.
>
>From gcc-bugs-return-553187-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 00:19:11 2017
Return-Path: <gcc-bugs-return-553187-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77555 invoked by alias); 7 Feb 2017 00:19: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 77011 invoked by uid 48); 7 Feb 2017 00:18:39 -0000
From: "palves at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/60615] bad location in error from initializer
Date: Tue, 07 Feb 2017 00: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: unknown
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: palves at redhat dot com
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-60615-4-7xZNt9HFpJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60615-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60615-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00719.txt.bz2
Content-length: 160

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

--- Comment #6 from Pedro Alves <palves at redhat dot com> ---
Marek, did you ever post a patch for this?
>From gcc-bugs-return-553188-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 00:22:59 2017
Return-Path: <gcc-bugs-return-553188-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86410 invoked by alias); 7 Feb 2017 00:22: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 86277 invoked by uid 48); 7 Feb 2017 00:22:45 -0000
From: "hubicka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79224] [7 Regression] Large C-Ray slowdown
Date: Tue, 07 Feb 2017 00:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hubicka at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79224-4-semazBu5GL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79224-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79224-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00720.txt.bz2
Content-length: 281

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

--- Comment #5 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
The issue is that we no longer inline all calls to ray_sphere which is the
inlining that matters.  Declaring  trace noinline or ray_sphere always_inline
helps.
>From gcc-bugs-return-553189-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 00:39:03 2017
Return-Path: <gcc-bugs-return-553189-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20181 invoked by alias); 7 Feb 2017 00:39: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 19726 invoked by uid 48); 7 Feb 2017 00:38:47 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/78496] [7 Regression] Missed opportunities for jump threading
Date: Tue, 07 Feb 2017 00:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: law at redhat dot com
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78496-4-hqsL01AhyD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78496-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78496-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00721.txt.bz2
Content-length: 1635

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

--- Comment #4 from Jeffrey A. Law <law at redhat dot com> ---
More thoughts on how we might approach resolving.

To tackle in the backwards threader I think we need to change the model for how
backwards threading works.

Right now it starts walking up the use-def chain to find a constant value for
the given SSA_NAME.  If it finds a constant, any constant, then we have a jump
threading opportunity.  We extract the conditional from the last block in the
path, plug the constant into the right place and determine where it's going to
go.  Then we record the jump thread path.

The conceptual change we need to make is to be able to raise the query "find
paths with where X has a constant value and record those paths and the value
found for X".

That would allow us to do things like simplify a bit-and by determining if one
operand is zero along a particular path.  Then we can examine how that feeds a
conditional.  Note carefully how determining the object has a constant value
other than 0 does not allow simplification.

Given that kind of structure we could probably look to tackle this BZ in the
backward threader.

We could look to improve DOM's threader.  Right now we don't pick up the
secondary threading opportunities because of limitations imposed by our SSA
graph updating code.  Converting that code to use the SEME copier like the
backwards threader uses would allow removal of that limitation and likely allow
detection of at least some cascading jump threading effects.

Anyway, I wanted to get those thoughts recorded here so they're not lost.
>From gcc-bugs-return-553190-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 00:48:53 2017
Return-Path: <gcc-bugs-return-553190-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35338 invoked by alias); 7 Feb 2017 00:48: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 35146 invoked by uid 48); 7 Feb 2017 00:48:40 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/68664] [6/7 Regression] Speculative sqrt in c-ray main loop causes large slow down
Date: Tue, 07 Feb 2017 00: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: 6.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: segher at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-68664-4-1g80Gv4Zid@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68664-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68664-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00722.txt.bz2
Content-length: 1143

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

--- Comment #24 from Segher Boessenkool <segher at gcc dot gnu.org> ---
(In reply to Jan Hubicka from comment #23)
> > > Also with profile feedback perhaps you have enough info to tell that the
> > > speculative path is almost as likely as the original placement.
> > 
> > Maybe.  The gain will be tiny though, afaics.
> 
> Usually profile is useful while driving speculation.  I would add an
> param that prevents moving insn when bb->count or bb->frequency increases
> by large amount (like 100 times).  Speculatively executing insn that will
> be ignored 99% of times is probably not paying back...
> Without profile that will probably only trigger for paths leading to abort()
> or similar cases, but with profiles that may hit quite common scenarios.

There already is a param for this: min-spec-prob.  The default is 40%,
i.e. insns are not speculated into predecessor blocks if that pred bb
has a frequency more than 2.5x larger than the bb the insn is from.
In the testcase (with estimated profile) the prob is 67%, the freq is
1.5x, and that is already hugely noticeable.
>From gcc-bugs-return-553191-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 02:06:02 2017
Return-Path: <gcc-bugs-return-553191-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13568 invoked by alias); 7 Feb 2017 02:06: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 10014 invoked by uid 48); 7 Feb 2017 02:05:44 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79363] [6/7 Regression] ICE with NSDMI and array
Date: Tue, 07 Feb 2017 02: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: 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: P2
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79363-4-nNsxXyfVmv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79363-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79363-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00723.txt.bz2
Content-length: 204

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

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
Patch submitted for review:
https://gcc.gnu.org/ml/gcc-patches/2017-02/msg00489.html
>From gcc-bugs-return-553192-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 02:19:49 2017
Return-Path: <gcc-bugs-return-553192-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111658 invoked by alias); 7 Feb 2017 02:19: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 110104 invoked by uid 48); 7 Feb 2017 02:19:34 -0000
From: "ishikawa at yk dot rim.or.jp" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/79342] [6 Regression] ICE in output_index_string, at dwarf2out.c:25635 with -gsplit-dwarf
Date: Tue, 07 Feb 2017 02:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: 6.2.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ishikawa at yk dot rim.or.jp
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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79342-4-ftxP2qMyao@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79342-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79342-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00724.txt.bz2
Content-length: 656

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

ishikawa,chiaki <ishikawa at yk dot rim.or.jp> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ishikawa at yk dot rim.or.jp

--- Comment #5 from ishikawa,chiaki <ishikawa at yk dot rim.or.jp> ---
I think the combination of "-g3" *AND* "-gsplit-dwarf" seem to be the culprit.

I noticed that there is a similar report in redhat bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=1377697
 Summary:       gcc debug info is broken with -gsplit-dwarf -g3
>From gcc-bugs-return-553193-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 02:21:41 2017
Return-Path: <gcc-bugs-return-553193-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118044 invoked by alias); 7 Feb 2017 02:21: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 117786 invoked by uid 55); 7 Feb 2017 02:21:26 -0000
From: "ppalka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79360] [5/6/7 Regression] ICE with NSDMI and enum in union
Date: Tue, 07 Feb 2017 02:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ppalka at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: ppalka at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79360-4-u2cOLBwszA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79360-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79360-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00725.txt.bz2
Content-length: 690

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

--- Comment #4 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Author: ppalka
Date: Tue Feb  7 02:20:48 2017
New Revision: 245239

URL: https://gcc.gnu.org/viewcvs?rev=245239&root=gcc&view=rev
Log:
Fix PR c++/79360

gcc/cp/ChangeLog:

        PR c++/79360
        * typeck2.c (process_init_constructor_union): Consider only
        FIELD_DECLs when looking for an NSDMI.

gcc/testsuite/ChangeLog:

        PR c++/79360
        * g++.dg/cpp1y/nsdmi-union2.C: New test.


Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/nsdmi-union2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck2.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-553194-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 02:21:59 2017
Return-Path: <gcc-bugs-return-553194-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118884 invoked by alias); 7 Feb 2017 02:21: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 118454 invoked by uid 48); 7 Feb 2017 02:21:45 -0000
From: "ishikawa at yk dot rim.or.jp" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/79342] [6 Regression] ICE in output_index_string, at dwarf2out.c:25635 with -gsplit-dwarf
Date: Tue, 07 Feb 2017 02:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: 6.2.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ishikawa at yk dot rim.or.jp
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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79342-4-SwoilMOvxD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79342-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79342-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00726.txt.bz2
Content-length: 334

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

--- Comment #6 from ishikawa,chiaki <ishikawa at yk dot rim.or.jp> ---
Sorry, forgot to mention that Redhat bugzilla has a one line C source program
that does not trip the compiler (no ICE), but obviously generates a wrong dwarf
info. These certainly look related to me.

TIA
>From gcc-bugs-return-553195-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 03:57:05 2017
Return-Path: <gcc-bugs-return-553195-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103588 invoked by alias); 7 Feb 2017 03:57: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 97873 invoked by uid 48); 7 Feb 2017 03:55:51 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/21182] [5/6/7 Regression] gcc can use registers but uses stack instead
Date: Tue, 07 Feb 2017 03:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 3.4.3
X-Bugzilla-Keywords: missed-optimization, ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-21182-4-X5JRUzQjEJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-21182-4@http.gcc.gnu.org/bugzilla/>
References: <bug-21182-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00727.txt.bz2
Content-length: 1065

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

--- Comment #20 from Jeffrey A. Law <law at redhat dot com> ---
So an update for gcc-7.  Things continue to improve ever-so-slightly.


-O2 -DNAIL_REGS 87 references to %esp
-O2 -UNAIL_REGS 25 references to %esp

But that's still a long way from the best we've had in a release for
-UNAIL_REGS which is 13 (4.6.3 and 3.4.3) and 3 for -DNAIL_REGS (3.4.3).  It's
marginally interesting that NAIL_REGS produces significantly worse code these
days.

I did a bit of grubbing trough the IRA dump.   We do fairly well.  Essentially
we have one big basic block with about 1200 allocnos.  We get hard regs for all
but ~10.  A few get hard registers during coloring, but are spilled during
improve_allocation to improve overall cost.  None of the registers that get
spilled are able to be reassigned to a new hard register.

Anyway, just some thoughts.  We're still not at a point where we really know if
IRA is being presented with something that isn't actually colorable or if IRA
is just doing a poor job.
>From gcc-bugs-return-553196-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 05:42:09 2017
Return-Path: <gcc-bugs-return-553196-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73330 invoked by alias); 7 Feb 2017 05:42: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 73174 invoked by uid 48); 7 Feb 2017 05:41:48 -0000
From: "kargl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/78152] [6/7 Regression] coarray and associate
Date: Tue, 07 Feb 2017 05:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kargl 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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78152-4-Tey5Ou7EQV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78152-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78152-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00728.txt.bz2
Content-length: 1169

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

--- Comment #12 from kargl at gcc dot gnu.org ---
(In reply to Steve Kargl from comment #10)
> On Wed, Nov 02, 2016 at 03:39:58PM +0000, physiker at toast2 dot net wrote:
> > 
> > Ifort version 17 (linux) supports coarrays as selectors in an associate
> > construct: 
> > >ifort -o bug bug.f90 -warn all -check all -coarray
> > >./bug
> > >echo $?
> > 0
> > >ifort -v
> > ifort version 17.0
> > 
> 
> According the standard (at least under my interpretation
> of the standard) it should only support coarray as a
> selector under very limited conditions.  I have been in
> contact with a member of J3 and sent him an interpretation
> request.  Your code should compile because entities in a
> main program implicitly have the SAVE attribute.  Changing
> your code to a subroutine removes the implicit SAVE.  In
> that case, none of the conditions in F2008 C526 are met,
> and ifort is required to issue an error.

I have been informed that J3 will not prepare another
corrigendum for Fortran 2008.  J3 concluded that this
issue is a defect in Fortran 2008 and have prepared a
correction for Fortran 2015.
>From gcc-bugs-return-553197-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 07:38:38 2017
Return-Path: <gcc-bugs-return-553197-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99969 invoked by alias); 7 Feb 2017 07:38: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 97159 invoked by uid 48); 7 Feb 2017 07:38:24 -0000
From: "vehre at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79229] [7 Regression] ICE in gfc_trans_assignment_1 with -fcheck=mem
Date: Tue, 07 Feb 2017 07:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vehre at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: vehre at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-79229-4-Js9xCqtWpp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79229-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79229-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00729.txt.bz2
Content-length: 618

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

vehre at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
           Assignee|unassigned at gcc dot gnu.org      |vehre at gcc dot gnu.org

--- Comment #4 from vehre at gcc dot gnu.org ---
This is not a regression, because the error was present all the time, but is
only shown by the recent patches.

Patch available at:

https://gcc.gnu.org/ml/fortran/2017-02/msg00043.html

Waiting for review.
>From gcc-bugs-return-553198-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 07:49:35 2017
Return-Path: <gcc-bugs-return-553198-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71847 invoked by alias); 7 Feb 2017 07:49: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 71665 invoked by uid 55); 7 Feb 2017 07:49:22 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/64081] [5/6/7 Regression] r217827 prevents RTL loop unroll
Date: Tue, 07 Feb 2017 07:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenther at suse dot de
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64081-4-lihsOS8AYV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00730.txt.bz2
Content-length: 3842

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

--- Comment #46 from rguenther at suse dot de <rguenther at suse dot de> ---
On Mon, 6 Feb 2017, aldyh at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64081
> 
> --- Comment #45 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
> Created attachment 40683
>   --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40683&action=edit
> reduced testcase that exhibits problem on a cross build (function crapola)
> 
> This pre-processed source is miscompiled by the stage1 compiler building the
> stage2 compiler.  I have been able to abstract the problem to a function
> crapola() in the attachment.  This function was extracted from
> build_pred_graph() in tree-ssa-structalias.c:
> 
> void crapola()
> {
>   unsigned int j;
>   for (j = 1; j < (varmap).length (); j++)
>     {
>       if (!get_varinfo (j)->is_special_var)
>  bitmap_set_bit (graph->direct_nodes, j);
>     }
> }
> 
> With attachment 40673, one can build a Linux cross compiler on top of r226811
> and see the difference in compiling this testcase with and without the changes
> to loop-iv.c (--target=powerpc-ibm-aix7.2.0.0 and compiling the testcase with
> -O2).
> 
> Now...could someone please double check my logic here?
> 
> The problem here is that the above function gets two parallel counters for 'j'
> that IMO are not kept in sync:
> 
> ._Z7crapolav:
> LFB..4689:
>         lwz 9,LC..184(2)
>         lwz 8,0(9)
>         cmpwi 7,8,0
>         beqlr 7
>         lwz 5,4(8)      ;; r5 = varmap.length()
>         cmplwi 7,5,1
>         blelr- 7
>         addi 7,5,-1     ;; r7 = varmap.length() - 1
>         lwz 9,LC..185(2)
>         addi 8,8,8
>         mtctr 7         ;; CTR = varmap.length() - 1
>         li 10,1         ;; r10 = j = 1
>         lwz 3,0(9)
>         li 4,1
>         .align 4
> L..1471:
>         lwzu 9,4(8)     ;; We read here once too many times and BOOM!
>         lwz 9,4(9)
>         andis. 7,9,0x4000  ;; twiddling to get is_special_var
>         bne 0,L..1472      ;; jump to problematic loop if is_special_var != 0
>         lwz 6,52(3)
>         lwz 7,0(6)
>         cmpwi 7,7,0
>         bne- 7,L..1479
>         rlwinm 9,10,29,3,29
>         rlwinm 7,10,0,27,31
>         add 9,6,9
>         addi 10,10,1    ;; r10++; (j++)
>         lwz 6,12(9)
>         cmplw 7,5,10    ;; cr7 = compare(varmap.length(), j)
>         slw 7,4,7       ;; (NOTE: This is r7 *NOT* cr7)
>         or 7,6,7        ;; This is just code updating the bitmap.
>         stw 7,12(9)
>         bne+ 7,L..1471  ;; loop on cr7 which should compare "j != length"
>                         ;; BOO!!!  we don't keep CTR in sync!!!
>         blr
>         .align 4
> L..1472:
>         addi 10,10,1    ;; r10++; (we keep r10/j in sync here)
>         bdnz L..1471    ;; loop on CTR while keeping r10/j in sync
>         blr
> [snip]
> 
> We keep the iteration variable 'j' in r10, which we use to compare against r5. 
> R5 is the upper bound/length.  However, we also keep a running count in PPC's
> counter (CTR).  This is in the snippet in L..1472.  Notice that every time we
> use the PPC counter, we also update the 'j' in r10.  However, the reverse is
> not true: when we increment j through the the snippet in L..1471, we never
> update the CTR. This may cause CTR to have an optimistic value when
> is_special_var != 0.  (That is, unless there's a magical PPC instruction I'm
> unaware of before L..1472 that decrements CTR).
> 
> All this causes one two many reads to "lwzu 9,4(8)" in the loop.
> 
> Does this make sense?  Can someone take it from here?

Sounds like sth goes wrong with (updating?) do-loop insns.

Note that in the past I successfully debugged an AIX issue with a cross
from x86_64-linux.
>From gcc-bugs-return-553199-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 07:50:55 2017
Return-Path: <gcc-bugs-return-553199-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80888 invoked by alias); 7 Feb 2017 07:50: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 80744 invoked by uid 48); 7 Feb 2017 07:50:48 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/64081] [5/6/7 Regression] r217827 prevents RTL loop unroll
Date: Tue, 07 Feb 2017 07:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: 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: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-64081-4-pqPzoINRqs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00731.txt.bz2
Content-length: 474

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

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

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

--- Comment #47 from Richard Biener <rguenth at gcc dot gnu.org> ---
CCing ppc maintainers (the powerpc issue should have been tracked in a
different PR...).
>From gcc-bugs-return-553200-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 07:51:39 2017
Return-Path: <gcc-bugs-return-553200-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 83849 invoked by alias); 7 Feb 2017 07:51:39 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 82765 invoked by uid 48); 7 Feb 2017 07:51:26 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79360] [5/6 Regression] ICE with NSDMI and enum in union
Date: Tue, 07 Feb 2017 07: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.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: ppalka at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-79360-4-Ef65QTMMEZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79360-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79360-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00732.txt.bz2
Content-length: 478

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[5/6/7 Regression] ICE with |[5/6 Regression] ICE with
                   |NSDMI and enum in union     |NSDMI and enum in union

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed on the trunk so far.
>From gcc-bugs-return-553201-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 07:56:26 2017
Return-Path: <gcc-bugs-return-553201-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93203 invoked by alias); 7 Feb 2017 07:56:26 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 92955 invoked by uid 48); 7 Feb 2017 07:56:13 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79400] New: [7 Regression] Confusing 'noexcept' suggestion on throw (X)
Date: Tue, 07 Feb 2017 07: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: 7.0.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-79400-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00733.txt.bz2
Content-length: 877

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

            Bug ID: 79400
           Summary: [7 Regression] Confusing 'noexcept' suggestion on
                    throw (X)
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

struct Bar {};
struct Foo
{
  Foo(int) throw(Bar);
};

results in

> ./cc1plus  -quiet t.C
t.C:4:12: warning: dynamic exception specifications are deprecated in C++11;
use 'noexcept' instead [-Wdeprecated]
   Foo(int) throw(Bar);
            ^~~~~

shouldn't it suggest to omit the deprecated exception specification instead? 
Using 'noexcept' in this context would be clearly wrong.
>From gcc-bugs-return-553202-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 07:56:27 2017
Return-Path: <gcc-bugs-return-553202-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93211 invoked by alias); 7 Feb 2017 07:56:26 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 93049 invoked by uid 48); 7 Feb 2017 07:56:20 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79400] [7 Regression] Confusing 'noexcept' suggestion on throw (X)
Date: Tue, 07 Feb 2017 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: 7.0.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-79400-4-QI5GjXhmsR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79400-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79400-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00734.txt.bz2
Content-length: 293

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |7.0
>From gcc-bugs-return-553203-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 08:16:47 2017
Return-Path: <gcc-bugs-return-553203-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47145 invoked by alias); 7 Feb 2017 08: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 46939 invoked by uid 48); 7 Feb 2017 08:16:33 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79399] GCC fails to compile big source at -O0
Date: Tue, 07 Feb 2017 08:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: unknown
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 cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-79399-4-Us7eTxzE2d@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79399-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79399-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00735.txt.bz2
Content-length: 2557

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-07
                 CC|                            |jakub at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
You would save a lot of pain and even could compile it at -O2 if the generator
generated many, but much smaller, functions, for such sizes it certainly pays
off.
What I see is after allocating ~ 24GB of memory ira-costs.c (init_costs) tries
to allocate 124 * 17380077 bytes, but both values are ints, so the
multiplication result is int too and is negative, while it should have
allocated just slightly over 2GB.  So the following patch should cure this,
though not sure if that is the only problem (and will see if I manage to
compile, have only 32GB in my box).

--- gcc/ira-costs.c.jj  2017-01-16 12:28:35.000000000 +0100
+++ gcc/ira-costs.c     2017-02-07 09:07:00.744696695 +0100
@@ -1704,7 +1704,7 @@ find_costs_and_classes (FILE *dump_file)
                                  process_bb_node_for_costs, NULL);

          memcpy (total_allocno_costs, costs,
-                 max_struct_costs_size * ira_allocnos_num);
+                 (size_t) max_struct_costs_size * ira_allocnos_num);
        }
       else
        {
@@ -2205,7 +2205,7 @@ static void
 init_costs (void)
 {
   init_subregs_of_mode ();
-  costs = (struct costs *) ira_allocate (max_struct_costs_size
+  costs = (struct costs *) ira_allocate ((size_t) max_struct_costs_size
                                         * cost_elements_num);
   pref_buffer = (enum reg_class *) ira_allocate (sizeof (enum reg_class)
                                                 * cost_elements_num);
@@ -2235,8 +2235,9 @@ ira_costs (void)
   allocno_p = true;
   cost_elements_num = ira_allocnos_num;
   init_costs ();
-  total_allocno_costs = (struct costs *) ira_allocate (max_struct_costs_size
-                                                      * ira_allocnos_num);
+  total_allocno_costs
+    = (struct costs *) ira_allocate ((size_t) max_struct_costs_size
+                                    * ira_allocnos_num);
   initiate_regno_cost_classes ();
   calculate_elim_costs_all_insns ();
   find_costs_and_classes (ira_dump_file);
>From gcc-bugs-return-553204-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 08:22:38 2017
Return-Path: <gcc-bugs-return-553204-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52375 invoked by alias); 7 Feb 2017 08:22: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 52228 invoked by uid 48); 7 Feb 2017 08:22:25 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79399] GCC fails to compile big source at -O0
Date: Tue, 07 Feb 2017 08:22: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trippels at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79399-4-CNlJNxRut4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79399-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79399-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00736.txt.bz2
Content-length: 590

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

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

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

--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
32GB is not enough. gcc-6 is using ~42GB on gcc112 and is still running for
over an hour...
And it is probably a good idea to use a "--enable-checking=release" compiler
for this testcase.
>From gcc-bugs-return-553205-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 08:32:39 2017
Return-Path: <gcc-bugs-return-553205-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112274 invoked by alias); 7 Feb 2017 08:32: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 111434 invoked by uid 48); 7 Feb 2017 08:32:22 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79399] GCC fails to compile big source at -O0
Date: Tue, 07 Feb 2017 08:32: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: unknown
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:
Message-ID: <bug-79399-4-o78HPvLHNk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79399-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79399-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00737.txt.bz2
Content-length: 1003

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Ok, then I guess I'll just bootstrap/regtest my patch, it is a way forward
without testing it further.

Actually:
2017-02-07  Jakub Jelinek  <jakub@redhat.com>

        PR middle-end/79399
        * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
        type from int to size_t.

--- gcc/ira-int.h.jj    2017-01-01 12:45:39.000000000 +0100
+++ gcc/ira-int.h       2017-02-07 09:29:32.694102809 +0100
@@ -782,7 +782,7 @@ struct target_ira_int {

   /* Initialized once.  It is a maximal possible size of the allocated
      struct costs.  */
-  int x_max_struct_costs_size;
+  size_t x_max_struct_costs_size;

   /* Allocated and initialized once, and used to initialize cost values
      for each insn.  */

is better, this field is followed by a pointer, so it just uses a padding on
64-bit hosts for something useful and on 32-bit hosts won't make any changes.
>From gcc-bugs-return-553206-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 08:39:27 2017
Return-Path: <gcc-bugs-return-553206-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125015 invoked by alias); 7 Feb 2017 08:39: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 122450 invoked by uid 48); 7 Feb 2017 08:39:14 -0000
From: "babokin at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79399] GCC fails to compile big source at -O0
Date: Tue, 07 Feb 2017 08:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: babokin 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-79399-4-DJk0ialpoZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79399-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79399-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00738.txt.bz2
Content-length: 348

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

--- Comment #4 from Dmitry Babokin <babokin at gmail dot com> ---
The purpose of the generator is to break a compiler, that's why it's a single
function in this case, but not many. Though with smaller functions we break
compilers too.

This is the generator: https://github.com/01org/yarpgen
>From gcc-bugs-return-553207-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 08:48:32 2017
Return-Path: <gcc-bugs-return-553207-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7689 invoked by alias); 7 Feb 2017 08:48: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 7288 invoked by uid 48); 7 Feb 2017 08:47:58 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79399] GCC fails to compile big source at -O0
Date: Tue, 07 Feb 2017 08:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: unknown
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:
Message-ID: <bug-79399-4-KroeC8nlSn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79399-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79399-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00739.txt.bz2
Content-length: 405

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Ah, ok then.  Note that e.g. vectors use unsigned int for length, so as long as
you need more than 4G elements in any vector, the game is over, but probably
testcase of this size doesn't reach that even close.  Anyway, thanks for the
report.  Can you try yourself with the #c3 patch?
>From gcc-bugs-return-553208-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 08:51:39 2017
Return-Path: <gcc-bugs-return-553208-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35018 invoked by alias); 7 Feb 2017 08:51:39 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 34845 invoked by uid 48); 7 Feb 2017 08:51:26 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79400] [7 Regression] Confusing 'noexcept' suggestion on throw (X)
Date: Tue, 07 Feb 2017 08: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.0.1
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79400-4-T82rPeN6Ej@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79400-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79400-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00740.txt.bz2
Content-length: 470

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

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

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
noexcept(false) ?
>From gcc-bugs-return-553209-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 08:51:54 2017
Return-Path: <gcc-bugs-return-553209-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35965 invoked by alias); 7 Feb 2017 08:51: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 35215 invoked by uid 48); 7 Feb 2017 08:51:41 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79396] [7 Regression] ICE (verify_flow_info failed) with -fnon-call-exceptions -O2
Date: Tue, 07 Feb 2017 08:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-79396-4-RDzGuXeyBB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79396-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79396-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00741.txt.bz2
Content-length: 391

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |7.0

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
works for me on x86_64-linux
>From gcc-bugs-return-553210-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 08:54:29 2017
Return-Path: <gcc-bugs-return-553210-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61240 invoked by alias); 7 Feb 2017 08: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 61009 invoked by uid 48); 7 Feb 2017 08:54:12 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79400] [7 Regression] Confusing 'noexcept' suggestion on throw (X)
Date: Tue, 07 Feb 2017 08: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: 7.0.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79400-4-E5a7YX8EZo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79400-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79400-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00742.txt.bz2
Content-length: 238

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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Maybe it should suggests

  Foo(int) noexcept(false);

but that's the same as omitting the exception specification?
>From gcc-bugs-return-553211-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 09:10:42 2017
Return-Path: <gcc-bugs-return-553211-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119188 invoked by alias); 7 Feb 2017 09: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 118912 invoked by uid 48); 7 Feb 2017 09:10:23 -0000
From: "babokin at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79399] GCC fails to compile big source at -O0
Date: Tue, 07 Feb 2017 09: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: babokin 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-79399-4-A2aFxaGf34@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79399-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79399-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00743.txt.bz2
Content-length: 229

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

--- Comment #6 from Dmitry Babokin <babokin at gmail dot com> ---
I've started the compilation, it should take more than an hour to finish. Will
report back when it's done.
>From gcc-bugs-return-553212-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 09:11:26 2017
Return-Path: <gcc-bugs-return-553212-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120699 invoked by alias); 7 Feb 2017 09:11: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 120478 invoked by uid 48); 7 Feb 2017 09:11:17 -0000
From: "ktkachov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/68664] [6/7 Regression] Speculative sqrt in c-ray main loop causes large slow down
Date: Tue, 07 Feb 2017 09:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ktkachov at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: ktkachov at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc assigned_to
Message-ID: <bug-68664-4-AIABbDXuYg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68664-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68664-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00744.txt.bz2
Content-length: 752

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

ktkachov at gcc dot gnu.org changed:

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

--- Comment #25 from ktkachov at gcc dot gnu.org ---
(In reply to Segher Boessenkool from comment #19)
> Fixed for PowerPC.  arm and aarch64 should probably do a similar
> implementation of the new hook; leaving the bug open for that.

Thanks, I'm testing an implementation of the hook for arm and aarch64
>From gcc-bugs-return-553213-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 09:36:51 2017
Return-Path: <gcc-bugs-return-553213-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53207 invoked by alias); 7 Feb 2017 09: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 53128 invoked by uid 48); 7 Feb 2017 09:36:37 -0000
From: "ktkachov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79282] [7 Regresion] FAIL: gcc.target/arm/neon-for-64bits-1.c scan-assembler-times vshr 0
Date: Tue, 07 Feb 2017 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: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ktkachov 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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79282-4-LlkkvEf1GI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79282-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79282-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00745.txt.bz2
Content-length: 640

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

--- Comment #5 from ktkachov at gcc dot gnu.org ---
I suspect just removing the last two alternatives in the pattern is the way to
go.

They are just copies of the first two but enabled for mneon-for-64bits.
If I remove them the test passes for the normal options (doesn't use a NEON
shift) but for -mneon-for-64bits still uses the NEON instruction as intended.
For the -mneon-for-64bits case I think we should let the register allocator
make the decision on which alternatives to use rather than duplicating them and
enabling/disabling them using attributes for tuning purposes.
>From gcc-bugs-return-553214-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 09:44:06 2017
Return-Path: <gcc-bugs-return-553214-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62395 invoked by alias); 7 Feb 2017 09:44: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 61909 invoked by uid 48); 7 Feb 2017 09:43:53 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79401] New: [7 Regression] Protected inheriting ctor
Date: Tue, 07 Feb 2017 09: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: 7.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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-79401-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00746.txt.bz2
Content-length: 1001

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

            Bug ID: 79401
           Summary: [7 Regression] Protected inheriting ctor
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

class B
{
protected:
  B (int, int);
};
class C : public B
{
protected:
  using B::B;
};
class A : public C
{
  A (char *);
};
A::A (char *) : C (0, 0)
{
}

is rejected starting with r241765 :
rh1419687.C: In constructor ‘A::A(char*)’:
rh1419687.C:15:24: error: ‘B::B(int, int)’ is protected within this context
 A::A (char *) : C (0, 0)
                        ^
rh1419687.C:4:3: note: declared protected here
   B (int, int);
   ^
it is accepted with -fno-new-inheriting-ctors
clang++ 4.0.0 (trunk 291659) accepts it and claims to implement P0136R1.
>From gcc-bugs-return-553215-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 09:44:32 2017
Return-Path: <gcc-bugs-return-553215-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 63629 invoked by alias); 7 Feb 2017 09:44: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 63533 invoked by uid 48); 7 Feb 2017 09:44:23 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79401] [7 Regression] Protected inheriting ctor
Date: Tue, 07 Feb 2017 09: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: 7.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: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords priority bug_status cf_reconfirmed_on cc target_milestone everconfirmed
Message-ID: <bug-79401-4-AVSXGaS2oc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79401-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79401-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00747.txt.bz2
Content-length: 643

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
           Priority|P3                          |P1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-07
                 CC|                            |jason at gcc dot gnu.org
   Target Milestone|---                         |7.0
     Ever confirmed|0                           |1
>From gcc-bugs-return-553216-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 09:45:21 2017
Return-Path: <gcc-bugs-return-553216-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65108 invoked by alias); 7 Feb 2017 09:45: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 64835 invoked by uid 48); 7 Feb 2017 09:45:02 -0000
From: "ktkachov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/78421] [7 Regression] vect-strided-a-u8-i2-gap.c fails on armeb
Date: Tue, 07 Feb 2017 09:45:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ktkachov at gcc dot gnu.org
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-78421-4-RWB5lRTA0c@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78421-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78421-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00748.txt.bz2
Content-length: 706

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

ktkachov at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |ktkachov at gcc dot gnu.org
         Resolution|FIXED                       |---

--- Comment #4 from ktkachov at gcc dot gnu.org ---
I still see the test failing on arm-none-eabi when testing with, for example:
-mthumb/-march=armv8-a/-mfpu=crypto-neon-fp-armv8/-mfloat-abi=hard

Christophe also has a report:
https://gcc.gnu.org/ml/gcc-patches/2017-01/msg01806.html
>From gcc-bugs-return-553217-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 09:50:17 2017
Return-Path: <gcc-bugs-return-553217-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 104005 invoked by alias); 7 Feb 2017 09: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 98519 invoked by uid 48); 7 Feb 2017 09:50:03 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79396] [7 Regression] ICE (verify_flow_info failed) with -fnon-call-exceptions -O2
Date: Tue, 07 Feb 2017 09:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79396-4-noDU9OEZ45@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79396-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79396-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00749.txt.bz2
Content-length: 494

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

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> ---
Can't reproduce either.  Can you please attach preprocessed source, if it is
something related to your libc headers?
>From gcc-bugs-return-553218-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 10:00:54 2017
Return-Path: <gcc-bugs-return-553218-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1281 invoked by alias); 7 Feb 2017 10:00: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 1082 invoked by uid 48); 7 Feb 2017 10:00:40 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/60615] bad location in error from initializer
Date: Tue, 07 Feb 2017 10: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: diagnostic
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-60615-4-mUHscqWPcC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60615-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60615-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00750.txt.bz2
Content-length: 624

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

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

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

--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I think I did, but it was rejected.  We'll have to add some USE_CONSTANT /
USE_DECL wrapper expressions that carry location.  Not trivial.  Hopefully to
be fixed in GCC 8.
>From gcc-bugs-return-553219-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 10:23:40 2017
Return-Path: <gcc-bugs-return-553219-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70183 invoked by alias); 7 Feb 2017 10:23: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 69924 invoked by uid 48); 7 Feb 2017 10:23:25 -0000
From: "babokin at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79399] GCC fails to compile big source at -O0
Date: Tue, 07 Feb 2017 10: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: babokin 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-79399-4-swQsZpvJS2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79399-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79399-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00751.txt.bz2
Content-length: 998

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

--- Comment #7 from Dmitry Babokin <babokin at gmail dot com> ---
It crashed.
> /usr/bin/time --format="Max %M kb\nreal %E\nuser %U\nsys%S" g++ -std=c++11 -w -O0 -march=nehalem -o gcc_no_opt_func.o -c func.cpp
func.cpp: In function ‘void foo()’:
func.cpp:26656:1: internal compiler error: Segmentation fault
 }
 ^
0xd62f9f crash_signal
        ../../gcc_svn/gcc/toplev.c:333
0xbb902e find_costs_and_classes
        ../../gcc_svn/gcc/ira-costs.c:1697
0xbba119 ira_costs()
        ../../gcc_svn/gcc/ira-costs.c:2242
0xbb3569 ira_build()
        ../../gcc_svn/gcc/ira-build.c:3420
0xba9d42 ira
        ../../gcc_svn/gcc/ira.c:5236
0xba9d42 execute
        ../../gcc_svn/gcc/ira.c:5541
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
Max 30306372 kb
real 40:09.53
user 2349.01
sys53.94
>From gcc-bugs-return-553220-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 10:42:35 2017
Return-Path: <gcc-bugs-return-553220-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98424 invoked by alias); 7 Feb 2017 10:42: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 98312 invoked by uid 48); 7 Feb 2017 10:42:26 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79399] GCC fails to compile big source at -O0
Date: Tue, 07 Feb 2017 10: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: 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: 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-79399-4-8H3lQwBa5l@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79399-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79399-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00752.txt.bz2
Content-length: 219

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

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
/* It is the current size of struct costs.  */
static int struct_costs_size;


so similar issue.
>From gcc-bugs-return-553221-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 10:47:09 2017
Return-Path: <gcc-bugs-return-553221-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105217 invoked by alias); 7 Feb 2017 10:47: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 104932 invoked by uid 48); 7 Feb 2017 10:46:57 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79399] GCC fails to compile big source at -O0
Date: Tue, 07 Feb 2017 10:47: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: unknown
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: attachments.created
Message-ID: <bug-79399-4-Qjpje3IWK2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79399-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79399-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00753.txt.bz2
Content-length: 247

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

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 40684
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40684&action=edit
gcc7-pr79399.patch

Indeed.
>From gcc-bugs-return-553222-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 10:53:58 2017
Return-Path: <gcc-bugs-return-553222-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 124926 invoked by alias); 7 Feb 2017 10: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 124769 invoked by uid 48); 7 Feb 2017 10:53:45 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/79388] [6/7 Regression] wrong code with -O -fno-tree-coalesce-vars
Date: Tue, 07 Feb 2017 10: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: 7.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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79388-4-ySZF0CdXZT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79388-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79388-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00754.txt.bz2
Content-length: 2485

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Seems this goes wrong during combine.
Before it is able to figure out that (p & 0xfffe) is identical to (p & 0xfffe)
% 0xffff (correct), and so we get:
(note 4 0 2 2 [bb 2] NOTE_INSN_BASIC_BLOCK)
(insn 2 4 3 2 (set (reg/v:SI 91 [ p ])
        (reg:SI 5 di [ p ])) "pr79388.c":8 82 {*movsi_internal}
     (expr_list:REG_DEAD (reg:SI 5 di [ p ])
        (nil)))
(note 3 2 6 2 NOTE_INSN_FUNCTION_BEG)
(note 6 3 7 2 NOTE_INSN_DELETED)
(note 7 6 9 2 NOTE_INSN_DELETED)
(note 9 7 11 2 NOTE_INSN_DELETED)
(note 11 9 12 2 NOTE_INSN_DELETED)
(note 12 11 14 2 NOTE_INSN_DELETED)
(note 14 12 15 2 NOTE_INSN_DELETED)
(note 15 14 16 2 NOTE_INSN_DELETED)
(note 16 15 18 2 NOTE_INSN_DELETED)
(note 18 16 20 2 NOTE_INSN_DELETED)
(note 20 18 21 2 NOTE_INSN_DELETED)
(insn 21 20 22 2 (parallel [
            (set (reg/v:SI 91 [ p ])
                (and:SI (reg/v:SI 91 [ p ])
                    (const_int 65534 [0xfffe])))
            (clobber (reg:CC 17 flags))
        ]) "pr79388.c":11 389 {*andsi_1}
     (expr_list:REG_UNUSED (reg:CC 17 flags)
        (nil)))
(insn 22 21 23 2 (set (mem/c:SI (symbol_ref:DI ("c") [flags 0x2] <var_decl
0x7ffff7ff5ea0 c>) [1 c+0 S4 A32])
        (reg/v:SI 91 [ p ])) "pr79388.c":12 82 {*movsi_internal}
     (nil))
(insn 23 22 24 2 (set (reg:SI 103 [ a ])
        (mem/c:SI (symbol_ref:DI ("a") [flags 0x2] <var_decl 0x7ffff7ff5e10 a>)
[1 a+0 S4 A32])) "pr79388.c":13 82 {*movsi_internal}
     (nil))
(insn 24 23 29 2 (parallel [
            (set (reg:SI 102)
                (plus:SI (reg/v:SI 91 [ p ])
                    (reg:SI 103 [ a ])))
            (clobber (reg:CC 17 flags))
        ]) "pr79388.c":13 215 {*addsi_1}
     (expr_list:REG_DEAD (reg:SI 103 [ a ])
        (expr_list:REG_DEAD (reg/v:SI 91 [ p ])
            (expr_list:REG_UNUSED (reg:CC 17 flags)
                (expr_list:REG_EQUAL (plus:SI (reg/v:SI 91 [ p ])
                        (mem/c:SI (symbol_ref:DI ("a") [flags 0x2] <var_decl
0x7ffff7ff5e10 a>) [1 a+0 S4 A32]))
                    (nil))))))
(insn 29 24 30 2 (set (reg/i:SI 0 ax)
        (reg:SI 102)) "pr79388.c":14 82 {*movsi_internal}
     (expr_list:REG_DEAD (reg:SI 102)
        (nil)))
(insn 30 29 0 2 (use (reg/i:SI 0 ax)) "pr79388.c":14 -1
     (nil))

But then try_combine is called with i3 24 and i2 23 and for some reason
turns that into a load from the mem alone (as if (reg:SI 91) is 0).
>From gcc-bugs-return-553223-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 10:57:16 2017
Return-Path: <gcc-bugs-return-553223-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28251 invoked by alias); 7 Feb 2017 10:57: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 28136 invoked by uid 48); 7 Feb 2017 10:57:03 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79400] [7 Regression] Confusing 'noexcept' suggestion on throw (X)
Date: Tue, 07 Feb 2017 10: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: 7.0.1
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-79400-4-3XtOYnn7FA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79400-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79400-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00755.txt.bz2
Content-length: 600

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-07
     Ever confirmed|0                           |1

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #2)
> but that's the same as omitting the exception specification?

In this context, yes.
>From gcc-bugs-return-553224-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 10:59:37 2017
Return-Path: <gcc-bugs-return-553224-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45755 invoked by alias); 7 Feb 2017 10:59: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 33816 invoked by uid 48); 7 Feb 2017 10:59:22 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79394] Possible rejects-valid problem
Date: Tue, 07 Feb 2017 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: 7.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek 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-79394-4-aeDTg84f98@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79394-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79394-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00756.txt.bz2
Content-length: 475

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

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

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

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
The testcase is invalid because foo isn't defined.
>From gcc-bugs-return-553225-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 11:00:51 2017
Return-Path: <gcc-bugs-return-553225-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48348 invoked by alias); 7 Feb 2017 11:00: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 48060 invoked by uid 48); 7 Feb 2017 11:00:35 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/79388] [6/7 Regression] wrong code with -O -fno-tree-coalesce-vars
Date: Tue, 07 Feb 2017 11:00:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 7.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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79388-4-YYOAXgfZNl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79388-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79388-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00757.txt.bz2
Content-length: 205

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
This happens because apparently nonzero_bits ((reg/v:SI 91 [ p ]), SImode)
returns 0.
>From gcc-bugs-return-553226-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 11:16:40 2017
Return-Path: <gcc-bugs-return-553226-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121992 invoked by alias); 7 Feb 2017 11:16: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 121815 invoked by uid 48); 7 Feb 2017 11:16:28 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/79388] [6/7 Regression] wrong code with -O -fno-tree-coalesce-vars
Date: Tue, 07 Feb 2017 11: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: 7.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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79388-4-2AXmPSPWFA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79388-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79388-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00758.txt.bz2
Content-length: 2656

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

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

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(gdb) p debug_rtx (reg_stat.m_vec.m_vecdata[91].last_set)
(insn 21 20 22 2 (parallel [
            (set (reg/v:SI 91 [ p ])
                (and:SI (reg/v:SI 91 [ p ])
                    (const_int 65534 [0xfffe])))
            (clobber (reg:CC 17 flags))
        ]) "pr79388.c":11 389 {*andsi_1}
     (expr_list:REG_UNUSED (reg:CC 17 flags)
        (nil)))

looks correct, but

(gdb) p debug_rtx (reg_stat.m_vec.m_vecdata[91].last_set_value)
(and:SI (const_int 0 [0])
    (const_int 65534 [0xfffe]))

looks wrong.

The problem is that during:
#1  0x0000000001849ddc in record_value_for_reg (reg=0x7fffefc124b0,
insn=0x7fffefad2700, value=0x7fffefc12570) at ../../gcc/combine.c:12959
#2  0x000000000184a105 in record_dead_and_set_regs_1 (dest=0x7fffefc124b0,
setter=0x7fffefc12588, data=0x7fffefad2700)
    at ../../gcc/combine.c:13059
#3  0x0000000000e16e6f in note_stores (x=0x7fffefc12588, fun=0x184a052
<record_dead_and_set_regs_1(rtx, const_rtx, void*)>, data=0x7fffefad2700)
    at ../../gcc/rtlanal.c:1846
#4  0x0000000000e16eba in note_stores (x=0x7fffefbefa10, fun=0x184a052
<record_dead_and_set_regs_1(rtx, const_rtx, void*)>, data=0x7fffefad2700)
    at ../../gcc/rtlanal.c:1851
#5  0x000000000184a48a in record_dead_and_set_regs (insn=0x7fffefad2700) at
../../gcc/combine.c:13140
on insn 21 we have dest (reg/v:SI 91 [ p ]) and value (and:SI (reg/v:SI 91 [ p
]) (const_int 65534 [0xfffe])), and get_last_value on the REG 91 is wrong:
(gdb) p debug_rtx (reg_stat.m_vec.m_vecdata[91].last_set_value)
(const_int 0 [0])
$122 = void
(gdb) p debug_rtx (reg_stat.m_vec.m_vecdata[91].last_set)
(note 16 15 18 2 NOTE_INSN_DELETED)

insn 16 is former:
(insn 16 15 18 2 (parallel [
            (set (reg/v:SI 91 [ p ])
                (lshiftrt:SI (subreg:SI (reg:DI 98) 0)
                    (const_int 15 [0xf])))
            (clobber (reg:CC 17 flags))
        ]) "pr79388.c":11 542 {*lshrsi3_1}
     (expr_list:REG_DEAD (reg:DI 98)
        (expr_list:REG_UNUSED (reg:CC 17 flags)
            (expr_list:REG_EQUAL (udiv:SI (reg:SI 89 [ _7 ])
                    (const_int 65535 [0xffff]))
                (nil)))))

so it seems something forgot to invalidate the last value or something similar.
REG_N_SETS (91) is 3.
Segher, any ideas?
>From gcc-bugs-return-553229-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 11:23:39 2017
Return-Path: <gcc-bugs-return-553229-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7867 invoked by alias); 7 Feb 2017 11:23: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 7115 invoked by uid 48); 7 Feb 2017 11:23:25 -0000
From: "dhowells at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79404] New: h8300: ICE at gcc/ira.c:5541 whilst building libgcc
Date: Tue, 07 Feb 2017 11:23: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.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dhowells at redhat 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-79404-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00761.txt.bz2
Content-length: 3537

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

            Bug ID: 79404
           Summary: h8300: ICE at gcc/ira.c:5541 whilst building libgcc
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dhowells at redhat dot com
  Target Milestone: ---

Created attachment 40686
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40686&action=edit
Test code

When building a cross compiler for h8300, an ICE occurs whilst it is building
libgcc:

/data/fedora/cross-gcc/ice.i: In function ‘__lshrdi3’:
/data/fedora/cross-gcc/ice.i:80:1: internal compiler error: Segmentation fault
 }
 ^
0x92805f crash_signal
        ../../gcc-7.0.1-20170204/gcc/toplev.c:333
0x7e13fb allocno_copy_cost_saving
        ../../gcc-7.0.1-20170204/gcc/ira-color.c:2764
0x7e9f83 improve_allocation
        ../../gcc-7.0.1-20170204/gcc/ira-color.c:2837
0x7e9f83 color_allocnos
        ../../gcc-7.0.1-20170204/gcc/ira-color.c:3141
0x7eb5b7 color_pass
        ../../gcc-7.0.1-20170204/gcc/ira-color.c:3250
0x7d7465 ira_traverse_loop_tree(bool, ira_loop_tree_node*, void
(*)(ira_loop_tree_node*), void (*)(ira_loop_tree_node*))
        ../../gcc-7.0.1-20170204/gcc/ira-build.c:1781
0x7e6c67 do_coloring
        ../../gcc-7.0.1-20170204/gcc/ira-color.c:3401
0x7e6c67 color
        ../../gcc-7.0.1-20170204/gcc/ira-color.c:4771
0x7e6c67 ira_color()
        ../../gcc-7.0.1-20170204/gcc/ira-color.c:4886
0x7d0ce3 ira
        ../../gcc-7.0.1-20170204/gcc/ira.c:5249
0x7d0ce3 execute
        ../../gcc-7.0.1-20170204/gcc/ira.c:5541


gcc is configured as:

// Target: h8300-elf
// Configured with: ../gcc-7.0.1-20170204/configure --bindir=/usr/bin
--build=x86_64-redhat-linux-gnu --datadir=/usr/share --disable-decimal-float
--disable-dependency-tracking --disable-gold --disable-libgcj --disable-libgomp
--disable-libmpx --disable-libquadmath --disable-libssp
--disable-libunwind-exceptions --disable-shared --disable-silent-rules
--disable-sjlj-exceptions --disable-threads
--with-ld=/usr/bin/h8300-linux-gnu-ld --enable-__cxa_atexit
--enable-checking=release --enable-gnu-unique-object --enable-initfini-array
--enable-languages=c,c++ --enable-linker-build-id --enable-lto --enable-nls
--enable-obsolete --enable-plugin --enable-targets=all --exec-prefix=/usr
--host=x86_64-redhat-linux-gnu --includedir=/usr/include
--infodir=/usr/share/info --libexecdir=/usr/libexec --localstatedir=/var
--mandir=/usr/share/man --prefix=/usr --program-prefix=h8300-linux-gnu-
--sbindir=/usr/sbin --sharedstatedir=/var/lib --sysconfdir=/etc
--target=h8300-elf --with-bugurl=http://bugzilla.redhat.com/bugzilla/
--with-gcc-major-version-only --with-isl --with-newlib
--with-plugin-ld=/usr/bin/h8300-linux-gnu-ld
--with-sysroot=/usr/h8300-linux-gnu/sys-root --with-system-libunwind
--with-system-zlib --without-headers --with-linker-hash-style=gnu
// Thread model: single
// gcc version 7.0.1 20170204 (Red Hat Cross 7.0.1-1) (GCC)

using binutils-2.27 cross-built for target h8300-elf.

The command to build the test source is:

/data/fedora/cross-gcc/gcc-7.0.1-20170204/h8300-linux-gnu/gcc/xgcc \
        -B/data/fedora/cross-gcc/gcc-7.0.1-20170204/h8300-linux-gnu/gcc/ \
        -B/usr/h8300-elf/bin/ \
        -B/usr/h8300-elf/lib/ \
        -O2 \
        -c /data/fedora/cross-gcc/ice.i \
        -o _lshrdi3.o
>From gcc-bugs-return-553227-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 11:23:18 2017
Return-Path: <gcc-bugs-return-553227-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6192 invoked by alias); 7 Feb 2017 11:23: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 6081 invoked by uid 48); 7 Feb 2017 11:23:03 -0000
From: "stefano.zaghi at cnr dot it" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79402] New: ICE with submodules: module procedure interface defined in parent module
Date: Tue, 07 Feb 2017 11:23: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: 6.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: stefano.zaghi at cnr dot it
X-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-79402-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00759.txt.bz2
Content-length: 1215

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

            Bug ID: 79402
           Summary: ICE with submodules: module procedure interface
                    defined in parent module
           Product: gcc
           Version: 6.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: stefano.zaghi at cnr dot it
  Target Milestone: ---

Created attachment 40685
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40685&action=edit
MCVE of ICE with submodule

Dear gfortran team,

I am writing on the behalf of Chris Coutinho who cannot create a bugzilla
account.

GNU gfortran generates and ICE when a submodule implementation of a procedure
inherits its signature from the parent module by means of the "module
procedure" syntax.

In the "gfortran_ice_submodule.f90" file attached there is a minimal example
raising the ICE (Arch Linux, 4.8.13-1-ARCH #1 SMP PREEMPT) with both 6.3.1 and
development trunk 7.0.0 (I have not yet installed 7.0.1 version). If you
comment lines 24-26 and un-comment lines 17-22 the program runs as expected.

Our best regards.

Stefano
>From gcc-bugs-return-553228-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 11:23:18 2017
Return-Path: <gcc-bugs-return-553228-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6201 invoked by alias); 7 Feb 2017 11:23: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 6132 invoked by uid 48); 7 Feb 2017 11:23:10 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/79403] New: Installation of Ada compiler gets permissions wrong
Date: Tue, 07 Feb 2017 11:23: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget
Message-ID: <bug-79403-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00760.txt.bz2
Content-length: 2057

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

            Bug ID: 79403
           Summary: Installation of Ada compiler gets permissions wrong
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vogt at linux dot vnet.ibm.com
  Target Milestone: ---
              Host: s390x
            Target: s390x

"make install" of the Ada compiler installs the contests of the adainclude and
adalib directories with incorrect permissions. The installed compiler is only
usable by the user who installed it:

  $ su - root
  $ cd gcc/build
  # configure and build the compiler using e.g. --prefix=/usr/local
  $ umask 022
  $ make install
  $ cd /usr/local/lib/gcc/s390x-ibm-linux-gnu/6.3.0
  $ ls -l adainclude | head -10
total 15088
-r--r----- 1 root root   2830 Feb  3 13:56 a-assert.adb
-r--r----- 1 root root   3742 Feb  3 13:56 a-assert.ads
-r--r----- 1 root root   3126 Feb  3 13:56 a-astaco.adb
-r--r----- 1 root root   2111 Feb  3 13:56 a-astaco.ads
-r--r----- 1 root root  21464 Feb  3 13:56 a-btgbso.adb
-r--r----- 1 root root   5460 Feb  3 13:56 a-btgbso.ads
-r--r----- 1 root root   4345 Feb  3 13:56 a-calari.adb
-r--r----- 1 root root   3420 Feb  3 13:56 a-calari.ads
-r--r----- 1 root root   5341 Feb  3 13:56 a-calcon.adb
  $ ls -l adalib | head -10 
total 43416
-r--r----- 1 root root     1702 Feb  3 14:31 a-assert.ali
-r--r----- 1 root root    14582 Feb  3 14:31 a-btgbso.ali
-r--r----- 1 root root     2587 Feb  3 14:31 a-calari.ali
-r--r----- 1 root root     4169 Feb  3 14:31 a-calcon.ali
-r--r----- 1 root root     3224 Feb  3 14:31 a-caldel.ali
-r--r----- 1 root root    19503 Feb  3 14:31 a-calend.ali
-r--r----- 1 root root    14967 Feb  3 14:31 a-calfor.ali
-r--r----- 1 root root     1985 Feb  3 14:31 a-catizo.ali
-r--r----- 1 root root    38194 Feb  3 14:31 a-cbdlli.ali

For some reason, world read access is removed by the installation routines.
>From gcc-bugs-return-553230-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 11:24:51 2017
Return-Path: <gcc-bugs-return-553230-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15908 invoked by alias); 7 Feb 2017 11:24: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 15735 invoked by uid 48); 7 Feb 2017 11:24:34 -0000
From: "dhowells at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79404] h8300: ICE at gcc/ira.c:5541 whilst building libgcc
Date: Tue, 07 Feb 2017 11: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dhowells at redhat 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-79404-4-TrDty1NgMv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79404-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79404-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00762.txt.bz2
Content-length: 182

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

--- Comment #1 from dhowells at redhat dot com <dhowells at redhat dot com> ---
gcc is SVNREV 245184 plus the Fedora patches.
>From gcc-bugs-return-553231-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 11:25:11 2017
Return-Path: <gcc-bugs-return-553231-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16877 invoked by alias); 7 Feb 2017 11:25: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 16635 invoked by uid 48); 7 Feb 2017 11:24:58 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/69139] [4.9/5/6 Regression] deduction failure with trailing return type in function template argument
Date: Tue, 07 Feb 2017 11: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.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-69139-4-vxt27DtkQF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69139-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69139-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00763.txt.bz2
Content-length: 291

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.9.4                       |6.0
>From gcc-bugs-return-553232-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 11:28:04 2017
Return-Path: <gcc-bugs-return-553232-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22052 invoked by alias); 7 Feb 2017 11: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 21386 invoked by uid 48); 7 Feb 2017 11:27:51 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/79388] [6/7 Regression] wrong code with -O -fno-tree-coalesce-vars
Date: Tue, 07 Feb 2017 11:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 7.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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79388-4-LKswaRuBNz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79388-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79388-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00764.txt.bz2
Content-length: 181

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
At -O2 vrp would normally optimize this already much earlier.
>From gcc-bugs-return-553233-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 11:29:54 2017
Return-Path: <gcc-bugs-return-553233-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25923 invoked by alias); 7 Feb 2017 11:29: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 25258 invoked by uid 55); 7 Feb 2017 11:29:40 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79256] [7 Regression] FAIL: gcc.dg/vect/pr25413a.c execution test
Date: Tue, 07 Feb 2017 11: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: 7.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: P1
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79256-4-AgTf0KMh6N@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79256-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79256-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00765.txt.bz2
Content-length: 2928

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

--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Tue Feb  7 11:29:06 2017
New Revision: 245245

URL: https://gcc.gnu.org/viewcvs?rev=245245&root=gcc&view=rev
Log:
2017-02-07  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/79256
        PR middle-end/79278
        * builtins.c (get_object_alignment_2): Use min_align_of_type
        to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
        and ADJUST_FIELD_ALIGN.

        * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
        type parameter.
        * doc/tm.texi: Regenerate.
        * stor-layout.c (layout_decl): Adjust.
        (update_alignment_for_field): Likewise.
        (place_field): Likewise.
        (min_align_of_type): Likewise.
        * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
        * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
        * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
        * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
        * config/frv/frv.c (frv_adjust_field_align): Likewise.
        * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
        * config/i386/i386.c (x86_field_alignment): Likewise.
        * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
        * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
        * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
        * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
        * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
        * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
         Likewise.

        go/
        * go-backend.c (go_field_alignment): Adjust.

        libobjc/
        * encoding.c (objc_layout_structure_next_member): Adjust
        ADJUST_FIELD_ALIGN usage.

        Revert
        2017-01-30  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/79256
        * targhooks.c (default_builtin_vector_alignment_reachable): Honor
        BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
        alignment on TYPE.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/builtins.c
    trunk/gcc/config/arc/arc.h
    trunk/gcc/config/epiphany/epiphany.c
    trunk/gcc/config/epiphany/epiphany.h
    trunk/gcc/config/frv/frv.c
    trunk/gcc/config/frv/frv.h
    trunk/gcc/config/i386/i386.c
    trunk/gcc/config/i386/i386.h
    trunk/gcc/config/rs6000/aix.h
    trunk/gcc/config/rs6000/darwin.h
    trunk/gcc/config/rs6000/freebsd64.h
    trunk/gcc/config/rs6000/linux64.h
    trunk/gcc/config/rs6000/rs6000.c
    trunk/gcc/config/rs6000/sysv4.h
    trunk/gcc/doc/tm.texi
    trunk/gcc/doc/tm.texi.in
    trunk/gcc/go/ChangeLog
    trunk/gcc/go/go-backend.c
    trunk/gcc/stor-layout.c
    trunk/gcc/targhooks.c
    trunk/libobjc/ChangeLog
    trunk/libobjc/encoding.c
>From gcc-bugs-return-553234-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 11:29:55 2017
Return-Path: <gcc-bugs-return-553234-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25967 invoked by alias); 7 Feb 2017 11:29: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 25435 invoked by uid 55); 7 Feb 2017 11:29:40 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79278] get_object_alignment and RTL expansion are wrong for ADJUST_FIELD_ALIGN using targets/types
Date: Tue, 07 Feb 2017 11:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79278-4-1VellHEQdu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79278-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79278-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00766.txt.bz2
Content-length: 2928

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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Tue Feb  7 11:29:06 2017
New Revision: 245245

URL: https://gcc.gnu.org/viewcvs?rev=245245&root=gcc&view=rev
Log:
2017-02-07  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/79256
        PR middle-end/79278
        * builtins.c (get_object_alignment_2): Use min_align_of_type
        to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
        and ADJUST_FIELD_ALIGN.

        * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
        type parameter.
        * doc/tm.texi: Regenerate.
        * stor-layout.c (layout_decl): Adjust.
        (update_alignment_for_field): Likewise.
        (place_field): Likewise.
        (min_align_of_type): Likewise.
        * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
        * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
        * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
        * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
        * config/frv/frv.c (frv_adjust_field_align): Likewise.
        * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
        * config/i386/i386.c (x86_field_alignment): Likewise.
        * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
        * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
        * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
        * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
        * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
        * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
         Likewise.

        go/
        * go-backend.c (go_field_alignment): Adjust.

        libobjc/
        * encoding.c (objc_layout_structure_next_member): Adjust
        ADJUST_FIELD_ALIGN usage.

        Revert
        2017-01-30  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/79256
        * targhooks.c (default_builtin_vector_alignment_reachable): Honor
        BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
        alignment on TYPE.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/builtins.c
    trunk/gcc/config/arc/arc.h
    trunk/gcc/config/epiphany/epiphany.c
    trunk/gcc/config/epiphany/epiphany.h
    trunk/gcc/config/frv/frv.c
    trunk/gcc/config/frv/frv.h
    trunk/gcc/config/i386/i386.c
    trunk/gcc/config/i386/i386.h
    trunk/gcc/config/rs6000/aix.h
    trunk/gcc/config/rs6000/darwin.h
    trunk/gcc/config/rs6000/freebsd64.h
    trunk/gcc/config/rs6000/linux64.h
    trunk/gcc/config/rs6000/rs6000.c
    trunk/gcc/config/rs6000/sysv4.h
    trunk/gcc/doc/tm.texi
    trunk/gcc/doc/tm.texi.in
    trunk/gcc/go/ChangeLog
    trunk/gcc/go/go-backend.c
    trunk/gcc/stor-layout.c
    trunk/gcc/targhooks.c
    trunk/libobjc/ChangeLog
    trunk/libobjc/encoding.c
>From gcc-bugs-return-553235-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 11:30:57 2017
Return-Path: <gcc-bugs-return-553235-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28627 invoked by alias); 7 Feb 2017 11:30: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 28542 invoked by uid 48); 7 Feb 2017 11:30:49 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79278] get_object_alignment and RTL expansion are wrong for ADJUST_FIELD_ALIGN using targets/types
Date: Tue, 07 Feb 2017 11:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.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: 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-79278-4-EoMbEIrolZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79278-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79278-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00767.txt.bz2
Content-length: 429

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

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

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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-553236-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 11:45:54 2017
Return-Path: <gcc-bugs-return-553236-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56103 invoked by alias); 7 Feb 2017 11:45: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 35456 invoked by uid 48); 7 Feb 2017 11:45:36 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79402] ICE with submodules: module procedure interface defined in parent module
Date: Tue, 07 Feb 2017 11:45: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.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pault at gcc dot gnu.org
X-Bugzilla-Status: NEW
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 cf_reconfirmed_on cc assigned_to everconfirmed
Message-ID: <bug-79402-4-2QnUYeI8pe@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79402-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79402-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00768.txt.bz2
Content-length: 1888

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

Paul Thomas <pault at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-07
                 CC|                            |pault at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |pault at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Paul Thomas <pault at gcc dot gnu.org> ---
Dear Stefano (and Chris),

I can confirm that the bug is there on the latest 7.0.1. This is the
minimum testcase that exhibits the problem.

module mod
  interface myfun
    module function fun1(n) result(y)
      integer,  intent(in)    :: n
      real, dimension(n)  :: y
    end function fun1
  end interface myfun

end module mod

submodule (mod) submod
contains
  module procedure fun1

  end procedure fun1
end submodule

It appears that 'n' doesn't get treated as a dummy for reasons that I
do not see right now.

Bizarrely, this works perfectly and might be a good workaround for
you, omitting the 'source' part of the allocate, if you are assigning
to y somewhere else:

module mod
  interface myfun
    module function fun1(n) result(y)
      integer,  intent(in)    :: n
      real, allocatable, dimension(:)  :: y
    end function fun1
  end interface myfun

end module mod

submodule (mod) submod
contains
  module procedure fun1
    allocate (y(n), source = [(float(i), i = 1,n)])
  end procedure fun1
end submodule

  use mod
  print *, fun1(5)
end

I don't feel much like a 'superhero' right now:-( I have spent the last month
moving between countries and have only just got set up to do anything
gfortran-ish in the last 24 hours.

Thanks

Paul
>From gcc-bugs-return-553237-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 11:53:24 2017
Return-Path: <gcc-bugs-return-553237-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120108 invoked by alias); 7 Feb 2017 11: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 119943 invoked by uid 55); 7 Feb 2017 11:53:11 -0000
From: "stefano.zaghi at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79402] ICE with submodules: module procedure interface defined in parent module
Date: Tue, 07 Feb 2017 11:53: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.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: stefano.zaghi at gmail dot com
X-Bugzilla-Status: NEW
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:
Message-ID: <bug-79402-4-vq15cR0tKb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79402-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79402-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00769.txt.bz2
Content-length: 3178

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

--- Comment #2 from stefano.zaghi at gmail dot com ---
Dear Paul,

thank you for the insight.

Trust me, all GNU gfortran developers are heroes!

Cheers

Stefano Zaghi  Ph.D. Aerospace Engineer

Research Scientist, Dept. of Computational Hydrodynamics at CNR-INSEAN
p: +39 0650299260 | m: +39 3497730036 | e: stefano.zaghi@gmail.com

Member of Fortran-FOSS-Programmers

Codes Showcase
OFF          Open source Finite volumes Fluid dynamics code
Lib_VTK_IO   Fortran library to write and read data conforming the VTK standard
FLAP         Fortran command Line Arguments Parser for poor men
BeFoR64      Base64 encoding/decoding library for FoRtran poor men
FiNeR        Fortran INI ParseR and generator for FoRtran poor men
IR_Precision Fortran (standard 2003) module to develop portable codes
FoBis.py     Fortran Building System for poor men
PreForM.py   Preprocessor for Fortran poor men
MaTiSSe.py   Markdown To Impressive Scientific Slides



On Tue, Feb 7, 2017 at 12:45 PM, pault at gcc dot gnu.org
<gcc-bugzilla@gcc.gnu.org> wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79402
>
> Paul Thomas <pault at gcc dot gnu.org> changed:
>
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>              Status|UNCONFIRMED                 |NEW
>    Last reconfirmed|                            |2017-02-07
>                  CC|                            |pault at gcc dot gnu.org
>            Assignee|unassigned at gcc dot gnu.org      |pault at gcc dot gnu.org
>      Ever confirmed|0                           |1
>
> --- Comment #1 from Paul Thomas <pault at gcc dot gnu.org> ---
> Dear Stefano (and Chris),
>
> I can confirm that the bug is there on the latest 7.0.1. This is the
> minimum testcase that exhibits the problem.
>
> module mod
>   interface myfun
>     module function fun1(n) result(y)
>       integer,  intent(in)    :: n
>       real, dimension(n)  :: y
>     end function fun1
>   end interface myfun
>
> end module mod
>
> submodule (mod) submod
> contains
>   module procedure fun1
>
>   end procedure fun1
> end submodule
>
> It appears that 'n' doesn't get treated as a dummy for reasons that I
> do not see right now.
>
> Bizarrely, this works perfectly and might be a good workaround for
> you, omitting the 'source' part of the allocate, if you are assigning
> to y somewhere else:
>
> module mod
>   interface myfun
>     module function fun1(n) result(y)
>       integer,  intent(in)    :: n
>       real, allocatable, dimension(:)  :: y
>     end function fun1
>   end interface myfun
>
> end module mod
>
> submodule (mod) submod
> contains
>   module procedure fun1
>     allocate (y(n), source = [(float(i), i = 1,n)])
>   end procedure fun1
> end submodule
>
>   use mod
>   print *, fun1(5)
> end
>
> I don't feel much like a 'superhero' right now:-( I have spent the last month
> moving between countries and have only just got set up to do anything
> gfortran-ish in the last 24 hours.
>
> Thanks
>
> Paul
>
> --
> You are receiving this mail because:
> You reported the bug.
>From gcc-bugs-return-553238-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 12:00:55 2017
Return-Path: <gcc-bugs-return-553238-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128798 invoked by alias); 7 Feb 2017 12:00:55 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 128630 invoked by uid 48); 7 Feb 2017 12:00:43 -0000
From: "amker at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79347] [7 regression] vect_do_peeling is messing up profile
Date: Tue, 07 Feb 2017 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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amker at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79347-4-UdsgRGszF8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79347-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79347-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00770.txt.bz2
Content-length: 409

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

amker at gcc dot gnu.org changed:

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

--- Comment #4 from amker at gcc dot gnu.org ---
Thanks for investigating this, I will study the issue.

Thanks.
>From gcc-bugs-return-553239-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 12:14:27 2017
Return-Path: <gcc-bugs-return-553239-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22636 invoked by alias); 7 Feb 2017 12:14:27 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 22266 invoked by uid 48); 7 Feb 2017 12:14:14 -0000
From: "nathan at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79393] [7 Regression] cc1plus rejects valid code with noexcept
Date: Tue, 07 Feb 2017 12: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: 7.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nathan at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed
Message-ID: <bug-79393-4-2AhVQbQQ1u@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79393-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79393-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00771.txt.bz2
Content-length: 492

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-02-07
           Assignee|unassigned at gcc dot gnu.org      |nathan at gcc dot gnu.org
     Ever confirmed|0                           |1
>From gcc-bugs-return-553241-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 12:32:11 2017
Return-Path: <gcc-bugs-return-553241-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41660 invoked by alias); 7 Feb 2017 12:32: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 41459 invoked by uid 48); 7 Feb 2017 12:32:02 -0000
From: "nathan at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79369] namespace definition with qualified id
Date: Tue, 07 Feb 2017 12: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nathan at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79369-4-btJUNHqqwB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79369-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79369-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00773.txt.bz2
Content-length: 333

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

--- Comment #1 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Ah 'namespace X::Y' is permitted to create namespace X.  However the following
is ill-formed, but we accept w/o error:

namespace X {}
inline namespace X {} // ERROR

inline namespace Y {}
namespace Y {} // OK
>From gcc-bugs-return-553240-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 12:32:11 2017
Return-Path: <gcc-bugs-return-553240-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41644 invoked by alias); 7 Feb 2017 12:32: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 41334 invoked by uid 48); 7 Feb 2017 12:31:57 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79405] New: [7 Regression] Compile-time hog w/ -O2 (-Os, -O3) on 32-bit BE powerpc targets
Date: Tue, 07 Feb 2017 12:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.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 cf_gcctarget
Message-ID: <bug-79405-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00772.txt.bz2
Content-length: 1388

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

            Bug ID: 79405
           Summary: [7 Regression] Compile-time hog w/ -O2 (-Os, -O3) on
                    32-bit BE powerpc targets
           Product: gcc
           Version: 7.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: ---
            Target: powerpc-*-linux-gnu*

gcc-7.0.0-alpha20170205 snapshot takes large (or indefinite?) time to compile
the following snippet at -O2 (-Os, -O3) for 32-bit BE powerpc:

char cz;
long long int xx, u2;

void
qv (int js, int wl)
{
  if (js != 0)
    {
      short int sc;
      int *at = (int *)&sc;
      long long int gx = 0;

      for (;;)
        {
          *at = 0;
          js /= sc;

          for (wl = 0; wl < 2; ++wl)
            {
              xx = gx;
              u2 %= xx > 0;
              cz /= u2;

 fa:
              if (cz != u2)
                {
                  gx |= js;
                  cz = gx / js;
                }
            }
        }

 yq:
      wl /= 0x80000000;
      u2 = wl;
      u2 |= (wl != 0) | (wl != 0 && gx != 0);
      js = u2;
      goto fa;
    }
  goto yq;
}
>From gcc-bugs-return-553242-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 12:44:56 2017
Return-Path: <gcc-bugs-return-553242-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10041 invoked by alias); 7 Feb 2017 12:44: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 9732 invoked by uid 48); 7 Feb 2017 12:44:44 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/14179] [5/6/7 Regression] out of memory while parsing array with many initializers
Date: Tue, 07 Feb 2017 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: 3.3.3
X-Bugzilla-Keywords: memory-hog
X-Bugzilla-Severity: minor
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-14179-4-vgNTCFv9pu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-14179-4@http.gcc.gnu.org/bugzilla/>
References: <bug-14179-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00774.txt.bz2
Content-length: 236

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

--- Comment #76 from Richard Biener <rguenth at gcc dot gnu.org> ---
Top VM usage update:

4.7.2   14s    1660M  (-O0)
7.0.1   20s    1100M  (-O0 -fno-checking but checking enabled)
>From gcc-bugs-return-553243-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 12:48:40 2017
Return-Path: <gcc-bugs-return-553243-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14716 invoked by alias); 7 Feb 2017 12:48:40 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 14433 invoked by uid 55); 7 Feb 2017 12:48:25 -0000
From: "nsz at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/78945] [arm] libatomic inline asm is not compatible with armv7-m
Date: Tue, 07 Feb 2017 12:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 6.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nsz 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-78945-4-z4m3MbZIG7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78945-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78945-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00775.txt.bz2
Content-length: 606

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

--- Comment #5 from nsz at gcc dot gnu.org ---
Author: nsz
Date: Tue Feb  7 12:47:51 2017
New Revision: 245246

URL: https://gcc.gnu.org/viewcvs?rev=245246&root=gcc&view=rev
Log:
[ARM][PR target/78945] Fix libatomic on armv7-m

libatomic/

        Backport from mainline:
        2017-01-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>

        PR target/78945
        * config/arm/exch_n.c (libat_exchange): Check __ARM_FEATURE_SIMD32.


Modified:
    branches/gcc-6-branch/libatomic/ChangeLog
    branches/gcc-6-branch/libatomic/config/arm/exch_n.c
>From gcc-bugs-return-553244-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 12:49:16 2017
Return-Path: <gcc-bugs-return-553244-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16054 invoked by alias); 7 Feb 2017 12:49:15 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 15886 invoked by uid 48); 7 Feb 2017 12:49:04 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/14179] [5/6/7 Regression] out of memory while parsing array with many initializers
Date: Tue, 07 Feb 2017 12:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 3.3.3
X-Bugzilla-Keywords: memory-hog
X-Bugzilla-Severity: minor
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-14179-4-r7vOz05cvD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-14179-4@http.gcc.gnu.org/bugzilla/>
References: <bug-14179-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00776.txt.bz2
Content-length: 414

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

--- Comment #77 from Richard Biener <rguenth at gcc dot gnu.org> ---
So the "low hanging fruit" remaining is reshape_init_array copying the whole
array even if not necessary.

INTEGER_CSTs still account for most of the memory use (200MB) apart from C++
preprocessor tokens (530MB) and the actual array of tree pointers for the
constructors (2x 130MB at peak).
>From gcc-bugs-return-553245-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 12:51:46 2017
Return-Path: <gcc-bugs-return-553245-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20040 invoked by alias); 7 Feb 2017 12:51: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 19835 invoked by uid 55); 7 Feb 2017 12:51:33 -0000
From: "nsz at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/78945] [arm] libatomic inline asm is not compatible with armv7-m
Date: Tue, 07 Feb 2017 12: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: 6.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nsz 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-78945-4-7xvFSTJaaK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78945-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78945-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00777.txt.bz2
Content-length: 606

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

--- Comment #6 from nsz at gcc dot gnu.org ---
Author: nsz
Date: Tue Feb  7 12:51:00 2017
New Revision: 245247

URL: https://gcc.gnu.org/viewcvs?rev=245247&root=gcc&view=rev
Log:
[ARM][PR target/78945] Fix libatomic on armv7-m

libatomic/

        Backport from mainline:
        2017-01-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>

        PR target/78945
        * config/arm/exch_n.c (libat_exchange): Check __ARM_FEATURE_SIMD32.


Modified:
    branches/gcc-5-branch/libatomic/ChangeLog
    branches/gcc-5-branch/libatomic/config/arm/exch_n.c
>From gcc-bugs-return-553246-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 12:54:34 2017
Return-Path: <gcc-bugs-return-553246-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31199 invoked by alias); 7 Feb 2017 12: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 29497 invoked by uid 48); 7 Feb 2017 12:54:20 -0000
From: "nsz at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/78945] [arm] libatomic inline asm is not compatible with armv7-m
Date: Tue, 07 Feb 2017 12:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 6.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nsz 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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone cf_known_to_fail
Message-ID: <bug-78945-4-iBrstAuWhp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78945-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78945-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00778.txt.bz2
Content-length: 554

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

nsz at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |7.0
      Known to fail|                            |5.4.0, 6.3.0

--- Comment #7 from nsz at gcc dot gnu.org ---
fixed on trunk and backported to gcc-5 and gcc-6 branches.
>From gcc-bugs-return-553247-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 12:56:23 2017
Return-Path: <gcc-bugs-return-553247-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77308 invoked by alias); 7 Feb 2017 12:56: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 77224 invoked by uid 48); 7 Feb 2017 12:56:18 -0000
From: "jeanmichael.celerier at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug demangler/79406] New: Demangler crash
Date: Tue, 07 Feb 2017 12:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: demangler
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jeanmichael.celerier 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-79406-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00779.txt.bz2
Content-length: 714

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

            Bug ID: 79406
           Summary: Demangler crash
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: demangler
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jeanmichael.celerier at gmail dot com
  Target Milestone: ---

With the following symbol : 

_ZSt4moveIRZN5ossia8oscquery16websocket_server19set_message_handlerIZNS1_24oscquery_server_protocolC4EssEUlDpOT_E2_EEvT_EUlSt8weak_ptrIvESt10shared_ptrIN11websocketpp14message_buffer7messageINSE_5alloc15con_msg_managerEEEEE_EONSt16remove_referenceIS9_E4typeEOS9_
>From gcc-bugs-return-553248-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 13:01:50 2017
Return-Path: <gcc-bugs-return-553248-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89394 invoked by alias); 7 Feb 2017 13: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 89241 invoked by uid 48); 7 Feb 2017 13:01:36 -0000
From: "jeanmichael.celerier at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug demangler/79406] Demangler crash
Date: Tue, 07 Feb 2017 13:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: demangler
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jeanmichael.celerier 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-79406-4-P0IH0lnyeF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79406-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79406-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00780.txt.bz2
Content-length: 535

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

--- Comment #1 from Jean-Michaël Celerier <jeanmichael.celerier at gmail dot com> ---
This stems from the usage of the following lambda expression : 

    [&] (auto&&... args) { return
this->fun(std::forward<decltype(args)>(args)...); }

Unlike bug 77950 the enclosing function is not a template but a simple class
constructor that takes two int16_t.

The arguments passed to the lambda are either : 

* (std::weak_ptr<void>)
* (std::weak_ptr<void>, const std::string&)
>From gcc-bugs-return-553249-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 13:11:08 2017
Return-Path: <gcc-bugs-return-553249-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105096 invoked by alias); 7 Feb 2017 13:11: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 104827 invoked by uid 48); 7 Feb 2017 13:10:47 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/79405] [7 Regression] Compile-time hog w/ -O2 (-Os, -O3) on 32-bit BE powerpc targets
Date: Tue, 07 Feb 2017 13: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: 7.0
X-Bugzilla-Keywords: compile-time-hog
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority bug_status cf_reconfirmed_on component target_milestone everconfirmed
Message-ID: <bug-79405-4-1sNfepABkK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79405-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79405-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00781.txt.bz2
Content-length: 797

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-07
          Component|tree-optimization           |rtl-optimization
   Target Milestone|---                         |7.0
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
works on x86_64/i?86.  Confirmed with a cross:

(gdb) 
Run till exit from #0  fwprop ()
    at /space/rguenther/src/svn/gcc-7-branch/gcc/fwprop.c:1481
>From gcc-bugs-return-553250-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 13:12:58 2017
Return-Path: <gcc-bugs-return-553250-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108474 invoked by alias); 7 Feb 2017 13:12: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 108239 invoked by uid 48); 7 Feb 2017 13:12:43 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/79405] [7 Regression] Compile-time hog w/ -O2 (-Os, -O3) on 32-bit BE powerpc targets
Date: Tue, 07 Feb 2017 13:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: compile-time-hog
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79405-4-SWj76Orf0R@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79405-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79405-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00782.txt.bz2
Content-length: 676

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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
(gdb) l
1476         end, and we'll go through them as well.
1477
1478         Do not forward propagate addresses into loops until after
unrolling.
1479         CSE did so because it was able to fix its own mess, but we are
not.  */
1480
1481      for (i = 0; i < DF_USES_TABLE_SIZE (); i++)
1482        {
1483          df_ref use = DF_USES_GET (i);
1484          if (use)
1485            if (DF_REF_TYPE (use) == DF_REF_REG_USE
(gdb) p i
$8 = 53321

so it looks like sth corrupts uses (dumping the function at this point only
shows 80 insns).
>From gcc-bugs-return-553251-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 13:33:32 2017
Return-Path: <gcc-bugs-return-553251-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76894 invoked by alias); 7 Feb 2017 13:33: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 75851 invoked by uid 48); 7 Feb 2017 13:33:18 -0000
From: "dje at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/64081] [5/6/7 Regression] r217827 prevents RTL loop unroll
Date: Tue, 07 Feb 2017 13: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: 5.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dje 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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64081-4-v7Js5l8FHs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00783.txt.bz2
Content-length: 346

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

--- Comment #48 from David Edelsohn <dje at gcc dot gnu.org> ---
Based on Comment #45, is this a problem in the Stage 1 compilers?  Note that
Alan and Segher adjusted the doloop patterns in this release cycle.  Does
backporting that patch or bootstrapping with current trunk function better?
>From gcc-bugs-return-553252-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 14:29:28 2017
Return-Path: <gcc-bugs-return-553252-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68433 invoked by alias); 7 Feb 2017 14: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 66793 invoked by uid 48); 7 Feb 2017 14:29:15 -0000
From: "mini at cs dot technion.ac.il" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79407] New: -fcall-saved-rax flag causes an internal segmentation fault
Date: Tue, 07 Feb 2017 14:29: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: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mini at cs dot technion.ac.il
X-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-79407-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00784.txt.bz2
Content-length: 991

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

            Bug ID: 79407
           Summary: -fcall-saved-rax flag causes an internal segmentation
                    fault
           Product: gcc
           Version: 5.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mini at cs dot technion.ac.il
  Target Milestone: ---

I am getting internal error with the -fcall-saved-rax flag

gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 

to reproduce:

$ cat main.c
int main() {
        int* x = new int;
        return 0;
}
$ g++ -fcall-saved-rax main.c 
main.c: In function ‘int main()’:
main.c:16:15: internal compiler error: Segmentation fault
  int* x = new int;
               ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
>From gcc-bugs-return-553253-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 14:42:32 2017
Return-Path: <gcc-bugs-return-553253-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13219 invoked by alias); 7 Feb 2017 14:42: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 12702 invoked by uid 48); 7 Feb 2017 14:42:19 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79407] -fcall-saved-rax flag causes an internal segmentation fault
Date: Tue, 07 Feb 2017 14: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: 5.4.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: cf_gcctarget bug_status cf_reconfirmed_on component everconfirmed cf_known_to_fail
Message-ID: <bug-79407-4-4NeyRvka8h@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79407-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79407-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00785.txt.bz2
Content-length: 1054

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-*-*
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-07
          Component|c++                         |middle-end
     Ever confirmed|0                           |1
      Known to fail|                            |7.0.1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed on trunk:

Program received signal SIGSEGV, Segmentation fault.
0x0000000000bc2d08 in expand_call (exp=<call_expr 0x7ffff68b03f0>, target=0x0, 
    ignore=0) at /space/rguenther/src/svn/gcc-7-branch/gcc/calls.c:3973
3973              rtx temp = gen_reg_rtx (GET_MODE (valreg));
(gdb) p valreg
$1 = (rtx) 0x0


I suppose this falls under the "don't do that" category of bugs though.
>From gcc-bugs-return-553254-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 14:44:01 2017
Return-Path: <gcc-bugs-return-553254-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16549 invoked by alias); 7 Feb 2017 14: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 16208 invoked by uid 48); 7 Feb 2017 14:43:48 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79407] -fcall-saved-rax flag causes an internal segmentation fault
Date: Tue, 07 Feb 2017 14:44: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: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth 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-79407-4-51Vg1xBQHw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79407-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79407-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00786.txt.bz2
Content-length: 813

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

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

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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Quote:

"It is an error to use this flag with the frame pointer or stack pointer.
Use of this flag for other registers that have fixed pervasive roles in
the machine's execution model produces disastrous results.

A different sort of disaster results from the use of this flag for
a register in which function values may be returned.
"

so you get that different sort of disaster results.
>From gcc-bugs-return-553255-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 15:08:46 2017
Return-Path: <gcc-bugs-return-553255-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47414 invoked by alias); 7 Feb 2017 15:08: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 45198 invoked by uid 48); 7 Feb 2017 15:08:31 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/79405] [7 Regression] Compile-time hog w/ -O2 (-Os, -O3) on 32-bit BE powerpc targets
Date: Tue, 07 Feb 2017 15:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 7.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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79405-4-Lr9uK5Houn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79405-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79405-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00787.txt.bz2
Content-length: 458

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

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> ---
Started with r242075 (though, being a RTL problem, most likely latent before).
>From gcc-bugs-return-553257-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 15:29:28 2017
Return-Path: <gcc-bugs-return-553257-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130714 invoked by alias); 7 Feb 2017 15: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 129808 invoked by uid 48); 7 Feb 2017 15:29:14 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79408] Missed VRP optimization of integer modulo
Date: Tue, 07 Feb 2017 15: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: 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: 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-79408-4-RKZyAtEUWm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79408-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79408-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00789.txt.bz2
Content-length: 489

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-02-07
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
     Ever confirmed|0                           |1
>From gcc-bugs-return-553256-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 15:29:13 2017
Return-Path: <gcc-bugs-return-553256-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129686 invoked by alias); 7 Feb 2017 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 129226 invoked by uid 48); 7 Feb 2017 15:29:00 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79408] New: Missed VRP optimization of integer modulo
Date: Tue, 07 Feb 2017 15:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-79408-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00788.txt.bz2
Content-length: 1025

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

            Bug ID: 79408
           Summary: Missed VRP optimization of integer modulo
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

While looking at PR79388, I've noticed that while VRP optimizes well integer
modulo if say first operand is [0, 133] and second operand 134, we don't do the
same if second operand is [134, 237] or [134, +INF].

Testcase:
unsigned int
foo (unsigned int x, unsigned int y)
{
  if (x > 7312)
    return 7;
  if (y <= 7312)
    return 12;
  return x % y;
}

int
bar (int x, int y)
{
  if (x > 7312 || x < 0)
    return 8;
  if (y <= 7312)
    return 13;
  return x % y;
}

int
baz (int x, int y)
{
  if (x > 7312 || x < -7312)
    return 9;
  if (y <= 7312)
    return 14;
  return x % y;
}
>From gcc-bugs-return-553258-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 15:38:00 2017
Return-Path: <gcc-bugs-return-553258-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81115 invoked by alias); 7 Feb 2017 15:38: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 79767 invoked by uid 48); 7 Feb 2017 15:37:47 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/64081] [5/6/7 Regression] r217827 prevents RTL loop unroll
Date: Tue, 07 Feb 2017 15:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64081-4-7KONGsXXig@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00790.txt.bz2
Content-length: 267

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

--- Comment #49 from Jeffrey A. Law <law at redhat dot com> ---
Note there's also been a series of fixes to the generic doloop code over the
last 18 months.  So that's another avenue that might be worth pursuing.
>From gcc-bugs-return-553259-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 15:38:36 2017
Return-Path: <gcc-bugs-return-553259-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 83766 invoked by alias); 7 Feb 2017 15:38: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 83069 invoked by uid 48); 7 Feb 2017 15:38:25 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79408] Missed VRP optimization of integer modulo
Date: Tue, 07 Feb 2017 15:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
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-79408-4-Dt2BugPNxU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79408-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79408-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00791.txt.bz2
Content-length: 253

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

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 40687
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40687&action=edit
gcc7-pr79408.patch

Untested fix.
>From gcc-bugs-return-553260-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 15:40:36 2017
Return-Path: <gcc-bugs-return-553260-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94374 invoked by alias); 7 Feb 2017 15:40: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 94040 invoked by uid 48); 7 Feb 2017 15:40:29 -0000
From: "wilco at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/79149] bad optimization on MIPS and ARM leading to excessive stack usage in some cases
Date: Tue, 07 Feb 2017 15:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wilco at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: mkuvyrkov at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79149-4-hrbMCxoS4m@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79149-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79149-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00792.txt.bz2
Content-length: 406

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

wilco at gcc dot gnu.org changed:

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

--- Comment #12 from wilco at gcc dot gnu.org ---
Does wp512 use 64-bit types? If so, this is likely PR77308.
>From gcc-bugs-return-553261-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 15:43:29 2017
Return-Path: <gcc-bugs-return-553261-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11086 invoked by alias); 7 Feb 2017 15: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 10621 invoked by uid 55); 7 Feb 2017 15:43:16 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79299] [7 Regression] Operand size mismatch for `vpgatherqd' w/ -O3 -masm=intel -mavx512bw
Date: Tue, 07 Feb 2017 15: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: 7.0
X-Bugzilla-Keywords: assemble-failure
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: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79299-4-TpOp3d8wXI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79299-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79299-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00793.txt.bz2
Content-length: 870

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Feb  7 15:42:42 2017
New Revision: 245248

URL: https://gcc.gnu.org/viewcvs?rev=245248&root=gcc&view=rev
Log:
        PR target/79299
        * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
        (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
        *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
        fix -masm=intel patterns.

        * gcc.target/i386/avx512vl-pr79299-1.c: New test.
        * gcc.target/i386/avx512vl-pr79299-2.c: New test.

Added:
    trunk/gcc/testsuite/gcc.target/i386/avx512vl-pr79299-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512vl-pr79299-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/sse.md
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-553262-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 15:44:08 2017
Return-Path: <gcc-bugs-return-553262-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32184 invoked by alias); 7 Feb 2017 15:44: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 25166 invoked by uid 48); 7 Feb 2017 15:43:55 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79299] [7 Regression] Operand size mismatch for `vpgatherqd' w/ -O3 -masm=intel -mavx512bw
Date: Tue, 07 Feb 2017 15: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: 7.0
X-Bugzilla-Keywords: assemble-failure
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: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79299-4-nIL9thCESA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79299-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79299-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00794.txt.bz2
Content-length: 423

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

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

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-553263-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 15:53:33 2017
Return-Path: <gcc-bugs-return-553263-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26310 invoked by alias); 7 Feb 2017 15:53: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 19061 invoked by uid 48); 7 Feb 2017 15:53:19 -0000
From: "aldyh at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/64081] [5/6/7 Regression] r217827 prevents RTL loop unroll
Date: Tue, 07 Feb 2017 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: 5.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: aldyh 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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64081-4-58SD1CCuft@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00795.txt.bz2
Content-length: 2489

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

--- Comment #50 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
(In reply to David Edelsohn from comment #48)
> Based on Comment #45, is this a problem in the Stage 1 compilers?  Note that
> Alan and Segher adjusted the doloop patterns in this release cycle.  Does
> backporting that patch or bootstrapping with current trunk function better?

The stage2 compiler fails to build anything (libgcc in this case) because the
stage1 compiler miscompiled the testcase I posted.

I tried backporting the following two patches to no avail:

commit b2d4fe71855caaae720f7839d3e33b061d2069ca
Author: amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Sat Jan 14 13:24:46 2017 +0000

    Avoid PR72749 by not using unspecs

    Rather than using unspecs in doloop insns to stop combine creating
    these insns, use legitimate_combined_insn.

            PR target/72749
            * combine.c (recog_for_combine_1): Set INSN_CODE before calling
            target legitimate_combined_insn.
            * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
            (rs6000_legitimate_combined_insn): New function.
            * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
            all uses.
            (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
            (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
            (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.

commit d7a73763f9dfa9cec35bcf40d926ee03ae85fb2d
Author: amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Mon Jul 11 10:28:48 2016 +0000

    [RS6000] Don't allow combine to form doloop pattern

            * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
            (ctr<mode>): Add unspec.
            (ctr<mode>_internal*): Likewise.

And yes, I'm sure bootstrapping the current trunk would work, but that would
have us back at square one, having no idea why the patch in question is now
bootstrapping ;-).

I suppose we could remove Richi's patch that makes the problem disappear, and
bisect forward to see if there's another set of patches that also fix the
problem but are related to doloop or the patch at hand.  Though at this point,
I'd rather we figure out why the erroneous code is being generated in comment
45.  Bisecting AIX and the hand-holding required takes a good hour and a half
at each of the 13 iterations it would at least take.
>From gcc-bugs-return-553264-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 16:05:17 2017
Return-Path: <gcc-bugs-return-553264-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13722 invoked by alias); 7 Feb 2017 16: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 13042 invoked by uid 48); 7 Feb 2017 16:05:03 -0000
From: "dje at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/64081] [5/6/7 Regression] r217827 prevents RTL loop unroll
Date: Tue, 07 Feb 2017 16:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dje 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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64081-4-wYzjTKi6k8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00796.txt.bz2
Content-length: 264

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

--- Comment #51 from David Edelsohn <dje at gcc dot gnu.org> ---
If you use /scratch for source, build and TMPDIR, as well as

SHELL=/usr/bin/bash CONFIG_SHELL=/usr/bin/bash

it should build faster on AIX.
>From gcc-bugs-return-553265-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 16:11:10 2017
Return-Path: <gcc-bugs-return-553265-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43393 invoked by alias); 7 Feb 2017 16:11: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 42648 invoked by uid 48); 7 Feb 2017 16:10:47 -0000
From: "arnd at linaro dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/79149] bad optimization on MIPS and ARM leading to excessive stack usage in some cases
Date: Tue, 07 Feb 2017 16: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: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: arnd at linaro dot org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: mkuvyrkov at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79149-4-AZWdLnVEne@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79149-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79149-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00797.txt.bz2
Content-length: 2338

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

--- Comment #13 from Arnd Bergmann <arnd at linaro dot org> ---
(In reply to wilco from comment #12)
> Does wp512 use 64-bit types? If so, this is likely PR77308.

Yes, as seen in the attachment it uses lots of 64-bit operations. However, it
sounds like PR77308 is ARM specific, but I see the same behavior
on most other architectures, including 64-bit ones. Quoting the
kernel patch I linked to, with stack frame sizes for the function
depending on architecture, optimization flags and compiler version
(only 4.9 and 7.0 here, there is little difference anyway)

default: -O2
press:   -O2 -fsched-pressure
nopress: -O2 -fschedule-insns -fno-sched-pressure
nosched: -O2 -no-schedule-insns (disables sched-pressure)

                                default press   nopress nosched
alpha-linux-gcc-4.9.3           1136    848     1136    176
am33_2.0-linux-gcc-4.9.3        2100    2076    2100    2104
arm-linux-gnueabi-gcc-4.9.3     848     848     1048    352
cris-linux-gcc-4.9.3            272     272     272     272
frv-linux-gcc-4.9.3             1128    1000    1128    280
hppa64-linux-gcc-4.9.3          1128    336     1128    184
hppa-linux-gcc-4.9.3            644     308     644     276
i386-linux-gcc-4.9.3            352     352     352     352
m32r-linux-gcc-4.9.3            720     656     720     268
microblaze-linux-gcc-4.9.3      1108    604     1108    256
mips64-linux-gcc-4.9.3          1328    592     1328    208
mips-linux-gcc-4.9.3            1096    624     1096    240
powerpc64-linux-gcc-4.9.3       1088    432     1088    160
powerpc-linux-gcc-4.9.3         1080    584     1080    224
s390-linux-gcc-4.9.3            456     456     624     360
sh3-linux-gcc-4.9.3             292     292     292     292
sparc64-linux-gcc-4.9.3         992     240     992     208
sparc-linux-gcc-4.9.3           680     592     680     312
x86_64-linux-gcc-4.9.3          224     240     272     224
xtensa-linux-gcc-4.9.3          1152    704     1152    304

aarch64-linux-gcc-7.0.0         224     224     1104    208
arm-linux-gnueabi-gcc-7.0.1     824     824     1048    352
mips-linux-gcc-7.0.0            1120    648     1120    272
mips64-linux-gcc-7.0.0          1072    608     1072    224
x86_64-linux-gcc-7.0.1          240     240     304     240
>From gcc-bugs-return-553266-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 16:21:46 2017
Return-Path: <gcc-bugs-return-553266-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108499 invoked by alias); 7 Feb 2017 16:21:45 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 108003 invoked by uid 48); 7 Feb 2017 16:21:33 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79143] [7 Regression][new inheriting constructors] inheriting constructor fails with brace initialization
Date: Tue, 07 Feb 2017 16:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79143-4-GWYa3v5HTj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79143-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79143-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00798.txt.bz2
Content-length: 631

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

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 #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fails since r241187, aka http://wg21.link/p0017
Jonathan, is it rejected correctly after P0017R1 or not?
>From gcc-bugs-return-553267-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 16:24:47 2017
Return-Path: <gcc-bugs-return-553267-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 123604 invoked by alias); 7 Feb 2017 16:24: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 117465 invoked by uid 48); 7 Feb 2017 16:24:31 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgomp/42125] check libgomp  fails
Date: Tue, 07 Feb 2017 16:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libgomp
X-Bugzilla-Version: 4.4.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor 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 cc resolution
Message-ID: <bug-42125-4-ZnI1NGoG54@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-42125-4@http.gcc.gnu.org/bugzilla/>
References: <bug-42125-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00799.txt.bz2
Content-length: 771

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |msebor at gcc dot gnu.org
         Resolution|---                         |WORKSFORME

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
The latest Cygwin test results reported for GCC 6.4.1 show only a handful of
libgomp failures
(https://gcc.gnu.org/ml/gcc-testresults/2016-12/msg02442.html).  Since this
report is older than 7 years, never been confirmed, and GCC 4.4 is not
supported anymore I'm closing it.
>From gcc-bugs-return-553268-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 16:26:08 2017
Return-Path: <gcc-bugs-return-553268-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7036 invoked by alias); 7 Feb 2017 16:26: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 6493 invoked by uid 48); 7 Feb 2017 16:25:55 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79143] [7 Regression][new inheriting constructors] inheriting constructor fails with brace initialization
Date: Tue, 07 Feb 2017 16: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: 7.0
X-Bugzilla-Keywords: rejects-valid
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-79143-4-rzPmQuOCkq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79143-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79143-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00800.txt.bz2
Content-length: 657

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-07
     Ever confirmed|0                           |1

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I think this is a bug. derived is not an aggregate, because it inherits a
user-provided constructor, so braced-init should call the base(int, int)
constructor, not attempt aggregate init.
>From gcc-bugs-return-553269-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 16:29:37 2017
Return-Path: <gcc-bugs-return-553269-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24120 invoked by alias); 7 Feb 2017 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 23689 invoked by uid 48); 7 Feb 2017 16:29:24 -0000
From: "Casey at Carter dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79143] [7 Regression][new inheriting constructors] inheriting constructor fails with brace initialization
Date: Tue, 07 Feb 2017 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: 7.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: Casey at Carter dot net
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79143-4-h7FeKdZzSY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79143-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79143-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00801.txt.bz2
Content-length: 771

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

Casey Carter <Casey at Carter dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Casey at Carter dot net

--- Comment #4 from Casey Carter <Casey at Carter dot net> ---
(In reply to Jonathan Wakely from comment #3)
> I think this is a bug. derived is not an aggregate, because it inherits a
> user-provided constructor, so braced-init should call the base(int, int)
> constructor, not attempt aggregate init.

This. N4618 [dcl.init.aggr]/1 says:

    1 An aggregate is an array or a class with

  1.1 --- no user-provided, explicit, or inherited constructors

  [...]
>From gcc-bugs-return-553270-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 16:33:28 2017
Return-Path: <gcc-bugs-return-553270-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37037 invoked by alias); 7 Feb 2017 16:33: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 36706 invoked by uid 48); 7 Feb 2017 16:33:15 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79143] [7 Regression][new inheriting constructors] inheriting constructor fails with brace initialization
Date: Tue, 07 Feb 2017 16: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.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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79143-4-A0pIcjtJs3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79143-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79143-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00802.txt.bz2
Content-length: 502

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Yeah, found the same in the mean time.
Following works, I bet in the #c0 CLASSTYPE_NON_AGGREGATE isn't set on derived
for some reason.

struct base {
  base(int, int) {}
};

template<class>
struct derived : base {
  derived(int, int) : base(0, 0) {}
};

int main() {
  base(13, 42); // Fine
  derived<int>(13, 42); // Fine
  base{13, 42}; // Fine
  derived<int>{13, 42}; // Fine
}
>From gcc-bugs-return-553271-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 16:34:27 2017
Return-Path: <gcc-bugs-return-553271-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50653 invoked by alias); 7 Feb 2017 16:34: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 40266 invoked by uid 48); 7 Feb 2017 16:34:15 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79409] New: [7 Regression] [graphite] ICE in outermost_loop_in_sese, at sese.c:300 w/ -fgraphite-identity -ftree-loop-distribution -O1 (or above)
Date: Tue, 07 Feb 2017 16:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: asolokha at gmx dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-79409-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00803.txt.bz2
Content-length: 1135

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

            Bug ID: 79409
           Summary: [7 Regression] [graphite] ICE in
                    outermost_loop_in_sese, at sese.c:300 w/
                    -fgraphite-identity -ftree-loop-distribution -O1 (or
                    above)
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

gcc-7.0.0-alpha20170205 snapshot ICEs when compiling the following snippet w/
-O1 (-O2, -O3, -Ofast) -fgraphite-identity -ftree-loop-distribution:

struct
{
  int bz;
} od, ka[2];
int fw;

void
pc (void)
{
  for (od.bz = 0; od.bz < 2; ++od.bz)
    {
      ++fw;
      ka[0] = ka[1];
    }
}

% gcc-7.0.0-alpha20170205 -O1 -fgraphite-identity -ftree-loop-distribution -c
ady9pcky.c
ady9pcky.c: In function 'pc':
ady9pcky.c:8:1: internal compiler error: in outermost_loop_in_sese, at
sese.c:300
 pc (void)
 ^~
>From gcc-bugs-return-553272-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 16:36:44 2017
Return-Path: <gcc-bugs-return-553272-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77319 invoked by alias); 7 Feb 2017 16:36: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 76582 invoked by uid 48); 7 Feb 2017 16:36:26 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/42176] bootstrap fails while building libstdc++-v3 on debian sarge (related to cstdio and similar to #30915)
Date: Tue, 07 Feb 2017 16:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 4.4.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor 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 cc resolution
Message-ID: <bug-42176-4-V3SeMvvFvF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-42176-4@http.gcc.gnu.org/bugzilla/>
References: <bug-42176-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00804.txt.bz2
Content-length: 841

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |msebor at gcc dot gnu.org
         Resolution|---                         |WORKSFORME

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
The most recent test results for the oldest Debian I could find are for 5.4.1:
https://gcc.gnu.org/ml/gcc-testresults/2017-02/msg00656.html.  Since those are
successful (as are other Debian test results) and since GCC 4.4 is no longer
maintained I'll close this.  Please open a new bug if the problems persist with
recent versions of GCC.
>From gcc-bugs-return-553273-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 16:39:58 2017
Return-Path: <gcc-bugs-return-553273-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93604 invoked by alias); 7 Feb 2017 16:39: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 93375 invoked by uid 48); 7 Feb 2017 16:39:52 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug driver/42106] Simplistic build works, then fails to find cc1plus on its own
Date: Tue, 07 Feb 2017 16:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: driver
X-Bugzilla-Version: 4.3.4
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor 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 cc resolution
Message-ID: <bug-42106-4-OBocQNtBci@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-42106-4@http.gcc.gnu.org/bugzilla/>
References: <bug-42106-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00805.txt.bz2
Content-length: 859

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |msebor at gcc dot gnu.org
         Resolution|---                         |WORKSFORME

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
There isn't enough information here to tell what may have been the problem but
current Solaris test results show no such failures with recent versions of GCC:

https://gcc.gnu.org/ml/gcc-testresults/2017-02/msg00616.html

Since GCC 4.3 is no lo longer maintained I'm closing this report.  Please open
a new bug if the problem persists with the current GCC.
>From gcc-bugs-return-553274-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 16:47:12 2017
Return-Path: <gcc-bugs-return-553274-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1069 invoked by alias); 7 Feb 2017 16: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 612 invoked by uid 48); 7 Feb 2017 16:46:59 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/42102] ICE of optimize
Date: Tue, 07 Feb 2017 16:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.5.0
X-Bugzilla-Keywords: ice-on-valid-code
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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-42102-4-yFYV4FvPo0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-42102-4@http.gcc.gnu.org/bugzilla/>
References: <bug-42102-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00806.txt.bz2
Content-length: 3931

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

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

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

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Current trunk (GCC 7) configured for the rx-elf target compiles the test case
successfully.  Resolving as fixed. 

$ /build/rx-elf/gcc-trunk/gcc/xgcc -B /build/rx-elf/gcc-trunk/gcc  -S -O2 -v
t.c
Reading specs from /build/rx-elf/gcc-trunk/gcc/specs
COLLECT_GCC=/build/rx-elf/gcc-trunk/gcc/xgcc
Target: rx-elf
Configured with: /src/gcc/trunk/configure --enable-languages=c,c++
--prefix=/build/sysroot/rx-elf --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=rx-elf --without-headers
Thread model: single
gcc version 7.0.1 20170207 (experimental) (GCC) 
COLLECT_GCC_OPTIONS='-B' '/build/rx-elf/gcc-trunk/gcc' '-S' '-O2' '-v'
 /build/rx-elf/gcc-trunk/gcc/cc1 -quiet -v -iprefix
/home/msebor/build/rx-elf/gcc-trunk/gcc/../lib/gcc/rx-elf/7.0.1/ -isystem
/build/rx-elf/gcc-trunk/gcc/include -isystem
/build/rx-elf/gcc-trunk/gcc/include-fixed t.c -quiet -dumpbase t.c -auxbase t
-O2 -version -o t.s
GNU C11 (GCC) version 7.0.1 20170207 (experimental) (rx-elf)
        compiled by GNU C version 5.3.1 20151207 (Red Hat 5.3.1-2), GMP version
6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version 0.15
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
...
#include "..." search starts here:
#include <...> search starts here:
 /build/rx-elf/gcc-trunk/gcc/include
 /build/rx-elf/gcc-trunk/gcc/include-fixed
End of search list.
GNU C11 (GCC) version 7.0.1 20170207 (experimental) (rx-elf)
        compiled by GNU C version 5.3.1 20151207 (Red Hat 5.3.1-2), GMP version
6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version 0.15
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 982af928627021b9f23f5068d2fd4ae5
t.c: In function ‘pagevec_release’:
t.c:27:6: warning: implicit declaration of function ‘pagevec_count’; did you
mean ‘pagevec_release’? [-Wimplicit-function-declaration]
  if (pagevec_count(pvec))
      ^~~~~~~~~~~~~
      pagevec_release
t.c:28:3: warning: implicit declaration of function ‘__pagevec_release’; did
you mean ‘pagevec_release’? [-Wimplicit-function-declaration]
   __pagevec_release(pvec);
   ^~~~~~~~~~~~~~~~~
   pagevec_release
t.c: In function ‘write_cache_pages’:
t.c:52:14: warning: implicit declaration of function ‘pagevec_lookup_tag’
[-Wimplicit-function-declaration]
   nr_pages = pagevec_lookup_tag(&pvec, mapping, &index,
              ^~~~~~~~~~~~~~~~~~
t.c:57:4: warning: implicit declaration of function ‘lock_page’
[-Wimplicit-function-declaration]
    lock_page(page);
    ^~~~~~~~~
t.c:60:5: warning: implicit declaration of function ‘unlock_page’
[-Wimplicit-function-declaration]
     unlock_page(page);
     ^~~~~~~~~~~
t.c:64:9: warning: implicit declaration of function ‘clear_page_dirty_for_io’
[-Wimplicit-function-declaration]
    if (!clear_page_dirty_for_io(page))
         ^~~~~~~~~~~~~~~~~~~~~~~
t.c:67:28: warning: implicit declaration of function ‘bdi_write_congested’
[-Wimplicit-function-declaration]
    if (wbc->nonblocking && bdi_write_congested(bdi)) {
                            ^~~~~~~~~~~~~~~~~~~
COMPILER_PATH=/build/rx-elf/gcc-trunk/gcc/
LIBRARY_PATH=/build/rx-elf/gcc-trunk/gcc/
COLLECT_GCC_OPTIONS='-B' '/build/rx-elf/gcc-trunk/gcc' '-S' '-O2' '-v'
>From gcc-bugs-return-553275-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 16:55:59 2017
Return-Path: <gcc-bugs-return-553275-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37594 invoked by alias); 7 Feb 2017 16: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 37071 invoked by uid 48); 7 Feb 2017 16:55:48 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/64081] [5/6/7 Regression] r217827 prevents RTL loop unroll
Date: Tue, 07 Feb 2017 16: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: 5.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher 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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64081-4-LFQWrIYzDR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00807.txt.bz2
Content-length: 466

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

--- Comment #52 from Segher Boessenkool <segher at gcc dot gnu.org> ---
(In reply to Aldy Hernandez from comment #50)
> Though at this
> point, I'd rather we figure out why the erroneous code is being generated in
> comment 45.

If you can send me the output (.s and .c.*) with -dap I can probably
figure it out.  But please with a cut-down testcase -- this 2.5MB source
file results in 2.5GB of output files.
>From gcc-bugs-return-553276-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 16:59:33 2017
Return-Path: <gcc-bugs-return-553276-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73080 invoked by alias); 7 Feb 2017 16:59:32 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 71734 invoked by uid 48); 7 Feb 2017 16:59:19 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/42065] DWARF .debug_macinfo contains unused macros
Date: Tue, 07 Feb 2017 16:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: 4.5.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: minor
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-42065-4-jk9AmErzgF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-42065-4@http.gcc.gnu.org/bugzilla/>
References: <bug-42065-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00808.txt.bz2
Content-length: 1302

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-07
                 CC|                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
It doesn't look like this has changed between GCC 4.5 and GCC 7 so I'll confirm
it as a missing space optimization.

$ cat t.c && gcc -g3 -Wall -feliminate-unused-debug-symbols
-feliminate-unused-debug-types t.c && readelf -wm a.out | grep -e NOT -e USED
#define NOT used
#define USED(x) x
int main (void) { return USED (0); }
 DW_MACRO_GNU_define_indirect - lineno : 1 macro : NOT used
 DW_MACRO_GNU_define_indirect - lineno : 2 macro : USED(x) x

With GCC 7, even an empty object file contains 345 macro definitions (one for
each macro predefined by GCC):

$ /build/gcc-trunk/gcc/xgcc -B /build/gcc-trunk/gcc -c -g3 -xc -ot.o -
</dev/null && readelf -wm t.o | grep macro | wc -l
345
>From gcc-bugs-return-553277-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 17:02:52 2017
Return-Path: <gcc-bugs-return-553277-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96272 invoked by alias); 7 Feb 2017 17:02: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 95696 invoked by uid 48); 7 Feb 2017 17:02:39 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79410] New: [6 Regression] internal compiler error: in gimplify_init_ctor_preeval, at gimplify.c:3489
Date: Tue, 07 Feb 2017 17:02: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: 6.3.1
X-Bugzilla-Keywords: ice-on-valid-code
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-79410-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00809.txt.bz2
Content-length: 2318

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

            Bug ID: 79410
           Summary: [6 Regression] internal compiler error: in
                    gimplify_init_ctor_preeval, at gimplify.c:3489
           Product: gcc
           Version: 6.3.1
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
  Target Milestone: ---

This gives an ICE with -O1

struct duration {
  long val;
  static constexpr duration max() { return {}; }
};
struct S {
  duration max = duration::max();
};
void Ice(S& s) {
  s = {};
}

ice.cc: In function ‘void Ice(S&)’:
ice.cc:9:9: internal compiler error: in gimplify_init_ctor_preeval, at
gimplify.c:3489
   s = {};
         ^
0x8e5582 gimplify_init_ctor_preeval
        ../../gcc-6.3.0/gcc/gimplify.c:3489
0x8e5acf gimplify_init_constructor
        ../../gcc-6.3.0/gcc/gimplify.c:4063
0x8e6421 gimplify_modify_expr_rhs
        ../../gcc-6.3.0/gcc/gimplify.c:4346
0x8e652f gimplify_modify_expr
        ../../gcc-6.3.0/gcc/gimplify.c:4683
0x8dcd99 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc-6.3.0/gcc/gimplify.c:10386
0x8dfae6 gimplify_stmt(tree_node**, gimple**)
        ../../gcc-6.3.0/gcc/gimplify.c:5687
0x8dc8d8 gimplify_cleanup_point_expr
        ../../gcc-6.3.0/gcc/gimplify.c:5463
0x8dc8d8 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc-6.3.0/gcc/gimplify.c:10751
0x8dfae6 gimplify_stmt(tree_node**, gimple**)
        ../../gcc-6.3.0/gcc/gimplify.c:5687
0x8e0cac gimplify_body(tree_node*, bool)
        ../../gcc-6.3.0/gcc/gimplify.c:11532
0x8e1077 gimplify_function_tree(tree_node*)
        ../../gcc-6.3.0/gcc/gimplify.c:11688
0x7bfd27 cgraph_node::analyze()
        ../../gcc-6.3.0/gcc/cgraphunit.c:625
0x7c26df analyze_functions
        ../../gcc-6.3.0/gcc/cgraphunit.c:1086
0x7c2e58 symbol_table::finalize_compilation_unit()
        ../../gcc-6.3.0/gcc/cgraphunit.c:2542
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
>From gcc-bugs-return-553278-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 17:04:36 2017
Return-Path: <gcc-bugs-return-553278-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99563 invoked by alias); 7 Feb 2017 17:04: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 99255 invoked by uid 48); 7 Feb 2017 17:04:23 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79143] [7 Regression][new inheriting constructors] inheriting constructor fails with brace initialization
Date: Tue, 07 Feb 2017 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: 7.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: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to attachments.created
Message-ID: <bug-79143-4-fZghIsx3pK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79143-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79143-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00810.txt.bz2
Content-length: 578

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

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

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

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

Untested fix.
>From gcc-bugs-return-553279-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 17:05:32 2017
Return-Path: <gcc-bugs-return-553279-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101547 invoked by alias); 7 Feb 2017 17:05: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 101215 invoked by uid 48); 7 Feb 2017 17:05:19 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79410] [6 Regression] internal compiler error: in gimplify_init_ctor_preeval, at gimplify.c:3489
Date: Tue, 07 Feb 2017 17: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: 6.3.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-79410-4-dIP80cU6oL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79410-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79410-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00811.txt.bz2
Content-length: 562

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-07
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
No ICE with -std=gnu++11 so maybe related to C++14 constexpr rules.

Similar to Bug 60951.
>From gcc-bugs-return-553280-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 17:09:50 2017
Return-Path: <gcc-bugs-return-553280-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108296 invoked by alias); 7 Feb 2017 17:09: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 108124 invoked by uid 48); 7 Feb 2017 17:09:37 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/42014] Inconsistent column number display for "In file incuded from"
Date: Tue, 07 Feb 2017 17:09: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: 4.5.0
X-Bugzilla-Keywords: diagnostic, easyhack, patch
X-Bugzilla-Severity: minor
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-42014-4-PxeeFuGlys@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-42014-4@http.gcc.gnu.org/bugzilla/>
References: <bug-42014-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00812.txt.bz2
Content-length: 820

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-07
                 CC|                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> ---
Looks like a fix was proposed but the approval was made contingent on getting
some a suite issue sorted out.  Marcin, did you manage to resolve the test
suite issue with David's suggestion?

I'm moving the status to New.
>From gcc-bugs-return-553281-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 17:19:00 2017
Return-Path: <gcc-bugs-return-553281-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111064 invoked by alias); 7 Feb 2017 17:19: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 94330 invoked by uid 48); 7 Feb 2017 17:18:47 -0000
From: "gerhard.steinmetz.fortran@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/30552] gcc crashed when compiling an example
Date: Tue, 07 Feb 2017 17:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 4.1.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gerhard.steinmetz.fortran@t-online.de
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-30552-4-hduGR5N9bK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-30552-4@http.gcc.gnu.org/bugzilla/>
References: <bug-30552-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00813.txt.bz2
Content-length: 2091

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

Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gerhard.steinmetz.fortran@t
                   |                            |-online.de

--- Comment #1 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
Update :


$ gcc-7-20170205 -c pr30552.c
pr30552.c: In function 'fun':
pr30552.c:6:5: internal compiler error: Segmentation fault
     int a[({void h(){}2;})];
     ^~~
0xbf633f crash_signal
        ../../gcc/toplev.c:333
0x670701 c_push_function_context()
        ../../gcc/c/c-decl.c:9504
0x6cf8a2 c_parser_declaration_or_fndef
        ../../gcc/c/c-parser.c:2038
0x6d3ea2 c_parser_compound_statement_nostart
        ../../gcc/c/c-parser.c:4831
0x6af37a c_parser_postfix_expression
        ../../gcc/c/c-parser.c:7665
0x6b939a c_parser_unary_expression
        ../../gcc/c/c-parser.c:7052
0x6ba1a7 c_parser_cast_expression
        ../../gcc/c/c-parser.c:6881
0x6ba3c2 c_parser_binary_expression
        ../../gcc/c/c-parser.c:6690
0x6bb0a5 c_parser_conditional_expression
        ../../gcc/c/c-parser.c:6458
0x6bb800 c_parser_expr_no_commas
        ../../gcc/c/c-parser.c:6375
0x6ccebe c_parser_direct_declarator_inner
        ../../gcc/c/c-parser.c:3591
0x6cea04 c_parser_declaration_or_fndef
        ../../gcc/c/c-parser.c:1797
0x6cf7ce c_parser_declaration_or_fndef
        ../../gcc/c/c-parser.c:2073
0x6d3ea2 c_parser_compound_statement_nostart
        ../../gcc/c/c-parser.c:4831
0x6d44ce c_parser_compound_statement
        ../../gcc/c/c-parser.c:4740
0x6cf90c c_parser_declaration_or_fndef
        ../../gcc/c/c-parser.c:2112
0x6d791b c_parser_external_declaration
        ../../gcc/c/c-parser.c:1468
0x6d8379 c_parser_translation_unit
        ../../gcc/c/c-parser.c:1348
0x6d8379 c_parse_file()
        ../../gcc/c/c-parser.c:18185
0x736892 c_common_parse_file()
        ../../gcc/c-family/c-opts.c:1107
>From gcc-bugs-return-553282-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 17:19:55 2017
Return-Path: <gcc-bugs-return-553282-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11492 invoked by alias); 7 Feb 2017 17:19:55 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 130584 invoked by uid 48); 7 Feb 2017 17:19:41 -0000
From: "gerhard.steinmetz.fortran@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/30552] gcc crashed when compiling an example
Date: Tue, 07 Feb 2017 17:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 4.1.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gerhard.steinmetz.fortran@t-online.de
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-30552-4-Ow7g8voO4J@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-30552-4@http.gcc.gnu.org/bugzilla/>
References: <bug-30552-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00814.txt.bz2
Content-length: 279

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

--- Comment #2 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
Other test cases :


$ cat z1.c
void f()
{
  void g()
    void a[( {void b} )];
}


$ cat z2.c
int f()
{
  int g()
    int a[( {int b} )];
}
>From gcc-bugs-return-553283-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 17:21:12 2017
Return-Path: <gcc-bugs-return-553283-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39614 invoked by alias); 7 Feb 2017 17: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 39395 invoked by uid 48); 7 Feb 2017 17:20:59 -0000
From: "gerhard.steinmetz.fortran@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/43374] ICE with __builtin_isinf() and _Decimal argument
Date: Tue, 07 Feb 2017 17: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:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gerhard.steinmetz.fortran@t-online.de
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-43374-4-wL4ZO7wrB7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-43374-4@http.gcc.gnu.org/bugzilla/>
References: <bug-43374-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00815.txt.bz2
Content-length: 2539

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

Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gerhard.steinmetz.fortran@t
                   |                            |-online.de

--- Comment #5 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
Update :


$ gcc-7-20170205 -c pr43374.c
pr43374.c: In function 'func':
pr43374.c:4:10: internal compiler error: in decimal_to_decnumber, at dfp.c:134
   return __builtin_isinf(v);
          ^~~~~~~~~~~~~~~~~~
0x12b9f38 decimal_to_decnumber
        ../../gcc/dfp.c:134
0x12ba0bf encode_decimal32(real_format const*, long*, real_value const*)
        ../../gcc/dfp.c:161
0xb51d15 real_to_target(long*, real_value const*, format_helper)
        ../../gcc/real.c:2835
0xbc73bc simplify_immed_subreg
        ../../gcc/simplify-rtx.c:5824
0xbd3578 simplify_gen_subreg(machine_mode, rtx_def*, machine_mode, unsigned
int)
        ../../gcc/simplify-rtx.c:6260
0x8ba3b5 emit_move_via_integer
        ../../gcc/expr.c:3301
0x8c7198 emit_move_insn_1(rtx_def*, rtx_def*)
        ../../gcc/expr.c:3652
0x8c7494 emit_move_insn(rtx_def*, rtx_def*)
        ../../gcc/expr.c:3738
0x7a1434 emit_library_call_value_1
        ../../gcc/calls.c:4895
0x7a82af emit_library_call_value(rtx_def*, rtx_def*, libcall_type,
machine_mode, int, ...)
        ../../gcc/calls.c:5159
0xaf5ab6 prepare_float_lib_cmp
        ../../gcc/optabs.c:4172
0xaf5ab6 prepare_cmp_insn
        ../../gcc/optabs.c:3945
0xaf5bf5 emit_cmp_and_jump_insns(rtx_def*, rtx_def*, rtx_code, rtx_def*,
machine_mode, int, rtx_def*, int)
        ../../gcc/optabs.c:4051
0x8314cc do_compare_rtx_and_jump(rtx_def*, rtx_def*, rtx_code, int,
machine_mode, rtx_def*, rtx_code_label*, rtx_code_label*, int)
        ../../gcc/dojump.c:1145
0x8319e7 do_compare_rtx_and_jump(rtx_def*, rtx_def*, rtx_code, int,
machine_mode, rtx_def*, rtx_code_label*, rtx_code_label*, int)
        ../../gcc/dojump.c:1140
0x8b6314 emit_store_flag_force(rtx_def*, rtx_code, rtx_def*, rtx_def*,
machine_mode, int, int)
        ../../gcc/expmed.c:5936
0x8d7cde do_store_flag
        ../../gcc/expr.c:11453
0x8d7cde expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
        ../../gcc/expr.c:9203
0x7b6382 expand_gimple_stmt_1
        ../../gcc/cfgexpand.c:3676
0x7b6382 expand_gimple_stmt
        ../../gcc/cfgexpand.c:3737
>From gcc-bugs-return-553284-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 17:22:26 2017
Return-Path: <gcc-bugs-return-553284-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67570 invoked by alias); 7 Feb 2017 17:22: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 67450 invoked by uid 48); 7 Feb 2017 17:22:12 -0000
From: "gerhard.steinmetz.fortran@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/61342] Segfault when using default clause and VLA in OpenMP task
Date: Tue, 07 Feb 2017 17: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: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gerhard.steinmetz.fortran@t-online.de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-61342-4-dkW4ybsgbF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61342-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61342-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00816.txt.bz2
Content-length: 2307

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

Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gerhard.steinmetz.fortran@t
                   |                            |-online.de

--- Comment #1 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
Update :


$ gcc-7-20170205 -fopenmp -c pr61342.c
'
In function 'main':
Segmentation fault
                 (*f)[i][j] = 1;
                 ~~~~~~~^~~
0xbf633f crash_signal
        ../../gcc/toplev.c:333
0x6aa870 c_tree_printer
        ../../gcc/c/c-objc-common.c:169
0x13df6cf pp_format(pretty_printer*, text_info*)
        ../../gcc/pretty-print.c:679
0x13d2aa8 diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
        ../../gcc/diagnostic.c:961
0x13d2e03 diagnostic_impl
        ../../gcc/diagnostic.c:1084
0x13d36d4 error(char const*, ...)
        ../../gcc/diagnostic.c:1310
0x96e275 omp_default_clause
        ../../gcc/gimplify.c:6825
0x96e275 omp_notice_variable
        ../../gcc/gimplify.c:7118
0x96ee85 gimplify_var_or_parm_decl
        ../../gcc/gimplify.c:2587
0x97387b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:11646
0x972426 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:11931
0x97b74c gimplify_compound_lval
        ../../gcc/gimplify.c:2826
0x972653 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:11155
0x985e45 gimplify_modify_expr
        ../../gcc/gimplify.c:5473
0x9743ca gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:11203
0x9773e6 gimplify_stmt(tree_node**, gimple**)
        ../../gcc/gimplify.c:6478
0x9786cd gimplify_bind_expr
        ../../gcc/gimplify.c:1290
0x9745ba gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:11402
0x9773e6 gimplify_stmt(tree_node**, gimple**)
        ../../gcc/gimplify.c:6478
0x975b71 gimplify_and_add(tree_node*, gimple**)
        ../../gcc/gimplify.c:435
>From gcc-bugs-return-553285-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 17:24:37 2017
Return-Path: <gcc-bugs-return-553285-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70077 invoked by alias); 7 Feb 2017 17:24: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 69912 invoked by uid 48); 7 Feb 2017 17:24:19 -0000
From: "gerhard.steinmetz.fortran@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79411] New: ICE: SSA corruption (fail_abnormal_edge_coalesce)
Date: Tue, 07 Feb 2017 17:24: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.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gerhard.steinmetz.fortran@t-online.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
Message-ID: <bug-79411-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00817.txt.bz2
Content-length: 1759

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

            Bug ID: 79411
           Summary: ICE: SSA corruption (fail_abnormal_edge_coalesce)
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fortran@t-online.de
  Target Milestone: ---

With a modified test pr57026.c at -Os, -O1 or above, down to gcc 4.9 :


$ cat z1.c
typedef struct __jmp_buf_tag { char buf[1024]; } jmp_buf[1];
extern int setjmp (jmp_buf);
extern int bar (unsigned int *);
extern jmp_buf *baz (void);
struct C { int c1; unsigned int c2, c3, c4; };
void
foo (struct C *x, const int *y, unsigned int *z, unsigned int e, unsigned int
g)
{
  unsigned int d = 0;
  unsigned long f;
  setjmp (*baz ());
  f = 1 + d;
  if ((x->c1 || x->c2) && g && (!e || d >= 8))
    d = 16;
  else
    d = 8;
  if ((!x->c3 && !x->c4 || *y == 0) && !e && bar (z))
    *z = 1 + f;
}


$ gcc-7-20170205 -O2 -c z1.c

Unable to coalesce ssa_names 12 and 13 which are marked as MUST COALESCE.
d_12(ab) and  d_13(ab)
z1.c: In function 'foo':
z1.c:7:1: internal compiler error: SSA corruption
 foo (struct C *x, const int *y, unsigned int *z, unsigned int e, unsigned int
g)
 ^~~
0xd152af fail_abnormal_edge_coalesce
        ../../gcc/tree-ssa-coalesce.c:1010
0xd152af coalesce_partitions
        ../../gcc/tree-ssa-coalesce.c:1399
0xd152af coalesce_ssa_name()
        ../../gcc/tree-ssa-coalesce.c:1889
0xca3d03 remove_ssa_form
        ../../gcc/tree-outof-ssa.c:948
0xca3d03 rewrite_out_of_ssa(ssaexpand*)
        ../../gcc/tree-outof-ssa.c:1172
0x7bdf30 execute
        ../../gcc/cfgexpand.c:6164
>From gcc-bugs-return-553286-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 17:27:20 2017
Return-Path: <gcc-bugs-return-553286-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73181 invoked by alias); 7 Feb 2017 17:27:19 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 72833 invoked by uid 48); 7 Feb 2017 17:27:06 -0000
From: "gerhard.steinmetz.fortran@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79412] New: ICE in fold_convert_loc, at fold-const.c:2239
Date: Tue, 07 Feb 2017 17:27: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.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gerhard.steinmetz.fortran@t-online.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
Message-ID: <bug-79412-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00818.txt.bz2
Content-length: 1989

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

            Bug ID: 79412
           Summary: ICE in fold_convert_loc, at fold-const.c:2239
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fortran@t-online.de
  Target Milestone: ---

With invalid code down to at least gcc 4.8 (configured with
--enable-checking=yes) on x86_64 GNU/Linux.
(official releases: confused by earlier errors, bailing out)


$ cat z1.c
int a;
void fn1 ()
{
  a++;
}
int a[] = {2};


$ gcc-7-20170205 -c z1.c
z1.c:6:5: error: conflicting types for 'a'
 int a[] = {2};
     ^
z1.c:1:5: note: previous declaration of 'a' was here
 int a;
     ^
z1.c: In function 'fn1':
z1.c:4:4: internal compiler error: in fold_convert_loc, at fold-const.c:2239
   a++;
   ~^~
0x90910f fold_convert_loc(unsigned int, tree_node*, tree_node*)
        ../../gcc/fold-const.c:2238
0x97abe8 gimplify_self_mod_expr(tree_node**, gimple**, gimple**, bool,
tree_node*)
        ../../gcc/gimplify.c:2966
0x973f70 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:11135
0x9773e6 gimplify_stmt(tree_node**, gimple**)
        ../../gcc/gimplify.c:6478
0x9786cd gimplify_bind_expr
        ../../gcc/gimplify.c:1290
0x9745ba gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:11402
0x9773e6 gimplify_stmt(tree_node**, gimple**)
        ../../gcc/gimplify.c:6478
0x9793b9 gimplify_body(tree_node*, bool)
        ../../gcc/gimplify.c:12396
0x979a54 gimplify_function_tree(tree_node*)
        ../../gcc/gimplify.c:12554
0x7f17c7 cgraph_node::analyze()
        ../../gcc/cgraphunit.c:655
0x7f4ce3 analyze_functions
        ../../gcc/cgraphunit.c:1116
0x7f5a3a symbol_table::finalize_compilation_unit()
        ../../gcc/cgraphunit.c:2597
>From gcc-bugs-return-553287-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 17:29:38 2017
Return-Path: <gcc-bugs-return-553287-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46314 invoked by alias); 7 Feb 2017 17: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 36729 invoked by uid 48); 7 Feb 2017 17:29:24 -0000
From: "gerhard.steinmetz.fortran@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79413] New: ICE in make_ssa_name_fn, at tree-ssanames.c:265
Date: Tue, 07 Feb 2017 17:29: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.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gerhard.steinmetz.fortran@t-online.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
Message-ID: <bug-79413-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00819.txt.bz2
Content-length: 2424

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

            Bug ID: 79413
           Summary: ICE in make_ssa_name_fn, at tree-ssanames.c:265
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fortran@t-online.de
  Target Milestone: ---

Seen with test-version 7 at -Os, -O2 or higher :


$ cat z1.c
void fn1 ()
{
  typeof (int [1/0]) a;
}
void fn2 ()
{
  fn1();
}


$ gcc-6 -O2 -c z1.c
$ gcc-7-20170205 -O1 -c z1.c
$ gcc-7-20170205 -O2 -c z1.c
z1.c: In function 'fn2':
z1.c:7:3: internal compiler error: Segmentation fault
   fn1();
   ^~~~~
0xbf633f crash_signal
        ../../gcc/toplev.c:333
0xe150aa make_ssa_name_fn(function*, tree_node*, gimple*, unsigned int)
        ../../gcc/tree-ssanames.c:265
0xc704d6 make_ssa_name
        ../../gcc/tree-ssanames.h:113
0xc704d6 remap_ssa_name
        ../../gcc/tree-inline.c:238
0xc76d1c copy_tree_body_r(tree_node**, int*, void*)
        ../../gcc/tree-inline.c:1081
0xec2222 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, default_hash_traits<tree_node*> >*, tree_node*
(*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*,
hash_set<tree_node*, default_hash_traits<tree_node*> >*))
        ../../gcc/tree.c:11796
0xec2676 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, default_hash_traits<tree_node*> >*, tree_node*
(*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*,
hash_set<tree_node*, default_hash_traits<tree_node*> >*))
        ../../gcc/tree.c:12113
0xc6eba0 remap_type_1
        ../../gcc/tree-inline.c:565
0xc6fac1 remap_type(tree_node*, copy_body_data*)
        ../../gcc/tree-inline.c:593
0xc6e456 remap_decl(tree_node*, copy_body_data*)
        ../../gcc/tree-inline.c:370
0xc6fbfd remap_decls
        ../../gcc/tree-inline.c:642
0xc70e60 remap_block
        ../../gcc/tree-inline.c:700
0xc70fa1 remap_blocks
        ../../gcc/tree-inline.c:721
0xc79823 expand_call_inline
        ../../gcc/tree-inline.c:4617
0xc7b834 gimple_expand_calls_inline
        ../../gcc/tree-inline.c:4868
0xc7b834 optimize_inline_calls(tree_node*)
        ../../gcc/tree-inline.c:5008
0x1323321 early_inliner(function*)
        ../../gcc/ipa-inline.c:2721
>From gcc-bugs-return-553288-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 17:32:03 2017
Return-Path: <gcc-bugs-return-553288-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49322 invoked by alias); 7 Feb 2017 17:32: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 49095 invoked by uid 48); 7 Feb 2017 17:31:50 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/42176] bootstrap fails while building libstdc++-v3 on debian sarge (related to cstdio and similar to #30915)
Date: Tue, 07 Feb 2017 17:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 4.4.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi 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:
Message-ID: <bug-42176-4-JntuzUYvOg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-42176-4@http.gcc.gnu.org/bugzilla/>
References: <bug-42176-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00820.txt.bz2
Content-length: 402

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

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Bug 30915 is similar, and the problem was related to gentoo-specific patches to
glibc. Possibly caused by A mismatched combination of libstdc++ and glibc.

I've never been able to reproduce it, and I don't think it's a GCC problem, so
I agree with closing this. Thanks, Martin.
>From gcc-bugs-return-553289-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 17:37:28 2017
Return-Path: <gcc-bugs-return-553289-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60648 invoked by alias); 7 Feb 2017 17:37: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 59616 invoked by uid 48); 7 Feb 2017 17:37:14 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/42000] missing -Wuninitialized warning on a user-defined class ctor
Date: Tue, 07 Feb 2017 17: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: 4.4.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-42000-4-mnINxquV0R@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-42000-4@http.gcc.gnu.org/bugzilla/>
References: <bug-42000-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00821.txt.bz2
Content-length: 1020

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-07
     Ever confirmed|0                           |1

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
With the top of trunk (GCC 7) the test case in comment #0 isn't diagnosed with
-O2 or at any other optimization level.

I suspect this does fall under one of the existing -Wuninitialized bugs.  I'm
not sure bug 2972 covers this case.  Just quickly eyeballing the patch in bug
19808, I don't think it's meant to detect this problem either since it's
front-end only solution focused solely on dependencies between members in ctor
initializer lists.

I'll confirm this for now and if someone finds a pre-existing duplicate it can
be closed then.
>From gcc-bugs-return-553290-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 17:39:47 2017
Return-Path: <gcc-bugs-return-553290-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64515 invoked by alias); 7 Feb 2017 17:39:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 64063 invoked by uid 48); 7 Feb 2017 17:39:33 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79412] [5/6/7 Regression] ICE in fold_convert_loc, at fold-const.c:2239
Date: Tue, 07 Feb 2017 17:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: error-recovery, 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: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc target_milestone short_desc everconfirmed
Message-ID: <bug-79412-4-LWjk5xVBpf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79412-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79412-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00822.txt.bz2
Content-length: 982

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |error-recovery,
                   |                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-07
                 CC|                            |mpolacek at gcc dot gnu.org
   Target Milestone|---                         |5.5
            Summary|ICE in fold_convert_loc, at |[5/6/7 Regression] ICE in
                   |fold-const.c:2239           |fold_convert_loc, at
                   |                            |fold-const.c:2239
     Ever confirmed|0                           |1

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed.  GCC 4.7 doesn't ICE.
>From gcc-bugs-return-553291-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 17:42:44 2017
Return-Path: <gcc-bugs-return-553291-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69819 invoked by alias); 7 Feb 2017 17: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 69680 invoked by uid 48); 7 Feb 2017 17:42:31 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79412] [5/6/7 Regression] ICE in fold_convert_loc, at fold-const.c:2239
Date: Tue, 07 Feb 2017 17: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: 7.0
X-Bugzilla-Keywords: error-recovery, 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: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79412-4-7Mb56Sg3Sf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79412-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79412-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00823.txt.bz2
Content-length: 151

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

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Likely started with r193882.
>From gcc-bugs-return-553292-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 17:46:42 2017
Return-Path: <gcc-bugs-return-553292-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78741 invoked by alias); 7 Feb 2017 17:46: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 78624 invoked by uid 55); 7 Feb 2017 17:46:30 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/79386] [7 Regression] ICE: segmentation fault in cprop w/ -O2 on 32-bit BE powerpc
Date: Tue, 07 Feb 2017 17:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79386-4-MNFWJwi5cM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79386-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79386-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00824.txt.bz2
Content-length: 714

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Feb  7 17:45:57 2017
New Revision: 245251

URL: https://gcc.gnu.org/viewcvs?rev=245251&root=gcc&view=rev
Log:
        PR rtl-optimization/79386
        * cprop.c (bypass_conditional_jumps): Initialize
        bypass_last_basic_block already before splitting bbs after
        unconditional traps...
        (bypass_conditional_jumps): ... rather than here.

        * gcc.c-torture/compile/pr79386.c: New test.

Added:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr79386.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cprop.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-553293-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 17:47:54 2017
Return-Path: <gcc-bugs-return-553293-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116820 invoked by alias); 7 Feb 2017 17:47: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 116624 invoked by uid 48); 7 Feb 2017 17:47:37 -0000
From: "tss at iki dot fi" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/68606] Reduce or disable the static emergency pool for C++ exceptions
Date: Tue, 07 Feb 2017 17:47: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.9.3
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: tss at iki dot fi
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-68606-4-zgw2c2ATSv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68606-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68606-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00825.txt.bz2
Content-length: 766

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

Timo Sirainen <tss at iki dot fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tss at iki dot fi

--- Comment #4 from Timo Sirainen <tss at iki dot fi> ---
I ran into this issue as well while looking at where all the memory is going
to. I've potentially tens of thousands of processes running, and 71 kB of
memory per process for something that almost never happens is too expensive. I
wouldn't mind std::bad_alloc just killing the process immediately if it
happens.

So at least having the LIBSTDCXX_EMERGENCY_EH_POOL_SIZE environment would be
helpful in future.
>From gcc-bugs-return-553295-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 17:48:54 2017
Return-Path: <gcc-bugs-return-553295-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118858 invoked by alias); 7 Feb 2017 17: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 118685 invoked by uid 48); 7 Feb 2017 17:48:37 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/41880] CONSTANT_ADDRESS_P undefined.
Date: Tue, 07 Feb 2017 17:48: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.5.0
X-Bugzilla-Keywords: build
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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cc resolution
Message-ID: <bug-41880-4-iAilraYeXP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41880-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41880-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00827.txt.bz2
Content-length: 684

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |build
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |msebor at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
The top of trunk (GCC 7) builds successfully for rx-elf, and according to
comment #3, GCC 5 apparently does as well.  Resolving as fixed.
>From gcc-bugs-return-553294-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 17:48:53 2017
Return-Path: <gcc-bugs-return-553294-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118847 invoked by alias); 7 Feb 2017 17: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 118718 invoked by uid 48); 7 Feb 2017 17:48:42 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79396] [7 Regression] ICE (verify_flow_info failed) with -fnon-call-exceptions -O2
Date: Tue, 07 Feb 2017 17:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: janus at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-79396-4-IYCI45d9FE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79396-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79396-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00826.txt.bz2
Content-length: 223

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

--- Comment #3 from janus at gcc dot gnu.org ---
Created attachment 40689
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40689&action=edit
preprocessed source
>From gcc-bugs-return-553296-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 17:53:45 2017
Return-Path: <gcc-bugs-return-553296-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8258 invoked by alias); 7 Feb 2017 17:53: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 7998 invoked by uid 48); 7 Feb 2017 17:53:39 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79413] [7 Regression] ICE in make_ssa_name_fn, at tree-ssanames.c:265
Date: Tue, 07 Feb 2017 17:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.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.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc target_milestone short_desc everconfirmed
Message-ID: <bug-79413-4-7h1hzICVnx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79413-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79413-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00828.txt.bz2
Content-length: 826

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-07
                 CC|                            |jakub at gcc dot gnu.org
   Target Milestone|---                         |7.0
            Summary|ICE in make_ssa_name_fn, at |[7 Regression] ICE in
                   |tree-ssanames.c:265         |make_ssa_name_fn, at
                   |                            |tree-ssanames.c:265
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r235817.
>From gcc-bugs-return-553297-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 17:57:38 2017
Return-Path: <gcc-bugs-return-553297-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12903 invoked by alias); 7 Feb 2017 17:57: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 12788 invoked by uid 48); 7 Feb 2017 17:57:25 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79411] [5/6/7 Regression] ICE: SSA corruption (fail_abnormal_edge_coalesce)
Date: Tue, 07 Feb 2017 17: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: 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: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc target_milestone short_desc everconfirmed
Message-ID: <bug-79411-4-PqLquKdeJX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79411-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79411-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00829.txt.bz2
Content-length: 882

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-07
                 CC|                            |jakub at gcc dot gnu.org
   Target Milestone|---                         |5.5
            Summary|ICE: SSA corruption         |[5/6/7 Regression] ICE: SSA
                   |(fail_abnormal_edge_coalesc |corruption
                   |e)                          |(fail_abnormal_edge_coalesc
                   |                            |e)
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r198096.
>From gcc-bugs-return-553299-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 17:58:12 2017
Return-Path: <gcc-bugs-return-553299-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14021 invoked by alias); 7 Feb 2017 17: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 13883 invoked by uid 48); 7 Feb 2017 17:58:02 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/56456] [meta-bug] bogus warning when inlining or unrolling: "array subscript is above array bounds"
Date: Tue, 07 Feb 2017 17:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: meta-bug
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-56456-4-YRDMri83hs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56456-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56456-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00831.txt.bz2
Content-length: 472

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

Bug 41847 Summary: warning: array subscript is above array bounds
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41847

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-553298-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 17:58:12 2017
Return-Path: <gcc-bugs-return-553298-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14003 invoked by alias); 7 Feb 2017 17:58: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 13796 invoked by uid 48); 7 Feb 2017 17:58:01 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/41847] warning: array subscript is above array bounds
Date: Tue, 07 Feb 2017 17:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.4.2
X-Bugzilla-Keywords: diagnostic
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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cc resolution
Message-ID: <bug-41847-4-DwEHUksjA1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41847-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41847-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00830.txt.bz2
Content-length: 1157

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |msebor at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #8 from Martin Sebor <msebor at gcc dot gnu.org> ---
With the top of trunk (GCC 7) the test case from attachment 18916 compiles
cleanly both with a s390x cross-compiler and natively on x86_64:

$ /build/s390x-linux/gcc-trunk/gcc/xgcc -B /build/s390x-linux/gcc-trunk/gcc -O2
-S -Wall -Wextra t.C
t.C: In instantiation of ‘void ImplHomMatrixTemplate<_RowSize>::ludcmp(short
unsigned int*) [with unsigned int _RowSize = 4]’:
t.C:89:21:   required from here
t.C:62:36: warning: unused parameter ‘nIndex’ [-Wunused-parameter]
  void ludcmp(unsigned short nIndex[])
                                    ^

Resolving as fixed.
>From gcc-bugs-return-553300-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 18:01:49 2017
Return-Path: <gcc-bugs-return-553300-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 104257 invoked by alias); 7 Feb 2017 18:01: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 104060 invoked by uid 48); 7 Feb 2017 18:01:36 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/41838] Incorrect "dereferencing pointer '<anonymous>' does break strict-aliasing rules"
Date: Tue, 07 Feb 2017 18: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: 4.4.1
X-Bugzilla-Keywords: diagnostic
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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cc resolution
Message-ID: <bug-41838-4-EkPFACzSNN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41838-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41838-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00832.txt.bz2
Content-length: 968

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |msebor at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
The test case from attachment 18908 compiles with just a -Wunused-parameter
warning on trunk.  Resolving as fixed.

t.c: In function ‘Twine operator+(const Twine&, const Twine&)’:
t.c:16:63: warning: unused parameter ‘RHS’ [-Wunused-parameter]
  inline Twine    operator + (const Twine & LHS, const Twine & RHS) {
                                                               ^~~
>From gcc-bugs-return-553301-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 18:02:41 2017
Return-Path: <gcc-bugs-return-553301-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106065 invoked by alias); 7 Feb 2017 18:02: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 105830 invoked by uid 48); 7 Feb 2017 18:02:28 -0000
From: "nathan at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79369] namespace definition with qualified id
Date: Tue, 07 Feb 2017 18:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nathan at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79369-4-PY1D9xzge3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79369-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79369-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00833.txt.bz2
Content-length: 181

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

--- Comment #2 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
r245252 on c++-modules has a patch (for when stage 1 opens)
>From gcc-bugs-return-553302-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 18:02:52 2017
Return-Path: <gcc-bugs-return-553302-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106750 invoked by alias); 7 Feb 2017 18:02: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 106027 invoked by uid 55); 7 Feb 2017 18:02:38 -0000
From: "nathan at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79369] namespace definition with qualified id
Date: Tue, 07 Feb 2017 18:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nathan at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79369-4-deZAhOH6fZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79369-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79369-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00834.txt.bz2
Content-length: 1230

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

--- Comment #3 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Author: nathan
Date: Tue Feb  7 18:02:05 2017
New Revision: 245252

URL: https://gcc.gnu.org/viewcvs?rev=245252&root=gcc&view=rev
Log:
        PR c++/79369 inline namespaces
        gcc/cp
        * cp-tree.h (NAMESPACE_CHECK): New.
        (NAMESPACE_INLINE_P): New.
        * name-lookup.h (push_namespace): Return int.
        * name-lookup.c (push_namespace): Return int. Adjust.
        * parser.c (cp_parser_namespace_definition): Reorder nested
        parsing.  Check inline redefinition.
        gcc/testsuite/
        * g++.dg/cpp0x/pr65558.C: Adjust error loc.
        * g++.dg/cpp0x/pr79369.C: New.
        * g++.dg/cpp1z/nested-namespace-def1.C: Adjust.

Added:
    branches/c++-modules/gcc/testsuite/g++.dg/cpp0x/pr79369.C
Modified:
    branches/c++-modules/ChangeLog.modules
    branches/c++-modules/gcc/cp/cp-tree.h
    branches/c++-modules/gcc/cp/name-lookup.c
    branches/c++-modules/gcc/cp/name-lookup.h
    branches/c++-modules/gcc/cp/parser.c
    branches/c++-modules/gcc/testsuite/g++.dg/cpp0x/pr65558.C
    branches/c++-modules/gcc/testsuite/g++.dg/cpp1z/nested-namespace-def1.C
>From gcc-bugs-return-553303-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 18:03:54 2017
Return-Path: <gcc-bugs-return-553303-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108518 invoked by alias); 7 Feb 2017 18:03: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 108272 invoked by uid 48); 7 Feb 2017 18:03:40 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79412] [5/6/7 Regression] ICE in fold_convert_loc, at fold-const.c:2239
Date: Tue, 07 Feb 2017 18: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: 7.0
X-Bugzilla-Keywords: error-recovery, 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: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority cc
Message-ID: <bug-79412-4-rAP3cxCKOb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79412-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79412-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00835.txt.bz2
Content-length: 363

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
                 CC|                            |jakub at gcc dot gnu.org
>From gcc-bugs-return-553304-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 18:04:35 2017
Return-Path: <gcc-bugs-return-553304-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109689 invoked by alias); 7 Feb 2017 18:04: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 109467 invoked by uid 48); 7 Feb 2017 18:04:21 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug plugins/41820] cc1: error: Cannot load plugin ./selfassign.so
Date: Tue, 07 Feb 2017 18:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: plugins
X-Bugzilla-Version: 4.5.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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-41820-4-hwsXgc28Jn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41820-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41820-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00836.txt.bz2
Content-length: 699

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

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

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

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
The test doesn't fail in recent test results with GCC 7:
  https://gcc.gnu.org/ml/gcc-testresults/2017-02/msg00756.html

I'm resolving this as fixed.  John David, please reopen the bug if I missed
something.
>From gcc-bugs-return-553306-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 18:08:33 2017
Return-Path: <gcc-bugs-return-553306-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115406 invoked by alias); 7 Feb 2017 18:08:33 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 115152 invoked by uid 48); 7 Feb 2017 18:08:20 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/41817] bogus "may be uninitialized" (huge testcase, inlining?)
Date: Tue, 07 Feb 2017 18:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.4.2
X-Bugzilla-Keywords: diagnostic
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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-41817-4-Qz0gdpmTrC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41817-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41817-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00838.txt.bz2
Content-length: 637

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

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

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

--- Comment #9 from Martin Sebor <msebor at gcc dot gnu.org> ---
The test case in attachment 18888 compiles with no warning with recent trunk
(GCC 7) with the same options as in comment #0.  Resolving as fixed.
>From gcc-bugs-return-553305-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 18:08:33 2017
Return-Path: <gcc-bugs-return-553305-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115398 invoked by alias); 7 Feb 2017 18:08: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 115247 invoked by uid 48); 7 Feb 2017 18:08:24 -0000
From: "msebor at gcc dot gnu.org" <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: Tue, 07 Feb 2017 18:08: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: 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-24639-4-brbc710WxK@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: 2017-02/txt/msg00837.txt.bz2
Content-length: 481

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

Bug 41817 Summary: bogus "may be uninitialized" (huge testcase, inlining?)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41817

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-553307-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 18:13:14 2017
Return-Path: <gcc-bugs-return-553307-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52904 invoked by alias); 7 Feb 2017 18:13: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 52441 invoked by uid 48); 7 Feb 2017 18:13:00 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/41744] ICE: fold check: original tree changed by fold
Date: Tue, 07 Feb 2017 18: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: 4.5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor 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 cc resolution
Message-ID: <bug-41744-4-eoOEqzagMy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41744-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41744-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00839.txt.bz2
Content-length: 710

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |msebor at gcc dot gnu.org
         Resolution|---                         |WORKSFORME

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
I can't reproduce this ICE with a recent trunk (GCC 7).  Since GCC 4.5 is no
longer maintained I'm closing this as worksforsome.  Please open a new bug if
this is still an issue with a maintained version of GCC.
>From gcc-bugs-return-553308-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 18:22:08 2017
Return-Path: <gcc-bugs-return-553308-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 83959 invoked by alias); 7 Feb 2017 18:22: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 83451 invoked by uid 48); 7 Feb 2017 18:21:54 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79412] [5/6/7 Regression] ICE in fold_convert_loc, at fold-const.c:2239
Date: Tue, 07 Feb 2017 18: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: 7.0
X-Bugzilla-Keywords: error-recovery, 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: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79412-4-p4BOURslWj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79412-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79412-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00840.txt.bz2
Content-length: 540

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Seems the C FE on such redeclarations doesn't merge the decls (correct), but
overwrites the type in pop_scope:
1345                  I_SYMBOL_BINDING (b->id) = b->shadowed;
1346                  if (b->shadowed && b->shadowed->u.type)
1347                    TREE_TYPE (b->shadowed->decl) = b->shadowed->u.type;
so we end up gimplifying POSTINCREMENT_EXPR of a VAR_DECL with array type, no
wonder we ICE on that.
>From gcc-bugs-return-553309-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 18:24:53 2017
Return-Path: <gcc-bugs-return-553309-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98840 invoked by alias); 7 Feb 2017 18:24: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 97933 invoked by uid 48); 7 Feb 2017 18:24:39 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/41727] [7 Regression] inner template specialization on non-type arg template causes ICE
Date: Tue, 07 Feb 2017 18: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: 4.5.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: major
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc short_desc everconfirmed cf_known_to_fail
Message-ID: <bug-41727-4-JtRiJp48Ob@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41727-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41727-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00841.txt.bz2
Content-length: 4566

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-07
                 CC|                            |msebor at gcc dot gnu.org
            Summary|inner template              |[7 Regression] inner
                   |specialization on non-type  |template specialization on
                   |arg template causes ICE     |non-type arg template
                   |                            |causes ICE
     Ever confirmed|0                           |1
      Known to fail|                            |4.5.3, 7.0

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed with GCC 7.0 (see below).  The ICE must have gone away and then
reappeared.  The first recent revision that triggers it is r243868.

r243868 | jason | 2016-12-21 14:38:35 -0500 (Wed, 21 Dec 2016) | 5 lines

Check that a partial specialization is more specialized.

        * pt.c (process_partial_specialization): Use
        get_partial_spec_bindings to check that the partial specialization
        is more specialized than the primary template.

Before that, GCC failed to compile the test case with the following error so
I'm marking this as a GCC 7 regression.

t.C:97:6: error: invalid use of incomplete type ‘struct
outer<outer_arg0>::inner<inner_arg0, value_wrap<999> >’
   >::type
      ^~~~
t.C:18:5: note: declaration of ‘struct outer<outer_arg0>::inner<inner_arg0,
value_wrap<999> >’
     inner
     ^~~~~



$ /build/gcc-trunk/gcc/xgcc -B /build/gcc-trunk/gcc -O2 -S -Wall -Wextra
-Wmaybe-uninitialized -Wuninitialized -xc++ t.C
t.C: In substitution of ‘template<class InnerArg0, class InnerArg1> struct
outer<outer_arg0>::inner [with InnerArg0 = outer_arg0; InnerArg1 = <missing>]’:
t.C:70:5:   required from here
t.C:70:5: internal compiler error: tree check: accessed elt 2 of tree_vec with
1 elts in tsubst, at cp/pt.c:13424
     inner
     ^~~~~
       < InnerArg0
       ~~~~~~~~~~~
       , value_wrap
       ~~~~~~~~~~~~
       #ifdef INNER_ARG1_NON_TYPE
       ~~~~~~~~~~~~~~~~~~~~~~~~~~
         < InnerArg1NonType
         ~~~~~~~~~~~~~~~~~~
       #else
       ~~~~~
         < inner_arg1_non_type
         ~~~~~~~~~~~~~~~~~~~~~
       #endif
       ~~~~~~
         >
         ~
       >
       ~
0x14fb4e4 tree_vec_elt_check_failed(int, int, char const*, int, char const*)
        /src/gcc/trunk/gcc/tree.c:10012
0x7efcf3 tree_vec_elt_check(tree_node*, int, char const*, int, char const*)
        /src/gcc/trunk/gcc/tree.h:3281
0x8b0fda tsubst(tree_node*, tree_node*, int, tree_node*)
        /src/gcc/trunk/gcc/cp/pt.c:13424
0x8a3d34 tsubst_template_arg
        /src/gcc/trunk/gcc/cp/pt.c:10762
0x8a710a tsubst_template_args
        /src/gcc/trunk/gcc/cp/pt.c:11645
0x8a6d60 tsubst_template_args
        /src/gcc/trunk/gcc/cp/pt.c:11605
0x8b2617 tsubst(tree_node*, tree_node*, int, tree_node*)
        /src/gcc/trunk/gcc/cp/pt.c:13693
0x8d86ce get_partial_spec_bindings
        /src/gcc/trunk/gcc/cp/pt.c:21519
0x885c5f process_partial_specialization
        /src/gcc/trunk/gcc/cp/pt.c:4618
0x88a2b0 push_template_decl_real(tree_node*, bool)
        /src/gcc/trunk/gcc/cp/pt.c:5343
0x88ccdb push_template_decl(tree_node*)
        /src/gcc/trunk/gcc/cp/pt.c:5584
0x874a4d maybe_process_partial_specialization(tree_node*)
        /src/gcc/trunk/gcc/cp/pt.c:974
0x98b2ce cp_parser_class_head
        /src/gcc/trunk/gcc/cp/parser.c:22715
0x9893e3 cp_parser_class_specifier_1
        /src/gcc/trunk/gcc/cp/parser.c:22031
0x98a494 cp_parser_class_specifier
        /src/gcc/trunk/gcc/cp/parser.c:22344
0x97e5cc cp_parser_type_specifier
        /src/gcc/trunk/gcc/cp/parser.c:16408
0x97957d cp_parser_decl_specifier_seq
        /src/gcc/trunk/gcc/cp/parser.c:13325
0x9924c7 cp_parser_single_declaration
        /src/gcc/trunk/gcc/cp/parser.c:26602
0x99178d cp_parser_template_declaration_after_parameters
        /src/gcc/trunk/gcc/cp/parser.c:26293
0x99235f cp_parser_explicit_template_declaration
        /src/gcc/trunk/gcc/cp/parser.c:26529
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
>From gcc-bugs-return-553310-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 18:27:12 2017
Return-Path: <gcc-bugs-return-553310-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101943 invoked by alias); 7 Feb 2017 18:27: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 101761 invoked by uid 48); 7 Feb 2017 18:26:59 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/41671] Unsatisfied symbol "__sync_fetch_and_add_4"
Date: Tue, 07 Feb 2017 18:27: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: 4.5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-41671-4-fYCCQwjCtC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41671-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41671-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00842.txt.bz2
Content-length: 663

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-02-07
                 CC|                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
I don't have access to an HPPA host.  John David, is this still a problem with
GCC 7 or can this report be closed?
>From gcc-bugs-return-553311-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 18:31:46 2017
Return-Path: <gcc-bugs-return-553311-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112994 invoked by alias); 7 Feb 2017 18:31: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 112858 invoked by uid 48); 7 Feb 2017 18:31:33 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/41667] g++.dg/debug/dwarf2/typedef1.C scan-assembler-times fails
Date: Tue, 07 Feb 2017 18:31: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: 4.4.2
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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-41667-4-qDfdcCSsiB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41667-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41667-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00843.txt.bz2
Content-length: 662

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

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

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

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
The test is not reported as failing in recent hppa64-hp-hpux11.11 test results 
(https://gcc.gnu.org/ml/gcc-testresults/2017-02/msg00756.html).  Resolving as
fixed.
>From gcc-bugs-return-553312-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 18:41:35 2017
Return-Path: <gcc-bugs-return-553312-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53292 invoked by alias); 7 Feb 2017 18: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 37605 invoked by uid 48); 7 Feb 2017 18:41:18 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/41644] -minimal-toc not helping for toc section exceeding 64k
Date: Tue, 07 Feb 2017 18:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.3.3
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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-41644-4-bB5lZRQIBC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41644-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41644-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00844.txt.bz2
Content-length: 796

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

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

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

--- Comment #12 from Martin Sebor <msebor at gcc dot gnu.org> ---
Based on the comments it sounds to me like this is not a bug but a known
limitation of the architecture that recent GCC versions (4.6 and newer) provide
a mechanism to help mitigate.  I'll close this as invalid.  Please feel free to
reopen it if you feel GCC is still deficient in some respect here.
>From gcc-bugs-return-553313-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 19:06:14 2017
Return-Path: <gcc-bugs-return-553313-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53114 invoked by alias); 7 Feb 2017 19:06: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 52949 invoked by uid 48); 7 Feb 2017 19:06:00 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/41575] GCC lists private methods as candidates in "no matching function for call"
Date: Tue, 07 Feb 2017 19: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: unknown
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc everconfirmed bug_severity
Message-ID: <bug-41575-4-UbyEtymGUS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41575-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41575-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00845.txt.bz2
Content-length: 1440

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-07
                 CC|                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1
           Severity|normal                      |enhancement

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
As stated in the comments the error message is strictly correct because
overload resolution takes place before access checking.  At the same time, I do
agree that it might be helpful to mention the access level of each candidate in
the error message if/when the access matters, similarly to what Clang does
(below). On that basis I'll confirm this as an enhancement request.

t.C:11:16: error: 'f' is a private member of 'Klass'
        Klass::f (x);
               ^
t.C:5:21: note: declared private here
        static void f(const char*& a, int b) {}
                    ^
t.C:11:20: error: too few arguments to function call, expected 2, have 1
        Klass::f (x);
        ~~~~~~~~   ^
t.C:5:9: note: 'f' declared here
        static void f(const char*& a, int b) {}
>From gcc-bugs-return-553314-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 19:17:48 2017
Return-Path: <gcc-bugs-return-553314-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57249 invoked by alias); 7 Feb 2017 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 56965 invoked by uid 48); 7 Feb 2017 19:17:33 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79411] [5/6/7 Regression] ICE: SSA corruption (fail_abnormal_edge_coalesce)
Date: Tue, 07 Feb 2017 19: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: 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: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79411-4-isIxfEY9Gb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79411-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79411-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00846.txt.bz2
Content-length: 943

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Seems it is reassoc1 that transforms:
@@ -48,7 +69,6 @@ foo (struct C * x, const int * y, unsign

 ;;   basic block 5, loop depth 0
 ;;    pred:       3
-  _2 = d_1(ab) + 1;
   _3 = x_25(D)->c1;
   if (_3 != 0)
     goto <bb 7>; [50.00%]
@@ -81,7 +101,7 @@ foo (struct C * x, const int * y, unsign
 ;;    pred:       7
   _5 = e_27(D) == 0;
   _6 = d_1(ab) > 7;
-  _7 = _5 | _6;
+  _7 = _6 | _5;
   if (_7 != 0)
     goto <bb 10>; [50.00%]
   else
@@ -155,7 +175,7 @@ foo (struct C * x, const int * y, unsign

 ;;   basic block 16, loop depth 0
 ;;    pred:       15
-  _11 = _2 + 1;
+  _11 = d_1(ab) + 2;
   *z_29(D) = _11;
 ;;    succ:       17

which is not valid, because while in bb5 d_1(ab) is the current SSA_NAME of d,
in bb16 it is d_13(ab), so it can't be propagated.  Looking into it.
>From gcc-bugs-return-553315-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 19:34:53 2017
Return-Path: <gcc-bugs-return-553315-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11583 invoked by alias); 7 Feb 2017 19: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 11425 invoked by uid 48); 7 Feb 2017 19:34:46 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/41557] gcc.exe: Internal error: (null) (program cc1plus)
Date: Tue, 07 Feb 2017 19: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-41557-4-nRZcrX3Yyd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41557-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41557-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00847.txt.bz2
Content-length: 608

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-02-07
                 CC|                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> ---
Is this still a problem or did the fix in r231804 resolve it?
>From gcc-bugs-return-553316-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 19:40:34 2017
Return-Path: <gcc-bugs-return-553316-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45590 invoked by alias); 7 Feb 2017 19:40: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 45316 invoked by uid 48); 7 Feb 2017 19:40:20 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79411] [5/6/7 Regression] ICE: SSA corruption (fail_abnormal_edge_coalesce)
Date: Tue, 07 Feb 2017 19: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: 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: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79411-4-yt10GnsSF2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79411-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79411-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00848.txt.bz2
Content-length: 1037

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
There is just a single SSA_NAME_OCCURS_IN_ABNORMAL_PHI check in
tree-ssa-reassoc.c in the range handling code, I'd say that is significantly
less than what really is needed.  Unless we want to add code to be extremely
careful about (ab) SSA_NAMEs, I'd say we just shouldn't try to reassociate
anything involving those.  To be precise, it would be ok if say we have:
  _2 = d_1(ab) + 1;
...
  _5 = _2 + 1;
to turn that into
  _30 = d_1(ab);
...
  _5 = _30 + 2;
and similar, but the (ab) uses would need to stay at the points they were used
in, I guess that would be a lot of work though (and still we shouldn't look
through (ab) SSA_NAMEs e.g. when linearizing trees etc.
So perhaps it will be much easier to just punt if (ab) appears on lhs or
rhs{1,2}, and don't look through in linearization if there are (ab) operands in
those (so that ops array stays (ab) free.  Richard, what do you think about
that?
>From gcc-bugs-return-553317-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 19:52:10 2017
Return-Path: <gcc-bugs-return-553317-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58565 invoked by alias); 7 Feb 2017 19:52: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 58361 invoked by uid 48); 7 Feb 2017 19:51:57 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/41590] No __STDC__ definition in -g3 -E output on STDC_0_IN_SYSTEM_HEADERS systems
Date: Tue, 07 Feb 2017 19:52: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: 4.5.0
X-Bugzilla-Keywords: documentation, patch
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: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords cc assigned_to
Message-ID: <bug-41590-4-bWmN25mC33@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41590-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41590-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00849.txt.bz2
Content-length: 610

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |documentation, patch
                 CC|                            |msebor at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |msebor at gcc dot gnu.org

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
Documentation patch:
https://gcc.gnu.org/ml/gcc-patches/2017-02/msg00560.html
>From gcc-bugs-return-553318-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 19:52:10 2017
Return-Path: <gcc-bugs-return-553318-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58584 invoked by alias); 7 Feb 2017 19:52: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 58510 invoked by uid 48); 7 Feb 2017 19:52:05 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/41596] handling of library-related options by g++spec.c causes a failure when generating pch.
Date: Tue, 07 Feb 2017 19: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: 4.5.0
X-Bugzilla-Keywords:
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: 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-41596-4-fzFZEm4hHc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41596-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41596-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00850.txt.bz2
Content-length: 481

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-02-07
                 CC|                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1
>From gcc-bugs-return-553319-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 19:56:57 2017
Return-Path: <gcc-bugs-return-553319-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65229 invoked by alias); 7 Feb 2017 19:56: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 64985 invoked by uid 48); 7 Feb 2017 19:56:43 -0000
From: "danglin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/41671] Unsatisfied symbol "__sync_fetch_and_add_4"
Date: Tue, 07 Feb 2017 19:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
X-Bugzilla-Version: 4.5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: danglin 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-41671-4-47J77jlYBm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41671-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41671-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00851.txt.bz2
Content-length: 501

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

John David Anglin <danglin at gcc dot gnu.org> changed:

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

--- Comment #3 from John David Anglin <danglin at gcc dot gnu.org> ---
I have fixed all the testcases where this is a problem (for the moment).
>From gcc-bugs-return-553320-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 20:06:46 2017
Return-Path: <gcc-bugs-return-553320-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90694 invoked by alias); 7 Feb 2017 20:06:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 90545 invoked by uid 48); 7 Feb 2017 20:06:32 -0000
From: "jussi.judin at ericsson dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79414] New: internal compiler error after "error: expected unqualified-id at end of input"
Date: Tue, 07 Feb 2017 20:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jussi.judin at ericsson 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-79414-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00852.txt.bz2
Content-length: 4590

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

            Bug ID: 79414
           Summary: internal compiler error after "error: expected
                    unqualified-id at end of input"
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jussi.judin at ericsson dot com
  Target Milestone: ---

GCC 7.0.1 (git commit 7458afd6b35c4851d146f058435ba3dd6215db44) segmentation
faults on following code after "error: expected unqualified-id at end of
input". I encountered this while applying C-Reduce to another type of crash:

class x0;
template <x1> x2() {
x0 x3 = x3.

If I try to compile this with "gcc-bin/bin/g++ tst.cc" command, it will result
in following output:

tst.cc:2:11: error: ‘x1’ has not been declared
 template <x1> x2() {
           ^~
tst.cc:2:18: error: ISO C++ forbids declaration of ‘x2’ with no type
[-fpermissive]
 template <x1> x2() {
                  ^
tst.cc: In function ‘int x2()’:
tst.cc:3:4: warning: ‘x3’ has incomplete type
 x0 x3 = x3.
    ^~
tst.cc:1:7: note: forward declaration of ‘class x0’
 class x0;
       ^~
tst.cc:3:11: error: expected unqualified-id at end of input
 x0 x3 = x3.
           ^
tst.cc:3:11: internal compiler error: Segmentation fault
0xd27c4f crash_signal
        ../../gcc/gcc/toplev.c:333
0x60a355 cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int)
        ../../gcc/gcc/cp/decl.c:6877
0x708c2c cp_parser_init_declarator
        ../../gcc/gcc/cp/parser.c:19398
0x70947c cp_parser_simple_declaration
        ../../gcc/gcc/cp/parser.c:12792
0x70a235 cp_parser_block_declaration
        ../../gcc/gcc/cp/parser.c:12617
0x70ace9 cp_parser_declaration_statement
        ../../gcc/gcc/cp/parser.c:12227
0x6e59c3 cp_parser_statement
        ../../gcc/gcc/cp/parser.c:10714
0x6e6a5d cp_parser_statement_seq_opt
        ../../gcc/gcc/cp/parser.c:11046
0x6e6b2f cp_parser_compound_statement
        ../../gcc/gcc/cp/parser.c:11000
0x6fad43 cp_parser_function_body
        ../../gcc/gcc/cp/parser.c:21450
0x6fad43 cp_parser_ctor_initializer_opt_and_function_body
        ../../gcc/gcc/cp/parser.c:21488
0x7037a1 cp_parser_function_definition_after_declarator
        ../../gcc/gcc/cp/parser.c:26255
0x708fa0 cp_parser_function_definition_from_specifiers_and_declarator
        ../../gcc/gcc/cp/parser.c:26167
0x708fa0 cp_parser_init_declarator
        ../../gcc/gcc/cp/parser.c:19177
0x6e2a0a cp_parser_single_declaration
        ../../gcc/gcc/cp/parser.c:26713
0x702ddc cp_parser_template_declaration_after_parameters
        ../../gcc/gcc/cp/parser.c:26317
0x702a6c cp_parser_explicit_template_declaration
        ../../gcc/gcc/cp/parser.c:26552
0x702a6c cp_parser_template_declaration_after_export
        ../../gcc/gcc/cp/parser.c:26571
0x6e2ed9 cp_parser_declaration
        ../../gcc/gcc/cp/parser.c:12464
0x71369b cp_parser_declaration_seq_opt
        ../../gcc/gcc/cp/parser.c:12391
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

gcc -v gives following output on x86_64 Ubuntu 14.04 based system:

Using built-in specs.
COLLECT_GCC=/home/ejusjud/local/gcc-bin/bin/g++
COLLECT_LTO_WRAPPER=/local/ejusjud/gcc-bin/bin/../libexec/gcc/x86_64-pc-linux-gnu/7.0.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc/configure --enable-languages=c,c++ --enable-libmpx
--prefix=/home/ejusjud/local/gcc-bin : (reconfigured) ../gcc/configure
--enable-languages=c,c++ --enable-libmpx --prefix=/home/ejusjud/local/gcc-bin :
(reconfigured) ../gcc/configure --enable-languages=c,c++ --enable-libmpx
--prefix=/home/ejusjud/local/gcc-bin : (reconfigured) ../gcc/configure
--enable-languages=c,c++ --enable-libmpx --prefix=/home/ejusjud/local/gcc-bin :
(reconfigured) ../gcc/configure --enable-languages=c,c++ --enable-libmpx
--prefix=/home/ejusjud/local/gcc-bin : (reconfigured) ../gcc/configure
--enable-languages=c,c++ --enable-libmpx --prefix=/home/ejusjud/local/gcc-bin :
(reconfigured) ../gcc/configure --enable-languages=c,c++ --enable-libmpx
--prefix=/home/ejusjud/local/gcc-bin : (reconfigured) ../gcc/configure
--enable-languages=c,c++ --enable-libmpx --prefix=/home/ejusjud/local/gcc-bin
Thread model: posix
gcc version 7.0.1 20170207 (experimental) (GCC)
>From gcc-bugs-return-553321-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 20:11:31 2017
Return-Path: <gcc-bugs-return-553321-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99973 invoked by alias); 7 Feb 2017 20:11: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 99713 invoked by uid 48); 7 Feb 2017 20:11:19 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/41517] Unexpected behaviour of #pragma in statement context
Date: Tue, 07 Feb 2017 20: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.3.3
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc see_also everconfirmed
Message-ID: <bug-41517-4-p7fvcOcu9P@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41517-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41517-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00853.txt.bz2
Content-length: 928

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-07
                 CC|                            |msebor at gcc dot gnu.org
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=63326
     Ever confirmed|0                           |1

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
It seems this should either be confirmed or resolved as a duplicate of bug
63326.  Silently treating #pragmas differently between C and C++ is a recipe
for subtle bugs.  A warning as suggested in bug 63326 comment 8 would be
helpful.
>From gcc-bugs-return-553322-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 20:24:48 2017
Return-Path: <gcc-bugs-return-553322-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56090 invoked by alias); 7 Feb 2017 20:24: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 33666 invoked by uid 48); 7 Feb 2017 20:24:19 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/41373] attribute error and warning dont show the instantiation stack
Date: Tue, 07 Feb 2017 20: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: 4.4.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-41373-4-JHusnf7LSx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41373-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41373-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00854.txt.bz2
Content-length: 1643

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-07
                 CC|                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed with recent trunk of GCC 7.  The instantiation context should be
present in all diagnostics.

$ cat t.C && gcc -S -Wall t.C
void f (int) __attribute__ ((error ("error")));
void f (double) __attribute__ ((warning ("warning")));
void f (void*) __attribute__ ((deprecated));

template <class T>
void g ()
{
  f (T ());
}

int main ()
{
  g<int>();
  g<double>();
  g<void*>();
}
t.C: In instantiation of ‘void g() [with T = void*]’:
t.C:15:12:   required from here
t.C:8:5: warning: ‘void f(void*)’ is deprecated [-Wdeprecated-declarations]
   f (T ());
   ~~^~~~~~
t.C:3:6: note: declared here
 void f (void*) __attribute__ ((deprecated));
      ^
t.C: In function ‘void g() [with T = int]’:
t.C:8:5: error: call to ‘f’ declared with attribute error: error
   f (T ());
   ~~^~~~~~
t.C: In function ‘void g() [with T = double]’:
t.C:8:5: warning: call to ‘f’ declared with attribute warning: warning
   f (T ());
   ~~^~~~~~
>From gcc-bugs-return-553323-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 20:29:39 2017
Return-Path: <gcc-bugs-return-553323-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130636 invoked by alias); 7 Feb 2017 20:29: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 130436 invoked by uid 48); 7 Feb 2017 20:29:25 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug pch/41346] Precompiled headers from stdin don't work
Date: Tue, 07 Feb 2017 20:29: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.4.1
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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-41346-4-9EBAKWpppG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41346-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41346-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00855.txt.bz2
Content-length: 719

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

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

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

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
This has been changed and stdin is no longer accepted as input for c-header:

$ gcc -x c-header - </dev/null
xgcc: fatal error: cannot use ‘-’ as input filename for a precompiled header
compilation terminated.
>From gcc-bugs-return-553324-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 20:50:20 2017
Return-Path: <gcc-bugs-return-553324-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101764 invoked by alias); 7 Feb 2017 20:50: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 101587 invoked by uid 48); 7 Feb 2017 20:50:07 -0000
From: "jussi.judin at ericsson dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79415] New: -fcheck-pointer-bounds results in internal compiler error weakref attributes
Date: Tue, 07 Feb 2017 20:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jussi.judin at ericsson 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-79415-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00856.txt.bz2
Content-length: 3431

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

            Bug ID: 79415
           Summary: -fcheck-pointer-bounds results in internal compiler
                    error weakref attributes
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jussi.judin at ericsson dot com
  Target Milestone: ---

GCC 7.0.1 (git hash 7458afd6b35c4851d146f058435ba3dd6215db44) results in
internal compiler error on following input with -fcheck-pointer-bounds and
-mmpx options on x86_64 architecture:

void fn1();
static __typeof fn1 fn2 __attribute__((__weakref__("")));
void fn3() { void *a = (void *)fn2; }

When I compile that code, I get following output:

$ gcc-bin/bin/g++ --std=c++11 -c -fcheck-pointer-bounds -mmpx
gcc-error-verify-cgraph-node-failed.cc
gcc-error-verify-cgraph-node-failed.cc:3:37: error: node is weakref but not an
transparent_alias
 void fn3() { void *a = (void *)fn2; }
                                     ^
_ZL3fn2v.chkp/5 (void fn2.chkp()) @0x7fb2e16b7450
  Type: function alias weakref target:
  Visibility: weak
  Address is taken.
  References: 
  Referring: _Z3fn3v.chkp/2 (addr)
  Availability: not_available
  First run: 0
  Function flags:
  Called by: 
  Calls: 
  Is instrumented version.
gcc-error-verify-cgraph-node-failed.cc:3:37: internal compiler error:
verify_cgraph_node failed
0x92460b cgraph_node::verify_node()
        ../../gcc/gcc/cgraph.c:3490
0x91937c symtab_node::verify()
        ../../gcc/gcc/symtab.c:1183
0x91944f symtab_node::verify_symtab_nodes()
        ../../gcc/gcc/symtab.c:1203
0xb626a5 symtab_node::checking_verify_symtab_nodes()
        ../../gcc/gcc/cgraph.h:616
0xb626a5 symbol_table::remove_unreachable_nodes(_IO_FILE*)
        ../../gcc/gcc/ipa.c:698
0xc53fce execute_todo
        ../../gcc/gcc/passes.c:2030
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

gcc -v returns following information on Ubuntu 14.04 based x86_64 system:

Using built-in specs.
COLLECT_GCC=/home/ejusjud/local/gcc-bin/bin/g++
COLLECT_LTO_WRAPPER=/local/ejusjud/gcc-bin/bin/../libexec/gcc/x86_64-pc-linux-gnu/7.0.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc/configure --enable-languages=c,c++ --enable-libmpx
--prefix=/home/ejusjud/local/gcc-bin : (reconfigured) ../gcc/configure
--enable-languages=c,c++ --enable-libmpx --prefix=/home/ejusjud/local/gcc-bin :
(reconfigured) ../gcc/configure --enable-languages=c,c++ --enable-libmpx
--prefix=/home/ejusjud/local/gcc-bin : (reconfigured) ../gcc/configure
--enable-languages=c,c++ --enable-libmpx --prefix=/home/ejusjud/local/gcc-bin :
(reconfigured) ../gcc/configure --enable-languages=c,c++ --enable-libmpx
--prefix=/home/ejusjud/local/gcc-bin : (reconfigured) ../gcc/configure
--enable-languages=c,c++ --enable-libmpx --prefix=/home/ejusjud/local/gcc-bin :
(reconfigured) ../gcc/configure --enable-languages=c,c++ --enable-libmpx
--prefix=/home/ejusjud/local/gcc-bin : (reconfigured) ../gcc/configure
--enable-languages=c,c++ --enable-libmpx --prefix=/home/ejusjud/local/gcc-bin
Thread model: posix
gcc version 7.0.1 20170207 (experimental) (GCC)
>From gcc-bugs-return-553325-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 20:50:39 2017
Return-Path: <gcc-bugs-return-553325-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103330 invoked by alias); 7 Feb 2017 20:50: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 102473 invoked by uid 48); 7 Feb 2017 20:50:26 -0000
From: "vmakarov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79282] [7 Regresion] FAIL: gcc.target/arm/neon-for-64bits-1.c scan-assembler-times vshr 0
Date: Tue, 07 Feb 2017 20:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.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: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79282-4-IoR07vf0uT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79282-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79282-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00857.txt.bz2
Content-length: 1580

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

--- Comment #6 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
Here is my analysis of the problem.

 The test was successful as LRA actually did not work for the test.
LRA just checked that all insn constraints were satisfied.  If LRA did
any transformation, the test would fail too before the latest changes
in LRA.

The recent changes in LRA force it to do always a live analysis.  If we
have an insn with the following alternative and operands 1 and 2 are
different pseudos assigned to the same hard register by IRA:

&r(1) = 0(2), r(3)

lra-constraints.c decides that the insn does not need any
transformation.  If LRA live analysis is executed, it decides that
pseudos in operands 1 and 2 conflicts because LRA live analysis
(lra-lives.c) ignores the fact that they should be in the same hard
register.

Fixing this bug in LRA would require LRA live analysis to be aware of
the chosen alternative and matched operands.  It is a big change,
implementing this would affect other targets unpredictably.  Probably
it is not wise to do it at this stage.

I think changing pattern

&r(1) = 0(2), r(3)

to

r(1) = 0(2), r(3)

would be a right solution on the target side.  The operand 1 can not
get the same hard register as input operands or other early clobbered
output operands because it should be the same as operand 2 which
already can not be assigned to the same hard reg as other input and
early clobber output operands.

Although I don't know how big the part of .md file will be affected by such
change.
>From gcc-bugs-return-553326-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 20:54:42 2017
Return-Path: <gcc-bugs-return-553326-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110615 invoked by alias); 7 Feb 2017 20:54: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 110456 invoked by uid 48); 7 Feb 2017 20:54:29 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79410] [6 Regression] internal compiler error: in gimplify_init_ctor_preeval, at gimplify.c:3489
Date: Tue, 07 Feb 2017 20: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: 6.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: 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-79410-4-slD33SYgCQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79410-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79410-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00858.txt.bz2
Content-length: 457

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

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> ---
This got fixed or went latent with r240845.
r230365 is the first rev that ICEs.
>From gcc-bugs-return-553327-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 21:08:49 2017
Return-Path: <gcc-bugs-return-553327-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8968 invoked by alias); 7 Feb 2017 21:08: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 8787 invoked by uid 48); 7 Feb 2017 21:08:36 -0000
From: "mini at cs dot technion.ac.il" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79416] New: Internal compiler error for recursive template expansion
Date: Tue, 07 Feb 2017 21:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mini at cs dot technion.ac.il
X-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-79416-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00859.txt.bz2
Content-length: 1417

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

            Bug ID: 79416
           Summary: Internal compiler error for recursive template
                    expansion
           Product: gcc
           Version: 5.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mini at cs dot technion.ac.il
  Target Milestone: ---

Target: x86_64-linux-gnu
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 

I ran it about 10 times. 9 times I got this output:
$ g++ prog.cpp 
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.

I got this output 1 time:
$ g++ prog.cpp 

cc1plus: out of memory allocating 268435144 bytes after a total of 101212160
bytes


to reproduce:
$ cat prog.cpp 
template <int N>
void nops() __attribute((always_inline));

template <int N>
void more_nops() __attribute((always_inline));

template <int N>
inline void nops()
{
        asm("nop");
        nops<N - 1>();
}

template<>
inline void nops<0>()
{
};

template <int N>
inline void more_nops()
{
        nops<800>();
        more_nops<N - 1>();
};

template<>
inline void more_nops<0>()
{
};

int main() {
        more_nops<300>();
}

$ g++ prog.cpp
>From gcc-bugs-return-553328-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 21:12:40 2017
Return-Path: <gcc-bugs-return-553328-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45764 invoked by alias); 7 Feb 2017 21:12: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 45640 invoked by uid 48); 7 Feb 2017 21:12:34 -0000
From: "aldyh at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/64081] [5/6/7 Regression] r217827 prevents RTL loop unroll
Date: Tue, 07 Feb 2017 21:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: aldyh 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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-64081-4-ezfLIjnw3Q@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00860.txt.bz2
Content-length: 1465

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

--- Comment #53 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
Created attachment 40690
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40690&action=edit
reduced testcase with rtl dumps and assembly

Ughh, that was painful.  The attached .tar.gz file has a reduced testcase.ii as
well as the RTL dumps and testcase.s.  The testcase looks big, but it only
generates one small function: crapola.

I hope I didn't botch something in the reduction.  The order of loop is
somewhat changed, but I think still exhibits the behavior.  That is:

[snip]
        addi 7,5,-1          ;; r7 = length - 1
        lwz 3,4(9)
        addi 8,8,8
        mtctr 7              ;; init CTR to length - 1
        li 10,1              ;; j
        li 4,1
        .align 4
L..3:
        lwzu 9,4(8)
        lwz 9,4(9)
        andis. 7,9,0x4000
        beq 0,L..12
        addi 10,10,1         ;; keep r10/j updated even though...
        bdnz L..3            ;; ...we iterate with CTR
        blr
        .align 4
L..12:
        lwz 6,0(3)
        lwz 7,0(6)
        cmpwi 7,7,0
        bne- 7,L..13
        rlwinm 9,10,29,3,29
        rlwinm 7,10,0,27,31
        add 9,6,9
        addi 10,10,1
        lwz 6,12(9)
        cmplw 7,5,10         ;; compare length and j
        slw 7,4,7
        or 7,6,7
        stw 7,12(9)
        bne+ 7,L..3          ;; branch on j/length but we fail to update CTR!!
        blr
>From gcc-bugs-return-553329-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 21:23:37 2017
Return-Path: <gcc-bugs-return-553329-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 72449 invoked by alias); 7 Feb 2017 21: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 72325 invoked by uid 48); 7 Feb 2017 21:23:24 -0000
From: "meissner at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/68163] GCC on power8 does not issue the stxsspx instruction on power8
Date: Tue, 07 Feb 2017 21:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: meissner at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: meissner at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-68163-4-2MWwHwQrxQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68163-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68163-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00861.txt.bz2
Content-length: 501

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

--- Comment #1 from Michael Meissner <meissner at gcc dot gnu.org> ---
Created attachment 40691
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40691&action=edit
Proposed patch to fix the problem.

I believe this patch fixes the problem.

Note, I am going on vacation, and won't return until the end of February, so I
won't be submitting the patch until I get back (unless somebody else wants to
verify that it works and submits it).
>From gcc-bugs-return-553330-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 21:41:55 2017
Return-Path: <gcc-bugs-return-553330-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102475 invoked by alias); 7 Feb 2017 21:41: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 102351 invoked by uid 48); 7 Feb 2017 21:41:41 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/41540] -dM -E doesn't #define __FILE__
Date: Tue, 07 Feb 2017 21:41: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: 4.4.1
X-Bugzilla-Keywords: documentation, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on assigned_to everconfirmed
Message-ID: <bug-41540-4-SQAEqYU4KC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41540-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41540-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00862.txt.bz2
Content-length: 729

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |documentation, patch
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-02-07
           Assignee|unassigned at gcc dot gnu.org      |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
A documentation-only patch posted for review:
https://gcc.gnu.org/ml/gcc-patches/2017-02/msg00560.html
>From gcc-bugs-return-553331-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 21:52:08 2017
Return-Path: <gcc-bugs-return-553331-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115293 invoked by alias); 7 Feb 2017 21:52: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 115010 invoked by uid 55); 7 Feb 2017 21:51:54 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79399] GCC fails to compile big source at -O0
Date: Tue, 07 Feb 2017 21:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: unknown
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:
Message-ID: <bug-79399-4-uT4mHfvMnE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79399-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79399-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00863.txt.bz2
Content-length: 557

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

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Feb  7 21:51:21 2017
New Revision: 245256

URL: https://gcc.gnu.org/viewcvs?rev=245256&root=gcc&view=rev
Log:
        PR middle-end/79399
        * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
        type from int to size_t.
        * ira-costs.c (struct_costs_size): Change type from int to size_t.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ira-costs.c
    trunk/gcc/ira-int.h
>From gcc-bugs-return-553332-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 21:53:53 2017
Return-Path: <gcc-bugs-return-553332-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117203 invoked by alias); 7 Feb 2017 21:53:52 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 116961 invoked by uid 48); 7 Feb 2017 21:53:39 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/41339] Variables can occur multiple times in cfun->local_decls
Date: Tue, 07 Feb 2017 21:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-41339-4-Fch5ipYneL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41339-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41339-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00864.txt.bz2
Content-length: 727

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-02-07
                 CC|                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
The patch doesn't apply in its current form.  Was it ever posted for review to
gcc-patches?  If so, what was the outcome? (I.e., can this bug be resolved one
way or the other?)
>From gcc-bugs-return-553333-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 22:04:53 2017
Return-Path: <gcc-bugs-return-553333-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42079 invoked by alias); 7 Feb 2017 22:04: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 39480 invoked by uid 48); 7 Feb 2017 22:04:44 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/41272] FAIL: gcc.dg/debug/dwarf2/inline2.c scan-assembler-times \(DIE \(.*?\) DW_TAG_in lined_subroutine 6
Date: Tue, 07 Feb 2017 22:04: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: 4.4.2
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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-41272-4-fIRIsNCvnd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41272-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41272-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00865.txt.bz2
Content-length: 736

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

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

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

--- Comment #7 from Martin Sebor <msebor at gcc dot gnu.org> ---
I don't see the test failure in the most recent results for the
hppa-unknown-linux-gnu target:
https://gcc.gnu.org/ml/gcc-testresults/2017-02/msg00693.html

I'll resolve this as fixed.  Please reopen if it still is a problem or it if
reappears.
>From gcc-bugs-return-553334-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 22:06:40 2017
Return-Path: <gcc-bugs-return-553334-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44299 invoked by alias); 7 Feb 2017 22: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 44136 invoked by uid 48); 7 Feb 2017 22:06:26 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/41203] -mtune=pentium2 structure related tree-outof-ssa internal compiler error
Date: Tue, 07 Feb 2017 22:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.5.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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-41203-4-gZdNKA4jOT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41203-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41203-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00866.txt.bz2
Content-length: 566

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

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

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

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Unable to reproduce with the current trunk (GCC 7.0).  Resolving as fixed.
>From gcc-bugs-return-553336-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 22:52:38 2017
Return-Path: <gcc-bugs-return-553336-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73303 invoked by alias); 7 Feb 2017 22:52: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 73166 invoked by uid 48); 7 Feb 2017 22:52:27 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug driver/41179] Documentation for "-fno-toplevel-reorder" is confusing (and wrong)
Date: Tue, 07 Feb 2017 22:52: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: 4.4.1
X-Bugzilla-Keywords: documentation
X-Bugzilla-Severity: trivial
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-41179-4-QA9wZazxFi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41179-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41179-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00868.txt.bz2
Content-length: 1982

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |documentation
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-07
                 CC|                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
The description of the option has changed since this issue was first raised but
I agree that the description could be made clearer.  In GCC 7 it reads:

  -fno-toplevel-reorder
       Do not reorder top-level functions, variables, and asm statements.
Output them in the same order that they appear in the input file. When this
option is used, unreferenced static variables are not removed. This option is
intended to support existing code that relies on a particular ordering. For new
code, it is better to use attributes when possible.

       Enabled at level -O0. When disabled explicitly, it also implies
-fno-section-anchors, which is otherwise enabled at -O0 on some targets.

The confusing "-fno-xxx" option ... is enabled/disabled" phrasing is used in at
least a couple pf others places:

  -fno-defer-pop
       ...
       Disabled at levels -O, -O2, -O3, -Os. 

It's unclear whether disabled means -fno-defer-pop is in effect, or whether it
means that -fdefer-pop is.

Or, arguably even more confusing:

  -fno-branch-count-reg
  ...
       Enabled by default at -O1 and higher.
       The default is -fbranch-count-reg.

Most of the remaining -fno-xxx (and -fxxx) options use the phrase "The default
is -fxxx" (or "The default is -fno-xxx"), such as "The default is
-fzero-initialized-in-bss."  I think it would be best to adopt this style
throughout.
>From gcc-bugs-return-553335-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 22:52:15 2017
Return-Path: <gcc-bugs-return-553335-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 72488 invoked by alias); 7 Feb 2017 22:52: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 72377 invoked by uid 48); 7 Feb 2017 22:52:02 -0000
From: "john.harper at vuw dot ac.nz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79417] New: -Wconversion warns wrongly of real(16) to real(8)
Date: Tue, 07 Feb 2017 22:52: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: 6.1.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: john.harper at vuw dot ac.nz
X-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-79417-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00867.txt.bz2
Content-length: 2392

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

            Bug ID: 79417
           Summary: -Wconversion warns wrongly of real(16) to real(8)
           Product: gcc
           Version: 6.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: john.harper at vuw dot ac.nz
  Target Milestone: ---

If array parameters are declared with both quad and double precision, the quad
one triggers a -Wconversion warning but the program's output shows that the
conversion did not happen. (The warning does not occur with a scalar quad
parameter, nor if the double precision ones are commented out.)  


cayley[~/Jfh] % cat realtest2.f90
program tryit
  implicit none
  integer,parameter:: qp = selected_real_kind(30), dp = kind(1d0)
  real(qp),parameter:: q1 = 1, q23(1) = 2*q1/3
  real(dp),parameter:: d1 = 1, d23(1) = real(q23,dp)
  print "(F42.36)",q23
  print "(F24.18)",d23
end program tryit
cayley[~/Jfh] % gfortran -Wconversion realtest2.f90
realtest2.f90:4:39:

   real(qp),parameter:: q1 = 1, q23(1) = 2*q1/3
                                       1
Warning: Change of value in conversion from ‘REAL(16)’ to ‘REAL(8)’ at (1)
[-Wconversion]
cayley[~/Jfh] % ./a.out
    0.666666666666666666666666666666666635
    0.666666666666666630
cayley[~/Jfh] % cayley[~/Jfh] % gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib
--libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info
--with-bugurl=https://bugs.archlinux.org/
--enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared
--enable-threads=posix --enable-libmpx --with-system-zlib --with-isl
--enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu
--disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object
--enable-linker-build-id --enable-lto --enable-plugin
--enable-install-libiberty --with-linker-hash-style=gnu
--enable-gnu-indirect-function --disable-multilib --disable-werror
--enable-checking=release
Thread model: posix
gcc version 6.1.1 20160602 (GCC) 
cayley[~/Jfh] %
>From gcc-bugs-return-553337-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 23:00:49 2017
Return-Path: <gcc-bugs-return-553337-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80771 invoked by alias); 7 Feb 2017 23:00: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 80274 invoked by uid 48); 7 Feb 2017 23:00:33 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/41150] segmentation fault after using __attribute__((optimize()))
Date: Tue, 07 Feb 2017 23:00: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.4.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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-41150-4-uZbbyRX7je@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41150-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41150-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00869.txt.bz2
Content-length: 545

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

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

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

--- Comment #11 from Martin Sebor <msebor at gcc dot gnu.org> ---
No ICE on recent trunk (GCC 7).  Resolving as fixed.
>From gcc-bugs-return-553338-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 23:04:01 2017
Return-Path: <gcc-bugs-return-553338-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93115 invoked by alias); 7 Feb 2017 23:04:01 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 87953 invoked by uid 48); 7 Feb 2017 23:03:48 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/21485] [5/6/7 Regression] missed load PRE, PRE makes i?86/7 suck
Date: Tue, 07 Feb 2017 23:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.0.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-21485-4-SKPr92VBNC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-21485-4@http.gcc.gnu.org/bugzilla/>
References: <bug-21485-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00870.txt.bz2
Content-length: 1063

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |law at redhat dot com

--- Comment #62 from Jeffrey A. Law <law at redhat dot com> ---
So one thing that seems to ever so slightly improve this code is to realize
that as we come around to the top of the loop the test _14 < j_20 can be
rewritten as _14 != j_20 (we already know that _14 <= j_20).

That's quite a surprise as all that seems to do is allow propagation of j_20
for _14 in a later PHI node and we do less use work in PRE -- so it seems like
a step backwards at this point.

But then sink comes along and moves two address computations and a load into a
more control dependent block.  LIM4 later pulls the two address computations
totally out of the loop.

But that all seems to be relatively accidental improvements based on PRE not
seeing a transformation.
>From gcc-bugs-return-553339-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 23:11:11 2017
Return-Path: <gcc-bugs-return-553339-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118045 invoked by alias); 7 Feb 2017 23:11: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 115035 invoked by uid 48); 7 Feb 2017 23:10:56 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/41142] make implicit pointer conversions an error when sizeof(int) != sizeof(void *)
Date: Tue, 07 Feb 2017 23: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.3.4
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-41142-4-hWU6UIMhwG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41142-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41142-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00871.txt.bz2
Content-length: 1944

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-02-07
                 CC|                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
There has been no update on this request in over 7 years.  Is it still relevant
(especially in light of comment #1)?  If so, can you provide more details? 
I.e., what warnings specifically would you like to treat as errors that
-Werror=warning-name doesn't let you do?  Like so:

$ cat t.c && /build/gcc-git/gcc/xgcc -B /build/gcc-git/gcc -O0 -S -Wall
-Werror=int-conversion t.c
int f (void*);
void* g (void)
{
  char *s = f (0);
  f (123);
  s = 345;
  return 456;
}
t.c: In function ‘g’:
t.c:4:13: error: initialization makes pointer from integer without a cast
[-Werror=int-conversion]
   char *s = f (0);
             ^
t.c:5:6: error: passing argument 1 of ‘f’ makes pointer from integer without a
cast [-Werror=int-conversion]
   f (123);
      ^~~
t.c:1:5: note: expected ‘void *’ but argument is of type ‘int’
 int f (void*);
     ^
t.c:6:5: error: assignment makes pointer from integer without a cast
[-Werror=int-conversion]
   s = 345;
     ^
t.c:7:10: error: return makes pointer from integer without a cast
[-Werror=int-conversion]
   return 456;
          ^~~
t.c:4:9: warning: variable ‘s’ set but not used [-Wunused-but-set-variable]
   char *s = f (0);
         ^
cc1: some warnings being treated as errors
>From gcc-bugs-return-553340-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 23:23:08 2017
Return-Path: <gcc-bugs-return-553340-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12441 invoked by alias); 7 Feb 2017 23:23: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 12250 invoked by uid 55); 7 Feb 2017 23:22:54 -0000
From: "dave.anglin at bell dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/70795] [7 Regression] gcc/libjava/interpret.cc:1948:1: ICE: in binds_to_current_def_p, at symtab.c:2232
Date: Tue, 07 Feb 2017 23:23: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dave.anglin at bell dot net
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-70795-4-tOMKQv7dZH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70795-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70795-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00872.txt.bz2
Content-length: 1115

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

--- Comment #13 from dave.anglin at bell dot net ---
On 2017-02-05, at 1:12 PM, hubicka at gcc dot gnu.org wrote:

> I would aprechiate if someone could bootstrap&regtest this
> Index: cgraphunit.c
> ===================================================================
> --- cgraphunit.c        (revision 245196)
> +++ cgraphunit.c        (working copy)
> @@ -541,6 +541,8 @@ cgraph_node::add_new_function (tree fnde
>        node->local.local = false;
>        node->definition = true;
>        node->force_output = true;
> +       if (TREE_PUBLIC (fndecl))
> +         node->externally_visible = true;
>        if (!lowered && symtab->state == EXPANSION)
>          {
>            push_cfun (DECL_STRUCT_FUNCTION (fndecl));

Tested on hppa2.0w-hp-hpux11.11.  The patch fixes the ICE in the revised
testcase.  No regressions were observed in the testsuite.

Dave
--
John David Anglin       dave.anglin@bell.net
>From gcc-bugs-return-553342-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 23:29:39 2017
Return-Path: <gcc-bugs-return-553342-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24299 invoked by alias); 7 Feb 2017 23:29: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 24219 invoked by uid 48); 7 Feb 2017 23:29:33 -0000
From: "vmakarov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79282] [7 Regresion] FAIL: gcc.target/arm/neon-for-64bits-1.c scan-assembler-times vshr 0
Date: Tue, 07 Feb 2017 23: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: 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: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79282-4-aXfj06CFk8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79282-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79282-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00874.txt.bz2
Content-length: 807

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

--- Comment #7 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
(In reply to Vladimir Makarov from comment #6)

> I think changing pattern
> 
> &r(1) = 0(2), r(3)
> 
> to
> 
> r(1) = 0(2), r(3)
> 
> would be a right solution on the target side.  The operand 1 can not
> get the same hard register as input operands or other early clobbered
> output operands because it should be the same as operand 2 which
> already can not be assigned to the same hard reg as other input and
> early clobber output operands.
> 
> 
Sorry, It will not work.  I missed the case when operand 2 and 3 is the same
pseudo.  In this case we can not just remove early clobber flag '&'.

OK, I'll try to implement fix in LRA. But it might take 1-2 weeks.
>From gcc-bugs-return-553341-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 23:29:08 2017
Return-Path: <gcc-bugs-return-553341-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23343 invoked by alias); 7 Feb 2017 23:29: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 23217 invoked by uid 48); 7 Feb 2017 23:28:53 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/41098] We should be better in folding pow with integer powers
Date: Tue, 07 Feb 2017 23:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.5.0
X-Bugzilla-Keywords: missed-optimization, xfail
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-41098-4-12uaO0qes1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41098-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41098-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00873.txt.bz2
Content-length: 832

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-07
                 CC|                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
The XFAIL is still in the test and replacing it with linker_error() makes the
test fail, so it looks like the optimization opportunities are still there.  I
note that since r229408 fold_builtin_pow doesn't exist anymore as the logic was
 moved to fold_const_builtin_pow and match.pd.
>From gcc-bugs-return-553343-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 23:34:39 2017
Return-Path: <gcc-bugs-return-553343-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29825 invoked by alias); 7 Feb 2017 23:34:39 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 28652 invoked by uid 48); 7 Feb 2017 23:34:25 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/41091] Using section attribute in c and c++ function causes section type conflict
Date: Tue, 07 Feb 2017 23: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.4.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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-41091-4-ds9vKmYcBR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41091-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41091-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00875.txt.bz2
Content-length: 678

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

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

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

--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
I see no error for the test case in comment #0 with the top of trunk (GCC 7.0)
so I'm resolving this report as fixed.  Please reopen it if the problem
persists with different symptoms.
>From gcc-bugs-return-553344-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 23:38:51 2017
Return-Path: <gcc-bugs-return-553344-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42761 invoked by alias); 7 Feb 2017 23:38: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 42345 invoked by uid 48); 7 Feb 2017 23:38:38 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libffi/41014] Fix for libffi err_bad_abi test failure
Date: Tue, 07 Feb 2017 23:38: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.5.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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-41014-4-EsKHrtRDvN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41014-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41014-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00876.txt.bz2
Content-length: 602

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

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

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

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Looks like the xfail was removed in r184897 as part of the merge from upstream
libffi so resolving as fixed.
>From gcc-bugs-return-553345-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 23:43:35 2017
Return-Path: <gcc-bugs-return-553345-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48503 invoked by alias); 7 Feb 2017 23:43: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 48289 invoked by uid 48); 7 Feb 2017 23:43:29 -0000
From: "danglin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/79418] New: ERROR: gcc.dg/torture/stackalign/builtin-apply-2.c   -O0 : syntax error in targe t selector "target arm_hf_eabi ||  avr-*-*  ||  riscv*-*-*" for "
Date: Tue, 07 Feb 2017 23:43: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: danglin 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-79418-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00877.txt.bz2
Content-length: 1782

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

            Bug ID: 79418
           Summary: ERROR: gcc.dg/torture/stackalign/builtin-apply-2.c
                    -O0 : syntax error in targe t selector "target
                    arm_hf_eabi ||  avr-*-*  ||  riscv*-*-*" for "
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: danglin at gcc dot gnu.org
  Target Milestone: ---

Executing on host: /test/gnu/gcc/objdir/gcc/xgcc -B/test/gnu/gcc/objdir/gcc/
/te
st/gnu/gcc/gcc/gcc/testsuite/gcc.dg/torture/stackalign/builtin-apply-1.c  
-fno-
diagnostics-show-caret -fdiagnostics-color=never    -O2 -flto -fpic  -S   -o
bui
ltin-apply-1.s    (timeout = 300)
spawn /test/gnu/gcc/objdir/gcc/xgcc -B/test/gnu/gcc/objdir/gcc/
/test/gnu/gcc/gc
c/gcc/testsuite/gcc.dg/torture/stackalign/builtin-apply-1.c
-fno-diagnostics-sho
w-caret -fdiagnostics-color=never -O2 -flto -fpic -S -o builtin-apply-1.s
PASS: gcc.dg/torture/stackalign/builtin-apply-1.c   -O2 -flto -fpic (test for
ex
cess errors)
ERROR: gcc.dg/torture/stackalign/builtin-apply-2.c   -O0 : syntax error in
targe
t selector "target arm_hf_eabi ||  avr-*-*  ||  riscv*-*-*" for " dg-skip-if 12 
"Variadic funcs use different argument passing from normal funcs" { arm_hf_eabi 
|| { avr-*-* } || { riscv*-*-* } } "*" "" "

UNRESOLVED: gcc.dg/torture/stackalign/builtin-apply-2.c   -O0 : syntax error in 
target selector "target arm_hf_eabi ||  avr-*-*  ||  riscv*-*-*" for "
dg-skip-i
f 12 "Variadic funcs use different argument passing from normal funcs" {
arm_hf_
eabi || { avr-*-* } || { riscv*-*-* } } "*" "" "
>From gcc-bugs-return-553346-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 23:48:52 2017
Return-Path: <gcc-bugs-return-553346-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70886 invoked by alias); 7 Feb 2017 23:48: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 70774 invoked by uid 48); 7 Feb 2017 23:48:38 -0000
From: "hstong at ca dot ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79419] New: Explicit specialization of constrained member template: ICE in set_constraints
Date: Tue, 07 Feb 2017 23:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hstong at ca dot ibm.com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-79419-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00878.txt.bz2
Content-length: 3476

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

            Bug ID: 79419
           Summary: Explicit specialization of constrained member
                    template: ICE in set_constraints
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hstong at ca dot ibm.com
  Target Milestone: ---

### SOURCE (<stdin>):
template <typename T>
struct A {
  template <typename U>
  requires U::happyA
  static void foo();

  //template <typename U>
  //requires U::happyB
  //static void foo();
};

template <>
template <typename U>
requires U::happyA
void A<int>::foo() { }


### COMPILER INVOCATION:
g++ -std=c++1z -fconcepts -c -o /dev/null -x c++ -


### OUTPUT:
<stdin>:15:18: internal compiler error: in set_constraints, at cp/pt.c:25605
0x60cae9 set_constraints(tree_node*, tree_node*)
        /home/heads/gcc/gcc-source/gcc/cp/pt.c:25605
0x62ee9b determine_specialization
        /home/heads/gcc/gcc-source/gcc/cp/pt.c:2376
0x62f1fa check_explicit_specialization(tree_node*, tree_node*, int, int)
        /home/heads/gcc/gcc-source/gcc/cp/pt.c:2972
0x5b2544 grokfndecl
        /home/heads/gcc/gcc-source/gcc/cp/decl.c:8833
0x6004ae grokdeclarator(cp_declarator const*, cp_decl_specifier_seq*,
decl_context, int, tree_node**)
        /home/heads/gcc/gcc-source/gcc/cp/decl.c:12180
0x602576 start_function(cp_decl_specifier_seq*, cp_declarator const*,
tree_node*)
        /home/heads/gcc/gcc-source/gcc/cp/decl.c:15096
0x688634 cp_parser_function_definition_from_specifiers_and_declarator
        /home/heads/gcc/gcc-source/gcc/cp/parser.c:26071
0x688634 cp_parser_init_declarator
        /home/heads/gcc/gcc-source/gcc/cp/parser.c:19152
0x667e7a cp_parser_single_declaration
        /home/heads/gcc/gcc-source/gcc/cp/parser.c:26661
0x68399c cp_parser_template_declaration_after_parameters
        /home/heads/gcc/gcc-source/gcc/cp/parser.c:26265
0x6836fb cp_parser_explicit_template_declaration
        /home/heads/gcc/gcc-source/gcc/cp/parser.c:26500
0x6836fb cp_parser_template_declaration_after_export
        /home/heads/gcc/gcc-source/gcc/cp/parser.c:26519
0x66806b cp_parser_explicit_specialization
        /home/heads/gcc/gcc-source/gcc/cp/parser.c:16292
0x66837e cp_parser_declaration
        /home/heads/gcc/gcc-source/gcc/cp/parser.c:12436
0x68dc7b cp_parser_declaration_seq_opt
        /home/heads/gcc/gcc-source/gcc/cp/parser.c:12366
0x68df62 cp_parser_translation_unit
        /home/heads/gcc/gcc-source/gcc/cp/parser.c:4369
0x68df62 c_parse_file()
        /home/heads/gcc/gcc-source/gcc/cp/parser.c:38354
0x75b223 c_common_parse_file()
        /home/heads/gcc/gcc-source/gcc/c-family/c-opts.c:1107
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.


### g++ -v output:
Using built-in specs.
COLLECT_GCC=/usr/local/gcc-head/bin/g++
COLLECT_LTO_WRAPPER=/usr/local/gcc-head/libexec/gcc/x86_64-pc-linux-gnu/7.0.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /home/heads/gcc/gcc-source/configure
--prefix=/usr/local/gcc-head --enable-languages=c,c++ --enable-lto
--disable-multilib --without-ppl --without-cloog-ppl --enable-checking=release
--disable-nls
Thread model: posix
gcc version 7.0.1 20170125 (experimental) (GCC)
>From gcc-bugs-return-553347-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 07 23:49:56 2017
Return-Path: <gcc-bugs-return-553347-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71986 invoked by alias); 7 Feb 2017 23:49: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 71864 invoked by uid 48); 7 Feb 2017 23:49:42 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/41001] alloca broken for -fno-builtin
Date: Tue, 07 Feb 2017 23:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.5.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-41001-4-Li2EYQyP3A@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41001-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41001-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00879.txt.bz2
Content-length: 611

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |msebor at gcc dot gnu.org
         Resolution|---                         |INVALID

--- Comment #8 from Martin Sebor <msebor at gcc dot gnu.org> ---
In light of the responses and due to no further activity in the last 7+ years
I'm resolving this report as invalid.
>From gcc-bugs-return-553348-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 00:01:50 2017
Return-Path: <gcc-bugs-return-553348-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108812 invoked by alias); 8 Feb 2017 00:01: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 108720 invoked by uid 48); 8 Feb 2017 00:01:42 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79419] Explicit specialization of constrained member template: ICE in set_constraints
Date: Wed, 08 Feb 2017 00: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: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-79419-4-w7XXoa1smR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79419-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79419-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00880.txt.bz2
Content-length: 620

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-08
                 CC|                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed.
>From gcc-bugs-return-553349-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 00:10:34 2017
Return-Path: <gcc-bugs-return-553349-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115724 invoked by alias); 8 Feb 2017 00: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 115635 invoked by uid 48); 8 Feb 2017 00:10:21 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79416] [4.5/5/6/7 Regression] Internal compiler error for recursive template expansion
Date: Wed, 08 Feb 2017 00: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: 5.4.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc short_desc everconfirmed cf_known_to_fail
Message-ID: <bug-79416-4-14ALOXuiU6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79416-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79416-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00881.txt.bz2
Content-length: 1851

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-08
                 CC|                            |msebor at gcc dot gnu.org
            Summary|Internal compiler error for |[4.5/5/6/7 Regression]
                   |recursive template          |Internal compiler error for
                   |expansion                   |recursive template
                   |                            |expansion
     Ever confirmed|0                           |1
      Known to fail|                            |4.5.3, 4.8.3, 4.9.3, 5.3.0,
                   |                            |6.2.0, 7.0

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Bisection was slow but eventually came up with r149873 (gcc 4.5.0) as the
commit that likely introduced the SEGV.  Prior to it GCC failed with the
following error so the ICE is a regression.

t.C: In function ‘void nops() [with int N = 302]’:
t.C:11:2: error: template instantiation depth exceeds maximum of 500 (use
-ftemplate-depth-NN to increase the maximum) instantiating ‘void nops() [with
int N = 301]’

------------------------------------------------------------------------
r149873 | jason | 2009-07-21 23:32:30 -0400 (Tue, 21 Jul 2009) | 4 lines

        Core issue 934
        * call.c (reference_binding): Implement binding to { }.
        (initialize_reference): Binding temporary to non-const && is fine.
        * decl.c (grok_reference_init): Remove error for CONSTRUCTOR.
>From gcc-bugs-return-553350-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 00:15:52 2017
Return-Path: <gcc-bugs-return-553350-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11610 invoked by alias); 8 Feb 2017 00:15: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 11352 invoked by uid 48); 8 Feb 2017 00:15:31 -0000
From: "su at cs dot ucdavis.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79420] New: ICE on invalid C++ code on x86_64-linux-gnu: in tsubst_copy, at cp/pt.c:14573
Date: Wed, 08 Feb 2017 00:15: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: su at cs dot ucdavis.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-79420-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00882.txt.bz2
Content-length: 2457

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

            Bug ID: 79420
           Summary: ICE on invalid C++ code on x86_64-linux-gnu: in
                    tsubst_copy, at cp/pt.c:14573
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: su at cs dot ucdavis.edu
  Target Milestone: ---

This seems to be a recent regression. 

$ g++-trunk -v
Using built-in specs.
COLLECT_GCC=g++-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/7.0.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-source-trunk/configure --enable-languages=c,c++,lto
--prefix=/usr/local/gcc-trunk --disable-bootstrap
Thread model: posix
gcc version 7.0.1 20170207 (experimental) [trunk revision 245240] (GCC)
$
$ g++-trunk -c -w small.cpp
small.cpp: In instantiation of ‘int f() [with int <anonymous> = 0]’:
small.cpp:8:12:   required from here
small.cpp:3:12: internal compiler error: in tsubst_copy, at cp/pt.c:14573
   return f.x;
          ~~^
0x6f90b0 tsubst_copy
        ../../gcc-source-trunk/gcc/cp/pt.c:14573
0x6fe380 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
        ../../gcc-source-trunk/gcc/cp/pt.c:17858
0x6fe8ae tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
        ../../gcc-source-trunk/gcc/cp/pt.c:17458
0x6f1957 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        ../../gcc-source-trunk/gcc/cp/pt.c:16405
0x6f315c tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        ../../gcc-source-trunk/gcc/cp/pt.c:15666
0x6f2153 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        ../../gcc-source-trunk/gcc/cp/pt.c:15882
0x6ef5b4 instantiate_decl(tree_node*, bool, bool)
        ../../gcc-source-trunk/gcc/cp/pt.c:22821
0x73e9a2 instantiate_pending_templates(int)
        ../../gcc-source-trunk/gcc/cp/pt.c:22942
0x783e01 c_parse_final_cleanups()
        ../../gcc-source-trunk/gcc/cp/decl2.c:4525
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
$


--------------------------------


template < int > int f ()
{ 
  return f.x;
}

void g ()
{ 
  f < 0 > ();
}
>From gcc-bugs-return-553351-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 00:18:34 2017
Return-Path: <gcc-bugs-return-553351-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15325 invoked by alias); 8 Feb 2017 00:18: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 15107 invoked by uid 48); 8 Feb 2017 00:18:21 -0000
From: "babokin at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79399] GCC fails to compile big source at -O0
Date: Wed, 08 Feb 2017 00:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: babokin 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-79399-4-8Xi95973Pq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79399-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79399-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00883.txt.bz2
Content-length: 214

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

--- Comment #11 from Dmitry Babokin <babokin at gmail dot com> ---
With new patch it compiled successfully. It took 41G of memory and 5:25 hours
to complete.
>From gcc-bugs-return-553352-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 00:19:36 2017
Return-Path: <gcc-bugs-return-553352-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16565 invoked by alias); 8 Feb 2017 00:19:36 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 16441 invoked by uid 48); 8 Feb 2017 00:19:23 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79415] [6/7 Regression] -fcheck-pointer-bounds results in internal compiler error weakref attributes
Date: Wed, 08 Feb 2017 00:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc short_desc everconfirmed
Message-ID: <bug-79415-4-1ODU9tbkw2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79415-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79415-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00884.txt.bz2
Content-length: 1297

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-08
                 CC|                            |hubicka at gcc dot gnu.org,
                   |                            |msebor at gcc dot gnu.org
            Summary|-fcheck-pointer-bounds      |[6/7 Regression]
                   |results in internal         |-fcheck-pointer-bounds
                   |compiler error weakref      |results in internal
                   |attributes                  |compiler error weakref
                   |                            |attributes
     Ever confirmed|0                           |1

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed as a 6/7 regression.  Bisection points to r231373:

r231373 (gcc 6.0.0) failed (status 4):
------------------------------------------------------------------------
r231373 | hubicka | 2015-12-07 12:36:54 -0500 (Mon, 07 Dec 2015) | 47 lines

        PR ipa/61886
>From gcc-bugs-return-553353-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 00:44:17 2017
Return-Path: <gcc-bugs-return-553353-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38326 invoked by alias); 8 Feb 2017 00: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 38195 invoked by uid 48); 8 Feb 2017 00:44:04 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79414] [7 Regression] internal compiler error after "error: expected unqualified-id at end of input"
Date: Wed, 08 Feb 2017 00: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc short_desc everconfirmed
Message-ID: <bug-79414-4-okBl7c5IP8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79414-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79414-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00885.txt.bz2
Content-length: 1030

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-08
                 CC|                            |msebor at gcc dot gnu.org
            Summary|internal compiler error     |[7 Regression] internal
                   |after "error: expected      |compiler error after
                   |unqualified-id at end of    |"error: expected
                   |input"                      |unqualified-id at end of
                   |                            |input"
     Ever confirmed|0                           |1

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed but it's so new that I can't easily bisect it yet.  The most recent
revision before that I have access to is r245021 and it doesn't ICE.
>From gcc-bugs-return-553354-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 00:59:58 2017
Return-Path: <gcc-bugs-return-553354-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119255 invoked by alias); 8 Feb 2017 00:59: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 118895 invoked by uid 48); 8 Feb 2017 00:59:45 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79345] [6/7 Regression] passing yet-uninitialized member as argument to base class constructor should warn (-Wunitialized)
Date: Wed, 08 Feb 2017 00: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: 7.0.1
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 cf_reconfirmed_on cc short_desc everconfirmed
Message-ID: <bug-79345-4-k9jnntqpkS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79345-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79345-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00886.txt.bz2
Content-length: 1552

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-08
                 CC|                            |msebor at gcc dot gnu.org
            Summary|passing yet-uninitialized   |[6/7 Regression] passing
                   |member as argument to base  |yet-uninitialized member as
                   |class constructor should    |argument to base class
                   |warn (-Wunitialized)        |constructor should warn
                   |                            |(-Wunitialized)
     Ever confirmed|0                           |1

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed.  Bisection points to r222135 (gcc 6.0.0):
------------------------------------------------------------------------
r222135 | jason | 2015-04-15 17:17:29 -0400 (Wed, 15 Apr 2015) | 5 lines

        * constexpr.c (cxx_eval_store_expression): Ignore clobbers.
        (build_constexpr_constructor_member_initializers): Loop to find
        the BIND_EXPR.
        * decl.c (start_preparsed_function): Clobber the object at the
        beginning of a constructor.


A somewhat simplified test case:

struct A {
  A (int);
};

struct B: A {
  const bool x = true;

  B (): A (x ? 3 : 7) { }
};

void f (void*);
void g ()
{
  B b;
  f (&b);
}
>From gcc-bugs-return-553355-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 01:04:32 2017
Return-Path: <gcc-bugs-return-553355-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127852 invoked by alias); 8 Feb 2017 01:04: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 127808 invoked by uid 48); 8 Feb 2017 01:04:26 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79314] friend function with qualified name definition
Date: Wed, 08 Feb 2017 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: 5.4.0
X-Bugzilla-Keywords: accepts-invalid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed cf_known_to_fail
Message-ID: <bug-79314-4-k3I1cjUnOB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79314-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79314-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00887.txt.bz2
Content-length: 784

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-08
                 CC|                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1
      Known to fail|                            |4.5.3, 4.8.3, 4.9.3, 5.3.0,
                   |                            |6.2.0, 7.0

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed with today's top of trunk (7.0).  It was never diagnosed so it
doesn't look like a regression.
>From gcc-bugs-return-553356-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 01:20:47 2017
Return-Path: <gcc-bugs-return-553356-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61438 invoked by alias); 8 Feb 2017 01:20: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 61220 invoked by uid 48); 8 Feb 2017 01:20:33 -0000
From: "andrew at sifive dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/79418] ERROR: gcc.dg/torture/stackalign/builtin-apply-2.c   -O0 : syntax error in targe t selector "target arm_hf_eabi ||  avr-*-*  ||  riscv*-*-*" for "
Date: Wed, 08 Feb 2017 01:20: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: andrew at sifive 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-79418-4-g2iB7bY0vY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79418-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79418-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00888.txt.bz2
Content-length: 488

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

Andrew Waterman <andrew at sifive dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrew at sifive dot com

--- Comment #1 from Andrew Waterman <andrew at sifive dot com> ---
A patch has been submitted to correct this error:
https://gcc.gnu.org/ml/gcc-patches/2017-02/msg00490.html
>From gcc-bugs-return-553357-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 03:14:28 2017
Return-Path: <gcc-bugs-return-553357-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7177 invoked by alias); 8 Feb 2017 03:13:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 4679 invoked by uid 48); 8 Feb 2017 03:09:04 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79301] With -Werror=pedantic outside C++17 mode, __has_cpp_attribute(fallthrough) is nonzero but [[fallthrough]] fails
Date: Wed, 08 Feb 2017 03:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-79301-4-b7ogsy1hzF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79301-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79301-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00889.txt.bz2
Content-length: 1047

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-08
                 CC|                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Interesting.  I'm not sure about how this would work with -Wpedantic
-Wno-error=pedantic.  I don't think there is a precedent for tying the behavior
of language features (or feature test macros) to -Werror settings.  I do agree,
though, that having the built-in return an affirmative result only to have the
compiler reject the feature seems to run counter to its intended purpose.  I'll
confirm this if only to see what others think.
>From gcc-bugs-return-553358-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 05:35:56 2017
Return-Path: <gcc-bugs-return-553358-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7322 invoked by alias); 8 Feb 2017 05:35: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 6935 invoked by uid 48); 8 Feb 2017 05:34:52 -0000
From: "andris at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/41557] gcc.exe: Internal error: (null) (program cc1plus)
Date: Wed, 08 Feb 2017 05:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: andris 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: cc
Message-ID: <bug-41557-4-PMYsolMrrJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41557-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41557-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00890.txt.bz2
Content-length: 543

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

Andris Pavenis <andris at gcc dot gnu.org> changed:

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

--- Comment #7 from Andris Pavenis <andris at gcc dot gnu.org> ---
About latest (djgpp-stdint.h) it should. Works for me with recent trunk
versions. I have not however got any feedback related to other proposed patch
version.
>From gcc-bugs-return-553359-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 07:44:17 2017
Return-Path: <gcc-bugs-return-553359-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55830 invoked by alias); 8 Feb 2017 07: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 55692 invoked by uid 48); 8 Feb 2017 07:44:01 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79399] GCC fails to compile big source at -O0
Date: Wed, 08 Feb 2017 07:44: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: unknown
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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79399-4-mb04wVsXf4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79399-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79399-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00891.txt.bz2
Content-length: 442

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

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

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

--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Thanks for testing that.
>From gcc-bugs-return-553360-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 08:01:12 2017
Return-Path: <gcc-bugs-return-553360-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59908 invoked by alias); 8 Feb 2017 08:01: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 59555 invoked by uid 48); 8 Feb 2017 08:00:58 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79301] With -Werror=pedantic outside C++17 mode, __has_cpp_attribute(fallthrough) is nonzero but [[fallthrough]] fails
Date: Wed, 08 Feb 2017 08: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: 7.0
X-Bugzilla-Keywords: diagnostic
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-79301-4-HayZtZKApp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79301-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79301-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00892.txt.bz2
Content-length: 1268

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

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,
                   |                            |mpolacek at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I think right now you need to use
#ifdef __has_cpp_attribute
# if __has_cpp_attribute(fallthrough) >= __cplusplus
    [[fallthrough]];
# elif __has_cpp_attribute(gnu::fallthrough)
    [[gnu::fallthrough]];
# endif
#endif

(the first #ifdef because __has_cpp_attribute is defined only in recent
compilers, so you'll get errors trying to use it as function-like macro before,
and __has_cpp_attribute should print YYYYMM when the feature has been
introduced which you can compare against __cplusplus).

That said, right now we use the same preprocessor hook for __has_attribute
(which IMNSHO should return non-zero even for __has_attribute(fallthrough)
because you can use __attribute__((fallthrough)), and between
__has_cpp_attribute).
>From gcc-bugs-return-553361-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 08:31:38 2017
Return-Path: <gcc-bugs-return-553361-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36484 invoked by alias); 8 Feb 2017 08:31: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 36262 invoked by uid 55); 8 Feb 2017 08:31:25 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/71824] [6 Regression] ICE when compiling libiberty with Graphite loop optimizations
Date: Wed, 08 Feb 2017 08:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 6.1.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: P4
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-71824-4-5ZYoO0kBXr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71824-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71824-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00893.txt.bz2
Content-length: 701

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

--- Comment #15 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Wed Feb  8 08:30:48 2017
New Revision: 245270

URL: https://gcc.gnu.org/viewcvs?rev=245270&root=gcc&view=rev
Log:
2017-02-08  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/71824
        * graphite-scop-detection.c (scop_detection::build_scop_breadth):
        Check all loops contained in the merged region.

        * gcc.dg/graphite/pr71824-2.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/graphite/pr71824-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/graphite-scop-detection.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-553362-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 08:32:32 2017
Return-Path: <gcc-bugs-return-553362-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37754 invoked by alias); 8 Feb 2017 08:32: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 37670 invoked by uid 48); 8 Feb 2017 08:32:26 -0000
From: "andersk at mit dot edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79301] With -Werror=pedantic outside C++17 mode, __has_cpp_attribute(fallthrough) is nonzero but [[fallthrough]] fails
Date: Wed, 08 Feb 2017 08: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: 7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: andersk at mit 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-79301-4-odIeJEpsHL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79301-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79301-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00894.txt.bz2
Content-length: 918

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

--- Comment #3 from Anders Kaseorg <andersk at mit dot edu> ---
(In reply to Jakub Jelinek from comment #2)
> I think right now you need to use
> #ifdef __has_cpp_attribute
> # if __has_cpp_attribute(fallthrough) >= __cplusplus
>     [[fallthrough]];

Surely you intended* #if __has_cpp_attribute(fallthrough) && __cplusplus >=
__has_cpp_attribute(fallthrough)?

But neither version helps in current g++-7, where __cplusplus is 201402 (C++14)
or 201500 (C++17), while __has_cpp_attribute(fallthrough) is greater than both:
201603.

(* Yes, this is confusing, and I would suggest that this confusion is already a
good argument for __has_cpp_attribute doing the language standard comparison
itself rather than foisting it off on the programmer.  That is,
__has_cpp_attribute(fallthrough) should return 201500 (C++17 and higher) or 0
(C++14 and lower))
>From gcc-bugs-return-553363-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 08:39:55 2017
Return-Path: <gcc-bugs-return-553363-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107396 invoked by alias); 8 Feb 2017 08:39: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 107163 invoked by uid 48); 8 Feb 2017 08:39:42 -0000
From: "tschwinge at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug translation/79332] Several bugs related to translation in gcc 7.1-b20170101
Date: Wed, 08 Feb 2017 08:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: translation
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
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: cc
Message-ID: <bug-79332-4-KdvBCDZAfT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79332-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79332-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00895.txt.bz2
Content-length: 960

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

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

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

--- Comment #5 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
I had already raised the config/nvptx/nvptx.c "tid.y" issue in
<http://mid.mail-archive.com/87inpofbl6.fsf@euler.schwinge.homeip.net>.

(In reply to joseph@codesourcery.com from comment #4)
> That would be the %e / %n extraction intended for spec strings.  In this 
> case, I think splitting the string constant between the % and the n should 
> avoid the %n extraction without affecting the actual use of this string.

Seems like a nice, nonintrusive solution (to be accompanied with a comment
about the string splitting).  I'll send a patch for that one.
>From gcc-bugs-return-553364-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 08:41:23 2017
Return-Path: <gcc-bugs-return-553364-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111661 invoked by alias); 8 Feb 2017 08:41: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 110420 invoked by uid 48); 8 Feb 2017 08:41:15 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79301] With -Werror=pedantic outside C++17 mode, __has_cpp_attribute(fallthrough) is nonzero but [[fallthrough]] fails
Date: Wed, 08 Feb 2017 08:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: diagnostic
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:
Message-ID: <bug-79301-4-raMFcR3Aar@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79301-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79301-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00896.txt.bz2
Content-length: 1166

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Anders Kaseorg from comment #3)
> (In reply to Jakub Jelinek from comment #2)
> > I think right now you need to use
> > #ifdef __has_cpp_attribute
> > # if __has_cpp_attribute(fallthrough) >= __cplusplus
> >     [[fallthrough]];
> 
> Surely you intended* #if __has_cpp_attribute(fallthrough) && __cplusplus >=
> __has_cpp_attribute(fallthrough)?

No, I meant what I wrote.  __has_cpp_attribute(fallthrough) gives you the year
+ month when the feature has been introduced, and you then use it only if it
has been introduced before or at the same time as the C++ version (__cplusplus
gives you again year + month) you are compilining for.  Once C++17 will be
released, __cplusplus will be 201705 or whatever similar.  Or just
# if __cplusplus > 201402 && __has_cpp_attribute(fallthrough)

That said, I think e.g. for maybe_unused or nodiscard attributes we don't
complain with -pedantic about those attributes used in C++14 code, so either we
should do that as well, or we shouldn't do that for fallthrough either.
Jason?
>From gcc-bugs-return-553366-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 08:45:59 2017
Return-Path: <gcc-bugs-return-553366-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13887 invoked by alias); 8 Feb 2017 08:45: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 13755 invoked by uid 48); 8 Feb 2017 08:45:46 -0000
From: "andersk at mit dot edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79301] With -Werror=pedantic outside C++17 mode, __has_cpp_attribute(fallthrough) is nonzero but [[fallthrough]] fails
Date: Wed, 08 Feb 2017 08: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: 7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: andersk at mit 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-79301-4-eNQb5shL2z@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79301-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79301-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00898.txt.bz2
Content-length: 952

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

--- Comment #5 from Anders Kaseorg <andersk at mit dot edu> ---
(In reply to Jakub Jelinek from comment #4)
> (In reply to Anders Kaseorg from comment #3)
> > (In reply to Jakub Jelinek from comment #2)
> > > I think right now you need to use
> > > #ifdef __has_cpp_attribute
> > > # if __has_cpp_attribute(fallthrough) >= __cplusplus
> > >     [[fallthrough]];
> > 
> > Surely you intended* #if __has_cpp_attribute(fallthrough) && __cplusplus >=
> > __has_cpp_attribute(fallthrough)?
> 
> No, I meant what I wrote.  __has_cpp_attribute(fallthrough) gives you the
> year + month when the feature has been introduced, and you then use it only
> if it has been introduced before or at the same time as the C++ version
> (__cplusplus gives you again year + month) you are compilining for.

For the nonzero case, “before or at the same time” translates to <=, not >=.
>From gcc-bugs-return-553365-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 08:45:38 2017
Return-Path: <gcc-bugs-return-553365-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13027 invoked by alias); 8 Feb 2017 08:45: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 12877 invoked by uid 48); 8 Feb 2017 08:45:19 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/79421] New: gnat.dg/trampoline3.adb fails on s390x
Date: Wed, 08 Feb 2017 08:45: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcchost cf_gcctarget
Message-ID: <bug-79421-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00897.txt.bz2
Content-length: 1054

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

            Bug ID: 79421
           Summary: gnat.dg/trampoline3.adb fails on s390x
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vogt at linux dot vnet.ibm.com
                CC: krebbel at gcc dot gnu.org
  Target Milestone: ---
              Host: s390x
            Target: s390x

The test case trampoline3.adb fails on s390x configured with --march=zEC12,
using either -m31 or -m64, since at least r233572.  Attempts to bisect this
FAIL were unsuccessful because many commits before that the Ada compiler cannot
be built fue to a compile error.

  FAIL: gnat.dg/trampoline3.adb scan-assembler-not GNU-stack.*x 

$ grep "GNU-stack.*x" trampoline3.s

  .section        .note.GNU-stack,"x",@progbits

What is the purpose of the test case, what does a failure mean and what can be
done to determine its cause?
>From gcc-bugs-return-553367-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 08:48:44 2017
Return-Path: <gcc-bugs-return-553367-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18965 invoked by alias); 8 Feb 2017 08:48: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 18265 invoked by uid 48); 8 Feb 2017 08:47:55 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/79403] Installation of Ada compiler gets permissions wrong
Date: Wed, 08 Feb 2017 08:48: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79403-4-I51HUWAVdR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79403-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79403-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00899.txt.bz2
Content-length: 170

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

--- Comment #1 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
(Happens with gcc-6.3; 7.0 was *not* tested.)
>From gcc-bugs-return-553368-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 08:56:30 2017
Return-Path: <gcc-bugs-return-553368-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 63757 invoked by alias); 8 Feb 2017 08:56: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 63542 invoked by uid 48); 8 Feb 2017 08:56:16 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/41339] Variables can occur multiple times in cfun->local_decls
Date: Wed, 08 Feb 2017 08:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.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: 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-41339-4-XOS3Fa8J7i@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41339-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41339-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00900.txt.bz2
Content-length: 2017

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Well, as long as no verification was added (I don't spot any) we can't be sure
if the issue was resolved.  A verification routine can be as simple as the
following (probably overkill for trunk this way, a few verifications like
after we build local decls in gimple-low.c and before RTL expansion in
cfgexpand.c is enough in the end).

Index: gcc/tree-cfg.c
===================================================================
--- gcc/tree-cfg.c      (revision 245240)
+++ gcc/tree-cfg.c      (working copy)
@@ -5093,6 +5121,24 @@ collect_subblocks (hash_set<tree> *block
     }
 }

+/* Verify the functions local_decls.  */
+
+static bool
+verify_local_decls(struct function *fn)
+{
+  /* For the moment verify we don't have any duplicates, see PR41339.  */
+  if (vec_safe_is_empty (fn->local_decls))
+    return false;
+  hash_set <tree> s;
+  for (unsigned i = 0; i < fn->local_decls->length (); ++i)
+    if (s.add ((*fn->local_decls)[i]))
+      {
+       error ("duplicate decls in local-decls");
+       return true;
+      }
+  return false;
+}
+
 /* Verify the GIMPLE statements in the CFG of FN.  */

 DEBUG_FUNCTION void
@@ -5105,6 +5151,8 @@ verify_gimple_in_cfg (struct function *f
   hash_set<void *> visited;
   hash_set<gimple *> visited_stmts;

+  err |= verify_local_decls (fn);
+
   /* Collect all BLOCKs referenced by the BLOCK tree of FN.  */
   hash_set<tree> blocks;
   if (DECL_INITIAL (fn->decl))
>From gcc-bugs-return-553369-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 09:09:11 2017
Return-Path: <gcc-bugs-return-553369-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37519 invoked by alias); 8 Feb 2017 09:09:11 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 37395 invoked by uid 48); 8 Feb 2017 09:08:57 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/41339] Variables can occur multiple times in cfun->local_decls
Date: Wed, 08 Feb 2017 09:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.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: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created
Message-ID: <bug-41339-4-OHspTrFVdg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41339-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41339-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00901.txt.bz2
Content-length: 2583

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

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

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

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

Patch attached, tt still trips very quickly (building stage1 libgcc):

/abuild/rguenther/obj/./gcc/xgcc -B/abuild/rguenther/obj/./gcc/
-B/usr/local/x86_64-pc-linux-gnu/bin/ -B/usr/local/x86_64-pc-linux-gnu/lib/
-isystem /usr/local/x86_64-pc-linux-gnu/include -isystem
/usr/local/x86_64-pc-linux-gnu/sys-include    -g -O2 -m32 -O2  -g -O2 -DIN_GCC 
  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem
./include   -fpic -mlong-double-80 -DUSE_ELF_SYMVER -g -DIN_LIBGCC2
-fbuilding-libgcc -fno-stack-protector   -fpic -mlong-double-80
-DUSE_ELF_SYMVER -I. -I. -I../../.././gcc
-I/space/rguenther/src/svn/trunk/libgcc
-I/space/rguenther/src/svn/trunk/libgcc/.
-I/space/rguenther/src/svn/trunk/libgcc/../gcc
-I/space/rguenther/src/svn/trunk/libgcc/../include
-I/space/rguenther/src/svn/trunk/libgcc/config/libbid
-DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS  -DUSE_TLS -o generic-morestack.o -MT
generic-morestack.o -MD -MP -MF generic-morestack.dep  -c
/space/rguenther/src/svn/trunk/libgcc/generic-morestack.c -fvisibility=hidden
-DHIDE_EXPORTS
/space/rguenther/src/svn/trunk/libgcc/generic-morestack.c: In function
‘__generic_morestack’:
/space/rguenther/src/svn/trunk/libgcc/generic-morestack.c:1178:1: error:
duplicate decls in local-decls
 }
 ^
/space/rguenther/src/svn/trunk/libgcc/generic-morestack.c:1178:1: internal
compiler error: verify_gimple failed
0xf2b3aa verify_gimple_in_cfg(function*, bool)
        /space/rguenther/src/svn/trunk/gcc/tree-cfg.c:5286
0xdac552 execute_function_todo
        /space/rguenther/src/svn/trunk/gcc/passes.c:1966
0xdab5f9 do_per_function
        /space/rguenther/src/svn/trunk/gcc/passes.c:1650
0xdac724 execute_todo
        /space/rguenther/src/svn/trunk/gcc/passes.c:2016
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

it's not a RESULT_DECL.  Reducing a testcase.
>From gcc-bugs-return-553370-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 09:19:09 2017
Return-Path: <gcc-bugs-return-553370-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110233 invoked by alias); 8 Feb 2017 09:19: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 110091 invoked by uid 48); 8 Feb 2017 09:18:56 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/64081] [5/6/7 Regression] r217827 prevents RTL loop unroll
Date: Wed, 08 Feb 2017 09:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher 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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64081-4-rKkJnMEKDr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00902.txt.bz2
Content-length: 614

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

--- Comment #54 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Thanks Aldy, this makes it clear what happens, and it is actually
pretty simple.

The patch changes check_simple_exit to also return true if
check_complex_exit is true (as well as some other conditions).
But the call in doloop_optimize (via get_simple_loop_desc) really
does need to check for only simple exits.  With the patch, the loop
in the testcase gets one of its two identical exits replaced by a
doloop pattern, which is incorrect (replacing both would work in
this case though).
>From gcc-bugs-return-553371-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 09:20:19 2017
Return-Path: <gcc-bugs-return-553371-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126093 invoked by alias); 8 Feb 2017 09:20: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 119510 invoked by uid 48); 8 Feb 2017 09:20:11 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/41339] Variables can occur multiple times in cfun->local_decls
Date: Wed, 08 Feb 2017 09:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.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: 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-41339-4-C6NXOdz5WV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41339-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41339-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00903.txt.bz2
Content-length: 440

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

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
inline void __attribute__((always_inline)) __morestack_fail (const char *msg)
{
  static char nl[] = "\n"; 
  writev (&nl[0]);
}
void allocate_segment ()
{
  static const char msg[] = "";
  __morestack_fail (msg);
  __morestack_fail (msg);
}

so in this case it's inlining putting 'nl' into local-decls twice.
>From gcc-bugs-return-553373-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 09:22:44 2017
Return-Path: <gcc-bugs-return-553373-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26083 invoked by alias); 8 Feb 2017 09:22: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 22573 invoked by uid 55); 8 Feb 2017 09:22:30 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79408] Missed VRP optimization of integer modulo
Date: Wed, 08 Feb 2017 09:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
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-79408-4-9Szemj07NM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79408-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79408-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00905.txt.bz2
Content-length: 747

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Feb  8 09:21:57 2017
New Revision: 245273

URL: https://gcc.gnu.org/viewcvs?rev=245273&root=gcc&view=rev
Log:
        PR tree-optimization/79408
        * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
        constant, but SSA_NAME with a known integer range, use the minimum
        of that range instead of op1 to determine if modulo can be replaced
        with its first operand.

        * gcc.dg/tree-ssa/pr79408.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr79408.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vrp.c
>From gcc-bugs-return-553372-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 09:22:33 2017
Return-Path: <gcc-bugs-return-553372-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24201 invoked by alias); 8 Feb 2017 09:22: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 16372 invoked by uid 48); 8 Feb 2017 09:22:19 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/41339] Variables can occur multiple times in cfun->local_decls
Date: Wed, 08 Feb 2017 09:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.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: 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-41339-4-c1wOXR0Z1P@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41339-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41339-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00904.txt.bz2
Content-length: 205

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

--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
Note duplicate entries in that list should be harmless (well, fingers
crossing...)
>From gcc-bugs-return-553374-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 09:25:28 2017
Return-Path: <gcc-bugs-return-553374-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31776 invoked by alias); 8 Feb 2017 09:25: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 31688 invoked by uid 48); 8 Feb 2017 09:25:15 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79410] [6 Regression] internal compiler error: in gimplify_init_ctor_preeval, at gimplify.c:3489
Date: Wed, 08 Feb 2017 09: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: 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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority target_milestone
Message-ID: <bug-79410-4-lraFgbUUtF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79410-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79410-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00906.txt.bz2
Content-length: 345

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
   Target Milestone|---                         |6.4
>From gcc-bugs-return-553375-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 09:29:26 2017
Return-Path: <gcc-bugs-return-553375-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43571 invoked by alias); 8 Feb 2017 09:29: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 43481 invoked by uid 48); 8 Feb 2017 09:29:12 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79411] [5/6/7 Regression] ICE: SSA corruption (fail_abnormal_edge_coalesce)
Date: Wed, 08 Feb 2017 09: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: 7.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: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority component
Message-ID: <bug-79411-4-hnXToDqvBN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79411-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79411-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00907.txt.bz2
Content-length: 956

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
          Component|c                           |tree-optimization

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Agreed - let's punt on abnormals, but I guess you have to prevent looking into

 _2 = _3 + a_4(AB);

when linearizing.  That is, abnormals shouldn't appear in the ops vector
(maybe we can add an assert in rewrite-expr-tree for this).

Of course technically we can re-associate so that two abnormals cancel
(optimize a_4(AB) - a_4(AB) to zero) but I don't see an easy way to "recover"
when an abnormal survives until rewrite-expr-tree.

The real constraint is of course that we may not enlarge the lifetime of
an abnormal.
>From gcc-bugs-return-553376-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 09:34:13 2017
Return-Path: <gcc-bugs-return-553376-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58064 invoked by alias); 8 Feb 2017 09:34: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 57863 invoked by uid 48); 8 Feb 2017 09:33:59 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79409] [7 Regression] [graphite] ICE in outermost_loop_in_sese, at sese.c:300 w/ -fgraphite-identity -ftree-loop-distribution -O1 (or above)
Date: Wed, 08 Feb 2017 09: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: 7.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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status dependson resolution target_milestone
Message-ID: <bug-79409-4-zWgqGkLWm0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79409-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79409-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00908.txt.bz2
Content-length: 816

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Depends on|                            |71824
         Resolution|---                         |FIXED
   Target Milestone|---                         |7.0

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
It works for me on trunk r245273 (seems to be fixed by r245270, reverting that
causes it to ICE).

I'll add the testcase.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71824
[Bug 71824] [6 Regression] ICE when compiling libiberty with Graphite loop
optimizations
>From gcc-bugs-return-553378-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 09:36:28 2017
Return-Path: <gcc-bugs-return-553378-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62549 invoked by alias); 8 Feb 2017 09:36:28 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 62345 invoked by uid 55); 8 Feb 2017 09:36:15 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/71824] [6 Regression] ICE when compiling libiberty with Graphite loop optimizations
Date: Wed, 08 Feb 2017 09: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: 6.1.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: P4
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-71824-4-YCP61jySCg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71824-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71824-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00910.txt.bz2
Content-length: 541

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

--- Comment #16 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Wed Feb  8 09:35:41 2017
New Revision: 245274

URL: https://gcc.gnu.org/viewcvs?rev=245274&root=gcc&view=rev
Log:
2017-02-08  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/71824
        PR tree-optimization/79409
        * gcc.dg/graphite/pr71824-3.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/graphite/pr71824-3.c
Modified:
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-553377-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 09:36:28 2017
Return-Path: <gcc-bugs-return-553377-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62537 invoked by alias); 8 Feb 2017 09:36:28 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 62321 invoked by uid 55); 8 Feb 2017 09:36:15 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79409] [7 Regression] [graphite] ICE in outermost_loop_in_sese, at sese.c:300 w/ -fgraphite-identity -ftree-loop-distribution -O1 (or above)
Date: Wed, 08 Feb 2017 09: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: 7.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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79409-4-g3VOAGSMH9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79409-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79409-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00909.txt.bz2
Content-length: 540

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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Wed Feb  8 09:35:41 2017
New Revision: 245274

URL: https://gcc.gnu.org/viewcvs?rev=245274&root=gcc&view=rev
Log:
2017-02-08  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/71824
        PR tree-optimization/79409
        * gcc.dg/graphite/pr71824-3.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/graphite/pr71824-3.c
Modified:
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-553379-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 09:42:44 2017
Return-Path: <gcc-bugs-return-553379-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36249 invoked by alias); 8 Feb 2017 09: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 36093 invoked by uid 48); 8 Feb 2017 09:42:30 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79413] [7 Regression] ICE in make_ssa_name_fn, at tree-ssanames.c:265
Date: Wed, 08 Feb 2017 09: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: 7.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: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority
Message-ID: <bug-79413-4-e8oYp3KUqh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79413-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79413-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00911.txt.bz2
Content-length: 2649

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
(gdb) p debug_tree (name)
 <ssa_name 0x7ffff68ad948 nothrow
    def_stmt 
    version 2 in-free-list>
$2 = void

this seems to be again a missed DECL_EXPR:

;; Function fn1 (null)
;; enabled by -tree-original


{
  int a[0:(sizetype) ((long int) (1 / 0) + -1)];

  (void) 0;
    int a[0:(sizetype) ((long int) (1 / 0) + -1)];
}

and .gimple:

fn1 ()
{
  int[0:(sizetype) ((long int) (1 / 0) + -1)] * a.0;
  void * saved_stack.1;
  int a[0:(sizetype) ((long int) (1 / 0) + -1)] [value-expr: *a.0];

  saved_stack.1 = __builtin_stack_save ();
  try
    {
      _1 = 1 / 0;
      _2 = (sizetype) _1;
      _3 = _2 * 4;
      a.0 = __builtin_alloca_with_align (_3, 32);
    }
  finally
    {
      __builtin_stack_restore (saved_stack.1);
    }

notice the missed gimplification of type sizes above.  The inliner then sees:

(gdb) p debug_tree (type)
 <array_type 0x7ffff69c1540
    type <integer_type 0x7ffff68ba5e8 int sizes-gimplified public SI
        size <integer_cst 0x7ffff68a2f18 constant 32>
        unit size <integer_cst 0x7ffff68a2f30 constant 4>
        align 32 symtab 0 alias set -1 canonical type 0x7ffff68ba5e8 precision
32 min <integer_cst 0x7ffff68a2ed0 -2147483648> max <integer_cst 0x7ffff68a2ee8
2147483647>
        pointer_to_this <pointer_type 0x7ffff68c2a80>>
    sizes-gimplified type_1 BLK
    size <mult_expr 0x7ffff69c0bb8
        type <integer_type 0x7ffff68ba0a8 bitsizetype public unsigned TI
            size <integer_cst 0x7ffff68a2d20 constant 128>
            unit size <integer_cst 0x7ffff68a2d38 constant 16>
...
    unit size <mult_expr 0x7ffff69c0be0
        type <integer_type 0x7ffff68ba000 sizetype public unsigned DI
            size <integer_cst 0x7ffff68a2cd8 constant 64>
            unit size <integer_cst 0x7ffff68a2cf0 constant 8>
            align 64 symtab 0 alias set -1 canonical type 0x7ffff68ba000
precision 64 min <integer_cst 0x7ffff68a2d08 0> max <integer_cst 0x7ffff68a44c0
18446744073709551615>>
        readonly constant
        arg 0 <ssa_name 0x7ffff68ad948 nothrow
            def_stmt 
            version 2 in-free-list> arg 1 <integer_cst 0x7ffff68a2f30 4>
        t.c:3:24 start: t.c:3:24 finish: t.c:3:24>
    align 32 symtab 0 alias set -1 structural equality
...

note the bogus TYPE_SIZE_UNIT.
>From gcc-bugs-return-553380-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 09:43:31 2017
Return-Path: <gcc-bugs-return-553380-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37496 invoked by alias); 8 Feb 2017 09:43:31 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 37281 invoked by uid 48); 8 Feb 2017 09:43:18 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79414] [7 Regression] internal compiler error after "error: expected unqualified-id at end of input"
Date: Wed, 08 Feb 2017 09:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords priority target_milestone
Message-ID: <bug-79414-4-rhiqKQ8KmA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79414-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79414-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00912.txt.bz2
Content-length: 479

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |error-recovery,
                   |                            |ice-on-invalid-code
           Priority|P3                          |P4
   Target Milestone|---                         |7.0
>From gcc-bugs-return-553381-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 09:44:07 2017
Return-Path: <gcc-bugs-return-553381-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71994 invoked by alias); 8 Feb 2017 09:44: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 55307 invoked by uid 48); 8 Feb 2017 09:43:54 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79415] [6/7 Regression] -fcheck-pointer-bounds results in internal compiler error weakref attributes
Date: Wed, 08 Feb 2017 09:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.0.1
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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority component target_milestone
Message-ID: <bug-79415-4-CxyGEWHP79@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79415-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79415-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00913.txt.bz2
Content-length: 405

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
          Component|c++                         |middle-end
   Target Milestone|---                         |6.4
>From gcc-bugs-return-553382-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 09:45:25 2017
Return-Path: <gcc-bugs-return-553382-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112827 invoked by alias); 8 Feb 2017 09:45: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 109482 invoked by uid 48); 8 Feb 2017 09:44:53 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79416] [5/6/7 Regression] Internal compiler error for recursive template expansion
Date: Wed, 08 Feb 2017 09: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: 5.4.0
X-Bugzilla-Keywords: ice-on-invalid-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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority target_milestone short_desc
Message-ID: <bug-79416-4-UD1eAEUh8f@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79416-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79416-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00914.txt.bz2
Content-length: 617

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
   Target Milestone|---                         |5.5
            Summary|[4.5/5/6/7 Regression]      |[5/6/7 Regression] Internal
                   |Internal compiler error for |compiler error for
                   |recursive template          |recursive template
                   |expansion                   |expansion
>From gcc-bugs-return-553383-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 09:46:55 2017
Return-Path: <gcc-bugs-return-553383-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126699 invoked by alias); 8 Feb 2017 09:46: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 116954 invoked by uid 48); 8 Feb 2017 09:46:40 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79420] [7 Regression] ICE on invalid C++ code on x86_64-linux-gnu: in tsubst_copy, at cp/pt.c:14573
Date: Wed, 08 Feb 2017 09:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords: ice-on-invalid-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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords version target_milestone short_desc
Message-ID: <bug-79420-4-mdm3RkJjjD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79420-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79420-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00915.txt.bz2
Content-length: 755

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
            Version|unknown                     |7.0.1
   Target Milestone|---                         |7.0
            Summary|ICE on invalid C++ code on  |[7 Regression] ICE on
                   |x86_64-linux-gnu: in        |invalid C++ code on
                   |tsubst_copy, at             |x86_64-linux-gnu: in
                   |cp/pt.c:14573               |tsubst_copy, at
                   |                            |cp/pt.c:14573
>From gcc-bugs-return-553385-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 09:47:57 2017
Return-Path: <gcc-bugs-return-553385-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 436 invoked by alias); 8 Feb 2017 09:47: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 129010 invoked by uid 55); 8 Feb 2017 09:47:44 -0000
From: "jamborm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/79375] gcc/ipa-prop.c:203:32: runtime error: reference binding to null pointer of type 'struct vec' after revision r244802
Date: Wed, 08 Feb 2017 09:47: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jamborm at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jamborm at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79375-4-GvXA5BIyw2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79375-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79375-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00917.txt.bz2
Content-length: 649

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

--- Comment #5 from Martin Jambor <jamborm at gcc dot gnu.org> ---
Author: jamborm
Date: Wed Feb  8 09:47:09 2017
New Revision: 245275

URL: https://gcc.gnu.org/viewcvs?rev=245275&root=gcc&view=rev
Log:
[PR 79375] Avoid passing NULL by reference

2017-02-08  Martin Jambor  <mjambor@suse.cz>

        PR ipa/79375
        * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
        whether allocation happened.
        (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
        nothing was allocated.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ipa-prop.c
>From gcc-bugs-return-553384-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 09:47:07 2017
Return-Path: <gcc-bugs-return-553384-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127525 invoked by alias); 8 Feb 2017 09:47: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 124926 invoked by uid 48); 8 Feb 2017 09:46:52 -0000
From: "mini at cs dot technion.ac.il" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79416] [5/6/7 Regression] Internal compiler error for recursive template expansion
Date: Wed, 08 Feb 2017 09: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: 5.4.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mini at cs dot technion.ac.il
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79416-4-Qrj51tYBrC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79416-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79416-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00916.txt.bz2
Content-length: 1758

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

--- Comment #2 from Marina Minkin <mini at cs dot technion.ac.il> ---
I was able to get a different error on gcc 4.4.7

$ gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
--disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--with-ppl --with-cloog --with-tune=generic --with-arch_32=i686
--build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC)
$ cat prog.cpp
template <int N>
void nops() __attribute((always_inline));

template <int N>
void more_nops() __attribute((always_inline));

template <int N>
void more_nops2() __attribute((always_inline));

template <int N>
inline void nops()
{
        asm("nop");
        nops<N - 1>();
}

template<>
inline void nops<0>()
{
};

template <int N>
inline void more_nops()
{
        nops<400>();
        more_nops<N - 1>();
};

template<>
inline void more_nops<0>()
{
};

template <int N>
inline void more_nops2()
{
        more_nops<400>();
        more_nops2<N - 1>();
};

template<>
inline void more_nops2<0>()
{
};


int main() {
        more_nops2<100>();
}

$ g++ prog.cpp
virtual memory exhausted: Cannot allocate memory
>From gcc-bugs-return-553386-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 10:00:45 2017
Return-Path: <gcc-bugs-return-553386-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127189 invoked by alias); 8 Feb 2017 10: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 109232 invoked by uid 55); 8 Feb 2017 10:00:31 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug translation/79397] AltiVec spelled incorrectly in rs6000.opt
Date: Wed, 08 Feb 2017 10:00:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: translation
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79397-4-LULARcs5JD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79397-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79397-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00918.txt.bz2
Content-length: 617

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

--- Comment #1 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Author: segher
Date: Wed Feb  8 09:59:55 2017
New Revision: 245276

URL: https://gcc.gnu.org/viewcvs?rev=245276&root=gcc&view=rev
Log:
rs6000: Fix spelling of AltiVec in rs6000.opt (PR79397)

It was spelled Altivec in two user-facing messages in rs6000.opt; let's
be consistent.


        PR translation/79397
        * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
        of AltiVec.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/rs6000/rs6000.opt
>From gcc-bugs-return-553387-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 10:06:46 2017
Return-Path: <gcc-bugs-return-553387-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92439 invoked by alias); 8 Feb 2017 10:06: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 92178 invoked by uid 55); 8 Feb 2017 10:06:33 -0000
From: "ro at CeBiTec dot Uni-Bielefeld.DE" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/41590] No __STDC__ definition in -g3 -E output on STDC_0_IN_SYSTEM_HEADERS systems
Date: Wed, 08 Feb 2017 10:06: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: 4.5.0
X-Bugzilla-Keywords: documentation, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE
X-Bugzilla-Status: UNCONFIRMED
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-41590-4-nSTZtO7tVh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41590-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41590-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00919.txt.bz2
Content-length: 438

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

--- Comment #4 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> ---
> --- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
> Documentation patch:
> https://gcc.gnu.org/ml/gcc-patches/2017-02/msg00560.html

I think you got the wrong PR here: your doc patch is about PR
preprocessor/41540, not 41590, which AFAICT is unrelated.

        Rainer
>From gcc-bugs-return-553388-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 10:11:27 2017
Return-Path: <gcc-bugs-return-553388-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18348 invoked by alias); 8 Feb 2017 10:11: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 17940 invoked by uid 48); 8 Feb 2017 10:11:08 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79408] Missed VRP optimization of integer modulo
Date: Wed, 08 Feb 2017 10:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.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-79408-4-IAQODDlN8V@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79408-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79408-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00920.txt.bz2
Content-length: 423

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

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

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-553389-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 10:14:05 2017
Return-Path: <gcc-bugs-return-553389-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22648 invoked by alias); 8 Feb 2017 10: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 22430 invoked by uid 48); 8 Feb 2017 10:13:51 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug translation/79397] AltiVec spelled incorrectly in rs6000.opt
Date: Wed, 08 Feb 2017 10:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: translation
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-79397-4-OP2Qy5iLNW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79397-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79397-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00921.txt.bz2
Content-length: 627

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-08
                 CC|                            |segher at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Fixed on trunk; will commit to 5 and 6 in a bit.  Thanks for the report.
>From gcc-bugs-return-553390-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 11:08:27 2017
Return-Path: <gcc-bugs-return-553390-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80497 invoked by alias); 8 Feb 2017 11:08: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 71364 invoked by uid 48); 8 Feb 2017 11:08:14 -0000
From: "dhowells at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79404] h8300: ICE at gcc/ira.c:5541 whilst building libgcc
Date: Wed, 08 Feb 2017 11: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dhowells at redhat 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-79404-4-BxB9vF1RbL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79404-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79404-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00922.txt.bz2
Content-length: 273

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

--- Comment #2 from dhowells at redhat dot com <dhowells at redhat dot com> ---
(In reply to dhowells@redhat.com from comment #1)
> gcc is SVNREV 245184 plus the Fedora patches.

Also occurs with all patches dropped.
>From gcc-bugs-return-553391-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 11:09:04 2017
Return-Path: <gcc-bugs-return-553391-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99344 invoked by alias); 8 Feb 2017 11:09: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 98752 invoked by uid 48); 8 Feb 2017 11:08:59 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Wed, 08 Feb 2017 11:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.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: attachments.created
Message-ID: <bug-79341-4-OzNHyy2sgT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00923.txt.bz2
Content-length: 544

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

--- Comment #24 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 40693
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40693&action=edit
gcc7-pr79341.patch

Does the attached patch work for you?  Only tested on s390x-linux (64-bit). 
The intent is that while __tls_get_addr_internal is intercepted, both
__tls_get_offset and __tls_get_addr_internal interceptors actually call
original real __tls_get_offset, so it should work both with old and new glibc.
>From gcc-bugs-return-553392-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 11:10:57 2017
Return-Path: <gcc-bugs-return-553392-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102375 invoked by alias); 8 Feb 2017 11:10: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 102170 invoked by uid 48); 8 Feb 2017 11:10:44 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79422] New: Use ACX_BUGURL for error in snprintf_lite.cc
Date: Wed, 08 Feb 2017 11:10: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: unknown
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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-79422-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00924.txt.bz2
Content-length: 487

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

            Bug ID: 79422
           Summary: Use ACX_BUGURL for error in snprintf_lite.cc
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
  Target Milestone: ---

See https://gcc.gnu.org/ml/libstdc++/2017-02/msg00025.html
>From gcc-bugs-return-553393-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 11:11:10 2017
Return-Path: <gcc-bugs-return-553393-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103092 invoked by alias); 8 Feb 2017 11:11:10 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 102372 invoked by uid 48); 8 Feb 2017 11:10:57 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79422] Use ACX_BUGURL for error in snprintf_lite.cc
Date: Wed, 08 Feb 2017 11:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on target_milestone everconfirmed
Message-ID: <bug-79422-4-gEDM5YyitA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79422-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79422-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00925.txt.bz2
Content-length: 455

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-08
   Target Milestone|---                         |8.0
     Ever confirmed|0                           |1
>From gcc-bugs-return-553394-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 11:13:20 2017
Return-Path: <gcc-bugs-return-553394-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107040 invoked by alias); 8 Feb 2017 11:13: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 106855 invoked by uid 48); 8 Feb 2017 11:13:07 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/68606] Reduce or disable the static emergency pool for C++ exceptions
Date: Wed, 08 Feb 2017 11: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: 4.9.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: 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-68606-4-dTWcR47f3o@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68606-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68606-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00926.txt.bz2
Content-length: 218

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

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
A proposed patch for gcc 8 was posted to
https://gcc.gnu.org/ml/gcc-patches/2016-12/msg01158.html
>From gcc-bugs-return-553395-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 11:24:48 2017
Return-Path: <gcc-bugs-return-553395-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27801 invoked by alias); 8 Feb 2017 11:24: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 27647 invoked by uid 48); 8 Feb 2017 11:24:21 -0000
From: "jan.echternach at de dot gbs.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/41517] Unexpected behaviour of #pragma in statement context
Date: Wed, 08 Feb 2017 11: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: 4.3.3
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jan.echternach at de dot gbs.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-41517-4-xlL7HKewBP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41517-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41517-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00927.txt.bz2
Content-length: 732

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

--- Comment #5 from Jan Echternach <jan.echternach at de dot gbs.com> ---
The testcases changed or added in bug 63326 comment 21 were all about #pragma
omp. I don't understand the parser changes well enough to tell if #pragma GCC
will be treated in the same way, i.e. if it will also produce an error after
if(...) or for(...).

If it does, I think it would be a fine resolution and I wouldn't mind if this
bug was closed as a duplicate. From my point of view as a user, a difference
between C and C++ is harmless as long as there's no silent change in semantics.
In other words, it would be no problem for me if the C parser rejected code
that the C++ parser accepted.
>From gcc-bugs-return-553396-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 11:35:39 2017
Return-Path: <gcc-bugs-return-553396-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49293 invoked by alias); 8 Feb 2017 11:35: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 49053 invoked by uid 48); 8 Feb 2017 11:35:24 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/78847] pointer arithmetic from c++ ranged-based for loop not optimized
Date: Wed, 08 Feb 2017 11:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.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: cc
Message-ID: <bug-78847-4-sEgOK3l6P5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78847-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78847-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00928.txt.bz2
Content-length: 3078

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |amker at gcc dot gnu.org,
                   |                            |rguenth at gcc dot gnu.org

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
And the real inefficiency is niter analysis returning unsimplified

(unsigned long) &MEM[(void *)&foo + 9B] - (unsigned long) ((const char *)
&foo.ascii_ + 1)

from here:

#1  0x000000000134f088 in number_of_iterations_ne (loop=0x7ffff5534550, 
    type=<pointer_type 0x7ffff569f3f0>, iv=0x7fffffffd4b0, 
    final=<addr_expr 0x7ffff51b4620>, niter=0x7fffffffd5e0, 
    exit_must_be_taken=true, bnds=0x7fffffffd3d0)
    at /space/rguenther/src/svn/gcc-7-branch/gcc/tree-ssa-loop-niter.c:991
991                            fold_convert (niter_type, iv->base));
(gdb) l
986       else
987         {
988           s = fold_convert (niter_type, iv->step);
989           c = fold_build2 (MINUS_EXPR, niter_type,
990                            fold_convert (niter_type, final),
991                            fold_convert (niter_type, iv->base));

where

final: &MEM[(void *)&foo + 9B]
iv->base: (const char *) &foo.ascii_ + 1

one could either try to enhance the associate: case of fold_binary or use
tree-affine above, like with

Index: gcc/tree-ssa-loop-niter.c
===================================================================
--- gcc/tree-ssa-loop-niter.c   (revision 245276)
+++ gcc/tree-ssa-loop-niter.c   (working copy)
@@ -42,6 +42,7 @@ along with GCC; see the file COPYING3.
 #include "tree-chrec.h"
 #include "tree-scalar-evolution.h"
 #include "params.h"
+#include "tree-affine.h"


 /* The maximum number of dominator BBs we search for conditions
@@ -986,9 +987,12 @@ number_of_iterations_ne (struct loop *lo
   else
     {
       s = fold_convert (niter_type, iv->step);
-      c = fold_build2 (MINUS_EXPR, niter_type,
-                      fold_convert (niter_type, final),
-                      fold_convert (niter_type, iv->base));
+      aff_tree aff_ivbase, aff_final;
+      tree_to_aff_combination (iv->base, niter_type, &aff_ivbase);
+      tree_to_aff_combination (final, niter_type, &aff_final);
+      aff_combination_scale (&aff_ivbase, -1);
+      aff_combination_add (&aff_ivbase, &aff_final);
+      c = aff_combination_to_tree (&aff_ivbase);
     }

   mpz_init (max);


though this is horribly incomplete (fixes the testcase though) and if, then
niter analysis should use aff_trees throughout (not re-build trees for the
intermediate stuff).  With that patch we immediately get '9' as the
number of iterations and thus ldist produces

  <bb 2> [10.00%]:
  _18 = buf__9(D) + ptr_6(D);
  __builtin_memcpy (_18, &foo, 9);
>From gcc-bugs-return-553397-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 11:57:07 2017
Return-Path: <gcc-bugs-return-553397-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36556 invoked by alias); 8 Feb 2017 11:57: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 36428 invoked by uid 48); 8 Feb 2017 11:56:52 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/78847] pointer arithmetic from c++ ranged-based for loop not optimized
Date: Wed, 08 Feb 2017 11: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: 7.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-78847-4-aAjR4kFw1x@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78847-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78847-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00929.txt.bz2
Content-length: 1239

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

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
A simple fold-const.c "fix" is the following:

Index: gcc/fold-const.c
===================================================================
--- gcc/fold-const.c    (revision 245276)
+++ gcc/fold-const.c    (working copy)
@@ -785,7 +785,9 @@ split_tree (location_t loc, tree in, tre
                  the value is not affected.  For reals, the value might be
                  affected, so we can't.  */
               && ((code == PLUS_EXPR && TREE_CODE (in) == MINUS_EXPR)
-                  || (code == MINUS_EXPR && TREE_CODE (in) == PLUS_EXPR))))
+                  || (code == MINUS_EXPR
+                      && (TREE_CODE (in) == PLUS_EXPR
+                          || TREE_CODE (in) == POINTER_PLUS_EXPR)))))
     {
       tree op0 = TREE_OPERAND (in, 0);
       tree op1 = TREE_OPERAND (in, 1);

I'm giving it bootstrap/regtest - that would be likely a quite beneficial
change for all the middle-end machinery still using GENERIC...
>From gcc-bugs-return-553398-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 11:57:26 2017
Return-Path: <gcc-bugs-return-553398-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37428 invoked by alias); 8 Feb 2017 11:57: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 37258 invoked by uid 48); 8 Feb 2017 11:57:13 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/78847] pointer arithmetic from c++ ranged-based for loop not optimized
Date: Wed, 08 Feb 2017 11: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: 7.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: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-78847-4-7fVB6jZtwI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78847-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78847-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00930.txt.bz2
Content-length: 383

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

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
>From gcc-bugs-return-553399-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 12:13:38 2017
Return-Path: <gcc-bugs-return-553399-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82957 invoked by alias); 8 Feb 2017 12:13:38 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 82763 invoked by uid 48); 8 Feb 2017 12:13:25 -0000
From: "dhowells at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79404] h8300: ICE at gcc/ira.c:5541 whilst building libgcc
Date: Wed, 08 Feb 2017 12:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dhowells at redhat 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-79404-4-E0r7qqu0gg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79404-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79404-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00931.txt.bz2
Content-length: 1330

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

--- Comment #3 from dhowells at redhat dot com <dhowells at redhat dot com> ---
Program received signal SIGSEGV, Segmentation fault.
0x00000000007e13fb in allocno_copy_cost_saving (
    allocno=allocno@entry=0x149f340, hard_regno=2)
    at ../../gcc-7.0.1-20170204/gcc/ira-color.c:2764
2764          cost += cp->freq *
ira_register_move_cost[allocno_mode][rclass][rclass];

(gdb) p cp
$1 = (ira_copy_t) 0x14cee38
(gdb) p cp->freq
$2 = 194

   0x00000000007e13f0 <+176>:   mov    %r9,%rdx
   0x00000000007e13f3 <+179>:   add    0x12a4860(,%r10,8),%rdx
=> 0x00000000007e13fb <+187>:   movzwl (%rdx,%r11,1),%edx

r9             0x8      8
r10            0x21b    539
r11            0x38     56
rdx            0x8      8

$3 = (target_ira_int *) 0x12a4860 <default_target_ira_int>
(gdb) p &((struct target_ira_int*)0)->x_ira_register_move_cost
$4 = (move_table *(*)[39]) 0x10a0
(gdb) p 0x10a0/8
$5 = 532

So r10 is the offset of x_ira_register_move_cost/8 + 7 where allocno_mode is 7
(DImode).

But:

(gdb) p default_target_ira_int.x_ira_register_move_cost[7]
$8 = (move_table *) 0x0

(gdb) p default_target_ira_int.x_ira_register_move_cost 
$2 = {0x12f7170, 0x12f7170, 0x13e8f80, 0x0, 0x14876f0, 0x1487450, 0x14875a0, 
  0x0 <repeats 32 times>}
>From gcc-bugs-return-553400-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 12:33:38 2017
Return-Path: <gcc-bugs-return-553400-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5752 invoked by alias); 8 Feb 2017 12: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 3922 invoked by uid 48); 8 Feb 2017 12:33:22 -0000
From: "jamborm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/79375] gcc/ipa-prop.c:203:32: runtime error: reference binding to null pointer of type 'struct vec' after revision r244802
Date: Wed, 08 Feb 2017 12:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ipa
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jamborm at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jamborm at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79375-4-EK2H50Y2il@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79375-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79375-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00932.txt.bz2
Content-length: 128

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

--- Comment #6 from Martin Jambor <jamborm at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-553401-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 12:55:09 2017
Return-Path: <gcc-bugs-return-553401-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5026 invoked by alias); 8 Feb 2017 12:55: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 4871 invoked by uid 48); 8 Feb 2017 12:54:53 -0000
From: "sgh at sgh dot dk" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug translation/79423] New: Translation of warnings breaks IDE parsing of output
Date: Wed, 08 Feb 2017 12:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: translation
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sgh at sgh dot dk
X-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-79423-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00933.txt.bz2
Content-length: 784

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

            Bug ID: 79423
           Summary: Translation of warnings breaks IDE parsing of output
           Product: gcc
           Version: 6.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: translation
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sgh at sgh dot dk
  Target Milestone: ---

All IDE's does not understand GCC unless is "speaks" english. Disabling is
using the environment is not a solution because the environment for cmake+ninja
based projects does not use the environment after cmake has been called, and
there is no guarantee that cmake has been called by the ide.

A commandline flag to disable translation would be great.
>From gcc-bugs-return-553402-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 12:59:31 2017
Return-Path: <gcc-bugs-return-553402-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10444 invoked by alias); 8 Feb 2017 12:59: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 10354 invoked by uid 48); 8 Feb 2017 12:59:17 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/79375] gcc/ipa-prop.c:203:32: runtime error: reference binding to null pointer of type 'struct vec' after revision r244802
Date: Wed, 08 Feb 2017 12:59: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jamborm at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79375-4-JXCBq8N2o1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79375-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79375-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00934.txt.bz2
Content-length: 163

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

--- Comment #7 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Fixed.

Thanks for the quick fix.
>From gcc-bugs-return-553403-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 13:03:34 2017
Return-Path: <gcc-bugs-return-553403-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19137 invoked by alias); 8 Feb 2017 13:03: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 19011 invoked by uid 48); 8 Feb 2017 13:03:21 -0000
From: "nathan at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79424] New: dtor synthesized before abstractness correctly determined
Date: Wed, 08 Feb 2017 13: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nathan 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 attachments.created
Message-ID: <bug-79424-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00935.txt.bz2
Content-length: 1439

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

            Bug ID: 79424
           Summary: dtor synthesized before abstractness correctly
                    determined
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nathan at gcc dot gnu.org
  Target Milestone: ---

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

I stumbled upon this looking at 79393. In the example, we think A2::~A2 is
deleted because we haven't yet determined it's abstractness.  Consequently we
think we need VDT::~VDT, which is private.  Then we give an error about
overriding non-deleted A1::~A1 with a deleted function.  Further fallout when
the cleanup for global a3 attempts to use deleted A3::~A3 (which is deleted
because A2::~A2 was erroneously deleted).

dfs_declare_virt_assop_and_dtor calls lazily_declare_fn (sfk_destructor, t)
before CLASSTYPE_PURE_VIRTUALS is determined (we've not looked at inherited
pure virts, nor local overriders for such inherited pure virts.  It only
contains the pure virts declared in the class).

That's from check_bases_and_members called early in from finish_struct_1.  Pure
virtuals are finally determined from finish_struct_bits called much later in
finish_struct_1.
>From gcc-bugs-return-553405-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 13:14:47 2017
Return-Path: <gcc-bugs-return-553405-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23931 invoked by alias); 8 Feb 2017 13:14: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 22418 invoked by uid 55); 8 Feb 2017 13:14:28 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79409] [7 Regression] [graphite] ICE in outermost_loop_in_sese, at sese.c:300 w/ -fgraphite-identity -ftree-loop-distribution -O1 (or above)
Date: Wed, 08 Feb 2017 13:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79409-4-lLjATAVk3p@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79409-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79409-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00937.txt.bz2
Content-length: 1948

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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Wed Feb  8 13:13:53 2017
New Revision: 245278

URL: https://gcc.gnu.org/viewcvs?rev=245278&root=gcc&view=rev
Log:
2017-02-08  Richard Biener  <rguenther@suse.de>

        Backport from mainline
        2017-02-08  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/71824
        PR tree-optimization/79409
        * gcc.dg/graphite/pr71824-3.c: New testcase.

        2017-02-08  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/71824
        * graphite-scop-detection.c (scop_detection::build_scop_breadth):
        Check all loops contained in the merged region.

        * gcc.dg/graphite/pr71824-2.c: New testcase.

        2017-02-01  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/71824
        * graphite-scop-detection.c (scop_detection::build_scop_breadth):
        Verify the loops are valid in the merged SESE region.
        (scop_detection::can_represent_loop_1): Check analyzing the
        evolution of the number of iterations in the region succeeds.

        * gcc.dg/graphite/pr71824.c: New testcase.

        2017-01-31  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/77318
        * graphite-sese-to-poly.c (extract_affine): Fix assert.
        (create_pw_aff_from_tree): Take loop parameter.
        (add_condition_to_pbb): Pass loop of the condition to
        create_pw_aff_from_tree.

Added:
    branches/gcc-6-branch/gcc/testsuite/gcc.dg/graphite/pr71824-2.c
    branches/gcc-6-branch/gcc/testsuite/gcc.dg/graphite/pr71824-3.c
    branches/gcc-6-branch/gcc/testsuite/gcc.dg/graphite/pr71824.c
Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/graphite-scop-detection.c
    branches/gcc-6-branch/gcc/graphite-sese-to-poly.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-553404-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 13:14:46 2017
Return-Path: <gcc-bugs-return-553404-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23573 invoked by alias); 8 Feb 2017 13:14: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 22394 invoked by uid 55); 8 Feb 2017 13:14:27 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/71824] [6 Regression] ICE when compiling libiberty with Graphite loop optimizations
Date: Wed, 08 Feb 2017 13:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 6.1.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: P4
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-71824-4-43fOGjlMGd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71824-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71824-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00936.txt.bz2
Content-length: 1949

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

--- Comment #17 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Wed Feb  8 13:13:53 2017
New Revision: 245278

URL: https://gcc.gnu.org/viewcvs?rev=245278&root=gcc&view=rev
Log:
2017-02-08  Richard Biener  <rguenther@suse.de>

        Backport from mainline
        2017-02-08  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/71824
        PR tree-optimization/79409
        * gcc.dg/graphite/pr71824-3.c: New testcase.

        2017-02-08  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/71824
        * graphite-scop-detection.c (scop_detection::build_scop_breadth):
        Check all loops contained in the merged region.

        * gcc.dg/graphite/pr71824-2.c: New testcase.

        2017-02-01  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/71824
        * graphite-scop-detection.c (scop_detection::build_scop_breadth):
        Verify the loops are valid in the merged SESE region.
        (scop_detection::can_represent_loop_1): Check analyzing the
        evolution of the number of iterations in the region succeeds.

        * gcc.dg/graphite/pr71824.c: New testcase.

        2017-01-31  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/77318
        * graphite-sese-to-poly.c (extract_affine): Fix assert.
        (create_pw_aff_from_tree): Take loop parameter.
        (add_condition_to_pbb): Pass loop of the condition to
        create_pw_aff_from_tree.

Added:
    branches/gcc-6-branch/gcc/testsuite/gcc.dg/graphite/pr71824-2.c
    branches/gcc-6-branch/gcc/testsuite/gcc.dg/graphite/pr71824-3.c
    branches/gcc-6-branch/gcc/testsuite/gcc.dg/graphite/pr71824.c
Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/graphite-scop-detection.c
    branches/gcc-6-branch/gcc/graphite-sese-to-poly.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-553406-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 13:14:47 2017
Return-Path: <gcc-bugs-return-553406-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24107 invoked by alias); 8 Feb 2017 13:14: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 22501 invoked by uid 55); 8 Feb 2017 13:14:30 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/77318] [7 regression] FAIL: gfortran.dg/graphite/pr68279.f90   -O  (internal compiler error)
Date: Wed, 08 Feb 2017 13:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.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: P4
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-77318-4-qjJTEEkcIr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77318-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77318-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00938.txt.bz2
Content-length: 1949

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

--- Comment #14 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Wed Feb  8 13:13:53 2017
New Revision: 245278

URL: https://gcc.gnu.org/viewcvs?rev=245278&root=gcc&view=rev
Log:
2017-02-08  Richard Biener  <rguenther@suse.de>

        Backport from mainline
        2017-02-08  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/71824
        PR tree-optimization/79409
        * gcc.dg/graphite/pr71824-3.c: New testcase.

        2017-02-08  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/71824
        * graphite-scop-detection.c (scop_detection::build_scop_breadth):
        Check all loops contained in the merged region.

        * gcc.dg/graphite/pr71824-2.c: New testcase.

        2017-02-01  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/71824
        * graphite-scop-detection.c (scop_detection::build_scop_breadth):
        Verify the loops are valid in the merged SESE region.
        (scop_detection::can_represent_loop_1): Check analyzing the
        evolution of the number of iterations in the region succeeds.

        * gcc.dg/graphite/pr71824.c: New testcase.

        2017-01-31  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/77318
        * graphite-sese-to-poly.c (extract_affine): Fix assert.
        (create_pw_aff_from_tree): Take loop parameter.
        (add_condition_to_pbb): Pass loop of the condition to
        create_pw_aff_from_tree.

Added:
    branches/gcc-6-branch/gcc/testsuite/gcc.dg/graphite/pr71824-2.c
    branches/gcc-6-branch/gcc/testsuite/gcc.dg/graphite/pr71824-3.c
    branches/gcc-6-branch/gcc/testsuite/gcc.dg/graphite/pr71824.c
Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/graphite-scop-detection.c
    branches/gcc-6-branch/gcc/graphite-sese-to-poly.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-553408-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 13:16:27 2017
Return-Path: <gcc-bugs-return-553408-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48060 invoked by alias); 8 Feb 2017 13:16: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 47962 invoked by uid 48); 8 Feb 2017 13:16:22 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/59859] [meta-bug] GRAPHITE issues
Date: Wed, 08 Feb 2017 13:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: 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: bug_status resolution
Message-ID: <bug-59859-4-4BkdkfOcfM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59859-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59859-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00940.txt.bz2
Content-length: 504

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

Bug 71824 Summary: [6 Regression] ICE when compiling libiberty with Graphite loop optimizations
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71824

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-553409-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 13:16:36 2017
Return-Path: <gcc-bugs-return-553409-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49984 invoked by alias); 8 Feb 2017 13: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 47983 invoked by uid 48); 8 Feb 2017 13:16:22 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79409] [7 Regression] [graphite] ICE in outermost_loop_in_sese, at sese.c:300 w/ -fgraphite-identity -ftree-loop-distribution -O1 (or above)
Date: Wed, 08 Feb 2017 13:16: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: 7.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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79409-4-AZjftFl0Fn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79409-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79409-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00941.txt.bz2
Content-length: 504

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

Bug 71824 Summary: [6 Regression] ICE when compiling libiberty with Graphite loop optimizations
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71824

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-553407-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 13:16:26 2017
Return-Path: <gcc-bugs-return-553407-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48050 invoked by alias); 8 Feb 2017 13:16: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 47924 invoked by uid 48); 8 Feb 2017 13:16:21 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/71824] [6 Regression] ICE when compiling libiberty with Graphite loop optimizations
Date: Wed, 08 Feb 2017 13: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: 6.1.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: P4
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_known_to_work resolution
Message-ID: <bug-71824-4-ZdWqdwdoc6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71824-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71824-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00939.txt.bz2
Content-length: 485

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to work|                            |6.3.1
         Resolution|---                         |FIXED

--- Comment #18 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-553410-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 13:18:07 2017
Return-Path: <gcc-bugs-return-553410-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62436 invoked by alias); 8 Feb 2017 13:18: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 62176 invoked by uid 48); 8 Feb 2017 13:17:53 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/77932] [GRAPHITE] gmp-6.1.0, 6.1.1 breaks because of fgraphite-identity
Date: Wed, 08 Feb 2017 13: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: 5.4.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-77932-4-HpYXcRruuc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77932-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77932-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00942.txt.bz2
Content-length: 558

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-02-08
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Can you please try a recent GCC 6 snapshot or provide something like a
testcase?
>From gcc-bugs-return-553411-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 13:19:47 2017
Return-Path: <gcc-bugs-return-553411-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67423 invoked by alias); 8 Feb 2017 13:19: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 67265 invoked by uid 48); 8 Feb 2017 13:19:34 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79413] [7 Regression] ICE in make_ssa_name_fn, at tree-ssanames.c:265
Date: Wed, 08 Feb 2017 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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc assigned_to
Message-ID: <bug-79413-4-7jMD662DJL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79413-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79413-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00943.txt.bz2
Content-length: 548

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

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

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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I'll have a look.
>From gcc-bugs-return-553412-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 13:32:20 2017
Return-Path: <gcc-bugs-return-553412-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5404 invoked by alias); 8 Feb 2017 13:32: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 5213 invoked by uid 48); 8 Feb 2017 13:32:07 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/71351] [7 Regression] ICE: Segmentation fault (graphite)
Date: Wed, 08 Feb 2017 13:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: 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: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-71351-4-om7UUP2bTe@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71351-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71351-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00944.txt.bz2
Content-length: 258

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

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
sese_insert_phis_for_liveouts looks like complete bollocks in this case.  We're
missing a definition that could be used for updating.
>From gcc-bugs-return-553413-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 13:37:42 2017
Return-Path: <gcc-bugs-return-553413-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27531 invoked by alias); 8 Feb 2017 13:37:42 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 27277 invoked by uid 48); 8 Feb 2017 13:37:28 -0000
From: "rdiezmail-gcc at yahoo dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/68606] Reduce or disable the static emergency pool for C++ exceptions
Date: Wed, 08 Feb 2017 13:37: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.9.3
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: rdiezmail-gcc at yahoo dot de
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-68606-4-dp6JoRSH8A@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68606-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68606-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00945.txt.bz2
Content-length: 357

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

--- Comment #6 from R. Diez <rdiezmail-gcc at yahoo dot de> ---
The proposed patch looks OK. But I guess I will not be able to completely
disable the emergency pool by setting STATIC_EH_ALLOC_POOL_BYTES to 0, right?
But at least I hope that setting a very low value will have that effect in
practice.
>From gcc-bugs-return-553414-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 13:43:14 2017
Return-Path: <gcc-bugs-return-553414-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65389 invoked by alias); 8 Feb 2017 13:43: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 63648 invoked by uid 48); 8 Feb 2017 13:43:01 -0000
From: "mini at cs dot technion.ac.il" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79425] New: Inline assembly getting clobbered in some case
Date: Wed, 08 Feb 2017 13:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mini at cs dot technion.ac.il
X-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-79425-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00946.txt.bz2
Content-length: 9983

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

            Bug ID: 79425
           Summary: Inline assembly getting clobbered in some case
           Product: gcc
           Version: 5.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mini at cs dot technion.ac.il
  Target Milestone: ---

I am getting inline assembly code clobbered if I #include<algorithm>, it is the
1st code in the .text segment, AND I use -std=c++11

This is the INCORRECT behavior. As you can see, the label reg_in is gone:

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
5.4.0-6ubuntu1~16.04.4' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs
--enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-5 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib
--disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64
--with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686
--with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib
--with-tune=generic --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 
$ cat prog.c 
#include <algorithm>
//void foo(){}
__asm__ volatile ("reg_in: \n\t"
                                  "pushf\n\t"
                                  "push   %rbp\n\t"
                                  "mov    %rsp,%rbp\n\t"
                                  "push   %rdi\n\t"
                                  "push   %rsi\n\t"
                                  "push   %rdx\n\t"
                                  "push   %rcx\n\t"
                                  "push   %r8 \n\t"
                                  "push   %r9 \n\t"
                                  "push   %rax\n\t"
                                  );

int main(int argc, char *argv[])
{
}

$ g++ -std=c++11 prog.c 
$ objdump -d a.out      # I put here only partial output

00000000004004b0 <frame_dummy>:
  4004b0:       bf 20 0e 60 00          mov    $0x600e20,%edi
  4004b5:       48 83 3f 00             cmpq   $0x0,(%rdi)
  4004b9:       75 05                   jne    4004c0 <frame_dummy+0x10>
  4004bb:       eb 93                   jmp    400450 <register_tm_clones>
  4004bd:       0f 1f 00                nopl   (%rax)
  4004c0:       b8 00 00 00 00          mov    $0x0,%eax
  4004c5:       48 85 c0                test   %rax,%rax
  4004c8:       74 f1                   je     4004bb <frame_dummy+0xb>
  4004ca:       55                      push   %rbp
  4004cb:       48 89 e5                mov    %rsp,%rbp
  4004ce:       ff d0                   callq  *%rax
  4004d0:       5d                      pop    %rbp
  4004d1:       e9 7a ff ff ff          jmpq   400450 <register_tm_clones>

00000000004004d6 <main>:
  4004d6:       55                      push   %rbp
  4004d7:       48 89 e5                mov    %rsp,%rbp
  4004da:       89 7d fc                mov    %edi,-0x4(%rbp)
  4004dd:       48 89 75 f0             mov    %rsi,-0x10(%rbp)
  4004e1:       b8 00 00 00 00          mov    $0x0,%eax
  4004e6:       5d                      pop    %rbp
  4004e7:       c3                      retq
  4004e8:       0f 1f 84 00 00 00 00    nopl   0x0(%rax,%rax,1)
  4004ef:       00

If I do 1 of the following, I get the correct result
1. uncomment void foo(){}
2. remove #include <algorithm>

The examples below, are of CORRECT behaviors. Here the label reg_in stays:

$ vi prog.c 
$ g++ -std=c++11 prog.c 
$ cat prog.c 
#include <algorithm>
void foo(){}
__asm__ volatile ("reg_in: \n\t"
                                  "pushf\n\t"
                                  "push   %rbp\n\t"
                                  "mov    %rsp,%rbp\n\t"
                                  "push   %rdi\n\t"
                                  "push   %rsi\n\t"
                                  "push   %rdx\n\t"
                                  "push   %rcx\n\t"
                                  "push   %r8 \n\t"
                                  "push   %r9 \n\t"
                                  "push   %rax\n\t"
                                  );

int main(int argc, char *argv[])
{
}

$ objdump -d a.out      # I put here only partial output

00000000004004b0 <frame_dummy>:
  4004b0:       bf 20 0e 60 00          mov    $0x600e20,%edi
  4004b5:       48 83 3f 00             cmpq   $0x0,(%rdi)
  4004b9:       75 05                   jne    4004c0 <frame_dummy+0x10>
  4004bb:       eb 93                   jmp    400450 <register_tm_clones>
  4004bd:       0f 1f 00                nopl   (%rax)
  4004c0:       b8 00 00 00 00          mov    $0x0,%eax
  4004c5:       48 85 c0                test   %rax,%rax
  4004c8:       74 f1                   je     4004bb <frame_dummy+0xb>
  4004ca:       55                      push   %rbp
  4004cb:       48 89 e5                mov    %rsp,%rbp
  4004ce:       ff d0                   callq  *%rax
  4004d0:       5d                      pop    %rbp
  4004d1:       e9 7a ff ff ff          jmpq   400450 <register_tm_clones>

00000000004004d6 <_Z3foov>:
  4004d6:       55                      push   %rbp
  4004d7:       48 89 e5                mov    %rsp,%rbp
  4004da:       90                      nop
  4004db:       5d                      pop    %rbp
  4004dc:       c3                      retq

00000000004004dd <reg_in>:
  4004dd:       9c                      pushfq
  4004de:       55                      push   %rbp
  4004df:       48 89 e5                mov    %rsp,%rbp
  4004e2:       57                      push   %rdi
  4004e3:       56                      push   %rsi
  4004e4:       52                      push   %rdx
  4004e5:       51                      push   %rcx
  4004e6:       41 50                   push   %r8
  4004e8:       41 51                   push   %r9
  4004ea:       50                      push   %rax

00000000004004eb <main>:
  4004eb:       55                      push   %rbp
  4004ec:       48 89 e5                mov    %rsp,%rbp
  4004ef:       89 7d fc                mov    %edi,-0x4(%rbp)
  4004f2:       48 89 75 f0             mov    %rsi,-0x10(%rbp)
  4004f6:       b8 00 00 00 00          mov    $0x0,%eax
  4004fb:       5d                      pop    %rbp
  4004fc:       c3                      retq
  4004fd:       0f 1f 00                nopl   (%rax)

$ vi prog.c 
$ g++ -std=c++11 prog.c 
$ cat prog.c 
//#include <algorithm>
//void foo(){}
__asm__ volatile ("reg_in: \n\t"
                                  "pushf\n\t"
                                  "push   %rbp\n\t"
                                  "mov    %rsp,%rbp\n\t"
                                  "push   %rdi\n\t"
                                  "push   %rsi\n\t"
                                  "push   %rdx\n\t"
                                  "push   %rcx\n\t"
                                  "push   %r8 \n\t"
                                  "push   %r9 \n\t"
                                  "push   %rax\n\t"
                                  );

int main(int argc, char *argv[])
{
}

$ objdump -d a.out      # I put here only partial output

00000000004004b0 <frame_dummy>:
  4004b0:       bf 20 0e 60 00          mov    $0x600e20,%edi
  4004b5:       48 83 3f 00             cmpq   $0x0,(%rdi)
  4004b9:       75 05                   jne    4004c0 <frame_dummy+0x10>
  4004bb:       eb 93                   jmp    400450 <register_tm_clones>
  4004bd:       0f 1f 00                nopl   (%rax)
  4004c0:       b8 00 00 00 00          mov    $0x0,%eax
  4004c5:       48 85 c0                test   %rax,%rax
  4004c8:       74 f1                   je     4004bb <frame_dummy+0xb>
  4004ca:       55                      push   %rbp
  4004cb:       48 89 e5                mov    %rsp,%rbp
  4004ce:       ff d0                   callq  *%rax
  4004d0:       5d                      pop    %rbp
  4004d1:       e9 7a ff ff ff          jmpq   400450 <register_tm_clones>

00000000004004d6 <reg_in>:
  4004d6:       9c                      pushfq
  4004d7:       55                      push   %rbp
  4004d8:       48 89 e5                mov    %rsp,%rbp
  4004db:       57                      push   %rdi
  4004dc:       56                      push   %rsi
  4004dd:       52                      push   %rdx
  4004de:       51                      push   %rcx
  4004df:       41 50                   push   %r8
  4004e1:       41 51                   push   %r9
  4004e3:       50                      push   %rax

00000000004004e4 <main>:
  4004e4:       55                      push   %rbp
  4004e5:       48 89 e5                mov    %rsp,%rbp
  4004e8:       89 7d fc                mov    %edi,-0x4(%rbp)
  4004eb:       48 89 75 f0             mov    %rsi,-0x10(%rbp)
  4004ef:       b8 00 00 00 00          mov    $0x0,%eax
  4004f4:       5d                      pop    %rbp
  4004f5:       c3                      retq
  4004f6:       66 2e 0f 1f 84 00 00    nopw   %cs:0x0(%rax,%rax,1)
  4004fd:       00 00 00
>From gcc-bugs-return-553415-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 13:46:00 2017
Return-Path: <gcc-bugs-return-553415-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107618 invoked by alias); 8 Feb 2017 13:46: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 107493 invoked by uid 48); 8 Feb 2017 13:45:51 -0000
From: "wilco at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/79149] bad optimization on MIPS and ARM leading to excessive stack usage in some cases
Date: Wed, 08 Feb 2017 13: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: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wilco at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: mkuvyrkov at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79149-4-EzKbGvLuvF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79149-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79149-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00947.txt.bz2
Content-length: 1064

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

--- Comment #14 from wilco at gcc dot gnu.org ---
(In reply to Arnd Bergmann from comment #13)
> (In reply to wilco from comment #12)
> > Does wp512 use 64-bit types? If so, this is likely PR77308.
> 
> Yes, as seen in the attachment it uses lots of 64-bit operations. However,
> it sounds like PR77308 is ARM specific, but I see the same behavior
> on most other architectures, including 64-bit ones. Quoting the
> kernel patch I linked to, with stack frame sizes for the function
> depending on architecture, optimization flags and compiler version
> (only 4.9 and 7.0 here, there is little difference anyway)

The 64-bit expansion issues in PR77308 are ARM specific indeed, but it also
shows scheduling causes unnecessary high register pressure and extra spilling.

Your results indicate that -fsched-pressure should really be the default. And
given that it still results in more spilling compared to not scheduling, it
probably needs to be made less aggressive or compute pressure more accurately.
>From gcc-bugs-return-553416-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 13:56:54 2017
Return-Path: <gcc-bugs-return-553416-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116408 invoked by alias); 8 Feb 2017 13:56: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 103631 invoked by uid 48); 8 Feb 2017 13:56:44 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Wed, 08 Feb 2017 13:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79341-4-DzAgcYmzX7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00948.txt.bz2
Content-length: 418

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

--- Comment #25 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
Looks better, but now we get this quite often:

--
==23722==ERROR: Your kernel seems to be vulnerable to CVE-2016-2143.  Using
ASa\
n, 
MSan, TSan, DFSan or LSan with such kernel can and will crash your 
machine, or worse.
--

I'll try to figure out what kernel version we need.
>From gcc-bugs-return-553417-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 14:02:17 2017
Return-Path: <gcc-bugs-return-553417-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36143 invoked by alias); 8 Feb 2017 14:02: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 35532 invoked by uid 48); 8 Feb 2017 14:02:04 -0000
From: "andrew.n.senkevich at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/76731] [AVX512] _mm512_i32gather_epi32 and other scatter/gather routines have incorrect signature
Date: Wed, 08 Feb 2017 14:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: andrew.n.senkevich at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: kyukhin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-76731-4-CR71Ek0EsJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-76731-4@http.gcc.gnu.org/bugzilla/>
References: <bug-76731-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00949.txt.bz2
Content-length: 187

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

--- Comment #15 from Andrew Senkevich <andrew.n.senkevich at gmail dot com> ---
Hi,

are these intrinsics needed to be backported?
>From gcc-bugs-return-553418-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 14:03:57 2017
Return-Path: <gcc-bugs-return-553418-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85745 invoked by alias); 8 Feb 2017 14:03: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 57643 invoked by uid 48); 8 Feb 2017 14:03:43 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Wed, 08 Feb 2017 14:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79341-4-mfMIwrX9J1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00950.txt.bz2
Content-length: 202

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

--- Comment #26 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
(We cannot upgrade the kernel before end of this or beginning of next week.)
>From gcc-bugs-return-553419-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 14:06:26 2017
Return-Path: <gcc-bugs-return-553419-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21100 invoked by alias); 8 Feb 2017 14:06: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 20491 invoked by uid 48); 8 Feb 2017 14:06:13 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Wed, 08 Feb 2017 14:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.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-79341-4-qbbSF8CsJZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00951.txt.bz2
Content-length: 671

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

--- Comment #27 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The function says:
    // 3.2.79+ is OK.
    // 3.12.58+ is OK.
    // Otherwise, bad.
    // 4.1.21+ is OK.
    // 4.4.6+ is OK.
    // Otherwise, OK if 4.5+.
    // Linux 5 and up are fine.
Perhaps it would be useful to do some check at distro kernels (RHEL, SUSE) and
if they are fixes for this, adjust that function.
E.g. for RHEL{6,7} it seems the fixes came in
2.6.32-642.11.1.el6 for RHEL6 and 3.10.0-327.28.2.el7 for RHE7.
The errata claims RHEL5 kernels are not affected, so it is strange that the
function doesn't accept very old kernels.
>From gcc-bugs-return-553420-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 14:18:16 2017
Return-Path: <gcc-bugs-return-553420-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69534 invoked by alias); 8 Feb 2017 14:18: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 69022 invoked by uid 48); 8 Feb 2017 14:18:03 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Wed, 08 Feb 2017 14:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.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-79341-4-bnp0u4uBk3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00952.txt.bz2
Content-length: 499

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

--- Comment #28 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The bug has been introduced in
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/arch/s390/include/asm/mmu_context.h?id=6252d702c5311ce916caf75ed82e5c8245171c92
so I assume kernels 2.6.24 and earlier should be ok (unless some distro
backported the dynamic s390 page tables).  Though maybe that old kernels just
don't support 4 level page tables at all.
>From gcc-bugs-return-553421-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 14:19:26 2017
Return-Path: <gcc-bugs-return-553421-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73342 invoked by alias); 8 Feb 2017 14:19: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 72716 invoked by uid 48); 8 Feb 2017 14:19:13 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/69823] [6/7 Regression] internal compiler error: in create_pw_aff_from_tree, at graphite-sese-to-poly.c:445
Date: Wed, 08 Feb 2017 14:19: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.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: P4
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-69823-4-RiYOFmtzsA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69823-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69823-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00953.txt.bz2
Content-length: 1567

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

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 #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
So here we're adding constraints from a condition that has ops defined by a
load
and a preceeding loop in the region has stores.  Thus

tree
scalar_evolution_in_region (const sese_l &region, loop_p loop, tree t)
{
...
  bool has_vdefs = false;
  if (invariant_in_sese_p_rec (t, region, &has_vdefs))
    return t;

  /* T variates in REGION.  */
  if (has_vdefs)
    return chrec_dont_know;

triggers.  I thought dependence analysis should handle this case.

But it looks like we never check if any stmt in this loop is harmful as
stmts outside of loops fully contained in the SESE are not checked by
harmful_loop_in_region called by merge_sese.  The root has its loop->header
== ENTRY so no SESE region can ever cover it.

Hum.  It looks like get_dominated_to_depth fails to return all BBs of the
region...  looks like a bogus interface to use for this.  If you consider
a region

    /\
   /  \
  / \  \
  \ /  /
   \  /
    \/

then depth of entry is 1 and that of exit is 2 but inside the region we
have nodes with depth 3.

I suppose using a worklist (we check for region membership anyway) fixes this.
>From gcc-bugs-return-553422-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 14:26:48 2017
Return-Path: <gcc-bugs-return-553422-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7136 invoked by alias); 8 Feb 2017 14:26: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 6525 invoked by uid 48); 8 Feb 2017 14:26:35 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Wed, 08 Feb 2017 14:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79341-4-MQBwYDn7Bo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00954.txt.bz2
Content-length: 464

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

--- Comment #29 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
$ uname -s -r
Linux 4.2.0-20151029.0.65fcf15.5a12af1.fc20.s390xperformance

I'm quite sure we had a working kernel on that machine at some time because I
believe to remember that I'd been the first one who was bitten by that kernel
bug.  Anyway, the machine is very busy at the moment, so the upgrade has to
wait for a couple of days.
>From gcc-bugs-return-553423-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 14:28:39 2017
Return-Path: <gcc-bugs-return-553423-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12497 invoked by alias); 8 Feb 2017 14:28: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 11972 invoked by uid 48); 8 Feb 2017 14:28:26 -0000
From: "for2008 at web dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79426] New: fortran - internal compiler error: in fold_convert_loc, at fold-const.c:2251
Date: Wed, 08 Feb 2017 14:28: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: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: for2008 at web dot de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-79426-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00955.txt.bz2
Content-length: 1135

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

            Bug ID: 79426
           Summary: fortran - internal compiler error: in
                    fold_convert_loc, at fold-const.c:2251
           Product: gcc
           Version: 6.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: for2008 at web dot de
  Target Milestone: ---

Created attachment 40695
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40695&action=edit
The file consisted of several moduls, which in the original version of the
programm are in several files. This is the reason for all the modules.

Hi,
the source gets compiled with no errors, but no executable is created.

Tested on following systems:
ubuntu 16.10 with gfortran 6.2.0
windows 10, MSYS2, mingw64 gfortran 6.3.0

IDE: Code Blocks for Fortran

ERROR message:

internal compiler error: in fold_convert_loc, at fold-const.c:2251
libbacktrace could not find executable to open

The error goes away, if I change in Line 74 class(*) to class(CElement)
>From gcc-bugs-return-553424-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 14:39:07 2017
Return-Path: <gcc-bugs-return-553424-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77093 invoked by alias); 8 Feb 2017 14: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 69759 invoked by uid 48); 8 Feb 2017 14:38:54 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Wed, 08 Feb 2017 14:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.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-79341-4-s4e6sD10O5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00956.txt.bz2
Content-length: 1846

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

--- Comment #30 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Following patch adds the RHEL{6,7} errata kernels to the whitelist.
SUSE and/or Debian would need to add theirs if they want.

--- libsanitizer/sanitizer_common/sanitizer_linux_s390.cc       2016-11-09
15:22:41.917353799 +0100
+++ libsanitizer/sanitizer_common/sanitizer_linux_s390.cc       2017-02-08
15:36:44.335857387 +0100
@@ -134,6 +134,18 @@ static bool FixedCVE_2016_2143() {
   if (ptr[0] == '.')
     patch = internal_simple_strtoll(ptr+1, &ptr, 10);
   if (major < 3) {
+    if (major == 2 && minor == 6 && patch == 32 && ptr[0] == '-'
+       && internal_strstr(ptr, ".el6")) {
+      // Check RHEL6
+      int r1 = internal_simple_strtoll(ptr+1, &ptr, 10);
+      if (r1 >= 657) // 2.6.32-657.el6 or later
+       return true;
+      if (r1 == 642 && ptr[0] == '.') {
+       int r2 = internal_simple_strtoll(ptr+1, &ptr, 10);
+       if (r2 >= 9) // 2.6.32-642.9.1.el6 or later
+         return true;
+      }
+    }
     // <3.0 is bad.
     return false;
   } else if (major == 3) {
@@ -143,6 +155,18 @@ static bool FixedCVE_2016_2143() {
     // 3.12.58+ is OK.
     if (minor == 12 && patch >= 58)
       return true;
+    if (minor == 10 && patch == 0 && ptr[0] == '-'
+       && internal_strstr(ptr, ".el7")) {
+      // Check RHEL7
+      int r1 = internal_simple_strtoll(ptr+1, &ptr, 10);
+      if (r1 >= 426) // 3.10.0-426.el7 or later
+       return true;
+      if (r1 == 327 && ptr[0] == '.') {
+       int r2 = internal_simple_strtoll(ptr+1, &ptr, 10);
+       if (r2 >= 27) // 3.10.0-327.27.1.el7 or later
+         return true;
+      }
+    }
     // Otherwise, bad.
     return false;
   } else if (major == 4) {
>From gcc-bugs-return-553425-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 14:44:45 2017
Return-Path: <gcc-bugs-return-553425-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125730 invoked by alias); 8 Feb 2017 14:44: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 125127 invoked by uid 48); 8 Feb 2017 14:44:32 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/14741] graphite with loop blocking and interchanging doesn't optimize a matrix multiplication loop
Date: Wed, 08 Feb 2017 14: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: tree-ssa
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: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_reconfirmed_on
Message-ID: <bug-14741-4-MK2HvCtKQj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-14741-4@http.gcc.gnu.org/bugzilla/>
References: <bug-14741-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00957.txt.bz2
Content-length: 391

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2013-03-29 00:00:00         |2017-2-8

--- Comment #38 from Richard Biener <rguenth at gcc dot gnu.org> ---
Re-confirmed on trunk.
>From gcc-bugs-return-553426-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 14:46:36 2017
Return-Path: <gcc-bugs-return-553426-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1829 invoked by alias); 8 Feb 2017 14:46: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 384 invoked by uid 48); 8 Feb 2017 14:46:23 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/47594] gfortran.dg/vect/vect-5.f90 execution test fails when compiled with -O2 -fgraphite-identity at -m64
Date: Wed, 08 Feb 2017 14: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: 4.6.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: spop at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-47594-4-CWLWkQmFnc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-47594-4@http.gcc.gnu.org/bugzilla/>
References: <bug-47594-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00958.txt.bz2
Content-length: 454

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

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

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

--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
Works on trunk, assuming fixed.
>From gcc-bugs-return-553427-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 14:46:37 2017
Return-Path: <gcc-bugs-return-553427-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1855 invoked by alias); 8 Feb 2017 14:46: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 513 invoked by uid 48); 8 Feb 2017 14:46:24 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/59859] [meta-bug] GRAPHITE issues
Date: Wed, 08 Feb 2017 14:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: dep_changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: 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: bug_status resolution
Message-ID: <bug-59859-4-PksbRcjS9S@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59859-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59859-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00959.txt.bz2
Content-length: 527

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

Bug 47594 Summary: gfortran.dg/vect/vect-5.f90 execution test fails when compiled with -O2 -fgraphite-identity at -m64
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47594

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-553428-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 14:47:11 2017
Return-Path: <gcc-bugs-return-553428-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4776 invoked by alias); 8 Feb 2017 14:47: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 4168 invoked by uid 48); 8 Feb 2017 14:46:58 -0000
From: "Laurent.Rineau__gcc at normalesup dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66944] ICE on static thread_local member in class template
Date: Wed, 08 Feb 2017 14: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: 5.2.0
X-Bugzilla-Keywords: ice-on-valid-code, rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: Laurent.Rineau__gcc at normalesup 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-66944-4-bxkW9c9HjW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66944-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66944-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00960.txt.bz2
Content-length: 530

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

Laurent Rineau <Laurent.Rineau__gcc at normalesup dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Laurent.Rineau__gcc@normale
                   |                            |sup.org

--- Comment #3 from Laurent Rineau <Laurent.Rineau__gcc at normalesup dot org> ---
I got hit by this bug today. Do you know a workaround?
>From gcc-bugs-return-553429-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 14:57:51 2017
Return-Path: <gcc-bugs-return-553429-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103310 invoked by alias); 8 Feb 2017 14:57: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 102560 invoked by uid 48); 8 Feb 2017 14:57:37 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/68823] [6/7 Regression][graphite] tramp3d-v4 compiled with -floop-nest-optimize crashes
Date: Wed, 08 Feb 2017 14: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: 6.0
X-Bugzilla-Keywords: 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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-68823-4-b0eI98BP2Y@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68823-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68823-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00961.txt.bz2
Content-length: 2332

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

--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Sebastian Pop from comment #7)
> (In reply to Martin Liška from comment #5)
> > Created attachment 40662 [details]
> > Isolated graphite dump for miscompiled function
> > 
> > As shown in the dump file, there are dependencies for the problematic stmts:
> > 
> > Adding must write to depedence graph: pdr_121 (write 
> > in gimple stmt: MEM[(Element_t[2] &)_7][0] = _9;
> > data accesses: { S_3[i2] -> [2, o1, 0] : 8*floor((o1)/8) = o1 and
> > 18446744073709551616*floor((8i2 - o1)/18446744073709551616) = 8i2 - o1 and 0
> > <= o1 <= 18446744073709551608 }
> > 
> > Adding read to depedence graph: pdr_124 (read 
> > in gimple stmt: _15 = MEM[(int *)_14];
> > data accesses: { S_6[i1] -> [2, o1] : 18446744073709551616*floor((-8i1 +
> > o1)/18446744073709551616) = -8i1 + o1 and 0 <= o1 <= 18446744073709551608 }
> > 
> > If I understand the notation correctly, both have equal alias set (2). Do
> > you see Sebastian why the dependence is not caught?
> > 
> 
> S_3[i2] -> [2, o1, 0]
> S_6[i1] -> [2, o1]
> 
> we do not detect the dependence because the two arrays do not have the same
> number of subscripts: also on the gimple representation we have
> 
> MEM[(Element_t[2] &)_7][0] = _9;
> vs.
> _15 = MEM[(int *)_14];

But then with different number of subscripts (and also likely different
DR_BASE_OBJECT) you can't do anything with them and have to assume
dependence.  See initialize_data_dependence_relation:

  /* If the references do not access the same object, we do not know
     whether they alias or not.  We do not care about TBAA or alignment
     info so we can use OEP_ADDRESS_OF to avoid false negatives.
     But the accesses have to use compatible types as otherwise the
     built indices would not match.  */
  if (!operand_equal_p (DR_BASE_OBJECT (a), DR_BASE_OBJECT (b), OEP_ADDRESS_OF)
      || !types_compatible_p (TREE_TYPE (DR_BASE_OBJECT (a)),
                              TREE_TYPE (DR_BASE_OBJECT (b))))
    {
      DDR_ARE_DEPENDENT (res) = chrec_dont_know;
      return res;

not sure how you communicate that to ISL of course...  is it what you
use "alias-sets" for?  To create extra dependence egdes?
>From gcc-bugs-return-553430-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 14:58:35 2017
Return-Path: <gcc-bugs-return-553430-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106127 invoked by alias); 8 Feb 2017 14:58: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 105547 invoked by uid 48); 8 Feb 2017 14:58:22 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/69458] [graphite] compiling gmp -floop-nest-optimize over -fstrict-overflow produces wrong code (fpe)
Date: Wed, 08 Feb 2017 14:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 5.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-69458-4-dDhoIc5OrI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69458-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69458-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00962.txt.bz2
Content-length: 531

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-02-08
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Does this still happen with GCC 6 or GCC 7 snapshots?
>From gcc-bugs-return-553431-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 14:59:38 2017
Return-Path: <gcc-bugs-return-553431-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113690 invoked by alias); 8 Feb 2017 14:59: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 111724 invoked by uid 48); 8 Feb 2017 14:59:25 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/69675] [6/7 Regression] [graphite] ICE: verify_ssa failed (definition in block 42 does not dominate use in block 34)
Date: Wed, 08 Feb 2017 14: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: 6.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: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_reconfirmed_on cf_known_to_fail
Message-ID: <bug-69675-4-qXmE5Ebtbn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69675-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69675-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00963.txt.bz2
Content-length: 444

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2016-02-05 00:00:00         |2017-2-8
      Known to fail|                            |7.0.1

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
Reconfirmed on trunk.
>From gcc-bugs-return-553432-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 15:00:40 2017
Return-Path: <gcc-bugs-return-553432-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127291 invoked by alias); 8 Feb 2017 15:00: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 126429 invoked by uid 48); 8 Feb 2017 15:00:22 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/69728] [6/7 Regression] internal compiler error: in outer_projection_mupa, at graphite-sese-to-poly.c:1175
Date: Wed, 08 Feb 2017 15: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: 6.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: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_reconfirmed_on cf_known_to_fail
Message-ID: <bug-69728-4-jHIwheaVSJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69728-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69728-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00964.txt.bz2
Content-length: 444

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2016-03-15 00:00:00         |2017-2-8
      Known to fail|                            |7.0.1

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Reconfirmed on trunk.
>From gcc-bugs-return-553433-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 15:06:23 2017
Return-Path: <gcc-bugs-return-553433-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30014 invoked by alias); 8 Feb 2017 15: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 29582 invoked by uid 48); 8 Feb 2017 15:06:08 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79425] Inline assembly getting clobbered in some case
Date: Wed, 08 Feb 2017 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: 5.4.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: cc
Message-ID: <bug-79425-4-nPp03RlsjW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79425-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79425-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00965.txt.bz2
Content-length: 661

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

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

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

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
What are you trying to do?  Put the toplevel asm directly before the entry to
main?  That's nothing you can expect, it might get somewhat more reliable with
-fno-toplevel-reorder (but that's enabled at -O0...).

That said, GCC doesn't really "support" what you try to do.
>From gcc-bugs-return-553434-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 15:12:03 2017
Return-Path: <gcc-bugs-return-553434-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106813 invoked by alias); 8 Feb 2017 15:12: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 106075 invoked by uid 48); 8 Feb 2017 15:11:48 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79425] Inline assembly getting clobbered in some case
Date: Wed, 08 Feb 2017 15:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.4.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: bug_status resolution
Message-ID: <bug-79425-4-kmFbjt9WFn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79425-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79425-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00966.txt.bz2
Content-length: 538

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

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

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
You need to set the section to verify correct in top level inline-asm and then
pop it back to what it was before.
>From gcc-bugs-return-553435-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 15:19:27 2017
Return-Path: <gcc-bugs-return-553435-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1895 invoked by alias); 8 Feb 2017 15:19: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 1547 invoked by uid 48); 8 Feb 2017 15:19:14 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug translation/79423] Translation of warnings breaks IDE parsing of output
Date: Wed, 08 Feb 2017 15:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: translation
X-Bugzilla-Version: 6.3.1
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-79423-4-ro02lmG8zx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79423-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79423-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00967.txt.bz2
Content-length: 280

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note translation happens by standard library support and might be hard to
control by a command line.

Does make, etc. Also translate their error messages too.
>From gcc-bugs-return-553436-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 15:21:14 2017
Return-Path: <gcc-bugs-return-553436-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6233 invoked by alias); 8 Feb 2017 15:21: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 5748 invoked by uid 48); 8 Feb 2017 15:21:00 -0000
From: "mini at cs dot technion.ac.il" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79425] Inline assembly getting clobbered in some case
Date: Wed, 08 Feb 2017 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: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mini at cs dot technion.ac.il
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-79425-4-1y19IXdsTZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79425-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79425-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00968.txt.bz2
Content-length: 703

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

--- Comment #3 from Marina Minkin <mini at cs dot technion.ac.il> ---
What do you mean by "You need to set the section to verify correct in top level
inline-asm and then"?

This is a stripped code just to reproduce this behavior.
What I initially tried to do, was to make a function (not main) not to clobber
the registers.
Basically I needed what the attribute no_caller_saved_registers does. But this
attribute is not supported in my gcc version.

This trick of pushing and popping registers worked well, until I removed the
function that was defined before this one. At this point my code began
crashing. Definitely an unexpected behavior.
>From gcc-bugs-return-553437-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 15:35:49 2017
Return-Path: <gcc-bugs-return-553437-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94113 invoked by alias); 8 Feb 2017 15:35: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 93668 invoked by uid 48); 8 Feb 2017 15:35:35 -0000
From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug translation/79423] Translation of warnings breaks IDE parsing of output
Date: Wed, 08 Feb 2017 15:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: translation
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords: diagnostic
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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords cc
Message-ID: <bug-79423-4-FmVCZ2OQxx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79423-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79423-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00969.txt.bz2
Content-length: 1854

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

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

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

--- Comment #2 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
It sounds like what you want is an "IDE mode" for output, which could be
basically the same as LANG=C, but as a command-line flag.

Am I right in thinking that you want to be able to suppress just the
translation of "error" and "warning" etc, so that instead of output of the
form:

[with LANG=ja_JP.utf-8]

/tmp/test.cc: 関数 ‘int x2()’ 内:
/tmp/test.cc:3:4: エラー: some translated message here
 x0 x3 = x3.
    ^~
/tmp/test.cc:1:7: 備考: some other translated message here
 class x0;
       ^~

you get:

/tmp/test.cc: In function ‘int x2()’:
/tmp/test.cc:3:4: error: the same *translated* message here
 x0 x3 = x3.
    ^~
/tmp/test.cc:1:7: note: again, the message is still translated here
 class x0;
       ^~

i.e. that the content of the messages themselves should still be translated,
even when in some kind of IDE mode; it's just the "error"/"warning" etc
boilerplate that shouldn't be?

As of gcc 7 we already have -fdiagnostics-parseable-fixits; presumably you'd
want some kind of -fdiagnostics-output-format=VALUE or somesuch.

Note to self:
currently supported diagnostics format options for GCC:
https://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Message-Formatting-Options.html#Diagnostic-Message-Formatting-Options

for clang:
http://clang.llvm.org/docs/UsersManual.html#formatting-of-diagnostics
>From gcc-bugs-return-553438-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 16:30:24 2017
Return-Path: <gcc-bugs-return-553438-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71405 invoked by alias); 8 Feb 2017 16:30: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 70947 invoked by uid 48); 8 Feb 2017 16:29:58 -0000
From: "seurer at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/79427] New: g++.dg/tls/thread_local-order2.C fails starting with r245249
Date: Wed, 08 Feb 2017 16:30: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: 7.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-79427-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00970.txt.bz2
Content-length: 1045

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

            Bug ID: 79427
           Summary: g++.dg/tls/thread_local-order2.C fails starting with
                    r245249
           Product: gcc
           Version: 7.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: ---

FAIL: g++.dg/tls/thread_local-order2.C  -std=c++11 execution test
FAIL: g++.dg/tls/thread_local-order2.C  -std=c++14 execution test

It looks like on BE the destructors are firing in an unepected order.

Taking out the #define of printf I get this output on power BE:

A(1)
A(0)
~A(0)
Program received signal SIGABRT, Aborted.


And this output on power LE:

A(1)
A(0)
~A(1)
~A(0)


BTW, the comment in the test case says "The standard says that a1 should be
destroyed before a0 even though that isn't reverse order of construction." 
Where does it say this in the standard?
>From gcc-bugs-return-553439-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 16:34:44 2017
Return-Path: <gcc-bugs-return-553439-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77407 invoked by alias); 8 Feb 2017 16:34:44 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 77211 invoked by uid 48); 8 Feb 2017 16:34:31 -0000
From: "sgh at sgh dot dk" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug translation/79423] Translation of warnings breaks IDE parsing of output
Date: Wed, 08 Feb 2017 16:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: translation
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sgh at sgh dot dk
X-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-79423-4-s95k0vdigV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79423-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79423-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00971.txt.bz2
Content-length: 433

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

--- Comment #3 from Søren Holm <sgh at sgh dot dk> ---
Yes - it sound much like what I want.

The diagnostics stuff in gcc7 seem a bit overkill when the real issue is just
the translation of "error" and "warning"

A commandline flag that forcesg gcc to call setenv("LANG", "1", 1) would be the
easy solution. But I do not know if it would have maintainance sideeffects.
>From gcc-bugs-return-553440-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 16:38:53 2017
Return-Path: <gcc-bugs-return-553440-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27617 invoked by alias); 8 Feb 2017 16:38: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 27447 invoked by uid 48); 8 Feb 2017 16:38:38 -0000
From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79426] fortran - internal compiler error: in fold_convert_loc, at fold-const.c:2251
Date: Wed, 08 Feb 2017 16:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dmalcolm at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-79426-4-1GxWYct9j3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79426-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79426-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00972.txt.bz2
Content-length: 1295

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-08
                 CC|                            |dmalcolm at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Confirmed with trunk (e.g. r245213).

The ICE is a failure of this assertion, within fold_convert_loc:
2238          gcc_assert (TREE_CODE (orig) == VECTOR_TYPE
2239                      && tree_int_cst_equal (TYPE_SIZE (type), TYPE_SIZE
(orig)));

where "orig" is a RECORD_TYPE

as called by fortran/trans-stmt.c:trans_associate_var:1765:

1761          /* Prevent adding a noop len= len.  */
1762          if (tmp != charlen)
1763            {
1764              gfc_add_modify (&se.pre, charlen,
1765                              fold_convert (TREE_TYPE (charlen), tmp));
1766              gfc_add_init_cleanup (block, gfc_finish_block (&se.pre),
1767                                    gfc_finish_block (&se.post));
1768            }
>From gcc-bugs-return-553441-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 16:40:24 2017
Return-Path: <gcc-bugs-return-553441-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30234 invoked by alias); 8 Feb 2017 16: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 30113 invoked by uid 48); 8 Feb 2017 16:40:11 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/41557] gcc.exe: Internal error: (null) (program cc1plus)
Date: Wed, 08 Feb 2017 16:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: unknown
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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-41557-4-8ic9M1p0kX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41557-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41557-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00973.txt.bz2
Content-length: 450

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

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

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

--- Comment #8 from Martin Sebor <msebor at gcc dot gnu.org> ---
Thanks.  Resolving as fixed then.
>From gcc-bugs-return-553442-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 16:42:15 2017
Return-Path: <gcc-bugs-return-553442-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32762 invoked by alias); 8 Feb 2017 16:42: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 32649 invoked by uid 48); 8 Feb 2017 16:42:00 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79413] [7 Regression] ICE in make_ssa_name_fn, at tree-ssanames.c:265
Date: Wed, 08 Feb 2017 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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79413-4-iBUKFx9Fn9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79413-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79413-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00974.txt.bz2
Content-length: 445

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

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
The typeof is not needed to trigger the ICE:

void fn1 ()
{
  int a[1/0];
}
void fn2 ()
{
  fn1();
}

But we create a DECL_EXPR for 'a' in finish_decl:
 5098               add_stmt (build_stmt (DECL_SOURCE_LOCATION (decl),
 5099                                     DECL_EXPR, decl));

So it doesn't seem to be the problem?
>From gcc-bugs-return-553443-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 16:43:03 2017
Return-Path: <gcc-bugs-return-553443-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34166 invoked by alias); 8 Feb 2017 16:43: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 34045 invoked by uid 48); 8 Feb 2017 16:42:54 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/64081] [5/6/7 Regression] r217827 prevents RTL loop unroll
Date: Wed, 08 Feb 2017 16:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64081-4-ogsNPCEobT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00975.txt.bz2
Content-length: 766

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

--- Comment #55 from Jeffrey A. Law <law at redhat dot com> ---
And presumably other calls to get_simple_loop_desc need the more permissive
definition to re-enable loop unrolling.  Ugh.

I think at the least we're going to have to look at each caller of
get_simple_loop_desc and decide if that use is safe with the more permissive
definition.

Hopefully the important one for loop unrolling is safe and we can then look at
how to untangle things a bit.  Perhaps with a boolean indicating if the strict
or permissive definition is needed, or perhaps by storing into the returned
descriptor which definition was used, then the callers decide what to do with
that information, or something along those lines.
>From gcc-bugs-return-553444-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 16:56:00 2017
Return-Path: <gcc-bugs-return-553444-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47897 invoked by alias); 8 Feb 2017 16:56: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 31070 invoked by uid 48); 8 Feb 2017 16:55:47 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/77589] [6/7 Regression] fortran: Missing DW_AT_byte_stride for an array record field selection
Date: Wed, 08 Feb 2017 16: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: 6.2.1
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: P4
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to attachments.created
Message-ID: <bug-77589-4-1Qrn7FCLjQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77589-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77589-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00976.txt.bz2
Content-length: 670

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

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

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

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

Untested fix (introduces DW_OP_GNU_variable_value, something GDB/elfutils would
need to implement too).
>From gcc-bugs-return-553445-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 17:12:21 2017
Return-Path: <gcc-bugs-return-553445-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91927 invoked by alias); 8 Feb 2017 17:12: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 91809 invoked by uid 48); 8 Feb 2017 17:12:07 -0000
From: "gerhard.steinmetz.fortran@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/60085] ICE in get_frame_type on weird code
Date: Wed, 08 Feb 2017 17: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: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gerhard.steinmetz.fortran@t-online.de
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-60085-4-iNdpjPwQLc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60085-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60085-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00977.txt.bz2
Content-length: 3054

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

Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gerhard.steinmetz.fortran@t
                   |                            |-online.de

--- Comment #3 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
Update :


$ gcc-7-20170205 -c pr60085.c
pr60085.c: In function 'foo':
pr60085.c:3:6: internal compiler error: Segmentation fault
 void foo (void)
      ^~~
0xbf633f crash_signal
        ../../gcc/toplev.c:333
0xc9053a get_frame_type
        ../../gcc/tree-nested.c:211
0xc9053a get_chain_decl
        ../../gcc/tree-nested.c:317
0xc93d89 get_chain_decl
        ../../gcc/tree-nested.c:909
0xc93d89 get_nonlocal_debug_decl
        ../../gcc/tree-nested.c:913
0xc94138 convert_nonlocal_reference_op
        ../../gcc/tree-nested.c:992
0xec2222 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, default_hash_traits<tree_node*> >*, tree_node*
(*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*,
hash_set<tree_node*, default_hash_traits<tree_node*> >*))
        ../../gcc/tree.c:11796
0x964b0c walk_gimple_op(gimple*, tree_node* (*)(tree_node**, int*, void*),
walk_stmt_info*)
        ../../gcc/gimple-walk.c:221
0x964f5c walk_gimple_stmt(gimple_stmt_iterator*, tree_node*
(*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**,
int*, void*), walk_stmt_info*)
        ../../gcc/gimple-walk.c:586
0x965148 walk_gimple_seq_mod(gimple**, tree_node* (*)(gimple_stmt_iterator*,
bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*),
walk_stmt_info*)
        ../../gcc/gimple-walk.c:51
0x965002 walk_gimple_stmt(gimple_stmt_iterator*, tree_node*
(*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**,
int*, void*), walk_stmt_info*)
        ../../gcc/gimple-walk.c:596
0x965148 walk_gimple_seq_mod(gimple**, tree_node* (*)(gimple_stmt_iterator*,
bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*),
walk_stmt_info*)
        ../../gcc/gimple-walk.c:51
0x965002 walk_gimple_stmt(gimple_stmt_iterator*, tree_node*
(*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**,
int*, void*), walk_stmt_info*)
        ../../gcc/gimple-walk.c:596
0x965148 walk_gimple_seq_mod(gimple**, tree_node* (*)(gimple_stmt_iterator*,
bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*),
walk_stmt_info*)
        ../../gcc/gimple-walk.c:51
0xc8ff41 walk_body
        ../../gcc/tree-nested.c:656
0xc8ff98 walk_function
        ../../gcc/tree-nested.c:667
0xc8ff98 walk_all_functions
        ../../gcc/tree-nested.c:732
0xc98c32 lower_nested_functions(tree_node*)
        ../../gcc/tree-nested.c:3345
0x7f1670 cgraph_node::analyze()
        ../../gcc/cgraphunit.c:661
0x7f4ce3 analyze_functions
        ../../gcc/cgraphunit.c:1116
>From gcc-bugs-return-553446-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 17:12:54 2017
Return-Path: <gcc-bugs-return-553446-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93470 invoked by alias); 8 Feb 2017 17:12: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 92876 invoked by uid 48); 8 Feb 2017 17:12:41 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79414] [7 Regression] internal compiler error after "error: expected unqualified-id at end of input"
Date: Wed, 08 Feb 2017 17:12: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.1
X-Bugzilla-Keywords: error-recovery, 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: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79414-4-xBsQG5s5Uk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79414-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79414-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00978.txt.bz2
Content-length: 474

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

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r245223.
>From gcc-bugs-return-553447-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 17:12:55 2017
Return-Path: <gcc-bugs-return-553447-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93490 invoked by alias); 8 Feb 2017 17:12: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 93136 invoked by uid 48); 8 Feb 2017 17:12:49 -0000
From: "gerhard.steinmetz.fortran@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/60085] ICE in get_frame_type on weird code
Date: Wed, 08 Feb 2017 17: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: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gerhard.steinmetz.fortran@t-online.de
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-60085-4-2YUJUsfbb3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60085-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60085-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00979.txt.bz2
Content-length: 2854

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

--- Comment #4 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
Another variant (invalid) :

$ cat z1.c
void fn1 ()
{
void fnx ()
  int n;
  int a[n];
}


$ gcc-7-20170205 -c z1.c
z1.c: In function 'fnx':
z1.c:6:1: error: expected declaration specifiers before '}' token
 }
 ^
z1.c:5:7: error: declaration for parameter 'a' but no such parameter
   int a[n];
       ^
z1.c:4:7: error: declaration for parameter 'n' but no such parameter
   int n;
       ^
z1.c:6:1: error: expected '{' at end of input
 }
 ^
z1.c: In function 'fn1':
z1.c:6:1: error: expected declaration or statement at end of input
z1.c:1:6: internal compiler error: Segmentation fault
 void fn1 ()
      ^~~
0xbf633f crash_signal
        ../../gcc/toplev.c:333
0xc9053a get_frame_type
        ../../gcc/tree-nested.c:211
0xc9053a get_chain_decl
        ../../gcc/tree-nested.c:317
0xc93d89 get_chain_decl
        ../../gcc/tree-nested.c:909
0xc93d89 get_nonlocal_debug_decl
        ../../gcc/tree-nested.c:913
0xc94138 convert_nonlocal_reference_op
        ../../gcc/tree-nested.c:992
0xec2222 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, default_hash_traits<tree_node*> >*, tree_node*
(*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*,
hash_set<tree_node*, default_hash_traits<tree_node*> >*))
        ../../gcc/tree.c:11796
0x9649e0 walk_gimple_op(gimple*, tree_node* (*)(tree_node**, int*, void*),
walk_stmt_info*)
        ../../gcc/gimple-walk.c:203
0x964f5c walk_gimple_stmt(gimple_stmt_iterator*, tree_node*
(*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**,
int*, void*), walk_stmt_info*)
        ../../gcc/gimple-walk.c:586
0x965148 walk_gimple_seq_mod(gimple**, tree_node* (*)(gimple_stmt_iterator*,
bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*),
walk_stmt_info*)
        ../../gcc/gimple-walk.c:51
0x965002 walk_gimple_stmt(gimple_stmt_iterator*, tree_node*
(*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**,
int*, void*), walk_stmt_info*)
        ../../gcc/gimple-walk.c:596
0x965148 walk_gimple_seq_mod(gimple**, tree_node* (*)(gimple_stmt_iterator*,
bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*),
walk_stmt_info*)
        ../../gcc/gimple-walk.c:51
0xc8ff41 walk_body
        ../../gcc/tree-nested.c:656
0xc8ff98 walk_function
        ../../gcc/tree-nested.c:667
0xc8ff98 walk_all_functions
        ../../gcc/tree-nested.c:732
0xc98c32 lower_nested_functions(tree_node*)
        ../../gcc/tree-nested.c:3345
0x7f1670 cgraph_node::analyze()
        ../../gcc/cgraphunit.c:661
0x7f4ce3 analyze_functions
        ../../gcc/cgraphunit.c:1116
0x7f5a3a symbol_table::finalize_compilation_unit()
        ../../gcc/cgraphunit.c:2597
>From gcc-bugs-return-553448-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 17:14:44 2017
Return-Path: <gcc-bugs-return-553448-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101066 invoked by alias); 8 Feb 2017 17:14: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 100496 invoked by uid 48); 8 Feb 2017 17:14:33 -0000
From: "gerhard.steinmetz.fortran@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79428] New: ICE in c_parser_consume_token, at c/c-parser.c:770
Date: Wed, 08 Feb 2017 17: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gerhard.steinmetz.fortran@t-online.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
Message-ID: <bug-79428-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00980.txt.bz2
Content-length: 1581

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

            Bug ID: 79428
           Summary: ICE in c_parser_consume_token, at c/c-parser.c:770
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fortran@t-online.de
  Target Milestone: ---

Affects versions 6 and 7 (configured with --enable-checking=yes) :


$ cat z1.c
#pragma omp ordered


$ gcc-5 -fopenmp -c z1.c
z1.c:1:9: error: expected declaration specifiers before '#pragma'
 #pragma omp ordered
         ^
$
$ gcc-7-20170205 -fopenmp -c z1.c
z1.c:1:20: error: expected declaration specifiers before end of line
 #pragma omp ordered
                    ^
z1.c:1:20: internal compiler error: in c_parser_consume_token, at
c/c-parser.c:770
0x6ac0d8 c_parser_consume_token(c_parser*)
        ../../gcc/c/c-parser.c:770
0x6ad0ea c_parser_require(c_parser*, cpp_ttype, char const*)
        ../../gcc/c/c-parser.c:908
0x6ad20e c_parser_skip_until_found(c_parser*, cpp_ttype, char const*)
        ../../gcc/c/c-parser.c:951
0x6b47e1 c_parser_omp_ordered
        ../../gcc/c/c-parser.c:15463
0x6b47e1 c_parser_pragma
        ../../gcc/c/c-parser.c:10317
0x6d78cd c_parser_external_declaration
        ../../gcc/c/c-parser.c:1448
0x6d8379 c_parser_translation_unit
        ../../gcc/c/c-parser.c:1348
0x6d8379 c_parse_file()
        ../../gcc/c/c-parser.c:18185
0x736892 c_common_parse_file()
        ../../gcc/c-family/c-opts.c:1107
>From gcc-bugs-return-553449-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 17:14:55 2017
Return-Path: <gcc-bugs-return-553449-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101740 invoked by alias); 8 Feb 2017 17: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 100901 invoked by uid 48); 8 Feb 2017 17:14:41 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79420] [7 Regression] ICE on invalid C++ code on x86_64-linux-gnu: in tsubst_copy, at cp/pt.c:14573
Date: Wed, 08 Feb 2017 17:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-79420-4-uyK9FdSQiA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79420-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79420-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00981.txt.bz2
Content-length: 638

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

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

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

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r245223.
>From gcc-bugs-return-553450-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 17:18:35 2017
Return-Path: <gcc-bugs-return-553450-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112525 invoked by alias); 8 Feb 2017 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 112416 invoked by uid 48); 8 Feb 2017 17:18:22 -0000
From: "gerhard.steinmetz.fortran@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79429] New: ICE in add_stmt, at cp/semantics.c:385
Date: Wed, 08 Feb 2017 17:18: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.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gerhard.steinmetz.fortran@t-online.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
Message-ID: <bug-79429-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00982.txt.bz2
Content-length: 1413

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

            Bug ID: 79429
           Summary: ICE in add_stmt, at cp/semantics.c:385
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fortran@t-online.de
  Target Milestone: ---

Affects versions 6 and 7 (configured with --enable-checking=yes).
Issue similar to that from pr79428.


$ cat z1.cc
#pragma omp target


$ cat z2.cc
#pragma omp ordered


$ g++-5 -fopenmp -c z1.cc
z1.cc:1:19: error: expected declaration specifiers before end of line
$
$
$ g++-7-20170205 -fopenmp -c z1.cc
z1.cc:1:19: error: expected declaration specifiers before end of line
 #pragma omp target
                   ^
z1.cc:1:19: internal compiler error: in add_stmt, at cp/semantics.c:385
0x8213ab add_stmt(tree_node*)
        ../../gcc/cp/semantics.c:385
0x834fdb pop_omp_privatization_clauses(tree_node*)
        ../../gcc/cp/semantics.c:7424
0x79a9ac cp_parser_pragma
        ../../gcc/cp/parser.c:38256
0x7c6b9b cp_parser_declaration_seq_opt
        ../../gcc/cp/parser.c:12362
0x7c6e58 cp_parser_translation_unit
        ../../gcc/cp/parser.c:4366
0x7c6e58 c_parse_file()
        ../../gcc/cp/parser.c:38382
0x9292b2 c_common_parse_file()
        ../../gcc/c-family/c-opts.c:1107
>From gcc-bugs-return-553451-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 17:20:59 2017
Return-Path: <gcc-bugs-return-553451-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121928 invoked by alias); 8 Feb 2017 17:20: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 121776 invoked by uid 48); 8 Feb 2017 17:20:46 -0000
From: "juergen.reuter at desy dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79430] New: [7 Regression] action of statement incorrectly optimised away
Date: Wed, 08 Feb 2017 17:20: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.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: juergen.reuter at desy dot de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00983.txt.bz2
Content-length: 1338

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

            Bug ID: 79430
           Summary: [7 Regression] action of statement incorrectly
                    optimised away
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: juergen.reuter at desy dot de
  Target Milestone: ---

Unfortunately this is only in a very large test case at the moment, which needs
both gfortran and OCaml, using: 
http://whizard.hepforge.org/versions/unofficial/whizard-2.4.1_alpha-20170131.tar.gz
and configuring with ./configure --with-precision=extended
Then make and make check. In the test suite, the functional test
mlm_matching_isr
will show a discrepancy coming from the fact that in the function
integral_over_z_isr 
in shower_core.f90 the if clause after 'call integral_over_z_part_isr', namely
if (integral > final) then
  return
end if 
is not correctly executed, either optimised away or scrambled. 
Funnily, this happens only if the default precision for real types is set to
extended precision, for double and quadruple precision it works as in previous
gfortran versions. 
The attempt to reduce this case made this behaviour disappear.
>From gcc-bugs-return-553452-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 17:21:42 2017
Return-Path: <gcc-bugs-return-553452-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 123156 invoked by alias); 8 Feb 2017 17:21: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 123034 invoked by uid 48); 8 Feb 2017 17:21:29 -0000
From: "gerhard.steinmetz.fortran@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79431] New: ICE in get, at cgraph.h:397
Date: Wed, 08 Feb 2017 17:21: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.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gerhard.steinmetz.fortran@t-online.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
Message-ID: <bug-79431-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00984.txt.bz2
Content-length: 1603

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

            Bug ID: 79431
           Summary: ICE in get, at cgraph.h:397
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fortran@t-online.de
  Target Milestone: ---

Affects versions 6 and 7 (configured with --enable-checking=yes) :
(compiles with "static int a")


$ cat z1.c
void fn1 ()
{
  int a;
  #pragma omp declare target (a)
}


$ gcc-6 -fopenmp -c z1.c   # official release 6.3.1 20170131
$
$ gcc-7-20170205 -fopenmp -c z1.c
z1.c: In function 'fn1':
z1.c:4:11: internal compiler error: in get, at cgraph.h:397
   #pragma omp declare target (a)
           ^~~
0x6d14d9 symtab_node::get(tree_node const*)
        ../../gcc/cgraph.h:394
0x6d14d9 c_parser_omp_declare_target
        ../../gcc/c/c-parser.c:16850
0x6d14d9 c_parser_omp_declare
        ../../gcc/c/c-parser.c:17290
0x6b406b c_parser_pragma
        ../../gcc/c/c-parser.c:10313
0x6d3f0e c_parser_compound_statement_nostart
        ../../gcc/c/c-parser.c:4875
0x6d44ce c_parser_compound_statement
        ../../gcc/c/c-parser.c:4740
0x6cf90c c_parser_declaration_or_fndef
        ../../gcc/c/c-parser.c:2112
0x6d791b c_parser_external_declaration
        ../../gcc/c/c-parser.c:1468
0x6d8379 c_parser_translation_unit
        ../../gcc/c/c-parser.c:1348
0x6d8379 c_parse_file()
        ../../gcc/c/c-parser.c:18185
0x736892 c_common_parse_file()
        ../../gcc/c-family/c-opts.c:1107
>From gcc-bugs-return-553453-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 17:23:48 2017
Return-Path: <gcc-bugs-return-553453-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125807 invoked by alias); 8 Feb 2017 17:23: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 125340 invoked by uid 48); 8 Feb 2017 17:23:35 -0000
From: "gerhard.steinmetz.fortran@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79432] New: ICE: verify_ssa failed
Date: Wed, 08 Feb 2017 17:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gerhard.steinmetz.fortran@t-online.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
Message-ID: <bug-79432-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00985.txt.bz2
Content-length: 1014

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

            Bug ID: 79432
           Summary: ICE: verify_ssa failed
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fortran@t-online.de
  Target Milestone: ---

Seen with version 7 only, on x86_64 GNU/Linux.
(not depending on any options)


$ cat z1.c
int fn1 (void);
int vfork (void);
void fn2 ()
{
  int a;
  a = fn1() + vfork();
}


$ gcc-6 -c z1.c
$ gcc-7-20170205 -c z1.c
z1.c: In function 'fn2':
z1.c:7:1: error: definition in block 3 does not dominate use in block 6
 }
 ^
for SSA_NAME: _1 in statement:
a_10 = _1 + _2;
z1.c:7:1: internal compiler error: verify_ssa failed
0xe10883 verify_ssa(bool, bool)
        ../../gcc/tree-ssa.c:1184
0xb167fd execute_function_todo
        ../../gcc/passes.c:1973
0xb170e5 execute_todo
        ../../gcc/passes.c:2016
>From gcc-bugs-return-553454-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 17:27:43 2017
Return-Path: <gcc-bugs-return-553454-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3118 invoked by alias); 8 Feb 2017 17:27:43 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 2969 invoked by uid 48); 8 Feb 2017 17:27:30 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79426] [5/6/7 Regression] fortran - internal compiler error: in fold_convert_loc, at fold-const.c:2251
Date: Wed, 08 Feb 2017 17: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: 6.3.0
X-Bugzilla-Keywords: ice-on-valid-code
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: keywords cc cf_known_to_work short_desc cf_known_to_fail
Message-ID: <bug-79426-4-CLchP6skS5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79426-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79426-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00986.txt.bz2
Content-length: 1168

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
                 CC|                            |janus at gcc dot gnu.org,
                   |                            |vehre at gcc dot gnu.org
      Known to work|                            |4.8.5
            Summary|fortran - internal compiler |[5/6/7 Regression] fortran
                   |error: in fold_convert_loc, |- internal compiler error:
                   |at fold-const.c:2251        |in fold_convert_loc, at
                   |                            |fold-const.c:2251
      Known to fail|                            |4.9.3, 5.4.0, 6.3.0, 7.0.1

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
The test compiles with gfortran 4.8.5. The change occurred between revisions
r219823 (2015-01-18, compiles and executes) and r219830 (2015-01-19, ICE),
likely r219827 (pr60255) for gcc5 and r221591 for gcc4.9.
>From gcc-bugs-return-553455-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 17:31:37 2017
Return-Path: <gcc-bugs-return-553455-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10869 invoked by alias); 8 Feb 2017 17:31: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 10733 invoked by uid 48); 8 Feb 2017 17:31:23 -0000
From: "gjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79387] Internal compiler error in convert_nontype_argument
Date: Wed, 08 Feb 2017 17: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: 6.3.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gjl 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 cf_known_to_fail
Message-ID: <bug-79387-4-9EOnfgKb2D@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79387-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79387-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00987.txt.bz2
Content-length: 949

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

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-08
     Ever confirmed|0                           |1
      Known to fail|                            |6.2.1

--- Comment #1 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Confirmed with avr-g++-6 from today (gcc-6-branch HEAD) and avr-g++-7 (trunk
HEAD).

../../gcc.gnu.org/trunk/configure --target=avr
--prefix=/local/gnu/install/gcc-7 --disable-shared --disable-nls --with-dwarf2
--enable-target-optspace=yes --with-gnu-as --with-gnu-ld target_alias=avr
--enable-checking=release --enable-languages=c,c++,lto
>From gcc-bugs-return-553456-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 17:34:20 2017
Return-Path: <gcc-bugs-return-553456-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16043 invoked by alias); 8 Feb 2017 17:34: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 15882 invoked by uid 48); 8 Feb 2017 17:34:00 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79430] [7 Regression] action of statement incorrectly optimised away
Date: Wed, 08 Feb 2017 17: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: 7.0.1
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-79430-4-NJUfFXowTJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00988.txt.bz2
Content-length: 145

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
What target is this on?
>From gcc-bugs-return-553457-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 17:34:41 2017
Return-Path: <gcc-bugs-return-553457-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17698 invoked by alias); 8 Feb 2017 17:34: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 17333 invoked by uid 55); 8 Feb 2017 17:34:32 -0000
From: "kelvin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/68972] g++.dg/cpp1y/vla-initlist1.C test case fails on powerpc64le
Date: Wed, 08 Feb 2017 17:34: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kelvin 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-68972-4-o66GNZ9p12@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68972-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68972-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00989.txt.bz2
Content-length: 561

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

--- Comment #12 from kelvin at gcc dot gnu.org ---
Author: kelvin
Date: Wed Feb  8 17:33:57 2017
New Revision: 245280

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

2017-02-08  Kelvin Nilsen  <kelvin@gcc.gnu.org>

        PR target/68972
        * g++.dg/cpp1y/vla-initlist1.C: Add dg-skip-if directive to
        disable this test on power architecture.


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp1y/vla-initlist1.C
>From gcc-bugs-return-553458-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 17:35:26 2017
Return-Path: <gcc-bugs-return-553458-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19075 invoked by alias); 8 Feb 2017 17:35: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 18989 invoked by uid 48); 8 Feb 2017 17:35:15 -0000
From: "juergen.reuter at desy dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79430] [7 Regression] action of statement incorrectly optimised away
Date: Wed, 08 Feb 2017 17:35: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.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: juergen.reuter at desy dot de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79430-4-JKNRnFI61z@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00990.txt.bz2
Content-length: 302

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

--- Comment #2 from Jürgen Reuter <juergen.reuter at desy dot de> ---
(In reply to Andrew Pinski from comment #1)
> What target is this on?

We reproduced it under MAC OS X as well as under Ubuntu Linux 14.04 and
Scientific Linux 6.8. x86_64.
>From gcc-bugs-return-553459-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 17:35:47 2017
Return-Path: <gcc-bugs-return-553459-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23054 invoked by alias); 8 Feb 2017 17:35: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 22976 invoked by uid 48); 8 Feb 2017 17:35:40 -0000
From: "spop at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/68823] [6/7 Regression][graphite] tramp3d-v4 compiled with -floop-nest-optimize crashes
Date: Wed, 08 Feb 2017 17:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: spop 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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-68823-4-8Rr9dmiJGv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68823-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68823-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00991.txt.bz2
Content-length: 1276

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

--- Comment #11 from Sebastian Pop <spop at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #10)
> But then with different number of subscripts (and also likely different
> DR_BASE_OBJECT) you can't do anything with them and have to assume
> dependence.  See initialize_data_dependence_relation:
> 
>   /* If the references do not access the same object, we do not know
>      whether they alias or not.  We do not care about TBAA or alignment
>      info so we can use OEP_ADDRESS_OF to avoid false negatives.
>      But the accesses have to use compatible types as otherwise the
>      built indices would not match.  */
>   if (!operand_equal_p (DR_BASE_OBJECT (a), DR_BASE_OBJECT (b),
> OEP_ADDRESS_OF)
>       || !types_compatible_p (TREE_TYPE (DR_BASE_OBJECT (a)),
>                               TREE_TYPE (DR_BASE_OBJECT (b))))
>     {
>       DDR_ARE_DEPENDENT (res) = chrec_dont_know;
>       return res;
> 
> not sure how you communicate that to ISL of course...  is it what you
> use "alias-sets" for?  To create extra dependence egdes?

alias-sets differ for two arrays with bases that have been proven to be
different.
If they may point to the same thing, they will have the same number.
>From gcc-bugs-return-553460-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 17:37:29 2017
Return-Path: <gcc-bugs-return-553460-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25925 invoked by alias); 8 Feb 2017 17:37: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 25841 invoked by uid 48); 8 Feb 2017 17:37:21 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79430] [7 Regression] action of statement incorrectly optimised away
Date: Wed, 08 Feb 2017 17: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.1
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_gcctarget
Message-ID: <bug-79430-4-aVFMqnPgyd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00992.txt.bz2
Content-length: 641

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-*-*

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Jürgen Reuter from comment #2)
> (In reply to Andrew Pinski from comment #1)
> > What target is this on?
> 
> We reproduced it under MAC OS X as well as under Ubuntu Linux 14.04 and
> Scientific Linux 6.8. x86_64.

Have you tried any non x86_64 targets?
>From gcc-bugs-return-553461-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 17:42:42 2017
Return-Path: <gcc-bugs-return-553461-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48291 invoked by alias); 8 Feb 2017 17:42: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 48132 invoked by uid 48); 8 Feb 2017 17:42:28 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79417] -Wconversion warns wrongly of real(16) to real(8)
Date: Wed, 08 Feb 2017 17:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 6.1.1
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: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-79417-4-PYeDIKmIqH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79417-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79417-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00993.txt.bz2
Content-length: 1007

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-08
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
If I replace the lines

  integer,parameter:: qp = selected_real_kind(30), dp = kind(1d0)
  real(qp),parameter:: q1 = 1, q23(1) = 2*q1/3

with

  real(qp),parameter:: q1(1) = 1, q23(1) = 2*q1/3
  real(dp),parameter:: d1 = 1, d23(1) = real(2*q1(1)/3,dp)

I get

   real(dp),parameter:: d1 = 1, d23(1) = real(2*q1(1)/3,dp)
                                             1
Warning: Change of value in conversion from 'REAL(16)' to 'REAL(8)' at (1)
[-Wconversion]

I don't get any warning with gfortran 5.4.0.
>From gcc-bugs-return-553462-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 17:43:34 2017
Return-Path: <gcc-bugs-return-553462-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49323 invoked by alias); 8 Feb 2017 17: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 49198 invoked by uid 48); 8 Feb 2017 17:43:21 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79428] ICE in c_parser_consume_token, at c/c-parser.c:770
Date: Wed, 08 Feb 2017 17:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-79428-4-BX8XkbC2ww@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79428-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79428-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00994.txt.bz2
Content-length: 1256

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

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

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

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed.

We hit this:
770   gcc_assert (!parser->in_pragma || parser->tokens[0].type !=
CPP_PRAGMA_EOL);
because
  173   /* True if we're processing a pragma, and shouldn't automatically
  174      consume CPP_PRAGMA_EOL.  */
  175   BOOL_BITFIELD in_pragma : 1;

So maybe just
--- a/gcc/c/c-parser.c
+++ b/gcc/c/c-parser.c
@@ -15460,7 +15460,7 @@ c_parser_omp_ordered (c_parser *parser, enum
pragma_context context,
   if (context != pragma_stmt && context != pragma_compound)
     {
       c_parser_error (parser, "expected declaration specifiers");
-      c_parser_skip_until_found (parser, CPP_PRAGMA_EOL, NULL);
+      c_parser_skip_to_pragma_eol (parser, false);
       return false;
     }
>From gcc-bugs-return-553463-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 17:50:04 2017
Return-Path: <gcc-bugs-return-553463-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100984 invoked by alias); 8 Feb 2017 17:50: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 100844 invoked by uid 48); 8 Feb 2017 17:49:55 -0000
From: "juergen.reuter at desy dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79430] [7 Regression] action of statement incorrectly optimised away
Date: Wed, 08 Feb 2017 17: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: juergen.reuter at desy dot de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79430-4-YwbKtZa9Ix@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00995.txt.bz2
Content-length: 506

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

--- Comment #4 from Jürgen Reuter <juergen.reuter at desy dot de> ---
(In reply to Andrew Pinski from comment #3)
> (In reply to Jürgen Reuter from comment #2)
> > (In reply to Andrew Pinski from comment #1)
> > > What target is this on?
> > 
> > We reproduced it under MAC OS X as well as under Ubuntu Linux 14.04 and
> > Scientific Linux 6.8. x86_64.
> 
> Have you tried any non x86_64 targets?

No, we haven't any 32bit machines left.
>From gcc-bugs-return-553464-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 17:54:42 2017
Return-Path: <gcc-bugs-return-553464-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106116 invoked by alias); 8 Feb 2017 17:54: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 105429 invoked by uid 48); 8 Feb 2017 17:54:29 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79430] [7 Regression] action of statement incorrectly optimised away
Date: Wed, 08 Feb 2017 17:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-79430-4-Da0qeOdy5V@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00996.txt.bz2
Content-length: 526

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-02-08
     Ever confirmed|0                           |1

--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
What does --with-precision=extended?
>From gcc-bugs-return-553465-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 18:02:54 2017
Return-Path: <gcc-bugs-return-553465-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28311 invoked by alias); 8 Feb 2017 18:02: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 28038 invoked by uid 48); 8 Feb 2017 18:02:41 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79428] ICE in c_parser_consume_token, at c/c-parser.c:770
Date: Wed, 08 Feb 2017 18:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
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: 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-79428-4-wS8VeQ7Qmp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79428-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79428-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00997.txt.bz2
Content-length: 490

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

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> ---
If that works, we probably need to adjust all the other spots that do this +
construct testcases that test that.
>From gcc-bugs-return-553466-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 18:08:56 2017
Return-Path: <gcc-bugs-return-553466-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 83420 invoked by alias); 8 Feb 2017 18:08: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 83179 invoked by uid 48); 8 Feb 2017 18:08:43 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79428] ICE in c_parser_consume_token, at c/c-parser.c:770
Date: Wed, 08 Feb 2017 18:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
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 assigned_to
Message-ID: <bug-79428-4-b7qHLOiD67@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79428-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79428-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00998.txt.bz2
Content-length: 514

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

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 #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
It works for the testcase.  Let me see if I can handle this.
>From gcc-bugs-return-553467-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 18:10:16 2017
Return-Path: <gcc-bugs-return-553467-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87918 invoked by alias); 8 Feb 2017 18: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 87821 invoked by uid 48); 8 Feb 2017 18:10:11 -0000
From: "juergen.reuter at desy dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79430] [7 Regression] action of statement incorrectly optimised away
Date: Wed, 08 Feb 2017 18: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: juergen.reuter at desy dot de
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-79430-4-bbizNxZiIa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg00999.txt.bz2
Content-length: 851

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

--- Comment #6 from Jürgen Reuter <juergen.reuter at desy dot de> ---
(In reply to Dominique d'Humieres from comment #5)
> What does --with-precision=extended?

It sets the default precision of real and complex floats (kind type parameter)
to 80 bit instead of 64 bit (double) or 128bit (quadruple) precision according
to:

  !!! available REAL kinds               ! prec.  ! ISO     ! C
  integer, parameter :: single    =  4   !  1.. 6 ! real32  ! c_float      
  integer, parameter :: double    =  8   !  7..15 ! real64  ! c_double     
  integer, parameter :: extended  = 10   ! 16..18 ! real128 ! c_long_double
  integer, parameter :: quadruple = 16   ! 19..33 ! -1      ! c_float128 

  integer, parameter :: default           = extended
>From gcc-bugs-return-553468-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 18:12:12 2017
Return-Path: <gcc-bugs-return-553468-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91146 invoked by alias); 8 Feb 2017 18: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 90869 invoked by uid 48); 8 Feb 2017 18:11:59 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79428] [6/7 Regression] ICE in c_parser_consume_token, at c/c-parser.c:770
Date: Wed, 08 Feb 2017 18:12: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: 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: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords target_milestone short_desc
Message-ID: <bug-79428-4-DWUiYiPNa3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79428-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79428-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01000.txt.bz2
Content-length: 733

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |error-recovery,
                   |                            |ice-on-invalid-code
   Target Milestone|---                         |6.5
            Summary|ICE in                      |[6/7 Regression] ICE in
                   |c_parser_consume_token, at  |c_parser_consume_token, at
                   |c/c-parser.c:770            |c/c-parser.c:770

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Started with r228777.
>From gcc-bugs-return-553469-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 19:04:38 2017
Return-Path: <gcc-bugs-return-553469-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13313 invoked by alias); 8 Feb 2017 19:04: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 13171 invoked by uid 48); 8 Feb 2017 19:04:22 -0000
From: "kargl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79430] [7 Regression] action of statement incorrectly optimised away
Date: Wed, 08 Feb 2017 19:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kargl 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: cc
Message-ID: <bug-79430-4-o5xpKRhRuH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01001.txt.bz2
Content-length: 1786

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

kargl at gcc dot gnu.org changed:

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

--- Comment #7 from kargl at gcc dot gnu.org ---
(In reply to Jürgen Reuter from comment #6)
> (In reply to Dominique d'Humieres from comment #5)
> > What does --with-precision=extended?
> 
> It sets the default precision of real and complex floats (kind type
> parameter) to 80 bit instead of 64 bit (double) or 128bit (quadruple)
> precision according to:
> 
>   !!! available REAL kinds               ! prec.  ! ISO     ! C
>   integer, parameter :: single    =  4   !  1.. 6 ! real32  ! c_float      
>   integer, parameter :: double    =  8   !  7..15 ! real64  ! c_double     
>   integer, parameter :: extended  = 10   ! 16..18 ! real128 ! c_long_double
>   integer, parameter :: quadruple = 16   ! 19..33 ! -1      ! c_float128 
> 
>   integer, parameter :: default           = extended

Your use of terminology is unclear.  The default real type in
Fortran is REAL.  Real has a default real kind type value of 4.
This means that REAL == REAL(4), which is 32 bits.  If you are
using some configure magic to map REAL to REAL(10), your version
of gfortran is too broken to save.

Also note, I just fixed gfortran so that your table above is wrong.
If the four real types with kind = 4, 8, 10, and 16 are available.
Then the mapping is REAL(4) == REAL32, REAL(8) == REAL64, and 
REAL(16) == REAL128.  

If a clever user messes up what default precision means, then
that clever user gets what they deserve.
>From gcc-bugs-return-553470-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 19:10:06 2017
Return-Path: <gcc-bugs-return-553470-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56869 invoked by alias); 8 Feb 2017 19:10: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 45893 invoked by uid 48); 8 Feb 2017 19:09:52 -0000
From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79432] [Regression 7] ICE: verify_ssa failed
Date: Wed, 08 Feb 2017 19: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: 7.0
X-Bugzilla-Keywords: ice-checking
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dmalcolm at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc short_desc everconfirmed
Message-ID: <bug-79432-4-ODjnV0ALtN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79432-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79432-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01002.txt.bz2
Content-length: 849

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-checking
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-08
                 CC|                            |dmalcolm at gcc dot gnu.org
            Summary|ICE: verify_ssa failed      |[Regression 7] ICE:
                   |                            |verify_ssa failed
     Ever confirmed|0                           |1

--- Comment #1 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Thanks for filing this bug.

Appears to still affect trunk; bisecting shows ICE starts with r235817.
>From gcc-bugs-return-553471-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 19:15:21 2017
Return-Path: <gcc-bugs-return-553471-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75520 invoked by alias); 8 Feb 2017 19:15: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 75043 invoked by uid 48); 8 Feb 2017 19:14:55 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/64081] [5/6/7 Regression] r217827 prevents RTL loop unroll
Date: Wed, 08 Feb 2017 19:15:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher 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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64081-4-tZUhUpenIa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01003.txt.bz2
Content-length: 496

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

--- Comment #56 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Yes, and a function that computes a "more permissive" version should
not have "simple_loop" in its name, it is very misleading.  Reusing
existing functions to do something different may seem attractive at
first ("less churn") but is more expensive in the long run; we have
spent more time on this PR alone than doing things properly would have
taken in the first place.
>From gcc-bugs-return-553472-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 19:21:11 2017
Return-Path: <gcc-bugs-return-553472-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4887 invoked by alias); 8 Feb 2017 19:21: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 124316 invoked by uid 48); 8 Feb 2017 19:20:56 -0000
From: "marc.mutz at kdab dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79433] New: __has_include reports wrong result headers that #error on __cplusplus
Date: Wed, 08 Feb 2017 19:21: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.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marc.mutz at kdab 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-79433-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01004.txt.bz2
Content-length: 962

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

            Bug ID: 79433
           Summary: __has_include reports wrong result headers that #error
                    on __cplusplus
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marc.mutz at kdab dot com
  Target Milestone: ---

Code that attempts to detect, say, string_view support by
__has_include(<string_view>) or __has_include(<experimental/string_view>) and
then attempts to #include those headers is greeted with an #error that these
headers require C++17 and C++14, resp.

Since there's no SG-10 SD-6 feature test macro for string_view, this means that
no portable way of detecting string_view support is possible.

Expected behaviour: __has_include should behave consistent with the header's
#error mechanism.
>From gcc-bugs-return-553473-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 19:22:47 2017
Return-Path: <gcc-bugs-return-553473-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33295 invoked by alias); 8 Feb 2017 19:22: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 12151 invoked by uid 48); 8 Feb 2017 19:22:33 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/79427] g++.dg/tls/thread_local-order2.C fails starting with r245249
Date: Wed, 08 Feb 2017 19:22: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79427-4-jMmKub04KQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79427-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79427-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01005.txt.bz2
Content-length: 217

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

--- Comment #1 from Segher Boessenkool <segher at gcc dot gnu.org> ---
I get the correct output on BE (gcc110).  This is glibc 2.18, maybe
that is the difference?
>From gcc-bugs-return-553474-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 19:25:24 2017
Return-Path: <gcc-bugs-return-553474-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59573 invoked by alias); 8 Feb 2017 19:25: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 59450 invoked by uid 48); 8 Feb 2017 19:25:10 -0000
From: "marc.mutz at kdab dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79433] __has_include reports wrong result for std headers that #error on __cplusplus
Date: Wed, 08 Feb 2017 19: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marc.mutz at kdab 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-79433-4-Wv6vHHJVR9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01006.txt.bz2
Content-length: 409

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

--- Comment #1 from Marc Mutz <marc.mutz at kdab dot com> ---
And no, checking __cplusplus in addition is not an option, since many
compilers, GCC included (__cplusplus==1, remember?), do not necessarily bump
__cplusplus when they implement enough core features to make something like
string_view (which can be implemented in C++11 just fine) work.
>From gcc-bugs-return-553476-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 19:30:57 2017
Return-Path: <gcc-bugs-return-553476-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74844 invoked by alias); 8 Feb 2017 19:30: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 74588 invoked by uid 48); 8 Feb 2017 19:30:44 -0000
From: "seurer at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/79427] g++.dg/tls/thread_local-order2.C fails starting with r245249
Date: Wed, 08 Feb 2017 19:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
X-Bugzilla-Version: 7.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:
Message-ID: <bug-79427-4-26xYpbN0TN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79427-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79427-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01008.txt.bz2
Content-length: 268

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

--- Comment #2 from seurer at gcc dot gnu.org ---
I checked and on the first system where I noticed this glibc is the distro
(Ubuntu 14.04) default 2.17.  Other Be systems where it also failed are that or
older.
>From gcc-bugs-return-553475-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 19:30:57 2017
Return-Path: <gcc-bugs-return-553475-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74836 invoked by alias); 8 Feb 2017 19:30: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 74449 invoked by uid 48); 8 Feb 2017 19:30:39 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79301] With -Werror=pedantic outside C++17 mode, __has_cpp_attribute(fallthrough) is nonzero but [[fallthrough]] fails
Date: Wed, 08 Feb 2017 19: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: 7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79301-4-ErNvD6WFky@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79301-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79301-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01007.txt.bz2
Content-length: 700

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

--- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> ---
The (__has_cpp_attribute(fallthrough) >= __cplusplus) test doesn't help because
the built-in evaluates to 201603 (in all conformance modes) and __cplusplus to
at most 201500L (in C++ 17 mode), so it's as good as the original test alone.

It might be worth to bring this up in the WG21 Feature Test study group (SG10)
to make sure the interplay between pedantic conformance warnings (and errors)
and the feature test macros has been given adequate consideration.  The
__has_cpp_attribute example in the latest draft is basically a copy of the test
case in comment #0.
>From gcc-bugs-return-553478-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 19:31:55 2017
Return-Path: <gcc-bugs-return-553478-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77182 invoked by alias); 8 Feb 2017 19:31: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 77103 invoked by uid 48); 8 Feb 2017 19:31:41 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79433] __has_include reports wrong result for std headers that #error on __cplusplus
Date: Wed, 08 Feb 2017 19: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.0.1
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-79433-4-du5nsONCGV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01010.txt.bz2
Content-length: 201

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

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
__has_include just says the include exists and not if the include file works.
>From gcc-bugs-return-553477-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 19:31:06 2017
Return-Path: <gcc-bugs-return-553477-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75935 invoked by alias); 8 Feb 2017 19: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 74805 invoked by uid 48); 8 Feb 2017 19:30:53 -0000
From: "marc.mutz at kdab dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79433] __has_include reports wrong result for std headers that #error on __cplusplus
Date: Wed, 08 Feb 2017 19: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.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marc.mutz at kdab 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-79433-4-zpTtsYjjak@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01009.txt.bz2
Content-length: 270

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

--- Comment #2 from Marc Mutz <marc.mutz at kdab dot com> ---
Ok, there is __cpp_lib_experimental_string_view, at least, but it's defined ...
wait for it ... in <experimental/string_view>, which you can't include.
>From gcc-bugs-return-553479-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 19:32:16 2017
Return-Path: <gcc-bugs-return-553479-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78004 invoked by alias); 8 Feb 2017 19:32: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 77899 invoked by uid 48); 8 Feb 2017 19:32:04 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79433] __has_include reports wrong result for std headers that #error on __cplusplus
Date: Wed, 08 Feb 2017 19: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: 7.0.1
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: bug_status resolution
Message-ID: <bug-79433-4-y0g8z0lap8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01011.txt.bz2
Content-length: 426

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

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

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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
.
>From gcc-bugs-return-553480-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 19:33:02 2017
Return-Path: <gcc-bugs-return-553480-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79149 invoked by alias); 8 Feb 2017 19:33: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 79009 invoked by uid 48); 8 Feb 2017 19:32:54 -0000
From: "juergen.reuter at desy dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79430] [7 Regression] action of statement incorrectly optimised away
Date: Wed, 08 Feb 2017 19: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: juergen.reuter at desy dot de
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-79430-4-jVTm0YjhqH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01012.txt.bz2
Content-length: 321

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

--- Comment #8 from Jürgen Reuter <juergen.reuter at desy dot de> ---
We are defining a real(default) which could be 4, 8, 10 or 16, as these are the
real kinds supported by gfortran. If default = 10, this happens, but this is
not per se forbidden, is it?
>From gcc-bugs-return-553481-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 19:50:03 2017
Return-Path: <gcc-bugs-return-553481-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122804 invoked by alias); 8 Feb 2017 19:49:58 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 122618 invoked by uid 48); 8 Feb 2017 19:49:44 -0000
From: "juergen.reuter at desy dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79430] [7 Regression] action of statement incorrectly optimised away
Date: Wed, 08 Feb 2017 19:49: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.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: juergen.reuter at desy dot de
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-79430-4-Vx1wPVpozs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01013.txt.bz2
Content-length: 1691

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

--- Comment #9 from Jürgen Reuter <juergen.reuter at desy dot de> ---
(In reply to kargl from comment #7)
> (In reply to Jürgen Reuter from comment #6)
> > (In reply to Dominique d'Humieres from comment #5)
> > > What does --with-precision=extended?
> > 
> > It sets the default precision of real and complex floats (kind type
> > parameter) to 80 bit instead of 64 bit (double) or 128bit (quadruple)
> > precision according to:
> > 
> >   !!! available REAL kinds               ! prec.  ! ISO     ! C
> >   integer, parameter :: single    =  4   !  1.. 6 ! real32  ! c_float      
> >   integer, parameter :: double    =  8   !  7..15 ! real64  ! c_double     
> >   integer, parameter :: extended  = 10   ! 16..18 ! real128 ! c_long_double
> >   integer, parameter :: quadruple = 16   ! 19..33 ! -1      ! c_float128 
> > 
> >   integer, parameter :: default           = extended
> 
> Your use of terminology is unclear.  The default real type in
> Fortran is REAL.  Real has a default real kind type value of 4.
> This means that REAL == REAL(4), which is 32 bits.  If you are
> using some configure magic to map REAL to REAL(10), your version
> of gfortran is too broken to save.
> 
> Also note, I just fixed gfortran so that your table above is wrong.
> If the four real types with kind = 4, 8, 10, and 16 are available.
> Then the mapping is REAL(4) == REAL32, REAL(8) == REAL64, and 
> REAL(16) == REAL128.  
> 
> If a clever user messes up what default precision means, then
> that clever user gets what they deserve.


see my comment #8.
>From gcc-bugs-return-553482-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 19:56:17 2017
Return-Path: <gcc-bugs-return-553482-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78796 invoked by alias); 8 Feb 2017 19:56: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 58473 invoked by uid 55); 8 Feb 2017 19:56:04 -0000
From: "ctice at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/46639] [5/6 Regression] Missing optimization due to function splitting and redundant conditionals
Date: Wed, 08 Feb 2017 19:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.6.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ctice 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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-46639-4-GtCOIDVLaX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-46639-4@http.gcc.gnu.org/bugzilla/>
References: <bug-46639-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01014.txt.bz2
Content-length: 7779

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

--- Comment #20 from ctice at gcc dot gnu.org ---
Author: ctice
Date: Wed Feb  8 19:55:28 2017
New Revision: 245284

URL: https://gcc.gnu.org/viewcvs?rev=245284&root=gcc&view=rev
Log:
2017-02-08  Caroline Tice <cmtice@google.com>

        Fix PR 46639
        in gcc:
        * passes.def: Add pass_early_vrp; move pass_profile to before new pass.
        * tree-pass.h: Add extern decl for make_pass_early_vrp.
        * tree-vrp.c: New file global variable, is_early_vrp (boolean).
        (extract_range_basic):  Add test for is_early_vrp before updating
        built-in constants -- don't update during early_vrp pass.
        (check_array_ref): Retrn immediately if is_early_vrp is true.
        (execute_vrp): Add boolean parameter to indicate early pass or not;
        set is_early_pass to value of parameter.
        (pass_data_early_vrp): New pass_data struct.
        (pass_vrp::execute): Call execute_vrp with false -- not early pass.
        (class pass_early_vrp): New gimple_opt_pass class.
        (make_pass_early_vrp): New function.

        in testsuite:

        * testsuite/gcc.dg/tree-prof/lipo/val-prof-5_0.c: xfail test.  It is
        no longer a correct test with the new pass.
        * testsuite/gcc.dg/tree-prof/val-prof-5.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/20030709-2.c: Change test to reflect new
        (correct) code due to patch changes.
        * testsuite/gcc.dg/tree-ssa/20040305-1.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/pr20702.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/pr21086.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/vrp02.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/vrp07.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/vrp08.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/vrp55.c: Ditto.
        * testsuite/gcc.dg/vect/slp-perm-7.c: Ditto.
        * testsuite/gcc.dg/fold-compare-2.c: Update to scan correct pass.
        * testsuite/gcc.dg/tree-ssa/pr20318.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/pr20657.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/pr21001.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/pr21090.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/pr21294.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/pr21458.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/pr21559.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/pr21563.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/pr22117.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/pr23744.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/pr25382.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/pr37508.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/pr49039.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/pr58480.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/pr59597.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/ssa-dom-thread-2.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/ssa-vrp-thread-1.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/vrp01.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/vrp03.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/vrp04.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/vrp06.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/vrp09.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/vrp16.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/vrp17.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/vrp18.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/vrp19.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/vrp20.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/vrp23.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/vrp24.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/vrp25.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/vrp33.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/vrp34.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/vrp46.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/vrp56.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/vrp58.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/vrp67.c: Ditto.
        * testsuite/gcc.dg/tree-ssa/vrp87.c: Ditto.


Modified:
    branches/google/gcc-4_9-mobile/gcc/passes.def
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/fold-compare-2.c
   
branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-prof/lipo/val-prof-5_0.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-prof/val-prof-5.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/20030709-2.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/20040305-1.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/pr20318.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/pr20657.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/pr20702.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/pr21001.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/pr21086.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/pr21090.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/pr21294.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/pr21458.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/pr21559.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/pr21563.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/pr22117.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/pr23744.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/pr25382.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/pr37508.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/pr49039.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/pr58480.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/pr59597.c
   
branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-2.c
   
branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/ssa-vrp-thread-1.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/vrp01.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/vrp02.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/vrp03.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/vrp04.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/vrp06.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/vrp07.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/vrp08.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/vrp09.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/vrp16.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/vrp17.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/vrp18.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/vrp19.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/vrp20.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/vrp23.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/vrp24.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/vrp25.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/vrp33.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/vrp34.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/vrp46.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/vrp55.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/vrp56.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/vrp58.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/vrp67.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/tree-ssa/vrp87.c
    branches/google/gcc-4_9-mobile/gcc/testsuite/gcc.dg/vect/slp-perm-7.c
    branches/google/gcc-4_9-mobile/gcc/tree-pass.h
    branches/google/gcc-4_9-mobile/gcc/tree-vrp.c
>From gcc-bugs-return-553483-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 20:15:43 2017
Return-Path: <gcc-bugs-return-553483-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5393 invoked by alias); 8 Feb 2017 20:15: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 127831 invoked by uid 55); 8 Feb 2017 20:14:56 -0000
From: "sgk at troutmask dot apl.washington.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79430] [7 Regression] action of statement incorrectly optimised away
Date: Wed, 08 Feb 2017 20:15: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.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sgk at troutmask dot apl.washington.edu
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-79430-4-XrIxZJMoVy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01015.txt.bz2
Content-length: 2044

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

--- Comment #10 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Wed, Feb 08, 2017 at 07:32:53PM +0000, juergen.reuter at desy dot de wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79430
> 
> --- Comment #8 from Jürgen Reuter <juergen.reuter at desy dot de> ---
> We are defining a real(default) which could be 4, 8, 10 or 16, as these are the
> real kinds supported by gfortran. If default = 10, this happens, but this is
> not per se forbidden, is it?
> 

I don't know.  Spent 15-20 minutes looking through the whizard
svn repository, but can't find what --with-precision=extended
actually does.  I assume that this is causing compiler options
to be set.

program foo

   use iso_fortran_env

   implicit none

   character(len=20), parameter :: fmt = '(I2,1X,I3,1X,I2)'

   real(real_kinds(1)) a
   real(real_kinds(2)) b
   real(real_kinds(3)) c
   real(real_kinds(4)) d
   real(real32) e
   real(real64) f
   real(real128) g

   write(*,fmt) kind(a), digits(a), precision(a)
   write(*,fmt) kind(b), digits(b), precision(b)
   write(*,fmt) kind(c), digits(c), precision(c)
   write(*,fmt) kind(d), digits(d), precision(d)
   write(*,*)
   write(*,fmt) kind(e), digits(e), precision(e)
   write(*,fmt) kind(f), digits(f), precision(f)
   write(*,fmt) kind(g), digits(g), precision(g)

end program foo

With trunk on x86_64-*-freebsd with my patch to fix REAL128,

% gfc7 -o z a.f90 && ./z
 4  24  6
 8  53 15
10  64 18
16 113 33

 4  24  6
 8  53 15
16 113 33

With gfortran 6.3.0 on x86_64-*-freebsd without my patch to fix REAL128

% gfortran6 -static -o z a.f90 && ./z
 4  24  6
 8  53 15
10  64 18
16 113 33

 4  24  6
 8  53 15
10  64 18

If --with-precision=extended is setting -freal-4-real-10, you get

%  gfc7 -o z a.f90 -freal-4-real-10 && ./z
10  64 18
 8  53 15
10  64 18
16 113 33

10  64 18
 8  53 15
16 113 33

which may lead to conforming code suddening becoming nonconforming
due to violation of storage association.
>From gcc-bugs-return-553484-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 20:18:37 2017
Return-Path: <gcc-bugs-return-553484-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14758 invoked by alias); 8 Feb 2017 20: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 11659 invoked by uid 48); 8 Feb 2017 20:18:24 -0000
From: "aldyh at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/64081] [5/6/7 Regression] r217827 prevents RTL loop unroll
Date: Wed, 08 Feb 2017 20:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: aldyh 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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-64081-4-Wr3Stq1OeT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01016.txt.bz2
Content-length: 1201

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

--- Comment #57 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
Created attachment 40697
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40697&action=edit
untested patch possibly solving AIX bootstrap

Taking in Jeff and Segher's suggestions, I propose something like the following
untested patch.  With it we unroll in the original testcase in this PR, while
avoiding the doloop unrolling in the AIX fiasco.

The loop exit check needed by this PR (get_loop_location) is set permissively,
while all the other ones in loop-unroll.c and loop-doloop.c are set
conservatively.  Presumably we can expand the permissiveness at a later date.

This is untested apart from checking that the original PR testcase still
unrolls, while AIX does not generate the CTR instructions.

If this is an acceptable approach, I can adjust all the relevant function
comments, plus update the doc/loop.texi documentation.  And yes, this patch is
on top of the original one, which presumably was already approved at some point
(but reverted).

Testing would involve AIX with the ancient toolchain patched/kludged up, plus
Linux + AIX with trunk.
>From gcc-bugs-return-553485-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 20:38:42 2017
Return-Path: <gcc-bugs-return-553485-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6951 invoked by alias); 8 Feb 2017 20:38: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 6817 invoked by uid 48); 8 Feb 2017 20:38:29 -0000
From: "Bader at lrz dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79434] New: [submodules] separate module procedure breaks encapsulation
Date: Wed, 08 Feb 2017 20:38: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.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: Bader at lrz dot de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-79434-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01017.txt.bz2
Content-length: 757

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

            Bug ID: 79434
           Summary: [submodules] separate module procedure breaks
                    encapsulation
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Bader at lrz dot de
  Target Milestone: ---

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

The attached code (a much simplified version of a bug report on the Intel
software forums) illustrate that the current submodule implementation does not
respect type component encapsulation.
>From gcc-bugs-return-553486-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 20:39:57 2017
Return-Path: <gcc-bugs-return-553486-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13062 invoked by alias); 8 Feb 2017 20:39: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 12860 invoked by uid 48); 8 Feb 2017 20:39:44 -0000
From: "juergen.reuter at desy dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79430] [7 Regression] action of statement incorrectly optimised away
Date: Wed, 08 Feb 2017 20: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: juergen.reuter at desy dot de
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-79430-4-KJIakAU2wd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01018.txt.bz2
Content-length: 2755

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

--- Comment #11 from Jürgen Reuter <juergen.reuter at desy dot de> ---
(In reply to Steve Kargl from comment #10)
> On Wed, Feb 08, 2017 at 07:32:53PM +0000, juergen.reuter at desy dot de

> which may lead to conforming code suddening becoming nonconforming
> due to violation of storage association.

Interesting. Actually, we are not setting any flags using configure options,
except for those that libtool sets for us as default (-g -O2).
In our code, we use everywhere variables defined as 
real(kind=default) :: foo
complex(kind=default) :: foo,
and then we use a module kinds.f90 with the definitions:
  !!! available REAL kinds               ! prec.  ! ISO     ! C
  integer, parameter :: single    =  4   !  1.. 6 ! real32  ! c_float      
  integer, parameter :: double    =  8   !  7..15 ! real64  ! c_double     
  integer, parameter :: extended  = 10   ! 16..18 ! real128 ! c_long_double
  integer, parameter :: quadruple = 16   ! 19..33 ! -1      ! c_float128  

When configuring with no flag or --with-precision=double, then in this file
kind.f90 we 
set

  integer, parameter :: default           = double   
configuring with --with-precision=extended sets
integer, parameter :: default           = extended
and configuring with --with-precision=quadruple sets
integer, parameter :: default           = quadruple

The integers above are determined during configure, depending on the compiler,
and are always the same, only default is set depending on the configure option. 
Indeed, it looks as if kind=10 would be real128, but as you said this is wrong
and was
fixed by you (I guess it is not yet in the trunk, as of r245197 at least).
For ifort we get
  !!! available REAL kinds               ! prec.  ! ISO     ! C
  integer, parameter :: single    =  4   !  1.. 6 ! real32  ! c_float      
  integer, parameter :: double    =  8   !  7..15 ! real64  ! c_double     
  integer, parameter :: quadruple = 16   ! 16..33 ! real128 ! c_long_double
and for NAG:
  !!! available REAL kinds               ! prec.  ! ISO     ! C
  integer, parameter :: single    =  1   !  1.. 6 ! real32  ! c_float      
  integer, parameter :: double    =  2   !  7..15 ! real64  ! c_double     
  integer, parameter :: quadruple =  3   ! 16..31 ! real128 ! -1  
(with a different range then gfortran and ifort)
and for PGF
  !!! available REAL kinds               ! prec.  ! ISO     ! C
  integer, parameter :: single    =  4   !  1.. 6 ! real32  ! c_float      
  integer, parameter :: double    =  8   !  7..15 ! real64  ! c_double
>From gcc-bugs-return-553487-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 20:41:10 2017
Return-Path: <gcc-bugs-return-553487-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15985 invoked by alias); 8 Feb 2017 20:41: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 15160 invoked by uid 48); 8 Feb 2017 20:40:52 -0000
From: "marc.mutz at kdab dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79433] __has_include reports wrong result for std headers that #error on __cplusplus
Date: Wed, 08 Feb 2017 20:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marc.mutz at kdab 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-79433-4-5b1uqGpvnq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01019.txt.bz2
Content-length: 376

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

--- Comment #5 from Marc Mutz <marc.mutz at kdab dot com> ---
Andrew, you're taking the easy way out. It might be that it works as
implemented, but that behaviour is useless.

Please explain how one should detect, in a portable way, whether string_view
and experimental::string_view is available, if not by headers check.
>From gcc-bugs-return-553488-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 20:50:01 2017
Return-Path: <gcc-bugs-return-553488-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57434 invoked by alias); 8 Feb 2017 20:50: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 57277 invoked by uid 55); 8 Feb 2017 20:49:48 -0000
From: "pthaugen at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/78604] [7 regression] test case gcc.target/powerpc/p8vector-vectorize-1.c fails starting with r242750
Date: Wed, 08 Feb 2017 20:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pthaugen at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: pthaugen at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78604-4-99NDtdYiPH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78604-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78604-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01020.txt.bz2
Content-length: 636

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

--- Comment #8 from Pat Haugen <pthaugen at gcc dot gnu.org> ---
Author: pthaugen
Date: Wed Feb  8 20:49:14 2017
New Revision: 245285

URL: https://gcc.gnu.org/viewcvs?rev=245285&root=gcc&view=rev
Log:
        PR target/78604
        * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
        condition/operands for integer GE/LE/GEU/LEU operations.

        * gcc.target/powerpc/pr78604.c: New.


Added:
    trunk/gcc/testsuite/gcc.target/powerpc/pr78604.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/rs6000/rs6000.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-553489-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 20:55:39 2017
Return-Path: <gcc-bugs-return-553489-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120883 invoked by alias); 8 Feb 2017 20:55:39 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 117554 invoked by uid 48); 8 Feb 2017 20:55:26 -0000
From: "pthaugen at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/78604] [7 regression] test case gcc.target/powerpc/p8vector-vectorize-1.c fails starting with r242750
Date: Wed, 08 Feb 2017 20: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pthaugen at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: pthaugen at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-78604-4-fEUGpaCqjM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78604-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78604-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01021.txt.bz2
Content-length: 423

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

Pat Haugen <pthaugen at gcc dot gnu.org> changed:

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

--- Comment #9 from Pat Haugen <pthaugen at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-553490-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 20:58:23 2017
Return-Path: <gcc-bugs-return-553490-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 123203 invoked by alias); 8 Feb 2017 20:58: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 123088 invoked by uid 55); 8 Feb 2017 20:58:09 -0000
From: "sgk at troutmask dot apl.washington.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79430] [7 Regression] action of statement incorrectly optimised away
Date: Wed, 08 Feb 2017 20: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sgk at troutmask dot apl.washington.edu
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-79430-4-40QJhGEcEF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01022.txt.bz2
Content-length: 2534

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

--- Comment #12 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Wed, Feb 08, 2017 at 08:39:43PM +0000, juergen.reuter at desy dot de wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79430
> 
> --- Comment #11 from Jürgen Reuter <juergen.reuter at desy dot de> ---
> (In reply to Steve Kargl from comment #10)
> > On Wed, Feb 08, 2017 at 07:32:53PM +0000, juergen.reuter at desy dot de
> 
> > which may lead to conforming code suddening becoming nonconforming
> > due to violation of storage association.
> 
> Interesting. Actually, we are not setting any flags using configure options,
> except for those that libtool sets for us as default (-g -O2).
> In our code, we use everywhere variables defined as 
> real(kind=default) :: foo
> complex(kind=default) :: foo,
> and then we use a module kinds.f90 with the definitions:
>   !!! available REAL kinds               ! prec.  ! ISO     ! C
>   integer, parameter :: single    =  4   !  1.. 6 ! real32  ! c_float      
>   integer, parameter :: double    =  8   !  7..15 ! real64  ! c_double     
>   integer, parameter :: extended  = 10   ! 16..18 ! real128 ! c_long_double
>   integer, parameter :: quadruple = 16   ! 19..33 ! -1      ! c_float128  
> 
> When configuring with no flag or --with-precision=double, then in this file
> kind.f90 we 
> set
> 
>   integer, parameter :: default           = double   
> configuring with --with-precision=extended sets
> integer, parameter :: default           = extended
> and configuring with --with-precision=quadruple sets
> integer, parameter :: default           = quadruple
> 
> The integers above are determined during configure, depending on the compiler,
> and are always the same, only default is set depending on the configure option. 

The above should be fine.  This then suggests that you may have
an unstable algorithm.  Are literal constants properly decolorated,
e.g., 1.e0_default?  Are kind types included in REAL and CMPLX,
e.g., real(1.e0, default) and cmplx(1, 2, default)?

Without a reduced testcase, it will be difficult to track down 
the problem.

> Indeed, it looks as if kind=10 would be real128, but as you said this
> is wrong and was fixed by you (I guess it is not yet in the trunk, as
> of r245197 at least).

You need r245255 to get the fix.  There is, however, some discussion
as to whether I should revert the change.
>From gcc-bugs-return-553491-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 21:02:42 2017
Return-Path: <gcc-bugs-return-553491-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23940 invoked by alias); 8 Feb 2017 21:02: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 23714 invoked by uid 48); 8 Feb 2017 21:02:29 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79431] [6/7 Regression] ICE in get, at cgraph.h:397
Date: Wed, 08 Feb 2017 21: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: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc short_desc everconfirmed cf_known_to_fail
Message-ID: <bug-79431-4-9IZ0ojKiMa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79431-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79431-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01023.txt.bz2
Content-length: 1132

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-08
                 CC|                            |msebor at gcc dot gnu.org
            Summary|ICE in get, at cgraph.h:397 |[6/7 Regression] ICE in
                   |                            |get, at cgraph.h:397
     Ever confirmed|0                           |1
      Known to fail|                            |6.2.1, 7.0

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed.  Bisection of the ICE points to r229814 (gcc 6.0.0):

r229814 | jakub | 2015-11-05 10:08:08 -0500 (Thu, 05 Nov 2015) | 429 lines

Assuming the code is valid the revision that it started to be rejected with is
r203408 (gcc 4.9.0):

r203408 | jakub | 2013-10-11 05:26:50 -0400 (Fri, 11 Oct 2013) | 1006 lines
>From gcc-bugs-return-553492-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 21:03:19 2017
Return-Path: <gcc-bugs-return-553492-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25461 invoked by alias); 8 Feb 2017 21:03: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 25056 invoked by uid 48); 8 Feb 2017 21:03:11 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/39612] [5/6/7 Regression] LIM inserts loads from uninitialized local memory
Date: Wed, 08 Feb 2017 21:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.4.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc target_milestone
Message-ID: <bug-39612-4-WZnyVgtvhe@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-39612-4@http.gcc.gnu.org/bugzilla/>
References: <bug-39612-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01024.txt.bz2
Content-length: 359

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |law at redhat dot com
   Target Milestone|5.5                         |8.0
>From gcc-bugs-return-553493-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 21:12:07 2017
Return-Path: <gcc-bugs-return-553493-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 51330 invoked by alias); 8 Feb 2017 21:12: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 50965 invoked by uid 48); 8 Feb 2017 21:11:54 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79429] [6/7 Regression] ICE in add_stmt, at cp/semantics.c:385
Date: Wed, 08 Feb 2017 21:12: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: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_known_to_work keywords cf_reconfirmed_on cc everconfirmed short_desc cf_known_to_fail
Message-ID: <bug-79429-4-DYS4pke8ex@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79429-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79429-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01025.txt.bz2
Content-length: 1194

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |5.3.0
           Keywords|                            |ice-on-invalid-code
   Last reconfirmed|                            |2017-02-08
                 CC|                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1
            Summary|ICE in add_stmt, at         |[6/7 Regression] ICE in
                   |cp/semantics.c:385          |add_stmt, at
                   |                            |cp/semantics.c:385
      Known to fail|                            |6.1.0, 7.0

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed.  Bisection points to r228777 (gcc 6.0.0):

r228777 | jakub | 2015-10-13 15:06:23 -0400 (Tue, 13 Oct 2015) | 1087 lines

The revision just prior to it rejects test case in z1.cc with:

z1.cc:1:19: error: expected declaration specifiers before end of line
>From gcc-bugs-return-553494-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 21:27:41 2017
Return-Path: <gcc-bugs-return-553494-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34367 invoked by alias); 8 Feb 2017 21: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 32103 invoked by uid 48); 8 Feb 2017 21:27:28 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79258] -Wduplicated-branches false positive?
Date: Wed, 08 Feb 2017 21:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-79258-4-uAEcj8iGZs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79258-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79258-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01026.txt.bz2
Content-length: 852

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |msebor at gcc dot gnu.org
         Resolution|---                         |INVALID

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
I'd say the warning is valid.  The two branches are necessarily the same and
there's no way to make them be different because Base::state() and
Derived::state() are one and the same function, regardless of what object
m_Derived points at.  This looks to me a good example of where the warning is
particularly useful.  Thus I resolve this report as invalid.
>From gcc-bugs-return-553495-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 21:30:55 2017
Return-Path: <gcc-bugs-return-553495-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 104715 invoked by alias); 8 Feb 2017 21:30: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 104594 invoked by uid 48); 8 Feb 2017 21:30:45 -0000
From: "juergen.reuter at desy dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79430] [7 Regression] action of statement incorrectly optimised away
Date: Wed, 08 Feb 2017 21:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: juergen.reuter at desy dot de
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-79430-4-XfTnNMUbcJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01027.txt.bz2
Content-length: 3071

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

--- Comment #13 from Jürgen Reuter <juergen.reuter at desy dot de> ---
(In reply to Steve Kargl from comment #12)
> On Wed, Feb 08, 2017 at 08:39:43PM +0000, juergen.reuter at desy dot de
> wrote:
> > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79430
> > 
> > --- Comment #11 from Jürgen Reuter <juergen.reuter at desy dot de> ---
> > (In reply to Steve Kargl from comment #10)
> > > On Wed, Feb 08, 2017 at 07:32:53PM +0000, juergen.reuter at desy dot de
> > 
> > > which may lead to conforming code suddening becoming nonconforming
> > > due to violation of storage association.
> > 
> > Interesting. Actually, we are not setting any flags using configure options,
> > except for those that libtool sets for us as default (-g -O2).
> > In our code, we use everywhere variables defined as 
> > real(kind=default) :: foo
> > complex(kind=default) :: foo,
> > and then we use a module kinds.f90 with the definitions:
> >   !!! available REAL kinds               ! prec.  ! ISO     ! C
> >   integer, parameter :: single    =  4   !  1.. 6 ! real32  ! c_float      
> >   integer, parameter :: double    =  8   !  7..15 ! real64  ! c_double     
> >   integer, parameter :: extended  = 10   ! 16..18 ! real128 ! c_long_double
> >   integer, parameter :: quadruple = 16   ! 19..33 ! -1      ! c_float128  
> > 
> > When configuring with no flag or --with-precision=double, then in this file
> > kind.f90 we 
> > set
> > 
> >   integer, parameter :: default           = double   
> > configuring with --with-precision=extended sets
> > integer, parameter :: default           = extended
> > and configuring with --with-precision=quadruple sets
> > integer, parameter :: default           = quadruple
> > 
> > The integers above are determined during configure, depending on the compiler,
> > and are always the same, only default is set depending on the configure option. 
> 
> The above should be fine.  This then suggests that you may have
> an unstable algorithm.  Are literal constants properly decolorated,
> e.g., 1.e0_default?  Are kind types included in REAL and CMPLX,
> e.g., real(1.e0, default) and cmplx(1, 2, default)?
> 
> Without a reduced testcase, it will be difficult to track down 
> the problem.
> 
> > Indeed, it looks as if kind=10 would be real128, but as you said this
> > is wrong and was fixed by you (I guess it is not yet in the trunk, as
> > of r245197 at least).
> 
> You need r245255 to get the fix.  There is, however, some discussion
> as to whether I should revert the change.

Ah ok. Why? Because it is too late for anything than regression fixes now? 
As far as we can seen all our constants have valid and consistent kind type.
Any try
to reduce the code, hasn't worked. Putting print statements there are trying to
pass
the corresponding routine to an output routine to access it without the heavy
machinery of the whole program let's the problem go away.
>From gcc-bugs-return-553496-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 21:33:30 2017
Return-Path: <gcc-bugs-return-553496-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110346 invoked by alias); 8 Feb 2017 21:33: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 110088 invoked by uid 48); 8 Feb 2017 21:33:17 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79301] With -Werror=pedantic outside C++17 mode, __has_cpp_attribute(fallthrough) is nonzero but [[fallthrough]] fails
Date: Wed, 08 Feb 2017 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.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason 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-79301-4-k2ilrONuSP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79301-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79301-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01028.txt.bz2
Content-length: 574

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

--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #4)
> That said, I think e.g. for maybe_unused or nodiscard attributes we don't
> complain with -pedantic about those attributes used in C++14 code, so either
> we should do that as well, or we shouldn't do that for fallthrough either.
> Jason?

We certainly don't want to both have __has_cpp_attribute(fallthrough) non-zero
and also complain about its usage.  My inclination would be to remove the
diagnostic.
>From gcc-bugs-return-553497-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 21:36:50 2017
Return-Path: <gcc-bugs-return-553497-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10803 invoked by alias); 8 Feb 2017 21:36:50 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 10663 invoked by uid 48); 8 Feb 2017 21:36:37 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/64081] [5/6/7 Regression] r217827 prevents RTL loop unroll
Date: Wed, 08 Feb 2017 21: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: 5.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher 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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64081-4-sNy5bE0ptj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01029.txt.bz2
Content-length: 323

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

--- Comment #58 from Segher Boessenkool <segher at gcc dot gnu.org> ---
You can keep get_simple_loop_desc, find_simple_exit etc.; just make them
inline functions or similar.

I'm sceptical that this will not cause any more problems, we're deep into
stage 4 already :-/
>From gcc-bugs-return-553498-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 21:37:58 2017
Return-Path: <gcc-bugs-return-553498-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12084 invoked by alias); 8 Feb 2017 21:37:57 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 11925 invoked by uid 48); 8 Feb 2017 21:37:45 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug translation/79183] Hard coded plurals in gimple-ssa-sprintf.c:2050
Date: Wed, 08 Feb 2017 21:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: translation
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-79183-4-5gLOBvhAfd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79183-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79183-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01030.txt.bz2
Content-length: 814

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |msebor at gcc dot gnu.org
         Resolution|---                         |INVALID

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
I don't see anything wrong with the messages.  The plural form is used  when
the byte count is greater than 1.  None of the messages should be issued when
the counter is zero because writing no bytes cannot lead to truncation.  If you
have a test case to the contrary please reopen the bug and provide the test
case.
>From gcc-bugs-return-553499-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 21:38:20 2017
Return-Path: <gcc-bugs-return-553499-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12969 invoked by alias); 8 Feb 2017 21:38: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 12818 invoked by uid 48); 8 Feb 2017 21:38:06 -0000
From: "su at cs dot ucdavis.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79435] New: ICE on invalid C++ code (with member access into an incomplete type) on x86_64-linux-gnu: Segmentation fault
Date: Wed, 08 Feb 2017 21:38: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: su at cs dot ucdavis.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-79435-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01031.txt.bz2
Content-length: 2866

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

            Bug ID: 79435
           Summary: ICE on invalid C++ code (with member access into an
                    incomplete type) on x86_64-linux-gnu: Segmentation
                    fault
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: su at cs dot ucdavis.edu
  Target Milestone: ---

It should be a recent regression. 

$ g++-trunk -v
Using built-in specs.
COLLECT_GCC=g++-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/7.0.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-source-trunk/configure --enable-languages=c,c++,lto
--prefix=/usr/local/gcc-trunk --disable-bootstrap
Thread model: posix
gcc version 7.0.1 20170208 (experimental) [trunk revision 245266] (GCC)
$
$ g++-trunk -c -w small.cpp
small.cpp:3:28: internal compiler error: Segmentation fault
 template < int > int f = a.x;
                            ^
0xe1439f crash_signal
        ../../gcc-source-trunk/gcc/toplev.c:333
0x6e2a88 type_dependent_expression_p(tree_node*)
        ../../gcc-source-trunk/gcc/cp/pt.c:23832
0x8dca90 potential_constant_expression_1
        ../../gcc-source-trunk/gcc/cp/constexpr.c:5159
0x7bcd94 cp_parser_constant_expression
        ../../gcc-source-trunk/gcc/cp/parser.c:9468
0x7bd4f4 cp_parser_initializer_clause
        ../../gcc-source-trunk/gcc/cp/parser.c:21595
0x7bee8b cp_parser_initializer
        ../../gcc-source-trunk/gcc/cp/parser.c:21533
0x7ce618 cp_parser_init_declarator
        ../../gcc-source-trunk/gcc/cp/parser.c:19352
0x7d59c1 cp_parser_single_declaration
        ../../gcc-source-trunk/gcc/cp/parser.c:26720
0x7d5afc cp_parser_template_declaration_after_parameters
        ../../gcc-source-trunk/gcc/cp/parser.c:26321
0x7d6521 cp_parser_explicit_template_declaration
        ../../gcc-source-trunk/gcc/cp/parser.c:26553
0x7d6521 cp_parser_template_declaration_after_export
        ../../gcc-source-trunk/gcc/cp/parser.c:26571
0x7d6ad9 cp_parser_declaration
        ../../gcc-source-trunk/gcc/cp/parser.c:12464
0x7d6de4 cp_parser_declaration_seq_opt
        ../../gcc-source-trunk/gcc/cp/parser.c:12391
0x7d7128 cp_parser_translation_unit
        ../../gcc-source-trunk/gcc/cp/parser.c:4366
0x7d7128 c_parse_file()
        ../../gcc-source-trunk/gcc/cp/parser.c:38406
0x93f2e2 c_common_parse_file()
        ../../gcc-source-trunk/gcc/c-family/c-opts.c:1107
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
$


------------------------------------


struct A;
extern A a;
template < int > int f = a.x;
>From gcc-bugs-return-553500-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 21:39:46 2017
Return-Path: <gcc-bugs-return-553500-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14203 invoked by alias); 8 Feb 2017 21:39:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 14094 invoked by uid 55); 8 Feb 2017 21:39:31 -0000
From: "sgk at troutmask dot apl.washington.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79430] [7 Regression] action of statement incorrectly optimised away
Date: Wed, 08 Feb 2017 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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sgk at troutmask dot apl.washington.edu
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-79430-4-eN2Buq3GqP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01032.txt.bz2
Content-length: 1405

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

--- Comment #14 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Wed, Feb 08, 2017 at 09:30:45PM +0000, juergen.reuter at desy dot de wrote:
> > 
> > > Indeed, it looks as if kind=10 would be real128, but as you said this
> > > is wrong and was fixed by you (I guess it is not yet in the trunk, as
> > > of r245197 at least).
> > 
> > You need r245255 to get the fix.  There is, however, some discussion
> > as to whether I should revert the change.
> 
> Ah ok. Why? Because it is too late for anything than regression fixes now? 

That's one reason.  The other reason given is that it changes
the ABI.  I don't think the ABI change is an issue because the
ABI for libgfortran has alraedy changed, which will require 
a recompile of software.

> As far as we can seen all our constants have valid and consistent
> kind type.  Any try to reduce the code, hasn't worked. Putting print
> statements there are trying to pass the corresponding routine to an
> output routine to access it without the heavy machinery of the whole
> program let's the problem go away.

Hmmm. Adding a print statement suggests stepping off the end 
of an array, accessing memory that has been free, and argument
mismatch in a function/subroutine call.  Have you tried adding
-fcheck=all and/or running the failing code under valgrind?
>From gcc-bugs-return-553501-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 21:42:17 2017
Return-Path: <gcc-bugs-return-553501-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17487 invoked by alias); 8 Feb 2017 21:42:17 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 17332 invoked by uid 55); 8 Feb 2017 21:42:04 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug translation/79397] AltiVec spelled incorrectly in rs6000.opt
Date: Wed, 08 Feb 2017 21:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: translation
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79397-4-A6I57zU6Qr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79397-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79397-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01033.txt.bz2
Content-length: 649

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

--- Comment #3 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Author: segher
Date: Wed Feb  8 21:41:31 2017
New Revision: 245286

URL: https://gcc.gnu.org/viewcvs?rev=245286&root=gcc&view=rev
Log:
rs6000: Fix spelling of AltiVec in rs6000.opt (PR79397)

It was spelled Altivec in two user-facing messages in rs6000.opt; let's
be consistent.


        PR translation/79397
        * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
        of AltiVec.

Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/config/rs6000/rs6000.opt
>From gcc-bugs-return-553502-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 21:42:42 2017
Return-Path: <gcc-bugs-return-553502-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18369 invoked by alias); 8 Feb 2017 21:42: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 18277 invoked by uid 48); 8 Feb 2017 21:42:31 -0000
From: "freddie_chopin at op dot pl" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79436] New: [ARM Cortex-M4F] VFMA used in place of subtraction gives inexact results
Date: Wed, 08 Feb 2017 21:42: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: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: freddie_chopin at op dot pl
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcctarget attachments.created
Message-ID: <bug-79436-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01034.txt.bz2
Content-length: 2217

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

            Bug ID: 79436
           Summary: [ARM Cortex-M4F] VFMA used in place of subtraction
                    gives inexact results
           Product: gcc
           Version: 6.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: freddie_chopin at op dot pl
  Target Milestone: ---
            Target: arm-none-eabi

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

In some very specific code paths with specific optimization compiler generates
VNEG (negate) + VFMA (multiply and accumulate) instead of VSUB + VMUL. Most
likely this is not a problem in most cases, but in the test case I attach this
leads to inexact results in a well-defined code. The variable "distance", which
is basically a length of a difference of two _IDENTICAL_ vectors multiplied by
some constant factor, is expected to be 0. "x - x" for components of each
vector gives zero. "0 * 0" gives zero. "0 + 0" gives zero. "sqrtf(0)" gives
zero. "0 * x" gives 0. These are basically all the operations in the example.
However the value of "distance" is calculated to be 1.34925369e-06 and the
assertion fails.

Several notes:

1. The code seems complicated, but if I simplify it, different sequence of
instructions is generated, and the VNEG + VFMA used instead of VSUB + VMUL is
essential to the problem. To generate slightly different sequence it's enough
to uncomment the assertion that checks equality of vectors.

2. The problem appears on -O2, -O3 and -Os. It does not appear on -O1 and -Og
(probably neither with -O0, but I did not check).

3. The problem can be observed for GCC 6.3.0 and GCC 5.3.1. With or without ARM
patches.

Exact compilation command:

arm-none-eabi-g++ -Wall -Wextra -Wshadow -std=gnu++11 -g -ggdb3 -mcpu=cortex-m4
-mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O2 -ffunction-sections
-fdata-sections -fno-rtti -fno-exceptions -c vfma.cpp -o vfma.o

I also attach assembly output of the "invalid" version (-O2) and "valid"
version (-O1).
>From gcc-bugs-return-553503-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 21:43:21 2017
Return-Path: <gcc-bugs-return-553503-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19932 invoked by alias); 8 Feb 2017 21:43: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 19843 invoked by uid 48); 8 Feb 2017 21:43:12 -0000
From: "freddie_chopin at op dot pl" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79436] [ARM Cortex-M4F] VFMA used in place of subtraction gives inexact results
Date: Wed, 08 Feb 2017 21: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: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: freddie_chopin at op dot pl
X-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-79436-4-HLqPjKBRCv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79436-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79436-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01035.txt.bz2
Content-length: 256

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

--- Comment #1 from Freddie Chopin <freddie_chopin at op dot pl> ---
Created attachment 40700
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40700&action=edit
assembly dump of invalid version
>From gcc-bugs-return-553504-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 21:43:39 2017
Return-Path: <gcc-bugs-return-553504-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20939 invoked by alias); 8 Feb 2017 21:43: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 20872 invoked by uid 48); 8 Feb 2017 21:43:35 -0000
From: "freddie_chopin at op dot pl" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79436] [ARM Cortex-M4F] VFMA used in place of subtraction gives inexact results
Date: Wed, 08 Feb 2017 21: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: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: freddie_chopin at op dot pl
X-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-79436-4-Dp5G2BBifV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79436-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79436-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01036.txt.bz2
Content-length: 254

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

--- Comment #2 from Freddie Chopin <freddie_chopin at op dot pl> ---
Created attachment 40701
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40701&action=edit
assembly dump of valid version
>From gcc-bugs-return-553505-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 21:45:40 2017
Return-Path: <gcc-bugs-return-553505-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29759 invoked by alias); 8 Feb 2017 21: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 29302 invoked by uid 55); 8 Feb 2017 21:45:19 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug translation/79397] AltiVec spelled incorrectly in rs6000.opt
Date: Wed, 08 Feb 2017 21:45:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: translation
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79397-4-xgmWVxjeit@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79397-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79397-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01037.txt.bz2
Content-length: 649

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

--- Comment #4 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Author: segher
Date: Wed Feb  8 21:44:37 2017
New Revision: 245287

URL: https://gcc.gnu.org/viewcvs?rev=245287&root=gcc&view=rev
Log:
rs6000: Fix spelling of AltiVec in rs6000.opt (PR79397)

It was spelled Altivec in two user-facing messages in rs6000.opt; let's
be consistent.


        PR translation/79397
        * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
        of AltiVec.

Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/config/rs6000/rs6000.opt
>From gcc-bugs-return-553506-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 21:46:06 2017
Return-Path: <gcc-bugs-return-553506-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30674 invoked by alias); 8 Feb 2017 21:46: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 30554 invoked by uid 48); 8 Feb 2017 21:45:48 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug translation/79397] AltiVec spelled incorrectly in rs6000.opt
Date: Wed, 08 Feb 2017 21:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: translation
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
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: bug_status resolution
Message-ID: <bug-79397-4-CENQgqmBCV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79397-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79397-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01038.txt.bz2
Content-length: 446

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

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

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

--- Comment #5 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Fixed everywhere.
>From gcc-bugs-return-553507-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 21:46:35 2017
Return-Path: <gcc-bugs-return-553507-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32556 invoked by alias); 8 Feb 2017 21: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 31460 invoked by uid 48); 8 Feb 2017 21:46:21 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/64081] [5/6/7 Regression] r217827 prevents RTL loop unroll
Date: Wed, 08 Feb 2017 21: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: 5.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64081-4-mNq33yNlx8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01039.txt.bz2
Content-length: 285

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

--- Comment #59 from Jeffrey A. Law <law at redhat dot com> ---
The work is still incredibly helpful.  After the analysis work is done we can
still decide to defer to gcc-8 stage1 if we feel it's too risky to tackle right
now.
>From gcc-bugs-return-553508-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 21:50:39 2017
Return-Path: <gcc-bugs-return-553508-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36579 invoked by alias); 8 Feb 2017 21:50: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 36326 invoked by uid 48); 8 Feb 2017 21:50:26 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/79386] [7 Regression] ICE: segmentation fault in cprop w/ -O2 on 32-bit BE powerpc
Date: Wed, 08 Feb 2017 21:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-79386-4-p6PqVnv3L2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79386-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79386-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01040.txt.bz2
Content-length: 522

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

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

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

--- Comment #6 from Jeffrey A. Law <law at redhat dot com> ---
Fixed with Jakub's patch on the trunk.
>From gcc-bugs-return-553509-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 22:34:03 2017
Return-Path: <gcc-bugs-return-553509-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32947 invoked by alias); 8 Feb 2017 22: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 32779 invoked by uid 48); 8 Feb 2017 22:33:50 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79110] FAIL: gcc.dg/format/pr78304.c     (test for warnings, line 9)
Date: Wed, 08 Feb 2017 22: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-79110-4-dzbJM8fawv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79110-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79110-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01041.txt.bz2
Content-length: 706

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-02-08
                 CC|                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
I don't have access to an hppa-unknown-linux-gnu system to confirm what the
problem is.  Can you show us the full compiler output, including the excess
errors?
>From gcc-bugs-return-553510-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 22:38:41 2017
Return-Path: <gcc-bugs-return-553510-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68365 invoked by alias); 8 Feb 2017 22:38: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 68169 invoked by uid 48); 8 Feb 2017 22:38:29 -0000
From: "jsm28 at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug translation/79183] Hard coded plurals in gimple-ssa-sprintf.c:2050
Date: Wed, 08 Feb 2017 22:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: translation
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jsm28 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 resolution everconfirmed
Message-ID: <bug-79183-4-BdHj7poaTw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79183-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79183-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01042.txt.bz2
Content-length: 735

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

Joseph S. Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |NEW
   Last reconfirmed|                            |2017-02-08
         Resolution|INVALID                     |---
     Ever confirmed|0                           |1

--- Comment #3 from Joseph S. Myers <jsm28 at gcc dot gnu.org> ---
Messages involving plurals need to go through ngettext (via warning_n etc.
functions) because some languages have more than just singular and plural forms
(e.g. separate forms to use when n = 2 from n > 2).
>From gcc-bugs-return-553511-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 22:44:55 2017
Return-Path: <gcc-bugs-return-553511-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106532 invoked by alias); 8 Feb 2017 22:44: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 106264 invoked by uid 48); 8 Feb 2017 22:44:42 -0000
From: "jsm28 at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug translation/79183] Hard coded plurals in gimple-ssa-sprintf.c:2050
Date: Wed, 08 Feb 2017 22:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: translation
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jsm28 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-79183-4-wMuS1GkKtc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79183-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79183-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01043.txt.bz2
Content-length: 272

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

--- Comment #4 from Joseph S. Myers <jsm28 at gcc dot gnu.org> ---
See hr.po, ru.po, sr.po and uk.po for GCC translations involving more than just
singular and plural (look at the Plural-Forms line in the .po file).
>From gcc-bugs-return-553512-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 22:48:44 2017
Return-Path: <gcc-bugs-return-553512-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109784 invoked by alias); 8 Feb 2017 22:48: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 109518 invoked by uid 48); 8 Feb 2017 22:48:02 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79084] No warning for implicit double with complex specifier
Date: Wed, 08 Feb 2017 22: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: 7.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 cf_reconfirmed_on cc see_also everconfirmed
Message-ID: <bug-79084-4-vrlq64ZDzo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79084-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79084-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01044.txt.bz2
Content-length: 1158

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-08
                 CC|                            |msebor at gcc dot gnu.org
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=78989,
                   |                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=78000,
                   |                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=71613
     Ever confirmed|0                           |1

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed.  I'm looking for a good pre-existing bug with another example of
this problem to link this to.  PR71613 and PR78000 look close, as does PR78989.
>From gcc-bugs-return-553513-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 23:01:33 2017
Return-Path: <gcc-bugs-return-553513-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128895 invoked by alias); 8 Feb 2017 23: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 128768 invoked by uid 48); 8 Feb 2017 23:01:20 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug translation/79183] Hard coded plurals in gimple-ssa-sprintf.c:2050
Date: Wed, 08 Feb 2017 23:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: translation
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79183-4-aWfZZ5tVYl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79183-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79183-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01045.txt.bz2
Content-length: 372

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

--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
I see, thanks for the pointer.  Looks like warning_n() is used in
gcc/ipa-devirt.c and error_n() in gcc/cp/pt.c.  gimple-ssa-sprintf.c contains
between 7 and 23 instances of these "%wu byte" vs "%wu bytes" forms so it will
be a fun exercise to fix.
>From gcc-bugs-return-553514-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 23:06:55 2017
Return-Path: <gcc-bugs-return-553514-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4366 invoked by alias); 8 Feb 2017 23: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 4098 invoked by uid 48); 8 Feb 2017 23:06:39 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79436] [ARM Cortex-M4F] VFMA used in place of subtraction gives inexact results
Date: Wed, 08 Feb 2017 23:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 6.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: bug_status resolution
Message-ID: <bug-79436-4-wAxi05a9hG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79436-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79436-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01046.txt.bz2
Content-length: 1219

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

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

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

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
https://gcc.gnu.org/onlinedocs/gcc-6.3.0/gcc/Optimize-Options.html#index-ffp-contract-715

-ffp-contract=style
-ffp-contract=off disables floating-point expression contraction.
-ffp-contract=fast enables floating-point expression contraction such as
forming of fused multiply-add operations if the target has native support for
them. -ffp-contract=on enables floating-point expression contraction if allowed
by the language standard. This is currently not implemented and treated equal
to -ffp-contract=off.
The default is -ffp-contract=fast. 

In this case what is happening is the following:

we get:
a * b - a * b;
Which gets transformed into:
c = a*b
c1 = -c
d = a*b + (c1)

Which is correct but not what you are expecting.  See above above about
-ffp-contract=.
>From gcc-bugs-return-553515-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 23:07:48 2017
Return-Path: <gcc-bugs-return-553515-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5644 invoked by alias); 8 Feb 2017 23: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 5509 invoked by uid 48); 8 Feb 2017 23:07:34 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79083] GCC incorrectly compiles calls to constexpr static methods via a non-constexpr variable
Date: Wed, 08 Feb 2017 23: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: 7.0
X-Bugzilla-Keywords: accepts-invalid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed cf_known_to_fail
Message-ID: <bug-79083-4-LuUwj321iz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79083-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79083-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01047.txt.bz2
Content-length: 654

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-08
                 CC|                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1
      Known to fail|                            |5.3.0, 6.3.0, 7.0

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed with today's top of trunk (GCC 7).
>From gcc-bugs-return-553516-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 23:11:54 2017
Return-Path: <gcc-bugs-return-553516-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8859 invoked by alias); 8 Feb 2017 23:11: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 8709 invoked by uid 48); 8 Feb 2017 23:11:41 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79070] Unhelpful error message for ambiguous type in template parameter
Date: Wed, 08 Feb 2017 23: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.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-79070-4-cb7fBjVUeR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79070-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79070-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01048.txt.bz2
Content-length: 613

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-08
                 CC|                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed.
>From gcc-bugs-return-553517-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 23:22:30 2017
Return-Path: <gcc-bugs-return-553517-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66789 invoked by alias); 8 Feb 2017 23:22: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 66618 invoked by uid 48); 8 Feb 2017 23:22:15 -0000
From: "juergen.reuter at desy dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79430] [7 Regression] action of statement incorrectly optimised away
Date: Wed, 08 Feb 2017 23: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: juergen.reuter at desy dot de
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-79430-4-aqk7CLg9KO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01049.txt.bz2
Content-length: 291

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

--- Comment #15 from Jürgen Reuter <juergen.reuter at desy dot de> ---
With -fcheck=all nothing is flagged, but the test works as expected, as well
as if I (independently from the fcheck) compile everything with -fno-inline .
>From gcc-bugs-return-553518-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 08 23:23:01 2017
Return-Path: <gcc-bugs-return-553518-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67978 invoked by alias); 8 Feb 2017 23:23: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 67791 invoked by uid 48); 8 Feb 2017 23:22:47 -0000
From: "danglin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79110] FAIL: gcc.dg/format/pr78304.c     (test for warnings, line 9)
Date: Wed, 08 Feb 2017 23: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.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: danglin 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-79110-4-xJnNDZgjWz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79110-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79110-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01050.txt.bz2
Content-length: 445

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

John David Anglin <danglin at gcc dot gnu.org> changed:

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

--- Comment #2 from John David Anglin <danglin at gcc dot gnu.org> ---
No longer fails.
>From gcc-bugs-return-553519-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 00:04:57 2017
Return-Path: <gcc-bugs-return-553519-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82205 invoked by alias); 9 Feb 2017 00:04:57 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 82088 invoked by uid 48); 9 Feb 2017 00:04:43 -0000
From: "asbeer at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgcc/66955] Bootstrap error: libcc1 compiled as shared library despite --disable-shared
Date: Thu, 09 Feb 2017 00:04: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: 5.2.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: asbeer 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-66955-4-zVPRTghO1N@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66955-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66955-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01051.txt.bz2
Content-length: 1043

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

Austin Beer <asbeer at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |asbeer at gmail dot com

--- Comment #1 from Austin Beer <asbeer at gmail dot com> ---
I also encountered this error while trying to build GCC 5.4.0. I don't know
whether or not this issue is still present in GCC 6 or GCC 7. I've worked
around the issue by using --disable-libcc1.

Configuration that failed:
--disable-multilib --disable-nls --disable-libsanitizer --disable-shared
--enable-languages=c,c++,lto --enable-threads=posix --enable-__cxa_atexit

Configuration that succeeded:
--disable-multilib --disable-nls --disable-libsanitizer --disable-shared
--disable-libcc1 --enable-languages=c,c++,lto --enable-threads=posix
--enable-__cxa_atexit

The following email mentions this issue as well:
https://gcc.gnu.org/ml/gcc/2015-02/msg00128.html
>From gcc-bugs-return-553520-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 00:56:19 2017
Return-Path: <gcc-bugs-return-553520-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21292 invoked by alias); 9 Feb 2017 00:56: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 20902 invoked by uid 48); 9 Feb 2017 00:56:05 -0000
From: "mizvekov at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/79437] New: Redundant move instruction when getting sign bit of double on 32-bit architecture
Date: Thu, 09 Feb 2017 00:56: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: 6.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mizvekov 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-79437-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01052.txt.bz2
Content-length: 3431

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

            Bug ID: 79437
           Summary: Redundant move instruction when getting sign bit of
                    double on 32-bit architecture
           Product: gcc
           Version: 6.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mizvekov at gmail dot com
  Target Milestone: ---

Testing this simple example:

#ifdef DO_BOOL
bool
#else
int
#endif
sign(double a) noexcept {
    __UINT64_TYPE__ r;
    __builtin_memcpy(&r, &a, sizeof(r));
    return r >> 63 & 1;
}

Compiling with: -march=i686 -m32 -Os -fomit-frame-pointer

With DO_BOOL defined (bool sign(double)), this is the code generated:

sign(double):
        mov     eax, DWORD PTR [esp+8]
        shr     eax, 31
        ret

Without DO_BOOL (int sign(double)), this is the code generated instead:

sign(double):
        mov     edx, DWORD PTR [esp+8]
        mov     eax, edx
        shr     eax, 31
        ret

Notice the redundant moving around, from edx to eax instead of straight to eax.

These are my findings so far when investigating this:

* There is no difference between punning with memcpy or with union.

* Problem only happens when punning from floating point to integer.
Variants of the sign function that accept a void* or an uint64 directly are not
affected (ie either retuning bool or int result in the same optimal code).

* Problem only happens when punning to uint64. When punning to uint32[2], ie:

sign(double a) noexcept {
    __UINT32_TYPE__ r[2];
    __builtin_memcpy(&r, &a, sizeof(r));
    return r[1] >> 31 & 1;
}

then again optimal code generation is performed in both cases.

* Inspecting the results of -fdump-tree-all reveals the following
transformation happens early on (on -tree-original already)

--- build_bool/test.cc.003t.original    2017-02-08 22:07:22.749603900 -0200
+++ build_int/test.cc.003t.original     2017-02-08 22:07:11.675433300 -0200
@@ -1,5 +1,5 @@

-;; Function bool sign_mcpy1(double) (null)
+;; Function int sign_mcpy1(double) (null)
 ;; enabled by -tree-original


@@ -10,7 +10,7 @@
         long long unsigned int r;
     <<cleanup_point <<< Unknown tree: expr_stmt
   (void) __builtin_memcpy ((void *) &r, (const void *) &a, 8) >>>>>;
-    return <retval> = (signed long long) r < 0;
+    return <retval> = (int) (r >> 63);
   }
    >>>;

This basic structure persists until past .211t.optimized:

--- build_bool/test.cc.211t.optimized   2017-02-08 22:07:22.743595700 -0200
+++ build_int/test.cc.211t.optimized    2017-02-08 22:07:11.670441000 -0200
@@ -1,16 +1,16 @@

-;; Function bool sign_mcpy1(double) (_Z10sign_mcpy1d, funcdef_no=0,
decl_uid=1665, cgraph_uid=0, symbol_order=0)
+;; Function int sign_mcpy1(double) (_Z10sign_mcpy1d, funcdef_no=0,
decl_uid=1665, cgraph_uid=0, symbol_order=0)

-bool sign_mcpy1(double) (double a)
+int sign_mcpy1(double) (double a)
 {
   long long unsigned int _2;
-  signed long long r.1_3;
-  bool _4;
+  long long unsigned int _3;
+  int _4;

   <bb 2>:
   _2 = VIEW_CONVERT_EXPR<long long unsigned int>(a_5(D));
-  r.1_3 = (signed long long) _2;
-  _4 = r.1_3 < 0;
+  _3 = _2 >> 63;
+  _4 = (int) _3;
   return _4;

 }

So, the return bool case gets a different optimization early (at the
front-end?), and later stages can't fix it.
>From gcc-bugs-return-553521-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 00:59:40 2017
Return-Path: <gcc-bugs-return-553521-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31695 invoked by alias); 9 Feb 2017 00:59: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 31500 invoked by uid 48); 9 Feb 2017 00:59:27 -0000
From: "mizvekov at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/79437] Redundant move instruction when getting sign bit of double on 32-bit architecture
Date: Thu, 09 Feb 2017 00:59: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: 6.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mizvekov 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-79437-4-zDAEK6Itgm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79437-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79437-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01053.txt.bz2
Content-length: 315

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

--- Comment #1 from Matheus Izvekov <mizvekov at gmail dot com> ---
Forgot to mention above, all gcc versions including the unreleased 7.0 and
below as far as I could test (4.6) are affected by this.

For comparison, clang generates optimal code for all cases.
>From gcc-bugs-return-553522-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 02:13:25 2017
Return-Path: <gcc-bugs-return-553522-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99433 invoked by alias); 9 Feb 2017 02:13: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 99251 invoked by uid 48); 9 Feb 2017 02:13:05 -0000
From: "egall at gwmail dot gwu.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/42065] DWARF .debug_macinfo contains unused macros
Date: Thu, 09 Feb 2017 02:13: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: 4.5.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: minor
X-Bugzilla-Who: egall at gwmail dot gwu.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-42065-4-gKpIGBln0B@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-42065-4@http.gcc.gnu.org/bugzilla/>
References: <bug-42065-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01054.txt.bz2
Content-length: 579

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

Eric Gallager <egall at gwmail dot gwu.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |egall at gwmail dot gwu.edu

--- Comment #4 from Eric Gallager <egall at gwmail dot gwu.edu> ---
If -feliminate-unused-debug-symbols and/or -feliminate-unused-debug-types start
removing these, I'd want them to turn on -Wunused-macros automatically for me
as well so I can know about it
>From gcc-bugs-return-553523-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 02:25:16 2017
Return-Path: <gcc-bugs-return-553523-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107984 invoked by alias); 9 Feb 2017 02:25: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 102291 invoked by uid 48); 9 Feb 2017 02:25:01 -0000
From: "egall at gwmail dot gwu.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79433] __has_include reports wrong result for std headers that #error on __cplusplus
Date: Thu, 09 Feb 2017 02: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: egall at gwmail dot gwu.edu
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79433-4-MJWC7NZSk4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01055.txt.bz2
Content-length: 802

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

Eric Gallager <egall at gwmail dot gwu.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |egall at gwmail dot gwu.edu

--- Comment #6 from Eric Gallager <egall at gwmail dot gwu.edu> ---
(In reply to Marc Mutz from comment #5)
> Andrew, you're taking the easy way out. It might be that it works as
> implemented, but that behaviour is useless.
> 
> Please explain how one should detect, in a portable way, whether string_view
> and experimental::string_view is available, if not by headers check.

Do an autoconf test for it, AC_CHECK_HEADERS tests whether including the header
actually compiles.
>From gcc-bugs-return-553524-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 02:52:27 2017
Return-Path: <gcc-bugs-return-553524-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106102 invoked by alias); 9 Feb 2017 02: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 105960 invoked by uid 48); 9 Feb 2017 02:52:14 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79433] __has_include reports wrong result for std headers that #error on __cplusplus
Date: Thu, 09 Feb 2017 02: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79433-4-4DZUFUoBiL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01056.txt.bz2
Content-length: 3031

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

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Marc Mutz from comment #1)
> And no, checking __cplusplus in addition is not an option, since many
> compilers, GCC included (__cplusplus==1, remember?), do not necessarily bump
> __cplusplus when they implement enough core features to make something like
> string_view (which can be implemented in C++11 just fine) work.

I don't follow this comment. The __cplusplus==1 bug was fixed years ago (GCC
4.7.0) and since then the macro has always been bumped when a new -std option
is supported. If it wasn't bumped, the #error directives that are behind this
bug report wouldn't work!

So while some other implementations do make <string_view> available for C++11
mode, GCC is not one of them, and I don't understand the "GCC included" part of
your comment.

If you said that some compilers make <string_view> available without -std=c++17
(or equivalent) so checking __cplusplus > 201402L would prevent using
<string_view> when it's actually usable, then that would be a valid argument.
It's not about bumping __cplusplus or not bumping it, it's about which -std
option is needed for the header to be usable. That varies between compilers, so
checking "__has_include(<string_view> && __cplusplus > 201402L" works, and is
portable, but is overly conservative.

(In reply to Marc Mutz from comment #5)
> Please explain how one should detect, in a portable way, whether string_view
> and experimental::string_view is available, if not by headers check.

These should work portably and correctly:

#ifdef __has_include
#if __has_include(<string_view>) && __cplusplus > 201402L

#ifdef __has_include
#if __has_include(<experimental/string_view>) && __cplusplus >= 201402L

As I said, they're overly conservative, but they shouldn't give false
positives, only false negatives.


I brought the problem up on IRC a few months ago:

<jwakely>      would it be unthinkably ugly to give #include hardcoded
knowledge of standard library headers, and which -std option enables them?
<jwakely>      so that #include <thread> would automatically skip the stdinc
paths if -std=c++98 ?
<jwakely>      otherwise __has_include(<thread>) says yes, but including it
barfs
<jwakely>      skipping the stdinc paths would allow users to provide their own
fallbacks for when the standard one is not present (or rather, is present, but
gets skipped)
<jwakely>      an alternative would be to put c++11 headers in a new sub-dir of
$includedir/c++/$gccver/ and only add it to the include paths for -std=c++11
and up
<jwakely>      and similarly for c++14 and c++17 headers
<jwakely>      either solution is a bit smelly
<V-ille>       as discussed privately, it seems too smelly to strive for, as
users can check both __cplusplus and __has_include
<V-ille>       and once the include part has been thus properly ifdeffed not to
barf, the rest of the code can use a feature macro
>From gcc-bugs-return-553525-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 02:54:10 2017
Return-Path: <gcc-bugs-return-553525-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126799 invoked by alias); 9 Feb 2017 02:54: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 109653 invoked by uid 48); 9 Feb 2017 02:53:56 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79433] __has_include reports wrong result for std headers that #error on __cplusplus
Date: Thu, 09 Feb 2017 02: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79433-4-5IBvJrArkQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01057.txt.bz2
Content-length: 335

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

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I guess another, novel, option would be a __try_include directive:

#ifdef __try_include
# if __try_include(<string_view>)
// it was included without error
# else
// it wasn't found, or gave an error
# endif
#endif
>From gcc-bugs-return-553526-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 03:17:38 2017
Return-Path: <gcc-bugs-return-553526-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79961 invoked by alias); 9 Feb 2017 03:17: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 79384 invoked by uid 48); 9 Feb 2017 03:17:17 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79430] [7 Regression] action of statement incorrectly optimised away
Date: Thu, 09 Feb 2017 03: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jvdelisle 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: cc
Message-ID: <bug-79430-4-ox9XQAMeez@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01058.txt.bz2
Content-length: 746

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

Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:

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

--- Comment #16 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
(In reply to Jürgen Reuter from comment #15)
> With -fcheck=all nothing is flagged, but the test works as expected, as well
> as if I (independently from the fcheck) compile everything with -fno-inline .

Also compile with -Wall and see if anything pops out. 

Try valgrind on executable compiled with and without the -fno-inline as well.
>From gcc-bugs-return-553527-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 03:50:00 2017
Return-Path: <gcc-bugs-return-553527-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39970 invoked by alias); 9 Feb 2017 03:49: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 39724 invoked by uid 48); 9 Feb 2017 03:49:49 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79435] [7 Regression] ICE on invalid C++ code (with member access into an incomplete type) on x86_64-linux-gnu: Segmentation fault
Date: Thu, 09 Feb 2017 03:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc short_desc everconfirmed
Message-ID: <bug-79435-4-33cEAY8quG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79435-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79435-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01059.txt.bz2
Content-length: 1756

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |error-recovery,
                   |                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-09
                 CC|                            |msebor at gcc dot gnu.org
            Summary|ICE on invalid C++ code     |[7 Regression] ICE on
                   |(with member access into an |invalid C++ code (with
                   |incomplete type) on         |member access into an
                   |x86_64-linux-gnu:           |incomplete type) on
                   |Segmentation fault          |x86_64-linux-gnu:
                   |                            |Segmentation fault
     Ever confirmed|0                           |1

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed.  I get the following output without -w:

t.C:4:10: warning: ‘a’ has incomplete type
 extern A a;
          ^
t.C:3:8: note: forward declaration of ‘struct A’
 struct A;
        ^
t.C:5:28: internal compiler error: Segmentation fault
 template < int > int f = a.x;
                            ^

Bisection points to r245223 (gcc 7.0.1):

r245223 | jason | 2017-02-06 16:12:13 -0500 (Mon, 06 Feb 2017) | 4 lines

        PR c++/71193 - incomplete types in templates

        * parser.c (cp_parser_postfix_dot_deref_expression): In a template
        handle incomplete type by pedwarning and then treating as dependent.
>From gcc-bugs-return-553528-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 07:07:52 2017
Return-Path: <gcc-bugs-return-553528-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44664 invoked by alias); 9 Feb 2017 07:07:51 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 44350 invoked by uid 48); 9 Feb 2017 07:07:36 -0000
From: "juergen.reuter at desy dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79430] [7 Regression] action of statement incorrectly optimised away
Date: Thu, 09 Feb 2017 07: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.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: juergen.reuter at desy dot de
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-79430-4-nHj0TBEQyr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01060.txt.bz2
Content-length: 789

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

--- Comment #17 from Jürgen Reuter <juergen.reuter at desy dot de> ---
(In reply to Jerry DeLisle from comment #16)
> (In reply to Jürgen Reuter from comment #15)
> > With -fcheck=all nothing is flagged, but the test works as expected, as well
> > as if I (independently from the fcheck) compile everything with -fno-inline .
> 
> Also compile with -Wall and see if anything pops out. 
> 
> Try valgrind on executable compiled with and without the -fno-inline as well.

-Wall shows only a lot of unused dummy arguments which are unavoidable for
polymorphism . But when compiled with -Wall also the problem doesn't show up.
We will try to run valgrind on the code without flags and with -fno-inline as
well.
>From gcc-bugs-return-553529-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 07:19:30 2017
Return-Path: <gcc-bugs-return-553529-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74555 invoked by alias); 9 Feb 2017 07:19: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 73502 invoked by uid 48); 9 Feb 2017 07:19:16 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/79438] New: [7 Regression] ICE during RA w/ -O3 (or -Ofast) -funroll-loops for 32-bit BE powerpc target
Date: Thu, 09 Feb 2017 07:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code, ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: asolokha at gmx dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget
Message-ID: <bug-79438-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01061.txt.bz2
Content-length: 5162

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

            Bug ID: 79438
           Summary: [7 Regression] ICE during RA w/ -O3 (or -Ofast)
                    -funroll-loops for 32-bit BE powerpc target
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, ra
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---
            Target: powerpc-e500v2-linux-gnuspe

1. gcc-7.0.0-alpha20170205 snapshot fails to compile the following snippet w/
-O3 (or -Ofast) -funroll-loops:

int uq;
short int au;

void
sa (int na)
{
  int i7;

  for (i7 = 0; i7 < 81; ++i7)
    {
      uq ^= 1;
      au ^= na;
    }
}

% powerpc-e500v2-linux-gnuspe-gcc-7.0.0-alpha20170205 -O3 -funroll-loops -c
t0xyp7os.c 
t0xyp7os.c: In function 'sa':
t0xyp7os.c:14:1: internal compiler error: in lra_set_insn_recog_data, at
lra.c:965
 }
 ^
0x30704833833 lra_set_insn_recog_data(rtx_insn*)
       
/var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-7.0.0_alpha20170205/work/gcc-7-20170205/gcc/lra.c:963
0x30704834a07 lra_get_insn_recog_data
       
/var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-7.0.0_alpha20170205/work/gcc-7-20170205/gcc/lra-int.h:487
0x30704834a07 lra_update_insn_regno_info(rtx_insn*)
       
/var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-7.0.0_alpha20170205/work/gcc-7-20170205/gcc/lra.c:1585
0x30704834e60 lra_push_insn_1
       
/var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-7.0.0_alpha20170205/work/gcc-7-20170205/gcc/lra.c:1736
0x30704834e60 lra_push_insn(rtx_insn*)
       
/var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-7.0.0_alpha20170205/work/gcc-7-20170205/gcc/lra.c:1744
0x307048350ff push_insns
       
/var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-7.0.0_alpha20170205/work/gcc-7-20170205/gcc/lra.c:1787
0x30704835702 lra_process_new_insns(rtx_insn*, rtx_insn*, rtx_insn*, char
const*)
       
/var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-7.0.0_alpha20170205/work/gcc-7-20170205/gcc/lra.c:1845
0x3070484d747 curr_insn_transform
       
/var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-7.0.0_alpha20170205/work/gcc-7-20170205/gcc/lra-constraints.c:4242
0x3070484f1c6 lra_constraints(bool)
       
/var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-7.0.0_alpha20170205/work/gcc-7-20170205/gcc/lra-constraints.c:4732
0x30704836522 lra(_IO_FILE*)
       
/var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-7.0.0_alpha20170205/work/gcc-7-20170205/gcc/lra.c:2378
0x307047e3570 do_reload
       
/var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-7.0.0_alpha20170205/work/gcc-7-20170205/gcc/ira.c:5400
0x307047e3570 execute
       
/var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-7.0.0_alpha20170205/work/gcc-7-20170205/gcc/ira.c:5584

2. Turning LRA off yields the following:

% powerpc-e500v2-linux-gnuspe-gcc-7.0.0-alpha20170205 -O3 -funroll-loops -c
t0xyp7os.c -mno-lra
t0xyp7os.c: In function 'sa':
t0xyp7os.c:14:1: error: unrecognizable insn:
 }
 ^
(insn 194 77 53 4 (set (const_vector:V4HI [
                (const_int 0 [0])
                (const_int 0 [0])
                (const_int 0 [0])
                (const_int 0 [0])
            ])
        (reg:V4HI 9 9)) "t0xyp7os.c":12 -1
     (nil))
t0xyp7os.c:14:1: internal compiler error: in extract_insn, at recog.c:2311
0x2d7dca3c505 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
       
/var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-7.0.0_alpha20170205/work/gcc-7-20170205/gcc/rtl-error.c:108
0x2d7dca3c55c _fatal_insn_not_found(rtx_def const*, char const*, int, char
const*)
       
/var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-7.0.0_alpha20170205/work/gcc-7-20170205/gcc/rtl-error.c:116
0x2d7dca076af extract_insn(rtx_insn*)
       
/var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-7.0.0_alpha20170205/work/gcc-7-20170205/gcc/recog.c:2311
0x2d7dca0775f extract_insn_cached(rtx_insn*)
       
/var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-7.0.0_alpha20170205/work/gcc-7-20170205/gcc/recog.c:2201
0x2d7dc72b68b cleanup_subreg_operands(rtx_insn*)
       
/var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-7.0.0_alpha20170205/work/gcc-7-20170205/gcc/final.c:3138
0x2d7dca3a107 reload(rtx_insn*, int)
       
/var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-7.0.0_alpha20170205/work/gcc-7-20170205/gcc/reload1.c:1235
0x2d7dc8af1fe do_reload
       
/var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-7.0.0_alpha20170205/work/gcc-7-20170205/gcc/ira.c:5412
0x2d7dc8af1fe execute
       
/var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-7.0.0_alpha20170205/work/gcc-7-20170205/gcc/ira.c:5584
>From gcc-bugs-return-553530-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 07:31:29 2017
Return-Path: <gcc-bugs-return-553530-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39167 invoked by alias); 9 Feb 2017 07:31: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 38942 invoked by uid 48); 9 Feb 2017 07:31:09 -0000
From: "freddie_chopin at op dot pl" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79436] [ARM Cortex-M4F] VFMA used in place of subtraction gives inexact results
Date: Thu, 09 Feb 2017 07: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: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: freddie_chopin at op dot pl
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-79436-4-AGKy9TF9qJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79436-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79436-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01062.txt.bz2
Content-length: 1525

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

--- Comment #4 from Freddie Chopin <freddie_chopin at op dot pl> ---
Hello Andrew and thanks for your answer.

Generally I don't care about the sequence of operations or the exact
instructions that get generated, but in this case this default behaviour
produces invalid results.

Generally the whole calculations are like this:
mx = ex - sx;
my = ey - sy;
distance = sqrtf(mx * mx + my * my) * constant;

The important thing here is that ex and sx are bitwise identical, just as ey
and sy. Thus everything above can be transformed to:

mx = x - x;
my = y - y;
distance = sqrtf(mx * mx + my * my) * constant;

and then:

mx = 0;
my = 0;
distance = sqrtf(0 * 0 + 0 * 0) * constant;

However you rearrange that, the expected result is 0 and I see no place for
"typical" floating point inaccuracies here. Let me reiterate - "startVector"
and "endVector" in my test case are bitwise identical. Yet the code produces
1.34925369e-06 at the end...

The same code compiled at -O2 for x86-64 does not assert. I don't know x86-64
assembly, but I'm pretty sure that it supports this kind of instructions.

If the results of VFMA are considered "good enough" I think that the default
value of -ffp-contract should be changed to "off" - after all
-funsafe-math-optimizations or -ffast-math are not enabled by default either.

BTW - VFMA is used also with "-std=c++11".

Thus I think that the bug is not invalid and I ask you to reconsider. Thanks in
advance!
>From gcc-bugs-return-553531-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 07:39:15 2017
Return-Path: <gcc-bugs-return-553531-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48599 invoked by alias); 9 Feb 2017 07: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 48511 invoked by uid 48); 9 Feb 2017 07:39:00 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79436] [ARM Cortex-M4F] VFMA used in place of subtraction gives inexact results
Date: Thu, 09 Feb 2017 07:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 6.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:
Message-ID: <bug-79436-4-WHpCzMe2Mg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79436-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79436-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01063.txt.bz2
Content-length: 988

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

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
"this default behaviour produces invalid results."

No.
Read http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.22.6768

> The same code compiled at -O2 for x86-64 does not assert. 
That because the default x86_64 target does not have the fused multiple add
instruction.  On a newer Intel (or AMD) machine, add -march=naitve and you will
see the same behavior.

You are not understand what fused multiple add instruction does and how
floating point works.  

VFMA is not just multiply and accumulate but rather fused multiply and add. 
The multiplication is done in infinite precision and then the add is done in
that same infinite precision and then a round happens down to double.  Instead
of what happens with -ffp-contract=off which is not to used the fused multiple
add instruction which means round between the multiply and addition.
>From gcc-bugs-return-553532-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 07:46:00 2017
Return-Path: <gcc-bugs-return-553532-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71496 invoked by alias); 9 Feb 2017 07:46: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 71389 invoked by uid 48); 9 Feb 2017 07:45:45 -0000
From: "marc.mutz at kdab dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79433] __has_include reports wrong result for std headers that #error on __cplusplus
Date: Thu, 09 Feb 2017 07:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marc.mutz at kdab 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-79433-4-nTIbVcWy6N@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01064.txt.bz2
Content-length: 1894

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

Marc Mutz <marc.mutz at kdab dot com> changed:

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

--- Comment #9 from Marc Mutz <marc.mutz at kdab dot com> ---
__has_include these days is defined by SD-6, and while not spelled out in
normative text, the intent is very much for it to be able to detect presence of
a header for inclusion. Quoting from
https://isocpp.org/std/standing-documents/sd-6-sg10-feature-test-recommendations:

 This demonstrates a way to use a library optional facility only if it is
available.

    #ifdef __has_include
    #  if __has_include(<optional>)
    #    include <optional>
    #    define have_optional 1
    #  elif __has_include(<experimental/optional>)
    #    include <experimental/optional>
    #    define have_optional 1
    #    define experimental_optional
    #  else
    #    define have_optional 0
    #  endif
    #endif

So, IMHO, you do have a bug here, because this example does not work as
intended by its defining norm.

Absent any proof to the contrary, I believe that in order to conform to SD-6,
you have to move such headers under a c++1{1,4,z}/ subdir which only gets added
to the include path if the resp. -std is in effect. This will make the example
from SD-6 work, as well as enabling the use-case Jonathan mentioned in the IRC
log.

Note that removing the #error from the header files, so they can at least be
included, if present, and a corresponding __cpp_lib macro can be evaluated is
still not conforming to SD-6, since the example assumes that availability of
the header implies usability without further checks, making __cpp_lib macros
useful for versioning
>From gcc-bugs-return-553533-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 07:47:57 2017
Return-Path: <gcc-bugs-return-553533-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73692 invoked by alias); 9 Feb 2017 07:47: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 73477 invoked by uid 55); 9 Feb 2017 07:47:45 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/69823] [6/7 Regression] internal compiler error: in create_pw_aff_from_tree, at graphite-sese-to-poly.c:445
Date: Thu, 09 Feb 2017 07: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: 6.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: P4
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-69823-4-R4BI7qfCXa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69823-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69823-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01065.txt.bz2
Content-length: 723

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

--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Thu Feb  9 07:47:07 2017
New Revision: 245295

URL: https://gcc.gnu.org/viewcvs?rev=245295&root=gcc&view=rev
Log:
2017-02-09  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/69823
        * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
        Properly enumerate all BBs in the region.  Use auto_vec/auto_bitmap.

        * gcc.dg/graphite/pr69823.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/graphite/pr69823.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/graphite-scop-detection.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-553534-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 07:50:51 2017
Return-Path: <gcc-bugs-return-553534-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80501 invoked by alias); 9 Feb 2017 07:50: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 80375 invoked by uid 48); 9 Feb 2017 07:50:38 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79433] __has_include does not conform to SD-6
Date: Thu, 09 Feb 2017 07: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: 7.0.1
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: component
Message-ID: <bug-79433-4-5a83Y1G7Qj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01066.txt.bz2
Content-length: 680

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c++                         |libstdc++

--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Marc Mutz from comment #9)
> __has_include these days is defined by SD-6, and while not spelled out in
> normative text, the intent is very much for it to be able to detect presence
> of a header for inclusion.

Then the bug is in the header (library) and not in the preprocessor or the
front-end.
>From gcc-bugs-return-553535-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 08:01:59 2017
Return-Path: <gcc-bugs-return-553535-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110685 invoked by alias); 9 Feb 2017 08:01: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 104844 invoked by uid 48); 9 Feb 2017 08:01:48 -0000
From: "marc.mutz at kdab dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79433] __has_include does not conform to SD-6
Date: Thu, 09 Feb 2017 08: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marc.mutz at kdab 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-79433-4-hj4WlUXm58@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01067.txt.bz2
Content-length: 177

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

--- Comment #11 from Marc Mutz <marc.mutz at kdab dot com> ---
Fair enough. Sorry for filing it under the wrong component.
>From gcc-bugs-return-553538-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 08:04:47 2017
Return-Path: <gcc-bugs-return-553538-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 124597 invoked by alias); 9 Feb 2017 08:04: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 124397 invoked by uid 48); 9 Feb 2017 08:04:33 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79431] [6/7 Regression] ICE in get, at cgraph.h:397
Date: Thu, 09 Feb 2017 08:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code, 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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords priority target_milestone
Message-ID: <bug-79431-4-FRilx4KXQw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79431-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79431-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01070.txt.bz2
Content-length: 401

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |openmp
           Priority|P3                          |P2
   Target Milestone|---                         |6.4
>From gcc-bugs-return-553537-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 08:04:08 2017
Return-Path: <gcc-bugs-return-553537-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 123511 invoked by alias); 9 Feb 2017 08:04:08 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 122745 invoked by uid 48); 9 Feb 2017 08:03:56 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79430] [7 Regression] action of statement incorrectly optimised away
Date: Thu, 09 Feb 2017 08:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-79430-4-AlJTqaBjX5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01069.txt.bz2
Content-length: 293

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |7.0
>From gcc-bugs-return-553536-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 08:04:01 2017
Return-Path: <gcc-bugs-return-553536-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122812 invoked by alias); 9 Feb 2017 08:04: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 122666 invoked by uid 48); 9 Feb 2017 08:03:45 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79435] [7 Regression] ICE on invalid C++ code (with member access into an incomplete type) on x86_64-linux-gnu: Segmentation fault
Date: Thu, 09 Feb 2017 08:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority version target_milestone
Message-ID: <bug-79435-4-QJ7ihXEq1h@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79435-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79435-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01068.txt.bz2
Content-length: 398

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
            Version|unknown                     |7.0
   Target Milestone|---                         |7.0
>From gcc-bugs-return-553539-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 08:05:12 2017
Return-Path: <gcc-bugs-return-553539-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125623 invoked by alias); 9 Feb 2017 08: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 125541 invoked by uid 48); 9 Feb 2017 08:05:02 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79429] [6/7 Regression] ICE in add_stmt, at cp/semantics.c:385
Date: Thu, 09 Feb 2017 08: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: 7.0
X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code
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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords priority target_milestone
Message-ID: <bug-79429-4-F3jg8DohkG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79429-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79429-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01071.txt.bz2
Content-length: 409

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |error-recovery
           Priority|P3                          |P4
   Target Milestone|---                         |6.4
>From gcc-bugs-return-553540-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 08:05:28 2017
Return-Path: <gcc-bugs-return-553540-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126377 invoked by alias); 9 Feb 2017 08:05: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 125961 invoked by uid 48); 9 Feb 2017 08:05:14 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79428] [6/7 Regression] ICE in c_parser_consume_token, at c/c-parser.c:770
Date: Thu, 09 Feb 2017 08: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: 7.0
X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority
Message-ID: <bug-79428-4-P2oXBSupqq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79428-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79428-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01072.txt.bz2
Content-length: 292

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
>From gcc-bugs-return-553541-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 08:06:39 2017
Return-Path: <gcc-bugs-return-553541-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127850 invoked by alias); 9 Feb 2017 08:06: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 127729 invoked by uid 48); 9 Feb 2017 08:06:26 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79432] [7 Regression] ICE: verify_ssa failed
Date: Thu, 09 Feb 2017 08:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-checking
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: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority component assigned_to target_milestone short_desc
Message-ID: <bug-79432-4-Luva7UjWjj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79432-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79432-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01073.txt.bz2
Content-length: 708

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
          Component|c                           |tree-optimization
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
   Target Milestone|---                         |7.0
            Summary|[Regression 7] ICE:         |[7 Regression] ICE:
                   |verify_ssa failed           |verify_ssa failed

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mine.
>From gcc-bugs-return-553542-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 08:07:24 2017
Return-Path: <gcc-bugs-return-553542-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128916 invoked by alias); 9 Feb 2017 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 128863 invoked by uid 48); 9 Feb 2017 08:07:16 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/79438] [7 Regression] ICE during RA w/ -O3 (or -Ofast) -funroll-loops for 32-bit BE powerpc target
Date: Thu, 09 Feb 2017 08:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code, ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-79438-4-NuUMHTTkVF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79438-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79438-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01074.txt.bz2
Content-length: 293

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |7.0
>From gcc-bugs-return-553543-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 08:09:05 2017
Return-Path: <gcc-bugs-return-553543-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12379 invoked by alias); 9 Feb 2017 08:09: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 12199 invoked by uid 48); 9 Feb 2017 08:08:53 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/69823] [6 Regression] internal compiler error: in create_pw_aff_from_tree, at graphite-sese-to-poly.c:445
Date: Thu, 09 Feb 2017 08:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 6.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: P4
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_known_to_work short_desc
Message-ID: <bug-69823-4-I5Cxn9syEx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69823-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69823-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01075.txt.bz2
Content-length: 682

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |7.0.1
            Summary|[6/7 Regression] internal   |[6 Regression] internal
                   |compiler error: in          |compiler error: in
                   |create_pw_aff_from_tree, at |create_pw_aff_from_tree, at
                   |graphite-sese-to-poly.c:445 |graphite-sese-to-poly.c:445

--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed on trunk sofar.
>From gcc-bugs-return-553544-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 08:17:41 2017
Return-Path: <gcc-bugs-return-553544-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32342 invoked by alias); 9 Feb 2017 08:17:40 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 30649 invoked by uid 48); 9 Feb 2017 08:17:27 -0000
From: "freddie_chopin at op dot pl" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79436] [ARM Cortex-M4F] VFMA used in place of subtraction gives inexact results
Date: Thu, 09 Feb 2017 08:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: freddie_chopin at op dot pl
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-79436-4-Cl1Fqrl61i@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79436-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79436-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01076.txt.bz2
Content-length: 1463

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

--- Comment #6 from Freddie Chopin <freddie_chopin at op dot pl> ---
> On a newer Intel (or AMD) machine, add -march=naitve and you will
> see the same behavior.

You are right, adding that switch causes the assert to appear...

> VFMA is not just multiply and accumulate but rather fused multiply and add.
> The multiplication is done in infinite precision and then the add is done 
> in that same infinite precision and then a round happens down to double. 
> Instead of what happens with -ffp-contract=off which is not to used the 
> fused multiple add instruction which means round between the multiply and
> addition.

I've read that info already, but in my (limited) understanding subtracting two
identical numbers still gives 0 at infinite precision, no matter how you round
the result ); But I get your point - somehow after re-arranging the whole
sequence, the result got inexact (from my point of view).

Any advice how to handle this problem in this particular code? I'd prefer not
to just set "-ffp-contract=off" for my whole project, as the toolchain
libraries are compiled with contracting enabled anyway (I see A LOT of VFMA in
functions like sinf() or cosf()), so that "solution" would be partial at best.
Is there any "generic" way to write code that would allow the result to be
"correct", possibly by also allowing optimizations which don't change accuracy?
>From gcc-bugs-return-553545-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 08:28:48 2017
Return-Path: <gcc-bugs-return-553545-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71911 invoked by alias); 9 Feb 2017 08:28: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 71646 invoked by uid 48); 9 Feb 2017 08:28:35 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Thu, 09 Feb 2017 08:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.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 cf_reconfirmed_on everconfirmed
Message-ID: <bug-79341-4-bSkJY3aglD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01077.txt.bz2
Content-length: 1033

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-09
     Ever confirmed|0                           |1

--- Comment #31 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #24)
> Created attachment 40693 [details]
> gcc7-pr79341.patch
> 
> Does the attached patch work for you?  Only tested on s390x-linux (64-bit). 
> The intent is that while __tls_get_addr_internal is intercepted, both
> __tls_get_offset and __tls_get_addr_internal interceptors actually call
> original real __tls_get_offset, so it should work both with old and new
> glibc.

I've now filed that patch upstream: https://reviews.llvm.org/D29735
Feel free to comment on it there (especially if you'll be able to test it).
>From gcc-bugs-return-553546-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 08:39:23 2017
Return-Path: <gcc-bugs-return-553546-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12750 invoked by alias); 9 Feb 2017 08:39:23 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 10992 invoked by uid 48); 9 Feb 2017 08:39:10 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79432] [7 Regression] ICE: verify_ssa failed
Date: Thu, 09 Feb 2017 08:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-checking
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: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79432-4-mTvkEe4r2X@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79432-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79432-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01078.txt.bz2
Content-length: 1359

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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
We gimplify this to

fn2 ()
{
  int a;

  _1 = fn1 ();
  _2 = vfork ();
  a = _1 + _2;
}

and at CFG construction time try to "fixup" via

fn2 ()
{
  int D.1803;
  int D.1802;
  int a;

  <bb 2> [0.00%]:
  D.1802 = fn1 ();

  <bb 3> [0.00%]:
  _1 = D.1802;

  <bb 4> [0.00%]:
  D.1803 = vfork ();
  goto <bb 6>; [0.00%]

  <bb 5> [0.00%]:
  ABNORMAL_DISPATCHER (0);

  <bb 6> [0.00%]:
  _2 = D.1803;
  a = _1 + _2;
  return;

}

this deals with the abnormal outgoing edges but not the abnormal incoming
edges.  That is, we do not replace _1 with D.1802 everywhere but just
adjust it across the call/result set split.  Note that before into-SSA
we do not have SSA operands set up and thus can't easily walk immediate
uses of _1.

I believe the issue does not only exist for LHS of stmts that can do abnormal
control flow but any SSA defs that have uses live across such calls.  So
a more sustainable fix than

r146168 | rguenth | 2009-04-16 12:45:18 +0200 (Thu, 16 Apr 2009) | 6 lines

2009-04-16  Richard Guenther  <rguenther@suse.de>

        PR middle-end/39625
        * tree-cfg.c (make_blocks): Split statements with to-be
        abnormal SSA names on the lhs.

might be to deal with the situation in into-SSA...
>From gcc-bugs-return-553547-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 09:07:58 2017
Return-Path: <gcc-bugs-return-553547-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74612 invoked by alias); 9 Feb 2017 09:07:57 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 70970 invoked by uid 48); 9 Feb 2017 09:07:44 -0000
From: "bijan at chokoufe dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79430] [7 Regression] action of statement incorrectly optimised away
Date: Thu, 09 Feb 2017 09: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.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bijan at chokoufe 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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79430-4-i4pcS6NLAh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01079.txt.bz2
Content-length: 722

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

Bijan Chokoufe <bijan at chokoufe dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bijan at chokoufe dot com

--- Comment #18 from Bijan Chokoufe <bijan at chokoufe dot com> ---
Let me point out an idiosyncrasy of our configure script. When no FCFLAGS are
defined, it automatically puts FCFLAGS='-O2 -g'. When FCFLAGS are defined,
those are taken. This means that the disappearance of the problem with
FCFLAGS=-Wall or FCFLAGS=-fno-inline is likely due to the removal of -O2.

Valgrind runs are underway...
>From gcc-bugs-return-553548-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 09:17:21 2017
Return-Path: <gcc-bugs-return-553548-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129389 invoked by alias); 9 Feb 2017 09: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 129240 invoked by uid 48); 9 Feb 2017 09:17:06 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79431] [6/7 Regression] ICE in get, at cgraph.h:397
Date: Thu, 09 Feb 2017 09:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code, 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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79431-4-Rm1MnkyfqI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79431-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79431-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01080.txt.bz2
Content-length: 239

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Obviously it doesn't make any sense to mark automatic variables this way, but
sadly OpenMP 4.5 doesn't prohibit that.
>From gcc-bugs-return-553549-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 09:25:20 2017
Return-Path: <gcc-bugs-return-553549-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21277 invoked by alias); 9 Feb 2017 09:25: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 20828 invoked by uid 48); 9 Feb 2017 09:24:59 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79431] [6/7 Regression] ICE in get, at cgraph.h:397
Date: Thu, 09 Feb 2017 09: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: 7.0
X-Bugzilla-Keywords: ice-on-valid-code, openmp
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to attachments.created
Message-ID: <bug-79431-4-dlApyla0g1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79431-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79431-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01081.txt.bz2
Content-length: 578

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

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

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

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

Untested fix.
>From gcc-bugs-return-553550-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 09:28:19 2017
Return-Path: <gcc-bugs-return-553550-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26390 invoked by alias); 9 Feb 2017 09:28: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 26201 invoked by uid 48); 9 Feb 2017 09:28:05 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/79427] g++.dg/tls/thread_local-order2.C fails starting with r245249
Date: Thu, 09 Feb 2017 09:28: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79427-4-3ZTL496WCq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79427-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79427-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01082.txt.bz2
Content-length: 206

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

--- Comment #3 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
The xfail was removed from the test because it caused an XPASS on many systems.
>From gcc-bugs-return-553551-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 09:38:56 2017
Return-Path: <gcc-bugs-return-553551-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47406 invoked by alias); 9 Feb 2017 09:38: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 47186 invoked by uid 48); 9 Feb 2017 09:38:42 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79432] [7 Regression] ICE: verify_ssa failed
Date: Thu, 09 Feb 2017 09:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-checking
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: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79432-4-2W0dlSKM2N@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79432-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79432-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01083.txt.bz2
Content-length: 173

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

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
I guess the fix will be in the gimplifier instead.
>From gcc-bugs-return-553552-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 10:01:53 2017
Return-Path: <gcc-bugs-return-553552-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106161 invoked by alias); 9 Feb 2017 10:01:53 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 106057 invoked by uid 48); 9 Feb 2017 10:01:39 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79429] [6/7 Regression] ICE in add_stmt, at cp/semantics.c:385
Date: Thu, 09 Feb 2017 10: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: 7.0
X-Bugzilla-Keywords: error-recovery, 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: P4
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to attachments.created
Message-ID: <bug-79429-4-QdinwEHRkP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79429-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79429-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01084.txt.bz2
Content-length: 578

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

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> ---
Created attachment 40703
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40703&action=edit
gcc7-pr79429.patch

Untested fix.
>From gcc-bugs-return-553553-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 10:06:42 2017
Return-Path: <gcc-bugs-return-553553-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33602 invoked by alias); 9 Feb 2017 10:06: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 33438 invoked by uid 48); 9 Feb 2017 10:06:29 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/79427] g++.dg/tls/thread_local-order2.C fails starting with r245249
Date: Thu, 09 Feb 2017 10:06: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79427-4-U42GNtTlRO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79427-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79427-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01085.txt.bz2
Content-length: 321

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

--- Comment #4 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
See here for discussion of this bug report:
https://gcc.gnu.org/ml/gcc-patches/2017-02/msg00666.html

And here for discussion of the patch:
https://gcc.gnu.org/ml/gcc-patches/2017-02/msg00446.html
>From gcc-bugs-return-553554-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 10:19:08 2017
Return-Path: <gcc-bugs-return-553554-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111471 invoked by alias); 9 Feb 2017 10:19: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 111304 invoked by uid 48); 9 Feb 2017 10:18:54 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79428] [6/7 Regression] ICE in c_parser_consume_token, at c/c-parser.c:770
Date: Thu, 09 Feb 2017 10:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: error-recovery, 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: P4
X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79428-4-Mj9VpiaF5k@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79428-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79428-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01086.txt.bz2
Content-length: 886

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The weird thing is that this occurs for many pragmas, but only #pragma omp
ordered seems to ICE:
for i in pr79428-*.c; do echo ===$i===; cat $i; done
===pr79428-1.c===
/* { dg-options "-fopenacc" } */
void
foo ()
{
#pragma acc routine
===pr79428-2.c===
/* { dg-options "-fopenmp" } */
void
foo ()
{
#pragma omp sections
#pragma omp section
===pr79428-3.c===
int i;
#pragma GCC pch_preprocess
===pr79428-4.c===
/* { dg-options "-fcilkplus" } */
#pragma cilk grainsize
===pr79428-5.c===
/* { dg-options "-fopenmp" } */
#pragma omp ordered
===pr79428-6.c===
/* { dg-options "-fopenmp" } */
#pragma omp target
===pr79428-7.c===
/* { dg-options "-fcilkplus" } */
#pragma simd
>From gcc-bugs-return-553555-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 10:28:09 2017
Return-Path: <gcc-bugs-return-553555-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 124725 invoked by alias); 9 Feb 2017 10:28: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 124542 invoked by uid 48); 9 Feb 2017 10:27:56 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/79437] Redundant move instruction when getting sign bit of double on 32-bit architecture
Date: Thu, 09 Feb 2017 10:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.3.1
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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79437-4-F1O1lvbzIJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79437-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79437-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01087.txt.bz2
Content-length: 705

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

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

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Even -mno-stv doesn't help here, the problem is that for the shift we don't
lower DImode operations here until too late (split2) and so EDX:EAX is used for
the 64-bit value.
>From gcc-bugs-return-553556-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 10:39:08 2017
Return-Path: <gcc-bugs-return-553556-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49222 invoked by alias); 9 Feb 2017 10: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 42459 invoked by uid 48); 9 Feb 2017 10:38:54 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/79438] [7 Regression] ICE during RA w/ -O3 (or -Ofast) -funroll-loops for 32-bit BE powerpc target
Date: Thu, 09 Feb 2017 10: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: 7.0
X-Bugzilla-Keywords: ice-on-valid-code, ra
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79438-4-bZsELmShNe@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79438-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79438-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01088.txt.bz2
Content-length: 445

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

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> ---
Can't reproduce on powerpc64-linux with -m32, must be SPE specific.
>From gcc-bugs-return-553557-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 10:42:23 2017
Return-Path: <gcc-bugs-return-553557-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52548 invoked by alias); 9 Feb 2017 10:42: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 52442 invoked by uid 48); 9 Feb 2017 10:42:10 -0000
From: "bijan at chokoufe dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79430] [7 Regression] action of statement incorrectly optimised away
Date: Thu, 09 Feb 2017 10:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bijan at chokoufe 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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79430-4-FnDqeEAKVj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01089.txt.bz2
Content-length: 1770

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

--- Comment #19 from Bijan Chokoufe <bijan at chokoufe dot com> ---
So in the build with '-O2 -g' (default), valgrind tells us

==8214== Conditional jump or move depends on uninitialised value(s)
==8214==    at 0x5300201: __shower_core_MOD_shower_generate_next_isr_branching
(shower_core.f90:3089)
==8214==    by 0x5306A90: __shower_core_MOD_shower_generate_emissions
(shower_core.f90:316)
==8214==    by 0x52D3CE6: __shower_MOD_evt_shower_generate_weighted.part.2
(shower.f90:238)
==8214==    by 0x52B0BBF: __event_transforms_MOD_evt_generate_unweighted
(event_transforms.f90:203)
==8214==    by 0x52DCEA5: __events_MOD_event_evaluate_transforms
(events.f90:520)
==8214==    by 0x52DC247: __events_MOD_event_generate (events.f90:751)
==8214==    by 0x5260A2F: __simulations_MOD_simulation_generate
(simulations.f90:1639)
==8214==    by 0x5285A35: __commands_MOD_cmd_simulate_execute
(commands.f90:4501)
==8214==    by 0x5267A08: __commands_MOD_command_list_execute
(commands.f90:5835)
==8214==    by 0x52A84A5: __whizard_MOD_whizard_process_stream
(whizard.f90:348)
==8214==    by 0x52A7C25: __whizard_MOD_whizard_process_file (whizard.f90:323)
==8214==    by 0x4E3EF61: MAIN__ (main.f90:415)
==8214==

which is exactely the problematic point we also identified with print
debugging, mentioned in the description of this ticket.

In the build with '-O0 -g', valgrind does not show this error! So it seems as
if the call to integral_over_z_part_isr is optimized away although it is needed
to set the variables used in the conditional. The variables are declared as
intent(inout) therein.
>From gcc-bugs-return-553558-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 10:44:52 2017
Return-Path: <gcc-bugs-return-553558-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60609 invoked by alias); 9 Feb 2017 10:44: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 59536 invoked by uid 48); 9 Feb 2017 10:44:39 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/79356] XPASS in attr-alloc_size-11.c
Date: Thu, 09 Feb 2017 10:44: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: segher at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: segher at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc assigned_to
Message-ID: <bug-79356-4-qvFI8gp8SW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79356-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79356-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01090.txt.bz2
Content-length: 548

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

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

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

--- Comment #4 from Segher Boessenkool <segher at gcc dot gnu.org> ---
I have a patch.
>From gcc-bugs-return-553559-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 10:52:43 2017
Return-Path: <gcc-bugs-return-553559-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94075 invoked by alias); 9 Feb 2017 10:52: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 93928 invoked by uid 48); 9 Feb 2017 10:52:29 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/79438] [7 Regression] ICE during RA w/ -O3 (or -Ofast) -funroll-loops for 32-bit BE powerpc target
Date: Thu, 09 Feb 2017 10:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code, ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority
Message-ID: <bug-79438-4-jlxHg240Pa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79438-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79438-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01091.txt.bz2
Content-length: 422

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
powerpc-e500v2-linux-gnuspe is not primary/secondary target -> P4.
>From gcc-bugs-return-553560-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 10:54:54 2017
Return-Path: <gcc-bugs-return-553560-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96485 invoked by alias); 9 Feb 2017 10:54: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 96315 invoked by uid 48); 9 Feb 2017 10:54:41 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79430] [7 Regression] action of statement incorrectly optimised away
Date: Thu, 09 Feb 2017 10:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.0.1
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79430-4-QBarJkm4ZI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01092.txt.bz2
Content-length: 340

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

--- Comment #20 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Is this really a regression?

I have run 'make check -k' with gfortran 5.4.0, 6.3.0, and a patched trunk at
revision r245279. I see respectively 258, 259, and 199 FAILs, and
mlm_matching_isr is always failing.
>From gcc-bugs-return-553561-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 11:02:38 2017
Return-Path: <gcc-bugs-return-553561-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116924 invoked by alias); 9 Feb 2017 11:02: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 116764 invoked by uid 48); 9 Feb 2017 11:02:24 -0000
From: "fw at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79439] New: Missing nop instruction after recursive call corrupts TOC register
Date: Thu, 09 Feb 2017 11:02: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: 6.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fw at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcctarget
Message-ID: <bug-79439-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01093.txt.bz2
Content-length: 2248

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

            Bug ID: 79439
           Summary: Missing nop instruction after recursive call corrupts
                    TOC register
           Product: gcc
           Version: 6.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: fw at gcc dot gnu.org
  Target Milestone: ---
            Target: ppc64le-redhat-linux

Consider this test case:

int f (void);

void
g (void)
{
}

void
rec (int a)
{
  if (f ())
    rec (a + 1);
  rec (a);
  g ();
}

GCC 6.3.1 generates the following code on ppc64le-redhat-linux (Fedora 25):

rec:
.LCF1:
0:      addis 2,12,.TOC.-.LCF1@ha
        addi 2,2,.TOC.-.LCF1@l
        .localentry     rec,.-rec
        mflr 0
        std 31,-8(1)
        mr 31,3
        std 0,16(1)
        stdu 1,-48(1)
        bl f
        nop
        cmpdi 7,3,0
        beq 7,.L3
        addi 3,31,1
        extsw 3,3
        bl rec
.L3:
        mr 3,31
        bl rec
        bl g
        nop
        addi 1,1,48
        ld 0,16(1)
        ld 31,-8(1)
        mtlr 0
        blr
        .long 0
        .byte 0,0,0,1,128,1,0,0


That is, there is no nop instruction the after the “bl rec” instructions.  The
ELF v2 ABI requires the presence of this instruction, so that the static linker
can replace it with a load of the saved TOC pointer to restore the original
value of the TOC pointer register.  

Apparently, GCC assumes that the call is always to a function in the same
module, so the TOC pointer restore is never needed.  But “rec” can be
interposed from another translation unit and the original function definition
can be access through dlsym and executed, so this assumption is incorrect.  The
missing TOC pointer restore means that the PLT stubs supplied by the static
linker will not work, and subsequent function calls can crash.

This was originally reported as a glibc bug:

  <https://sourceware.org/bugzilla/show_bug.cgi?id=21116>

The test case is LAPACK, which is apparently written in Fortran, but I expect
that this is a target issue which exists independent of the front end.
>From gcc-bugs-return-553562-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 11:03:56 2017
Return-Path: <gcc-bugs-return-553562-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122089 invoked by alias); 9 Feb 2017 11: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 120815 invoked by uid 48); 9 Feb 2017 11:03:44 -0000
From: "juergen.reuter at desy dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79430] [7 Regression] action of statement incorrectly optimised away
Date: Thu, 09 Feb 2017 11: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: juergen.reuter at desy dot de
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79430-4-93qZxxB3cQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01094.txt.bz2
Content-length: 616

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

--- Comment #21 from Jürgen Reuter <juergen.reuter at desy dot de> ---
(In reply to Dominique d'Humieres from comment #20)
> Is this really a regression?
> 
> I have run 'make check -k' with gfortran 5.4.0, 6.3.0, and a patched trunk
> at revision r245279. I see respectively 258, 259, and 199 FAILs, and
> mlm_matching_isr is always failing.

With make -k you continue irrespective of the fact that some targets could not
have made. Do you have OCaml installed? This is needed for that test. Can you
post the test results e.g. for the smtest_1 test?
>From gcc-bugs-return-553563-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 11:05:47 2017
Return-Path: <gcc-bugs-return-553563-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7155 invoked by alias); 9 Feb 2017 11: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 6884 invoked by uid 48); 9 Feb 2017 11:05:33 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79413] [7 Regression] ICE in make_ssa_name_fn, at tree-ssanames.c:265
Date: Thu, 09 Feb 2017 11: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: 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: P1
X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79413-4-rh6AhC2Vvd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79413-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79413-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01095.txt.bz2
Content-length: 612

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The DECL_EXPR is there, the problem is that gimplify_type_sizes doesn't do
anything about it, because is_gimple_sizepos says it is ok:
101       return (expr == NULL_TREE
102               || TREE_CONSTANT (expr)
103               || TREE_CODE (expr) == VAR_DECL
104               || CONTAINS_PLACEHOLDER_P (expr));
and (sizetype) (1 / 0) * 4 has TREE_CONSTANT set on it.
Wonder if is_gimple_sizepos shouldn't use is_gimple_min_invariant instead of
TREE_CONSTANT or something similar.
>From gcc-bugs-return-553565-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 11:09:35 2017
Return-Path: <gcc-bugs-return-553565-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24443 invoked by alias); 9 Feb 2017 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 24256 invoked by uid 48); 9 Feb 2017 11:09:21 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/75964] insn combiner removes comparison after ABS
Date: Thu, 09 Feb 2017 11:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.1.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou 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-75964-4-G9bQ0Gan3H@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-75964-4@http.gcc.gnu.org/bugzilla/>
References: <bug-75964-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01097.txt.bz2
Content-length: 729

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

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

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

--- Comment #1 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> After pass .combine, the 2nd comparison is missing, presumably because
> combiner invokes signed overflow on ABS which does not apply because all
> computations are performed as unsigned.

Then you should have a warning with -Wstrict-overflow; this possibly comes from
simplify-rtx.c:simplify_const_relational_operation in this case.
>From gcc-bugs-return-553564-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 11:09:35 2017
Return-Path: <gcc-bugs-return-553564-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24431 invoked by alias); 9 Feb 2017 11:09: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 24291 invoked by uid 48); 9 Feb 2017 11:09:23 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79428] [6/7 Regression] ICE in c_parser_consume_token, at c/c-parser.c:770
Date: Thu, 09 Feb 2017 11: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: 7.0
X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79428-4-GskHI9IU0P@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79428-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79428-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01096.txt.bz2
Content-length: 325

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

--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I think that's because in c_parser_omp_ordered we ate the pragma with
c_parser_consume_pragma, so the next token is CPP_PRAGMA_EOL, but e.g. in
c_parser_pragma the pragma tokens have not been eaten yet.
>From gcc-bugs-return-553566-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 11:09:55 2017
Return-Path: <gcc-bugs-return-553566-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25837 invoked by alias); 9 Feb 2017 11:09: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 25720 invoked by uid 48); 9 Feb 2017 11:09:48 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79428] [6/7 Regression] ICE in c_parser_consume_token, at c/c-parser.c:770
Date: Thu, 09 Feb 2017 11: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: 7.0
X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79428-4-4sNcuXVR77@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79428-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79428-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01098.txt.bz2
Content-length: 174

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

--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
So should I fix the one spot and add the testcases?
>From gcc-bugs-return-553567-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 11:14:06 2017
Return-Path: <gcc-bugs-return-553567-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29242 invoked by alias); 9 Feb 2017 11:14: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 29091 invoked by uid 48); 9 Feb 2017 11:13:53 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79428] [6/7 Regression] ICE in c_parser_consume_token, at c/c-parser.c:770
Date: Thu, 09 Feb 2017 11: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: 7.0
X-Bugzilla-Keywords: error-recovery, 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: P4
X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79428-4-Kkb0EBkBuy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79428-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79428-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01099.txt.bz2
Content-length: 291

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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Yes.  Please add them to c-c++-common where possible (and test on top of the
PR79429 patch, because otherwise #pragma omp ordered will fail in C++ for a
different reason).
>From gcc-bugs-return-553568-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 11:15:25 2017
Return-Path: <gcc-bugs-return-553568-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30635 invoked by alias); 9 Feb 2017 11:15: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 30304 invoked by uid 48); 9 Feb 2017 11:14:54 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79430] [7 Regression] action of statement incorrectly optimised away
Date: Thu, 09 Feb 2017 11:15: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.1
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79430-4-SpGYPxfTIv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01100.txt.bz2
Content-length: 1201

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

--- Comment #22 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> With make -k you continue irrespective of the fact that some targets could
> not have made.

Without '-k' 'make check' stops at

make[5]: *** No rule to make target `test_omega95.f90', needed by
`test_omega95.o'.  Stop.

> Do you have OCaml installed? This is needed for that test.

Yes, The OCaml toplevel, version 4.03.0.

> Can you post the test results e.g. for the smtest_1 test?

Running script ./smtest_1.run
******************************************************************************
******************************************************************************
*** FATAL ERROR:  Option '--logfile' needs a value
******************************************************************************
******************************************************************************
WHIZARD run aborted.
...
With no FILE, read standard input.
1,91d0
< ?openmp_logging = false
< ?vis_history = false
< ?integration_timer = false
< seed = 0
< phs_off_shell = 1
< phs_t_channel = 2
< | Process library 'smtest_1_lib': recorded process 'smtest_1_nnh'
...
>From gcc-bugs-return-553569-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 11:18:17 2017
Return-Path: <gcc-bugs-return-553569-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33004 invoked by alias); 9 Feb 2017 11:18:17 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 32811 invoked by uid 48); 9 Feb 2017 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/79413] [7 Regression] ICE in make_ssa_name_fn, at tree-ssanames.c:265
Date: Thu, 09 Feb 2017 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: 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: P1
X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-79413-4-nGkGti8iLm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79413-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79413-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01101.txt.bz2
Content-length: 291

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

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

Untested fix.  Let's see what Ada will say to this.
>From gcc-bugs-return-553570-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 11:25:40 2017
Return-Path: <gcc-bugs-return-553570-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60988 invoked by alias); 9 Feb 2017 11:25: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 58734 invoked by uid 48); 9 Feb 2017 11:25:27 -0000
From: "for2008 at web dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79440] New: internal compiler error: in fold_convert_loc, at fold-const.c:2373
Date: Thu, 09 Feb 2017 11:25: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: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: for2008 at web dot de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-79440-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01102.txt.bz2
Content-length: 1543

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

            Bug ID: 79440
           Summary: internal compiler error: in fold_convert_loc, at
                    fold-const.c:2373
           Product: gcc
           Version: 6.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: for2008 at web dot de
  Target Milestone: ---

Created attachment 40705
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40705&action=edit
Each module was originally in a separate file. The program is planned to by
used for a finite element program. There a groups, that contain elements. Each
element has a material.

Hi,
the example shows a problem with the constructor of a derived class in line 180
in connection with line 168. If I change in line 168 from type(CMaterial) to
class(CMaterial), the program works. The attached version with type(CMaterial)
crashes with internal compiler error.
Programm compiles with no errors, but executable is not created.
I'm not sure what the Fortran standard requires, but an internal compiler error
shouldn't happen. 

Tested with, both behave the same:
Ubuntu 16.10 with gfortran 6.2.0
windows 10, MSYS2, mingw64, gfortran 6.3.0

By the way: programm runs with no errors with Intel ifort.

Full error message:
internal compiler error: in fold_convert_loc, at fold-const.c:2373
libbacktrace could not find executable to open
Please submit a full bug report

Thanks
>From gcc-bugs-return-553571-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 11:33:15 2017
Return-Path: <gcc-bugs-return-553571-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75706 invoked by alias); 9 Feb 2017 11:33: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 75002 invoked by uid 48); 9 Feb 2017 11:33:01 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79434] [submodules] separate module procedure breaks encapsulation
Date: Thu, 09 Feb 2017 11: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pault at gcc dot gnu.org
X-Bugzilla-Status: NEW
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 cf_reconfirmed_on cc assigned_to everconfirmed
Message-ID: <bug-79434-4-HSEBoEbJty@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79434-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79434-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01103.txt.bz2
Content-length: 730

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

Paul Thomas <pault at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-09
                 CC|                            |pault at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |pault at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Paul Thomas <pault at gcc dot gnu.org> ---
It's mine! I'll put it in my schedule for some time next week, after Tuesday.

Thanks for the report.

Paul
>From gcc-bugs-return-553572-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 11:49:28 2017
Return-Path: <gcc-bugs-return-553572-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120225 invoked by alias); 9 Feb 2017 11: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 120124 invoked by uid 48); 9 Feb 2017 11:49:15 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/69675] [6/7 Regression] [graphite] ICE: verify_ssa failed (definition in block 42 does not dominate use in block 34)
Date: Thu, 09 Feb 2017 11: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: 6.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: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-69675-4-XHcNe2IdkX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69675-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69675-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01104.txt.bz2
Content-length: 1231

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

--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
Yeah, seems to be gone with ISL 0.18 here as well... (but with 0.16.1 I can
still reproduce it).  ISL 0.18 doesn't do anything to the loop.  ISL 0.16.1
just did some IV transforms it seems:

[scheduler] original ast:
for (int c0 = 0; c0 <= -P_14; c0 += 1)
  for (int c1 = 0; c1 <= 3; c1 += 1) {
    S_5(c0, c1);
    if (c1 <= 2)
      S_6(c0, c1);
  }

[scheduler] AST generated by isl:
for (int c0 = 0; c0 <= -P_14; c0 += 1)
  for (int c1 = 3 * c0; c1 <= 3 * c0 + 3; c1 += 1) {
    S_5(c0, -3 * c0 + c1);
    if (3 * c0 + 2 >= c1)
      S_6(c0, -3 * c0 + c1);
  }

and with ISL 0.18 we have

[scheduler] isl optimized schedule is identical to the original schedule.
for (int c0 = 0; c0 <= -P_14; c0 += 1)
  for (int c1 = 0; c1 <= 3; c1 += 1) {
    S_5(c0, c1);
    if (c1 <= 2)
      S_6(c0, c1);
  }

and eventually code generation is not happy with the changed form
(-fgraphite-identity is fine).

Sebastian, any comment?  I think we could still for example require current ISL
for GCC 6 (0.18 or maybe 0.17.1).  Or at least drop support for the current
legacy.
>From gcc-bugs-return-553573-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 11:57:31 2017
Return-Path: <gcc-bugs-return-553573-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13665 invoked by alias); 9 Feb 2017 11: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 13520 invoked by uid 48); 9 Feb 2017 11:57:19 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/69728] [6/7 Regression] internal compiler error: in outer_projection_mupa, at graphite-sese-to-poly.c:1175
Date: Thu, 09 Feb 2017 11: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: 6.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: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-69728-4-aA0dDsnowN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69728-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69728-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01105.txt.bz2
Content-length: 307

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

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
removing the assert doesn't fix it (ISL complains).  This is all ISL stuff I
don't understand, somebody else needs to look at this - the SCOP is quite
regular.
Confirmed with ISL 0.18.
>From gcc-bugs-return-553574-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 12:00:05 2017
Return-Path: <gcc-bugs-return-553574-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44670 invoked by alias); 9 Feb 2017 12:00: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 40713 invoked by uid 48); 9 Feb 2017 11:59:49 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/70390] [6 Regression] internal compiler error: in copy_loop_close_phi_args, at graphite-isl-ast-to-gimple.c:2114
Date: Thu, 09 Feb 2017 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: 6.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: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_known_to_work short_desc
Message-ID: <bug-70390-4-hVoz6vjFjj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70390-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70390-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01106.txt.bz2
Content-length: 790

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |7.0.1
            Summary|[6/7 Regression] internal   |[6 Regression] internal
                   |compiler error: in          |compiler error: in
                   |copy_loop_close_phi_args,   |copy_loop_close_phi_args,
                   |at                          |at
                   |graphite-isl-ast-to-gimple. |graphite-isl-ast-to-gimple.
                   |c:2114                      |c:2114

--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
Latent on trunk I guess.
>From gcc-bugs-return-553575-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 12:07:40 2017
Return-Path: <gcc-bugs-return-553575-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95385 invoked by alias); 9 Feb 2017 12:07: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 77239 invoked by uid 48); 9 Feb 2017 12:07:26 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/79403] Installation of Ada compiler gets permissions wrong
Date: Thu, 09 Feb 2017 12:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 6.3.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: 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-79403-4-KTJysNPoaT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79403-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79403-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01107.txt.bz2
Content-length: 1055

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-02-09
                 CC|                            |ebotcazou at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> "make install" of the Ada compiler installs the contests of the adainclude
> and adalib directories with incorrect permissions. The installed compiler is
> only usable by the user who installed it:

I'm a little skeptical, nothing has changed for years and this apparently works
for everyone else.  What are the permissions in the build tree?

> For some reason, world read access is removed by the installation routines.

The only thing they do in to remove the 'w' and 'x' permissions.
>From gcc-bugs-return-553576-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 12:16:05 2017
Return-Path: <gcc-bugs-return-553576-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13205 invoked by alias); 9 Feb 2017 12:16: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 12026 invoked by uid 48); 9 Feb 2017 12:15:51 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79439] Missing nop instruction after recursive call corrupts TOC register
Date: Thu, 09 Feb 2017 12:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79439-4-9AQg6Uh0bt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79439-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79439-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01108.txt.bz2
Content-length: 708

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

--- Comment #1 from Segher Boessenkool <segher at gcc dot gnu.org> ---
What command line options does this need?  I get different assembly
(also with GCC 6), since GCC recognises that rec can never return:

        .globl rec
        .type   rec, @function
rec:
.LCF1:
0:      addis 2,12,.TOC.-.LCF1@ha
        addi 2,2,.TOC.-.LCF1@l
        .localentry     rec,.-rec
        mflr 0
        std 31,-8(1)
        mr 31,3
        std 0,16(1)
        stdu 1,-48(1)
        .p2align 4,,15
.L3:
        bl f
        nop
        cmpdi 7,3,0
        beq 7,.L3
        addi 3,31,1
        extsw 3,3
        bl rec
        .long 0
        .byte 0,0,0,1,128,1,0,0
>From gcc-bugs-return-553577-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 12:18:40 2017
Return-Path: <gcc-bugs-return-553577-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15806 invoked by alias); 9 Feb 2017 12:18: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 15663 invoked by uid 48); 9 Feb 2017 12:18:26 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79413] [7 Regression] ICE in make_ssa_name_fn, at tree-ssanames.c:265
Date: Thu, 09 Feb 2017 12: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79413-4-guvloc1qcP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79413-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79413-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01109.txt.bz2
Content-length: 557

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

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

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

--- Comment #7 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> Untested fix.  Let's see what Ada will say to this.

Presumably nothing, many tests like this on TREE_CONSTANT are bogus and want to
test for _CST nodes instead.
>From gcc-bugs-return-553578-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 12:21:07 2017
Return-Path: <gcc-bugs-return-553578-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33867 invoked by alias); 9 Feb 2017 12: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 33733 invoked by uid 48); 9 Feb 2017 12:20:49 -0000
From: "fw at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79439] Missing nop instruction after recursive call corrupts TOC register
Date: Thu, 09 Feb 2017 12:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fw at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79439-4-vd4nqN3PjB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79439-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79439-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01110.txt.bz2
Content-length: 720

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

--- Comment #2 from Florian Weimer <fw at gcc dot gnu.org> ---
(In reply to Segher Boessenkool from comment #1)
> What command line options does this need?

Sorry, I used -O2 -fpic.

Indeed, GCC seems to perform target-independent optimizations based on an
assumption that the recursive call calls the same function as defined in the
translation unit.  If this is the desired behavior, the proper fix would be to
use a local reference for the recursive call.  This would make those
optimizations consistent, and interposition would work to some extent.  Of
course, the recursive calls wouldn't be interposed anymore, but the TOC
corruption would at least be gone.
>From gcc-bugs-return-553579-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 12:22:04 2017
Return-Path: <gcc-bugs-return-553579-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130979 invoked by alias); 9 Feb 2017 12: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 83807 invoked by uid 48); 9 Feb 2017 12:21:47 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79439] Missing nop instruction after recursive call corrupts TOC register
Date: Thu, 09 Feb 2017 12: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: 6.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79439-4-sAHs3jat0K@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79439-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79439-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01111.txt.bz2
Content-length: 159

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

--- Comment #3 from Segher Boessenkool <segher at gcc dot gnu.org> ---
-fpic does the trick.  Confirmed.
>From gcc-bugs-return-553580-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 12:26:24 2017
Return-Path: <gcc-bugs-return-553580-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18926 invoked by alias); 9 Feb 2017 12:26: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 18767 invoked by uid 48); 9 Feb 2017 12:26:11 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/71351] [7 Regression] ICE: Segmentation fault (graphite)
Date: Thu, 09 Feb 2017 12:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: 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: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-71351-4-dsJLhVTGeQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71351-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71351-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01112.txt.bz2
Content-length: 1101

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

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

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

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
Also ICEs with -fgraphite-identity.

The issue seems to be that ISL creates a new loop guard but the loop has a
loop-close PHI node and we fail to generate/know the value to use on the
edge that skips the loop.  The condition we try to insert is _19 > 0
(that's trivially true by means of a dominating condition).

Not sure how this is supposed to work for reductions when the orginal loops
guard is not in the SESE region.  That guard looks like

  _19 = *nc_18(D);
  if (_19 <= 0)
    ...

so the BB is rejected because _19 = *nc_18(D) isn't a valid stmt.  So for this
case it might help if we'd split that block...

Anyway, it looks like we have to fail code generation here somehow... (no good
idea how).
>From gcc-bugs-return-553581-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 12:27:04 2017
Return-Path: <gcc-bugs-return-553581-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20242 invoked by alias); 9 Feb 2017 12:27:04 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 20069 invoked by uid 48); 9 Feb 2017 12:26:51 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/79421] gnat.dg/trampoline3.adb fails on s390x
Date: Thu, 09 Feb 2017 12:27: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou 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-79421-4-WkUXVAxEIm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79421-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79421-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01113.txt.bz2
Content-length: 2012

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-09
                 CC|                            |ebotcazou at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> What is the purpose of the test case, what does a failure mean and what can
> be done to determine its cause?

The purpose is to check that pointer-to-nested-functions no longer use stack
trampolines in Ada, which then force it to be made executable; the failure
means that they still use it.  The cause is a missing definition of:

 -- Target Hook: int TARGET_CUSTOM_FUNCTION_DESCRIPTORS
     This hook should be defined to a power of 2 if the target will
     benefit from the use of custom descriptors for nested functions
     instead of the standard trampolines.  Such descriptors are created
     at run time on the stack and made up of data only, but they are
     non-standard so the generated code must be prepared to deal with
     them.  This hook should be defined to 0 if the target uses
     function descriptors for its standard calling sequence, like for
     example HP-PA or IA-64.  Using descriptors for nested functions
     eliminates the need for trampolines that reside on the stack and
     require it to be made executable.

     The value of the macro is used to parameterize the run-time
     identification scheme implemented to distinguish descriptors from
     function addresses: it gives the number of bytes by which their
     address is misaligned compared with function addresses.  The value
     of 1 will generally work, unless it is already reserved by the
     target for another purpose, like for example on ARM.
>From gcc-bugs-return-553582-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 12:36:35 2017
Return-Path: <gcc-bugs-return-553582-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55845 invoked by alias); 9 Feb 2017 12:36: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 55723 invoked by uid 48); 9 Feb 2017 12:36:21 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79432] [7 Regression] ICE: verify_ssa failed
Date: Thu, 09 Feb 2017 12: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: 7.0
X-Bugzilla-Keywords: ice-checking
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status
Message-ID: <bug-79432-4-qP7yS1Gq70@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79432-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79432-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01114.txt.bz2
Content-length: 2568

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Similar testcase a patch I have for the first doesn't fix:

int fn1 (void);
int __attribute__((returns_twice)) vfork (void);
void fn2 ()
{
  int a;
  a = fn1() + 1 + vfork();
}


That patch:

Index: gcc/gimplify.c
===================================================================
--- gcc/gimplify.c      (revision 245299)
+++ gcc/gimplify.c      (working copy)
@@ -12150,7 +12150,15 @@ gimplify_expr (tree *expr_p, gimple_seq
         TMP.  First, make sure that the expression has a type so that
         it can be assigned into a temporary.  */
       gcc_assert (!VOID_TYPE_P (TREE_TYPE (*expr_p)));
-      *expr_p = get_formal_tmp_var (*expr_p, pre_p);
+      /* If we assign the result of a call if that call can make an abnormal
+         goto we can't use an SSA name for the result as uses may not
+        dominate the definition in this case.  */
+      if (gimplify_ctxp->into_ssa
+         && TREE_CODE (*expr_p) == CALL_EXPR
+         && ! (call_expr_flags (*expr_p) & (ECF_LEAF | ECF_CONST | ECF_PURE)))
+       *expr_p = get_initialized_tmp_var (*expr_p, pre_p, NULL, false);
+      else
+       *expr_p = get_formal_tmp_var (*expr_p, pre_p);
     }
   else
     {

but it's not enough to look at calls as with the above testcase and the patch
we still have

  <bb 2> [0.00%]:
  D.1804 = fn1 ();

  <bb 3> [0.00%]:
  D.1802 = D.1804;
  _1 = D.1802 + 1;

  <bb 4> [0.00%]:
  D.1805 = vfork ();
  goto <bb 6>; [0.00%]

  <bb 6> [0.00%]:
  D.1803 = D.1805;
  a = D.1803 + _1;
  return;

so it's really about having _any_ abnormal edge receiver inside an expression.
The idea with SSA at gimplification was that we know we only have single uses
and this use is in the same BB as the definition.  All user var sets do not
get SSA vars.

Eventually looking at calls _is_ enough if we can emit them first, thus,
reorder the GIMPLE from

  D.1802 = fn1 ();
  _1 = D.1802 + 1;
  D.1803 = vfork ();
  a = D.1803 + _1;

to

  D.1802 = fn1 ();
  D.1803 = vfork ();
  _1 = D.1802 + 1;
  a = D.1803 + _1;

...
>From gcc-bugs-return-553583-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 12:37:33 2017
Return-Path: <gcc-bugs-return-553583-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56991 invoked by alias); 9 Feb 2017 12:37:33 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 56864 invoked by uid 48); 9 Feb 2017 12:37:21 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79439] Missing nop instruction after recursive call corrupts TOC register
Date: Thu, 09 Feb 2017 12:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-79439-4-LVcEYuUVwi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79439-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79439-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01115.txt.bz2
Content-length: 1153

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-09
     Ever confirmed|0                           |1

--- Comment #4 from Segher Boessenkool <segher at gcc dot gnu.org> ---
We have (in rs6000/predicates.md):

;; Return 1 if the operand is a SYMBOL_REF for a function known to be in
;; this file.
(define_predicate "current_file_function_operand"
  (and (match_code "symbol_ref")
       (match_test "(DEFAULT_ABI != ABI_AIX || SYMBOL_REF_FUNCTION_P (op))
                    && (SYMBOL_REF_LOCAL_P (op)
                        || op == XEXP (DECL_RTL (current_function_decl), 0))
                    && !((DEFAULT_ABI == ABI_AIX
                          || DEFAULT_ABI == ABI_ELFv2)
                         && (SYMBOL_REF_EXTERNAL_P (op)
                             || SYMBOL_REF_WEAK (op)))")))

so this seems to be on purpose.
>From gcc-bugs-return-553584-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 12:54:17 2017
Return-Path: <gcc-bugs-return-553584-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115504 invoked by alias); 9 Feb 2017 12:54: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 106589 invoked by uid 48); 9 Feb 2017 12:54:03 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79411] [5/6/7 Regression] ICE: SSA corruption (fail_abnormal_edge_coalesce)
Date: Thu, 09 Feb 2017 12: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: 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: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to attachments.created
Message-ID: <bug-79411-4-ABEtAe5Bp3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79411-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79411-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01116.txt.bz2
Content-length: 881

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

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

Untested fix.  In the future we could revert it after making sure all the spots
that can move some SSA_NAME uses would be adjusted and covered by testcases
(create non-(ab) SSA_NAME set to the (ab) one at the original use point and use
it elsewhere), but for now it seems too much work for something rarely used.
>From gcc-bugs-return-553585-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 13:01:24 2017
Return-Path: <gcc-bugs-return-553585-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56323 invoked by alias); 9 Feb 2017 13:01: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 45313 invoked by uid 48); 9 Feb 2017 13:01:11 -0000
From: "dje at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79439] Missing nop instruction after recursive call corrupts TOC register
Date: Thu, 09 Feb 2017 13:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dje at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79439-4-RpRMeglNPb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79439-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79439-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01117.txt.bz2
Content-length: 246

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

--- Comment #5 from David Edelsohn <dje at gcc dot gnu.org> ---
current_file_function_operand probably needs to add a test for
flag_semantic_interposition when the ABI mandates interpolation.
>From gcc-bugs-return-553586-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 13:09:36 2017
Return-Path: <gcc-bugs-return-553586-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12146 invoked by alias); 9 Feb 2017 13: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 12054 invoked by uid 48); 9 Feb 2017 13:09:23 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79439] Missing nop instruction after recursive call corrupts TOC register
Date: Thu, 09 Feb 2017 13: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: 6.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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79439-4-3xDw4OCADG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79439-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79439-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01118.txt.bz2
Content-length: 413

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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to David Edelsohn from comment #5)
> current_file_function_operand probably needs to add a test for
> flag_semantic_interposition when the ABI mandates interpolation.

Maybe better just call decl_replaceable_p (current_function_decl) if not
SYMBOL_REF_LOCAL_P (or something similar).
>From gcc-bugs-return-553587-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 13:24:00 2017
Return-Path: <gcc-bugs-return-553587-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77256 invoked by alias); 9 Feb 2017 13:24: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 66633 invoked by uid 48); 9 Feb 2017 13:23:47 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/79441] New: gnat.dg/pack9.adb fails since r 236279
Date: Thu, 09 Feb 2017 13:24: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcchost cf_gcctarget
Message-ID: <bug-79441-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01119.txt.bz2
Content-length: 3511

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

            Bug ID: 79441
           Summary: gnat.dg/pack9.adb fails since r 236279
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vogt at linux dot vnet.ibm.com
                CC: ebotcazou at gcc dot gnu.org, krebbel at gcc dot gnu.org
  Target Milestone: ---
              Host: s390x
            Target: s390x

On s390x, the test gnat.dg/pack9.adb fails on s390x (--with-arch=zEC12) since
this commit:

--
Author:     ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
AuthorDate: Mon May 16 11:08:53 2016 +0000
Commit:     ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
CommitDate: Mon May 16 11:08:53 2016 +0000

        * doc/gnat_rm/implementation_defined_attributes.rst
        (Scalar_Storage_Order): Adjust restriction for packed array types.
        * einfo.ads (Is_Bit_Packed_Array): Adjust description.
        (Is_Packed): Likewise.
        (Is_Packed_Array_Impl_Type): Likewise.
        (Packed_Array_Impl_Type): Likewise.
        * exp_ch4.adb (Expand_N_Indexed_Component): Do not do anything special
        if the prefix is not a packed array implemented specially.
        * exp_ch6.adb (Expand_Actuals): Expand indexed components only for
        bit-packed array types.
        * exp_pakd.adb (Install_PAT): Set Is_Packed_Array_Impl_Type flag on
        the PAT before analyzing its declaration.
        (Create_Packed_Array_Impl_Type): Remove redundant statements.
        * freeze.adb (Check_Component_Storage_Order): Reject packed array
        components only if they are bit packed.
        (Freeze_Array_Type): Fix logic detecting bit packing and do not bit
        pack for composite types whose size is multiple of a byte.
        Create the implementation type for packed array types only when it is
        needed, i.e. bit packing or packing because of holes in index types.
        Make sure the Has_Non_Standard_Rep and Is_Packed flags agree.
        * gcc-interface/gigi.h (make_packable_type): Add MAX_ALIGN parameter.
        * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
        Call maybe_pad_type instead of building the padding type manually.
        (gnat_to_gnu_entity) <E_Array_Subtype>: Do not assert that
        Packed_Array_Impl_Type is present for packed arrays.
        (gnat_to_gnu_component_type): Also handle known alignment for packed
        types by passing it to make_packable_type.
        * gcc-interface/utils.c (make_packable_type): Add MAX_ALIGN parameter
        and deal with it in the array case.  Adjust recursive call.  Simplify
        computation of new size and cap the alignment to BIGGEST_ALIGNMENT.

    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@236279
138bc75d-0d04-0410-96
--

with

  FAIL: gnat.dg/pack9.adb scan-tree-dump-not optimized "gnat_rcheck"

(The string "gnat_rcheck" appear in the .s file.)  The test was build with

  $ ~/build/gcc/gnatmake --GCC=~/build/gcc/xgcc --GNATBIND=~/build/gcc/gnatbind
--GNATLINK=~/build/gcc/gnatlink -cargs -B~/build/gcc -largs
--GCC=~/build/gcc/xgcc -B~/build/gcc  -m64 -margs
--RTS=~/build/s390x-ibm-linux-gnu/./libada -q -f
~/gcc/gcc/testsuite/gnat.dg/pack9.adb -fno-diagnostics-show-caret
-fdiagnostics-color=never -O2 -gnatp -fdump-tree-optimized -c -u -S -m64 -o
pack9.s
>From gcc-bugs-return-553588-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 13:33:13 2017
Return-Path: <gcc-bugs-return-553588-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65408 invoked by alias); 9 Feb 2017 13: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 63584 invoked by uid 48); 9 Feb 2017 13:32:59 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/79403] Installation of Ada compiler gets permissions wrong
Date: Thu, 09 Feb 2017 13:33: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: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.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-79403-4-eu9eeb9Hzp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79403-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79403-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01120.txt.bz2
Content-length: 514

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

--- Comment #3 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
The files are symlinks in the build tree, mode 640 in the source tree (like
everything else) and are installed with "cp -p" which explains the broken
permissions.  Most other things are installed "install -m 644".

> I'm a little skeptical, nothing has changed for years and this apparently
> works for everyone else.

Perhaps because few people install a system Ada compiler from sources.
>From gcc-bugs-return-553589-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 13:36:15 2017
Return-Path: <gcc-bugs-return-553589-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120526 invoked by alias); 9 Feb 2017 13:36: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 90876 invoked by uid 48); 9 Feb 2017 13:35:58 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79440] internal compiler error: in fold_convert_loc, at fold-const.c:2373
Date: Thu, 09 Feb 2017 13:36: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.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-79440-4-KqB0OHFUD4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79440-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79440-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01121.txt.bz2
Content-length: 3164

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-09
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed from 4.9.3 up to trunk (7.0). Compiling the test with 4.8.5 gives the
error

    allocate( mygroup(1)%el(10), source=CBTHII( 12, 1, mymaterial, 1.5) )
                                                       1
Error: Can't convert TYPE(cmaterial) to CLASS(cmaterial) at (1)

The change occurred between revisions r201266 (2013-07-26, error) and r201631
(2013-08-09, ICE).

Backtrace is

    frame #11: 0x0000000100700c38 f951`fold_convert_loc(loc=0,
type=0x00000001445f13f0, arg=<unavailable>) + 1544 at fold-const.c:2361
    frame #12: 0x000000010011a6fc
f951`::gfc_trans_subcomponent_assign(dest=0x0000000144600a20,
cm=0x000000014263be20, expr=0x0000000142650f90, sym=<unavailable>,
init=<unavailable>) + 892 at trans-expr.c:7399
    frame #13: 0x000000010011b506
f951`gfc_trans_structure_assign(dest=0x0000000144600990,
expr=0x0000000142658890, init=false, coarray=false) + 262 at trans-expr.c:7578
    frame #14: 0x000000010011ad5b
f951`::gfc_trans_subcomponent_assign(dest=0x0000000144600990,
cm=0x000000014264ee00, expr=0x0000000142658890, sym=0x000000014264ce60,
init=<unavailable>) + 2523 at trans-expr.c:7416
    frame #15: 0x000000010011b506
f951`gfc_trans_structure_assign(dest=0x00000001445f5ea0,
expr=0x0000000142651110, init=true, coarray=false) + 262 at trans-expr.c:7578
    frame #16: 0x000000010011c1cd
f951`gfc_conv_structure(se=0x00007fff5fbfedc0, expr=0x0000000142651110, init=0)
+ 621 at trans-expr.c:7645
    frame #17: 0x000000010011c78b
f951`gfc_conv_expr_reference(se=0x00007fff5fbfedc0, expr=0x0000000142651110) +
107 at trans-expr.c:7928
    frame #18: 0x0000000100156475
f951`gfc_trans_allocate(code=0x00000001426511d0) + 7173 at trans-stmt.c:5642
    frame #19: 0x00000001000e09f8 f951`::trans_code(code=0x00000001426511d0,
cond=0x0000000000000000) + 1496 at trans.c:1965
    frame #20: 0x00000001001098c5
f951`gfc_generate_function_code(ns=<unavailable>) + 949 at trans-decl.c:6296
    frame #21: 0x0000000100094eac f951`gfc_parse_file() + 1788 at parse.c:6051
    frame #22: 0x00000001000dcdf7 f951`::gfc_be_parse_file() + 71 at
f95-lang.c:204
    frame #23: 0x0000000100a3214a f951`::compile_file() + 58 at toplev.c:463
    frame #24: 0x0000000100e5f1e3 f951`toplev::main(this=0x00007fff5fbff290,
argc=<unavailable>, argv=<unavailable>) + 3763 at toplev.c:1983
    frame #25: 0x0000000100e60709 f951`main(argc=2, argv=0x00007fff5fbff2d8) +
41 at main.c:39

The ICE occurs at

    default:
      if (TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (orig))
        return fold_build1_loc (loc, NOP_EXPR, type, arg);
      gcc_unreachable ();
>From gcc-bugs-return-553590-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 13:52:50 2017
Return-Path: <gcc-bugs-return-553590-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57439 invoked by alias); 9 Feb 2017 13:52: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 57128 invoked by uid 48); 9 Feb 2017 13:52:36 -0000
From: "rearnsha at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79436] [ARM Cortex-M4F] VFMA used in place of subtraction gives inexact results
Date: Thu, 09 Feb 2017 13: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: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rearnsha 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-79436-4-OUQ4xIiVBn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79436-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79436-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01122.txt.bz2
Content-length: 365

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

--- Comment #7 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
double __attribute__((optimize("fp-contract=off"))) x (double a, double b,
double c)
{
  return a*b + c;
}

You might also need to mark the function as no-inline to prevent it being
inlined into functions where the default still applies.
>From gcc-bugs-return-553591-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 14:01:19 2017
Return-Path: <gcc-bugs-return-553591-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 72831 invoked by alias); 9 Feb 2017 14:01: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 72542 invoked by uid 48); 9 Feb 2017 14:01:06 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/79421] gnat.dg/trampoline3.adb fails on s390x
Date: Thu, 09 Feb 2017 14:01: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.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-79421-4-CjSMi75MP9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79421-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79421-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01123.txt.bz2
Content-length: 249

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

--- Comment #2 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
And on a target not using function descriptors otherwise,

  #define TARGET_CUSTOM_FUNCTION_DESCRIPTORS 1

affects only Ada?
>From gcc-bugs-return-553592-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 14:02:31 2017
Return-Path: <gcc-bugs-return-553592-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88444 invoked by alias); 9 Feb 2017 14:02: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 88098 invoked by uid 55); 9 Feb 2017 14:02:16 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79431] [6/7 Regression] ICE in get, at cgraph.h:397
Date: Thu, 09 Feb 2017 14:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code, openmp
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79431-4-Bj27O0PHTr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79431-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79431-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01124.txt.bz2
Content-length: 1088

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Feb  9 14:01:44 2017
New Revision: 245302

URL: https://gcc.gnu.org/viewcvs?rev=245302&root=gcc&view=rev
Log:
        PR c/79431
        * gimplify.c (gimplify_adjust_omp_clauses): Ignore
        "omp declare target link" attribute unless is_global_var.
        * omp-offload.c (find_link_var_op): Likewise.
c/
        * c-parser.c (c_parser_omp_declare_target): Don't invoke
        symtab_node::get on automatic variables.
cp/
        * parser.c (cp_parser_oacc_declare): Formatting fix.
        (cp_parser_omp_declare_target): Don't invoke symtab_node::get on
        automatic variables.
testsuite/
        * c-c++-common/gomp/pr79431.c: New test.

Added:
    trunk/gcc/testsuite/c-c++-common/gomp/pr79431.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-parser.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/gimplify.c
    trunk/gcc/omp-offload.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-553593-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 14:06:05 2017
Return-Path: <gcc-bugs-return-553593-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92258 invoked by alias); 9 Feb 2017 14:06: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 91892 invoked by uid 48); 9 Feb 2017 14:05:51 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79432] [7 Regression] ICE: verify_ssa failed
Date: Thu, 09 Feb 2017 14:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-checking
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79432-4-R5c9TTMAWP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79432-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79432-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01125.txt.bz2
Content-length: 286

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

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
int fn1 (void);
int __attribute__((returns_twice)) vfork (void);
void fn2 ()
{
  int a;
  a = fn1() + 2 + (vfork() + 1 + vfork());
}


live over two vfork calls.
>From gcc-bugs-return-553594-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 14:07:43 2017
Return-Path: <gcc-bugs-return-553594-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95505 invoked by alias); 9 Feb 2017 14:07: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 95367 invoked by uid 55); 9 Feb 2017 14:07:30 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79429] [6/7 Regression] ICE in add_stmt, at cp/semantics.c:385
Date: Thu, 09 Feb 2017 14: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: 7.0
X-Bugzilla-Keywords: error-recovery, 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: P4
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79429-4-jspoC0aIvH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79429-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79429-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01126.txt.bz2
Content-length: 918

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Feb  9 14:06:58 2017
New Revision: 245303

URL: https://gcc.gnu.org/viewcvs?rev=245303&root=gcc&view=rev
Log:
        PR c++/79429
        * parser.c (cp_parser_omp_ordered): Don't check for non-pragma_stmt
        non-pragma_compound context here.
        (cp_parser_omp_target): Likewise.
        (cp_parser_pragma): Don't call push_omp_privatization_clauses and
        parsing for ordered and target omp pragmas in non-pragma_stmt
        non-pragma_compound contexts.

        * c-c++-common/gomp/pr79429.c: New test.
        * g++.dg/gomp/pr79429.C: New test.

Added:
    trunk/gcc/testsuite/c-c++-common/gomp/pr79429.c
    trunk/gcc/testsuite/g++.dg/gomp/pr79429.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-553595-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 14:27:26 2017
Return-Path: <gcc-bugs-return-553595-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 72037 invoked by alias); 9 Feb 2017 14: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 71917 invoked by uid 55); 9 Feb 2017 14:27:12 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79413] [7 Regression] ICE in make_ssa_name_fn, at tree-ssanames.c:265
Date: Thu, 09 Feb 2017 14:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
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: P1
X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79413-4-9yDvCPdHgQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79413-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79413-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01127.txt.bz2
Content-length: 607

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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Feb  9 14:26:40 2017
New Revision: 245304

URL: https://gcc.gnu.org/viewcvs?rev=245304&root=gcc&view=rev
Log:
        PR c/79413
        * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
        not arbitrary TREE_CONSTANT.

        * gcc.c-torture/compile/pr79413.c: New test.

Added:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr79413.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimplify.h
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-553597-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 14:30:57 2017
Return-Path: <gcc-bugs-return-553597-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75385 invoked by alias); 9 Feb 2017 14:30: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 74850 invoked by uid 48); 9 Feb 2017 14:30:35 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79431] [6 Regression] ICE in get, at cgraph.h:397
Date: Thu, 09 Feb 2017 14:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code, openmp
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-79431-4-T320iZ6CPw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79431-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79431-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01129.txt.bz2
Content-length: 471

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[6/7 Regression] ICE in     |[6 Regression] ICE in get,
                   |get, at cgraph.h:397        |at cgraph.h:397

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed on the trunk so far.
>From gcc-bugs-return-553596-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 14:30:49 2017
Return-Path: <gcc-bugs-return-553596-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74906 invoked by alias); 9 Feb 2017 14:30: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 74485 invoked by uid 48); 9 Feb 2017 14:30:04 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79429] [6 Regression] ICE in add_stmt, at cp/semantics.c:385
Date: Thu, 09 Feb 2017 14:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: error-recovery, 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: P4
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-79429-4-S7gRLFyvkm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79429-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79429-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01128.txt.bz2
Content-length: 531

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[6/7 Regression] ICE in     |[6 Regression] ICE in
                   |add_stmt, at                |add_stmt, at
                   |cp/semantics.c:385          |cp/semantics.c:385

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed on the trunk so far.
>From gcc-bugs-return-553598-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 14:31:07 2017
Return-Path: <gcc-bugs-return-553598-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76593 invoked by alias); 9 Feb 2017 14:31: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 75536 invoked by uid 48); 9 Feb 2017 14:30:57 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79413] [7 Regression] ICE in make_ssa_name_fn, at tree-ssanames.c:265
Date: Thu, 09 Feb 2017 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.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution assigned_to
Message-ID: <bug-79413-4-gZBjlIbCDw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79413-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79413-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01130.txt.bz2
Content-length: 506

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

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

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

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-553599-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 14:34:55 2017
Return-Path: <gcc-bugs-return-553599-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81586 invoked by alias); 9 Feb 2017 14:34: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 81394 invoked by uid 48); 9 Feb 2017 14:34:41 -0000
From: "juergen.reuter at desy dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79230] [7 Regression] [OOP] Run time error: double free or corruption
Date: Thu, 09 Feb 2017 14:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: juergen.reuter at desy dot de
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: vehre at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79230-4-YmmrvkzMQE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79230-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79230-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01131.txt.bz2
Content-length: 341

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

--- Comment #28 from Jürgen Reuter <juergen.reuter at desy dot de> ---
(In reply to vehre from comment #27)
> Waiting on week for regression reports before closing.

From our side this is ok. No regression, except for the special problem
in PR79430 most likely unrelated to this.
>From gcc-bugs-return-553600-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 14:37:44 2017
Return-Path: <gcc-bugs-return-553600-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85301 invoked by alias); 9 Feb 2017 14:37:44 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 85100 invoked by uid 48); 9 Feb 2017 14:37:31 -0000
From: "zuverliantellabrach at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79442] New: GCC 5.4 does not fully support N3652 (Relaxing constraints on constexpr functions)
Date: Thu, 09 Feb 2017 14: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: 5.4.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: zuverliantellabrach 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-79442-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01132.txt.bz2
Content-length: 980

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

            Bug ID: 79442
           Summary: GCC 5.4 does not fully support N3652 (Relaxing
                    constraints on constexpr functions)
           Product: gcc
           Version: 5.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zuverliantellabrach at hotmail dot com
  Target Milestone: ---

GCC 5 is supposed to provide full support for N3652, but the code below does
not compile under GCC 5.4 (it does, however, compile under GCC 6.1).



#include <iostream>

template<class... Ts>
constexpr bool allTrue(Ts... ts) {
  const bool bs[]={ts...};
  for(size_t i=0; i<sizeof...(Ts); ++i) {if(!bs[i]) {return false;}}
  return true;
}

template<bool B>
struct S {S() {std::cout<<std::boolalpha<<B<<std::endl;}};

int main() {
  S<allTrue(true,true,true,false)>{};
  return 0;
}
>From gcc-bugs-return-553601-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 14:40:01 2017
Return-Path: <gcc-bugs-return-553601-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89019 invoked by alias); 9 Feb 2017 14:40: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 88816 invoked by uid 48); 9 Feb 2017 14:39:48 -0000
From: "spop at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/69675] [6/7 Regression] [graphite] ICE: verify_ssa failed (definition in block 42 does not dominate use in block 34)
Date: Thu, 09 Feb 2017 14:40: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.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: spop 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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-69675-4-2EyhW0NuHN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69675-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69675-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01133.txt.bz2
Content-length: 1788

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

--- Comment #10 from Sebastian Pop <spop at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #9)
> Yeah, seems to be gone with ISL 0.18 here as well... (but with 0.16.1 I can
> still reproduce it).  ISL 0.18 doesn't do anything to the loop.  ISL 0.16.1
> just did some IV transforms it seems:
> 
> [scheduler] original ast:
> for (int c0 = 0; c0 <= -P_14; c0 += 1)
>   for (int c1 = 0; c1 <= 3; c1 += 1) {
>     S_5(c0, c1);
>     if (c1 <= 2)
>       S_6(c0, c1);
>   }
> 
> [scheduler] AST generated by isl:
> for (int c0 = 0; c0 <= -P_14; c0 += 1)
>   for (int c1 = 3 * c0; c1 <= 3 * c0 + 3; c1 += 1) {
>     S_5(c0, -3 * c0 + c1);

I don't know why isl started the inner loop at 3*c0:
In the end we have the identity for the array subscript: 3*c0 - 3*c0 = 0
Could be a bug in the older isl.

>     if (3 * c0 + 2 >= c1)
>       S_6(c0, -3 * c0 + c1);
>   }
> 
> and with ISL 0.18 we have
> 
> [scheduler] isl optimized schedule is identical to the original schedule.
> for (int c0 = 0; c0 <= -P_14; c0 += 1)
>   for (int c1 = 0; c1 <= 3; c1 += 1) {
>     S_5(c0, c1);
>     if (c1 <= 2)
>       S_6(c0, c1);
>   }
> 
> and eventually code generation is not happy with the changed form
> (-fgraphite-identity is fine).
> 
> Sebastian, any comment?  I think we could still for example require current
> ISL
> for GCC 6 (0.18 or maybe 0.17.1).  Or at least drop support for the current
> legacy.

I would like moving away from the older isl versions: newer isl have fewer
bugs, and people also worked on making isl faster.
Moving to a newer isl would allow to also clean up the #ifdef's from the
graphite-*.c files which will make the code easier to read.
>From gcc-bugs-return-553602-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 14:51:56 2017
Return-Path: <gcc-bugs-return-553602-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24762 invoked by alias); 9 Feb 2017 14:51: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 24657 invoked by uid 48); 9 Feb 2017 14:51:40 -0000
From: "osemwaro.pedro at ocado dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79442] GCC 5.4 does not fully support N3652 (Relaxing constraints on constexpr functions)
Date: Thu, 09 Feb 2017 14: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: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: osemwaro.pedro at ocado 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-79442-4-1Jif4U9ZHR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79442-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79442-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01134.txt.bz2
Content-length: 323

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

--- Comment #1 from Ose Pedro <osemwaro.pedro at ocado dot com> ---
To be more precise, it does not work under GCC 5.4.0, but does work under GCC
6.1.0. I haven't been able to find a GCC cloud service that provides 5.4.1, so
haven't been able to test that version.
>From gcc-bugs-return-553603-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 15:24:45 2017
Return-Path: <gcc-bugs-return-553603-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130705 invoked by alias); 9 Feb 2017 15: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 124061 invoked by uid 48); 9 Feb 2017 15:24:30 -0000
From: "amonakov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79439] Missing nop instruction after recursive call corrupts TOC register
Date: Thu, 09 Feb 2017 15: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: 6.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amonakov 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-79439-4-K9CZANDNmR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79439-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79439-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01135.txt.bz2
Content-length: 559

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

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

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

--- Comment #7 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
Note that there's also a bug in the middle-end since gcc makes an assumption
that such calls are always self-recursive on any target; see comments 6-9 in
bug 56727.
>From gcc-bugs-return-553604-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 15:35:29 2017
Return-Path: <gcc-bugs-return-553604-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11881 invoked by alias); 9 Feb 2017 15:35: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 10796 invoked by uid 48); 9 Feb 2017 15:35:16 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/56727] Recursive call goes through the PLT unnecessarily
Date: Thu, 09 Feb 2017 15:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.7.2
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: minor
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:
Message-ID: <bug-56727-4-yzXqQj6Bdb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56727-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56727-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01136.txt.bz2
Content-length: 1014

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

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Yuri Gribov from comment #9)
> (In reply to Alexander Monakov from comment #8)
> > Well, if my argument is correct, then GCC generates wrong code for the very
> > first example in comment #0.
> 
> I believe it does (see my #5, most probly author of some pass failed to
> check for interposition).  Note that simple recursive factorial is expanded
> to loop too which is a more impressive instance of this bug.
> 
> > To my knowledge, that
> > is the sole instance where optimization doesn't fully honor ELF
> > interposition possibility.
> 
> +1

Don't we also inline any beneficial inline functions at -O3 even if they could
be interposed (definitely not suggesting we stop doing that, that would totally
kill compiler performance)?  I'd say we shouldn't care about the semantic
interposition for self-recursion either, just make sure we don't crash on such
code.
>From gcc-bugs-return-553605-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 15:41:37 2017
Return-Path: <gcc-bugs-return-553605-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28201 invoked by alias); 9 Feb 2017 15: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 28008 invoked by uid 48); 9 Feb 2017 15:41:25 -0000
From: "fw at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/56727] Recursive call goes through the PLT unnecessarily
Date: Thu, 09 Feb 2017 15:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.7.2
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: minor
X-Bugzilla-Who: fw at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-56727-4-5ulSWn3Hx3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56727-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56727-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01137.txt.bz2
Content-length: 703

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

--- Comment #11 from Florian Weimer <fw at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #10)

> Don't we also inline any beneficial inline functions at -O3 even if they
> could be interposed (definitely not suggesting we stop doing that, that
> would totally kill compiler performance)?  I'd say we shouldn't care about
> the semantic interposition for self-recursion either, just make sure we
> don't crash on such code.

At least we should make things consistent and use direct calls for all local
locals which could potentially be subject to inlining.  Otherwise,
interposition could break with apparently unrelated code changes.
>From gcc-bugs-return-553606-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 15:49:02 2017
Return-Path: <gcc-bugs-return-553606-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66267 invoked by alias); 9 Feb 2017 15:49: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 66066 invoked by uid 48); 9 Feb 2017 15:48:49 -0000
From: "tetra2005 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/56727] Recursive call goes through the PLT unnecessarily
Date: Thu, 09 Feb 2017 15:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.7.2
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: minor
X-Bugzilla-Who: tetra2005 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-56727-4-tsCOSYUoVs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56727-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56727-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01138.txt.bz2
Content-length: 1012

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

--- Comment #12 from Yuri Gribov <tetra2005 at gmail dot com> ---
(In reply to Jakub Jelinek from comment #10)
> (In reply to Yuri Gribov from comment #9)
> > (In reply to Alexander Monakov from comment #8)
> > > Well, if my argument is correct, then GCC generates wrong code for the very
> > > first example in comment #0.
> > 
> > I believe it does (see my #5, most probly author of some pass failed to
> > check for interposition).  Note that simple recursive factorial is expanded
> > to loop too which is a more impressive instance of this bug.
> > 
> > > To my knowledge, that
> > > is the sole instance where optimization doesn't fully honor ELF
> > > interposition possibility.
> > 
> > +1
> 
> Don't we also inline any beneficial inline functions at -O3 even if they
> could be interposed (definitely not suggesting we stop doing that, that
> would totally kill compiler performance)?

Inlining inline functions is fine due to ODR rule.
>From gcc-bugs-return-553607-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 15:54:12 2017
Return-Path: <gcc-bugs-return-553607-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 51834 invoked by alias); 9 Feb 2017 15:54: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 31405 invoked by uid 48); 9 Feb 2017 15:53:59 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/56727] Recursive call goes through the PLT unnecessarily
Date: Thu, 09 Feb 2017 15:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.7.2
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: minor
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:
Message-ID: <bug-56727-4-V2qFrGKNka@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56727-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56727-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01139.txt.bz2
Content-length: 427

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

--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Yuri Gribov from comment #12)
> Inlining inline functions is fine due to ODR rule.

ODR doesn't apply just to inline functions.  So all semantic interposition,
except for the case when both functions do the very same thing, is ODR
violation.
But many programs and libraries rely on it heavily.
>From gcc-bugs-return-553608-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 15:56:01 2017
Return-Path: <gcc-bugs-return-553608-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86533 invoked by alias); 9 Feb 2017 15:56: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 71518 invoked by uid 48); 9 Feb 2017 15:55:48 -0000
From: "hubicka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/56727] Recursive call goes through the PLT unnecessarily
Date: Thu, 09 Feb 2017 15:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.7.2
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: minor
X-Bugzilla-Who: hubicka at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-56727-4-Cy4UnspBSX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56727-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56727-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01140.txt.bz2
Content-length: 1024

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

--- Comment #14 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
For the draft patch you need to check for aliases.  If global symbol is indeed
the only way to reach the function, then the transformation is IMO valid.

As for tailcall, we have recursive_call_p predicate that uses
symtab_node::semantically_equivalent_p which returns true, because it is called
for t and t. It is valid for testcase as written, because we know there is no
alias.

However

void f(int b)
{
    f(0);
}

void g(int b) __attribute__((alias(("f"))));

is indeed misopitmized and the bug is that recursive_call_p needs to check all
aliases of the function being semantically equivalent to function itself.  I
will fix that.

For the optimization redirecting to noninterposable aliases, I would be fine
with the patch if it was extended by the check verifying that there is at most
one externally visible symbol aliasing the definition or that they are all
non-interposable.

Honza
>From gcc-bugs-return-553609-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 16:00:49 2017
Return-Path: <gcc-bugs-return-553609-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 660 invoked by alias); 9 Feb 2017 16:00: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 371 invoked by uid 48); 9 Feb 2017 16:00:33 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/79443] New: libgo/math test fails on s390x (undefined symbols cosh, sinh, tanh, hasVX)
Date: Thu, 09 Feb 2017 16:00:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: go
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcchost cf_gcctarget
Message-ID: <bug-79443-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01141.txt.bz2
Content-length: 1041

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

            Bug ID: 79443
           Summary: libgo/math test fails on s390x (undefined symbols
                    cosh, sinh, tanh, hasVX)
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: go
          Assignee: ian at airs dot com
          Reporter: vogt at linux dot vnet.ibm.com
                CC: cmang at google dot com, krebbel at gcc dot gnu.org
  Target Milestone: ---
              Host: s390x
            Target: s390x

Currently (r245298) there are some libgo/math test failures on s390x:

--
 var CoshNoVec = cosh
                 ^
export_s390x_test.go:12:17: error: reference to undefined name 'sinh'
 var SinhNoVec = sinh
                 ^
export_s390x_test.go:13:17: error: reference to undefined name 'tanh'
 var TanhNoVec = tanh
                 ^
export_s390x_test.go:14:13: error: reference to undefined name 'hasVX'
 var HasVX = hasVX
             ^
--
>From gcc-bugs-return-553610-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 16:15:44 2017
Return-Path: <gcc-bugs-return-553610-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38786 invoked by alias); 9 Feb 2017 16: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 38650 invoked by uid 48); 9 Feb 2017 16:15:28 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/79441] [7 regression] gnat.dg/pack9.adb fails
Date: Thu, 09 Feb 2017 16:15: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou 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.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cf_gcchost target_milestone short_desc everconfirmed
Message-ID: <bug-79441-4-bMBX70e6kQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79441-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79441-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01142.txt.bz2
Content-length: 787

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-09
               Host|s390x                       |
   Target Milestone|---                         |7.0
            Summary|gnat.dg/pack9.adb fails     |[7 regression]
                   |since r 236279              |gnat.dg/pack9.adb fails
     Ever confirmed|0                           |1

--- Comment #1 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Confirmed, only a missed optimization but needs to fixed at some point.
>From gcc-bugs-return-553611-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 16:16:20 2017
Return-Path: <gcc-bugs-return-553611-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39848 invoked by alias); 9 Feb 2017 16: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 39585 invoked by uid 48); 9 Feb 2017 16:16:06 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/79441] [7 regression] gnat.dg/pack9.adb fails
Date: Thu, 09 Feb 2017 16:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-79441-4-1B2xPOrjFU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79441-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79441-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01143.txt.bz2
Content-length: 471

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

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 #2 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Investigating.
>From gcc-bugs-return-553613-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 16:20:58 2017
Return-Path: <gcc-bugs-return-553613-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 51291 invoked by alias); 9 Feb 2017 16:20: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 51194 invoked by uid 48); 9 Feb 2017 16:20:52 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/79443] libgo/math test fails on s390x (undefined symbols cosh, sinh, tanh, hasVX)
Date: Thu, 09 Feb 2017 16:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: go
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ian at airs dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-79443-4-nDHbzXSfbU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79443-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79443-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01145.txt.bz2
Content-length: 294

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

--- Comment #1 from Ian Lance Taylor <ian at airs dot com> ---
Created attachment 40707
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40707&action=edit
Possible patch

Can you check whether this patch fixes the problem?  Thanks.
>From gcc-bugs-return-553612-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 16:20:25 2017
Return-Path: <gcc-bugs-return-553612-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50274 invoked by alias); 9 Feb 2017 16:20: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 50070 invoked by uid 48); 9 Feb 2017 16:20:12 -0000
From: "arnez at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/79444] New: Inconsistent use of DW_OP_piece for vector registers on s390x
Date: Thu, 09 Feb 2017 16:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: arnez at linux dot vnet.ibm.com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-79444-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01144.txt.bz2
Content-length: 1781

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

            Bug ID: 79444
           Summary: Inconsistent use of DW_OP_piece for vector registers
                    on s390x
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: arnez at linux dot vnet.ibm.com
  Target Milestone: ---

GCC emits DW_OP_piece for vector registers on s390x in (at least) two
different incompatible ways:

(1) When describing a float field in a structure that was optimized into a
floating-point register:

  extern void do_something (float a, float b, float s, float p);

  void foo (float a, float b)
  {
    struct { float a; float b; } s = { a, b };

    do_something (a, b, s.a + s.b, s.a * s.b);
  }

Compiling the above with "gcc -march=z13 -O3 -g" yields a location list
for foo's variable 's' with an entry like this:

  (DW_OP_reg16 (f0); DW_OP_piece: 4; DW_OP_reg17 (f2); DW_OP_piece: 4)

Here the piece operations refer to the *upper* bytes of the floating-point
registers f0 and f2 (aka v0 and v2).

(2) When describing an __int128 bit field that was optimized into a vector
register:

  extern void do_something (__int128);

  void foo (__int128 x, __int128 y)
  {
    struct {
      unsigned __int128 p: 32;
      unsigned __int128 a: 96;
    } w = {0, x};
    do_something (w.a + y);
  }

Compiling the above code with "gcc -march=z13 -O3 -g" yields a location
list for foo's variable 'w' with an entry like this:

  (DW_OP_lit0; DW_OP_stack_value; DW_OP_piece: 4; DW_OP_reg16 (f0);
  DW_OP_piece: 12)

And here the latter piece operation refers to the *lower* bytes of the vector
register v0.
>From gcc-bugs-return-553614-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 16:35:54 2017
Return-Path: <gcc-bugs-return-553614-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86642 invoked by alias); 9 Feb 2017 16:35: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 86478 invoked by uid 48); 9 Feb 2017 16:35:40 -0000
From: "hubicka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79224] [7 Regression] Large C-Ray slowdown
Date: Thu, 09 Feb 2017 16:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hubicka at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79224-4-BKqwXDtZhn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79224-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79224-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01146.txt.bz2
Content-length: 562

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

--- Comment #6 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
This is all bit about luck.  We have big_speedup hack that lets us to bypass
inline-insns-auto when we know the combination caller+callee improve by given
precentage.  Because we inline more, caller is now bigger and slower and
because we early optimize better callee is faster, so overall speedup is
smaller.

There are two extra issues with propagating.  I will simply fix them and drop
the big speedup percentage from 10% to 8%.

Honza
>From gcc-bugs-return-553616-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 17:08:25 2017
Return-Path: <gcc-bugs-return-553616-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110064 invoked by alias); 9 Feb 2017 17:08: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 109893 invoked by uid 48); 9 Feb 2017 17:08:17 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79428] [6 Regression] ICE in c_parser_consume_token, at c/c-parser.c:770
Date: Thu, 09 Feb 2017 17:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution short_desc
Message-ID: <bug-79428-4-YK6b9PFLER@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79428-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79428-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01148.txt.bz2
Content-length: 643

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
            Summary|[6/7 Regression] ICE in     |[6 Regression] ICE in
                   |c_parser_consume_token, at  |c_parser_consume_token, at
                   |c/c-parser.c:770            |c/c-parser.c:770

--- Comment #10 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-553615-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 17:08:03 2017
Return-Path: <gcc-bugs-return-553615-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109142 invoked by alias); 9 Feb 2017 17: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 109073 invoked by uid 55); 9 Feb 2017 17:07:59 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79428] [6/7 Regression] ICE in c_parser_consume_token, at c/c-parser.c:770
Date: Thu, 09 Feb 2017 17:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79428-4-sO8btoP8D6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79428-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79428-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01147.txt.bz2
Content-length: 1275

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

--- Comment #9 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Thu Feb  9 17:07:26 2017
New Revision: 245309

URL: https://gcc.gnu.org/viewcvs?rev=245309&root=gcc&view=rev
Log:
        PR c/79428
        * c-parser.c (c_parser_omp_ordered): Call c_parser_skip_to_pragma_eol
        instead of c_parser_skip_until_found.

        * c-c++-common/cilk-plus/CK/pr79428-4.c: New test.
        * c-c++-common/cilk-plus/CK/pr79428-7.c: New test.
        * c-c++-common/goacc/pr79428-1.c: New test.
        * c-c++-common/gomp/pr79428-2.c: New test.
        * c-c++-common/gomp/pr79428-5.c: New test.
        * c-c++-common/gomp/pr79428-6.c: New test.
        * c-c++-common/pr79428-3.c: New test.

Added:
    trunk/gcc/testsuite/c-c++-common/cilk-plus/CK/pr79428-4.c
    trunk/gcc/testsuite/c-c++-common/cilk-plus/CK/pr79428-7.c
    trunk/gcc/testsuite/c-c++-common/goacc/pr79428-1.c
    trunk/gcc/testsuite/c-c++-common/gomp/pr79428-2.c
    trunk/gcc/testsuite/c-c++-common/gomp/pr79428-5.c
    trunk/gcc/testsuite/c-c++-common/gomp/pr79428-6.c
    trunk/gcc/testsuite/c-c++-common/pr79428-3.c
Modified:
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-parser.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-553617-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 17:12:15 2017
Return-Path: <gcc-bugs-return-553617-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120396 invoked by alias); 9 Feb 2017 17:12: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 120257 invoked by uid 48); 9 Feb 2017 17:12:01 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/79421] gnat.dg/trampoline3.adb fails on s390x
Date: Thu, 09 Feb 2017 17: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou 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-79421-4-jEZ3hUTXNt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79421-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79421-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01149.txt.bz2
Content-length: 385

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

--- Comment #3 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> And on a target not using function descriptors otherwise,
> 
>   #define TARGET_CUSTOM_FUNCTION_DESCRIPTORS 1
> 
> affects only Ada?

It affects languages defining LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS to true,
which indeed boils down to Ada as of yet.
>From gcc-bugs-return-553618-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 17:20:46 2017
Return-Path: <gcc-bugs-return-553618-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105099 invoked by alias); 9 Feb 2017 17:20: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 104767 invoked by uid 48); 9 Feb 2017 17:20:29 -0000
From: "georggcc at googlemail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/79445] New: Address clause on named number gives Assert_Failure in the compiler
Date: Thu, 09 Feb 2017 17:20: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: georggcc 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-79445-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01150.txt.bz2
Content-length: 2272

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

            Bug ID: 79445
           Summary: Address clause on named number gives Assert_Failure in
                    the compiler
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: georggcc at googlemail dot com
  Target Milestone: ---

procedure Address_Clause_on_Named_Number is
    C : constant := 5 with Address => Anything;
begin
    null;
end ;

$ gcc -c -gnatl -gnatwa -gnatd.n address_clause_on_named_number.adb 
/home/bauhaus/opt/gcc-7/lib/gcc/x86_64-pc-linux-gnu/7.0.0/adainclude/system.ads

GNAT 7.0.0 20161104 (experimental) [trunk revision 241862]
Copyright 1992-2016, Free Software Foundation, Inc.
address_clause_on_named_number.adb
+===========================GNAT BUG DETECTED==============================+
| 7.0.0 20161104 (experimental) [trunk revision 241862] (x86_64-pc-linux-gnu) |
| Assert_Failure aspects.adb:647                                           |
| Error detected at address_clause_on_named_number.adb:2:39                |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.            |
| Use a subject line meaningful to you and us to track the bug.            |
| Include the entire contents of this bug box in the report.               |
| Include the exact command that you entered.                              |
| Also include sources listed below.                                       |
+==========================================================================+

Please include these source files with error report
Note that list may not be accurate in some cases,
so please double check that the problem can still
be reproduced with the set of files listed.
Consider also -gnatd.n switch (see debug.adb).

address_clause_on_named_number.adb




raised SYSTEM.ASSERTIONS.ASSERT_FAILURE : namet.adb:146
>From gcc-bugs-return-553619-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 17:23:38 2017
Return-Path: <gcc-bugs-return-553619-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107079 invoked by alias); 9 Feb 2017 17:23: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 107002 invoked by uid 48); 9 Feb 2017 17:23:24 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/79443] libgo/math test fails on s390x (undefined symbols cosh, sinh, tanh, hasVX)
Date: Thu, 09 Feb 2017 17:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: go
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79443-4-YcCE3612JG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79443-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79443-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01151.txt.bz2
Content-length: 584

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

--- Comment #2 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
Yes, that fixes it.  Now there's another one in crypto/sha256.  Do you want me
to open another bug report for that?

--
fallback_test.go:19:5: error: reference to undefined name 'useAsm'
  if useAsm == false {
     ^
fallback_test.go:22:2: error: reference to undefined name 'useAsm'
  useAsm = false
  ^
fallback_test.go:23:17: error: reference to undefined name 'useAsm'
  defer func() { useAsm = true }()
                 ^
FAIL: crypto/sha256
--
>From gcc-bugs-return-553620-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 17:44:04 2017
Return-Path: <gcc-bugs-return-553620-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93909 invoked by alias); 9 Feb 2017 17: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 93127 invoked by uid 48); 9 Feb 2017 17:43:49 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79433] __has_include does not conform to SD-6
Date: Thu, 09 Feb 2017 17:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_severity
Message-ID: <bug-79433-4-vGJeDgrn8m@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01152.txt.bz2
Content-length: 793

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement

--- Comment #12 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Marc Mutz from comment #9)
> __has_include these days is defined by SD-6,

Nope, it's defined normatively in the C++17 draft not SD-6, and it says a
"has-include-expression evaluates to 1 if the search for the source file
succeeds, and to 0 if the search fails." That is very clear, and we do exactly
that. The intended use case in SD-6 is not relevant, the C++ draft standard is
clear, and we conform to it.
>From gcc-bugs-return-553621-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 17:47:18 2017
Return-Path: <gcc-bugs-return-553621-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99645 invoked by alias); 9 Feb 2017 17:47: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 99600 invoked by uid 48); 9 Feb 2017 17:47:14 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79442] GCC 5.4 does not fully support N3652 (Relaxing constraints on constexpr functions)
Date: Thu, 09 Feb 2017 17: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: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79442-4-faRelkjMLa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79442-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79442-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01153.txt.bz2
Content-length: 284

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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
It's true that C++14 support is incomplete in GCC 5, but this is very unlikely
to change. In other words, this bug should be closed as RESOLVED FIXED by GCC
6.
>From gcc-bugs-return-553622-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 17:52:40 2017
Return-Path: <gcc-bugs-return-553622-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115231 invoked by alias); 9 Feb 2017 17: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 115070 invoked by uid 48); 9 Feb 2017 17:52:27 -0000
From: "osemwaro.pedro at ocado dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79442] GCC 5.4 does not fully support N3652 (Relaxing constraints on constexpr functions)
Date: Thu, 09 Feb 2017 17: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: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: osemwaro.pedro at ocado 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-79442-4-9Zf9grI87L@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79442-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79442-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01154.txt.bz2
Content-length: 547

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

--- Comment #3 from Ose Pedro <osemwaro.pedro at ocado dot com> ---
(In reply to Jonathan Wakely from comment #2)
> It's true that C++14 support is incomplete in GCC 5, but this is very
> unlikely to change. In other words, this bug should be closed as RESOLVED
> FIXED by GCC 6.

Oh ok. In that case, the "C++ Language Features" table on 
https://gcc.gnu.org/projects/cxx-status.html#cxx14 should be updated to reflect
this. Is this the right bug tracker for GCC website change requests?
>From gcc-bugs-return-553623-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 17:52:58 2017
Return-Path: <gcc-bugs-return-553623-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116035 invoked by alias); 9 Feb 2017 17:52: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 115847 invoked by uid 48); 9 Feb 2017 17:52:45 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/79443] libgo/math test fails on s390x (undefined symbols cosh, sinh, tanh, hasVX)
Date: Thu, 09 Feb 2017 17:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: go
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ian at airs dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-79443-4-ZEpLUtXv7h@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79443-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79443-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01155.txt.bz2
Content-length: 395

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

--- Comment #3 from Ian Lance Taylor <ian at airs dot com> ---
Created attachment 40708
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40708&action=edit
crypto patch

This patch may fix the crypto/sha256 problem.

Any other problems?  `make check-target-libgo` should show all of them.

No need to open separate bugs for each one.
>From gcc-bugs-return-553624-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 18:02:29 2017
Return-Path: <gcc-bugs-return-553624-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16863 invoked by alias); 9 Feb 2017 18:02: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 16691 invoked by uid 48); 9 Feb 2017 18:02:16 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79442] GCC 5.4 does not fully support N3652 (Relaxing constraints on constexpr functions)
Date: Thu, 09 Feb 2017 18:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79442-4-1GXHYvoDtF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79442-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79442-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01156.txt.bz2
Content-length: 522

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

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Ose Pedro from comment #0)
> GCC 5 is supposed to provide full support for N3652, but the code below does
> not compile under GCC 5.4 (it does, however, compile under GCC 6.1).

It compiles fine using any 5.x release, even 5.1.0, what error do you get?

You need to use -std=gnu++14 or -std=c++14, because N3652 is a C++14 feature.

I don't see a problem with the C++ status page.
>From gcc-bugs-return-553625-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 18:07:01 2017
Return-Path: <gcc-bugs-return-553625-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21812 invoked by alias); 9 Feb 2017 18:07: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 21500 invoked by uid 48); 9 Feb 2017 18:06:48 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/79421] gnat.dg/trampoline3.adb fails on s390x
Date: Thu, 09 Feb 2017 18:07: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.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-79421-4-1u39TyEUqc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79421-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79421-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01157.txt.bz2
Content-length: 192

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

--- Comment #4 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
Okay, that change fixes it without regressions.  I'll post a patch.
>From gcc-bugs-return-553626-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 18:07:01 2017
Return-Path: <gcc-bugs-return-553626-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21822 invoked by alias); 9 Feb 2017 18:07: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 21758 invoked by uid 48); 9 Feb 2017 18:06:55 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79433] __has_include(<new header>) is true but #include <new header> gives #error when -std=old
Date: Thu, 09 Feb 2017 18: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: 7.0.1
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: bug_status cf_reconfirmed_on short_desc everconfirmed
Message-ID: <bug-79433-4-T2otyKqd6a@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01158.txt.bz2
Content-length: 1222

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-09
            Summary|__has_include does not      |__has_include(<new header>)
                   |conform to SD-6             |is true but #include <new
                   |                            |header> gives #error when
                   |                            |-std=old
     Ever confirmed|0                           |1

--- Comment #13 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Even SD-6 has a similar specification:

The has-include-expression is replaced by the pp-number 1 if the search for the
source file succeeds, and by the pp-number 0 if the search fails.

It says nothing about whether inclusion would succeed, only whether the search
for the file succeeds. It's implementation-defined how the search for source
files is done.

I'll confirm this as an enhancement for libstdc++, but insisting it's not
conforming is simply wrong.
>From gcc-bugs-return-553627-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 18:08:16 2017
Return-Path: <gcc-bugs-return-553627-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24410 invoked by alias); 9 Feb 2017 18:08: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 24133 invoked by uid 48); 9 Feb 2017 18:08:02 -0000
From: "osemwaro.pedro at ocado dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79442] GCC 5.4 does not fully support N3652 (Relaxing constraints on constexpr functions)
Date: Thu, 09 Feb 2017 18:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: osemwaro.pedro at ocado 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: bug_status resolution
Message-ID: <bug-79442-4-pI1pxfJklT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79442-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79442-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01159.txt.bz2
Content-length: 1001

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

Ose Pedro <osemwaro.pedro at ocado dot com> changed:

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

--- Comment #5 from Ose Pedro <osemwaro.pedro at ocado dot com> ---
(In reply to Jonathan Wakely from comment #4)
> (In reply to Ose Pedro from comment #0)
> > GCC 5 is supposed to provide full support for N3652, but the code below does
> > not compile under GCC 5.4 (it does, however, compile under GCC 6.1).
> 
> It compiles fine using any 5.x release, even 5.1.0, what error do you get?
> 
> You need to use -std=gnu++14 or -std=c++14, because N3652 is a C++14 feature.
> 
> I don't see a problem with the C++ status page.

Oh sorry, my mistake - I was using an online compiler, and I wrongly assumed
that it had enabled c++14.
>From gcc-bugs-return-553628-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 18:14:23 2017
Return-Path: <gcc-bugs-return-553628-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39369 invoked by alias); 9 Feb 2017 18:14: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 39242 invoked by uid 48); 9 Feb 2017 18:14:09 -0000
From: "aldyh at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/64081] [5/6/7 Regression] r217827 prevents RTL loop unroll
Date: Thu, 09 Feb 2017 18:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: aldyh 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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64081-4-YANXDyQZkt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64081-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01160.txt.bz2
Content-length: 221

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

--- Comment #60 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
Proposed all-inclusive patch for this PR.

https://gcc.gnu.org/ml/gcc-patches/2017-02/msg00691.html
>From gcc-bugs-return-553629-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 18:16:29 2017
Return-Path: <gcc-bugs-return-553629-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43215 invoked by alias); 9 Feb 2017 18:16: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 43049 invoked by uid 48); 9 Feb 2017 18:16:15 -0000
From: "hubicka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/70795] [7 Regression] gcc/libjava/interpret.cc:1948:1: ICE: in binds_to_current_def_p, at symtab.c:2232
Date: Thu, 09 Feb 2017 18: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: 7.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: P4
X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-70795-4-kIyi2pk3sn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70795-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70795-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01161.txt.bz2
Content-length: 424

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

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

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

--- Comment #14 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-553630-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 18:16:47 2017
Return-Path: <gcc-bugs-return-553630-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44200 invoked by alias); 9 Feb 2017 18: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 43736 invoked by uid 55); 9 Feb 2017 18:16:33 -0000
From: "hubicka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/70795] [7 Regression] gcc/libjava/interpret.cc:1948:1: ICE: in binds_to_current_def_p, at symtab.c:2232
Date: Thu, 09 Feb 2017 18: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: 7.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: P4
X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-70795-4-5RCP00oJ6Y@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70795-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70795-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01162.txt.bz2
Content-length: 450

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

--- Comment #15 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Author: hubicka
Date: Thu Feb  9 18:16:00 2017
New Revision: 245312

URL: https://gcc.gnu.org/viewcvs?rev=245312&root=gcc&view=rev
Log:
        PR ipa/70795
        * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
        flag if needed.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cgraphunit.c
>From gcc-bugs-return-553631-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 18:18:33 2017
Return-Path: <gcc-bugs-return-553631-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76109 invoked by alias); 9 Feb 2017 18:18:33 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 67512 invoked by uid 48); 9 Feb 2017 18:18:23 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/79421] gnat.dg/trampoline3.adb fails on s390x
Date: Thu, 09 Feb 2017 18:18: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.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-79421-4-AzLs34AjzK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79421-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79421-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01163.txt.bz2
Content-length: 249

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

--- Comment #5 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
Patch available here:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79421

The bug can be closed when the patch is applied.
>From gcc-bugs-return-553632-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 19:07:16 2017
Return-Path: <gcc-bugs-return-553632-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54016 invoked by alias); 9 Feb 2017 19:07: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 53571 invoked by uid 48); 9 Feb 2017 19:07:10 -0000
From: "marc.mutz at kdab dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79433] __has_include(<new header>) is true but #include <new header> gives #error when -std=old
Date: Thu, 09 Feb 2017 19: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: marc.mutz at kdab 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-79433-4-KPQfzup04H@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01164.txt.bz2
Content-length: 561

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

--- Comment #14 from Marc Mutz <marc.mutz at kdab dot com> ---
You can hide behind the letter of the standard, but you cannot escape the
simple fact that __has_include is the intended mechanism to check for library
features that added a new header. Proof: You need to include that header to get
at the __cpp_lib macro, if any. If you can't use __has_include for that,
because the header stabs you in the back, then that intended mechanism is
broken. Call it conforming if you want, but it simply isn't.
>From gcc-bugs-return-553633-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 19:11:24 2017
Return-Path: <gcc-bugs-return-553633-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70053 invoked by alias); 9 Feb 2017 19:11: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 69811 invoked by uid 48); 9 Feb 2017 19:11:09 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79433] __has_include(<new header>) is true but #include <new header> gives #error when -std=old
Date: Thu, 09 Feb 2017 19:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
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-79433-4-bRWasCPJOZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01165.txt.bz2
Content-length: 724

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

--- Comment #15 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Marc Mutz from comment #14)
> You can hide behind the letter of the standard, but you cannot escape the
> simple fact that __has_include is the intended mechanism to check for
> library features that added a new header. Proof: You need to include that
> header to get at the __cpp_lib macro, if any. If you can't use __has_include
> for that, because the header stabs you in the back, then that intended
> mechanism is broken. Call it conforming if you want, but it simply isn't.

Isn't it the same is true for any header that someone could create and not just
about standard headers?
>From gcc-bugs-return-553634-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 19:52:27 2017
Return-Path: <gcc-bugs-return-553634-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48625 invoked by alias); 9 Feb 2017 19: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 47900 invoked by uid 48); 9 Feb 2017 19:52:14 -0000
From: "townsend at astro dot wisc.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79446] New: Passing internal procedure as argument causes segfault at runtime
Date: Thu, 09 Feb 2017 19:52: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: 5.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: townsend at astro dot wisc.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 attachments.created
Message-ID: <bug-79446-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01166.txt.bz2
Content-length: 1584

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

            Bug ID: 79446
           Summary: Passing internal procedure as argument causes segfault
                    at runtime
           Product: gcc
           Version: 5.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: townsend at astro dot wisc.edu
  Target Milestone: ---

Created attachment 40709
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40709&action=edit
Example program

Attached program demonstrates my problem. Compiling with:

gfortran -std=f2008 -g -o test_mem test_mem.f90

Running on RHEL (2.6.32-642.13.1.el6.x86_64), I get the following segfault:

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0  0x14E10ED8FBB7
#1  0x14E10ED8EDB0
#2  0x354523269F
#3  0x7FFC67EF9B00
Segmentation fault (core dumped)

In gdb:

(gdb) where
#0  0x00007ffe250e7390 in ?? ()
#1  0x0000000000400865 in test_mem_m::do (a=3, theirproc=0x7ffe250e7390) at
test_mem.f90:17
#2  0x0000000000400928 in test_mem () at test_mem.f90:29
#3  0x000000000040095f in main (argc=1, argv=0x7ffe250e9110) at test_mem.f90:25
#4  0x000000354521ed5d in __libc_start_main () from /lib64/libc.so.6
#5  0x0000000000400709 in _start ()

If I change the internal procedure to a non-internal one, the segfault goes
away. Also, I don't experience the segfault on other Linux distros (e.g.,
Gentoo/3.16.5) or Mac OS.

cheers,

Rich
>From gcc-bugs-return-553635-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 20:02:27 2017
Return-Path: <gcc-bugs-return-553635-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116636 invoked by alias); 9 Feb 2017 20:02: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 116469 invoked by uid 48); 9 Feb 2017 20:02:10 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/79443] libgo/math test fails on s390x (undefined symbols cosh, sinh, tanh, hasVX)
Date: Thu, 09 Feb 2017 20:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: go
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79443-4-h4osSzdRSI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79443-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79443-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01167.txt.bz2
Content-length: 289

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

--- Comment #4 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
No more than that, and the fix works.

(Except for the issue with cplx2.go that has been there from the start
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60181).
>From gcc-bugs-return-553636-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 20:12:49 2017
Return-Path: <gcc-bugs-return-553636-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33691 invoked by alias); 9 Feb 2017 20:12: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 33519 invoked by uid 48); 9 Feb 2017 20:12:33 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79184] [7 Regression] -Wint-in-bool-context triggered erroneously in template parameter
Date: Thu, 09 Feb 2017 20:12: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: diagnostic
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.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79184-4-ZKoAdqe0P2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79184-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79184-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01168.txt.bz2
Content-length: 618

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

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

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

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Extended testcase:

enum { E = 2 };
template <bool> void f(int) {}
template <int> void f() {}

int
main ()
{
  f<1 * 1>();
  f<1 << 1>();
  f<1 ? 3 : 2>();
  f<E>();

  f<1 * 1>(0);
  f<1 << 1>(0);
  f<1 ? 3 : 2>(0);
  f<E>(0);
}
>From gcc-bugs-return-553638-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 20:56:36 2017
Return-Path: <gcc-bugs-return-553638-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74859 invoked by alias); 9 Feb 2017 20: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 74347 invoked by uid 55); 9 Feb 2017 20:56:26 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79316] Default parameter values in explicit deduction guides do not work
Date: Thu, 09 Feb 2017 20: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: 7.0.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: P3
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79316-4-2vktTZEQYT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79316-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79316-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01170.txt.bz2
Content-length: 1438

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

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Feb  9 20:55:54 2017
New Revision: 245314

URL: https://gcc.gnu.org/viewcvs?rev=245314&root=gcc&view=rev
Log:
        PR c++/79316 - default argument in deduction guide

        PR c++/79350 - explicit deduction guide
        * parser.c (cp_parser_constructor_declarator_p)
        (cp_parser_direct_declarator): Parse deduction guides more like
        constructors.
        * cp-tree.h (enum special_function_kind): Add sfk_deduction_guide.
        * tree.c (special_function_p): Return it.
        * decl.c (check_special_function_return_type): Handle it.
        (grokdeclarator, grokfndecl): Adjust.
        (cp_finish_decl): Pass flags to do_auto_deduction.
        * error.c (dump_decl_name): Use TFF_UNQUALIFIED_NAME.
        * pt.c (dguide_name_p): Take a const_tree.
        (do_class_deduction): Handle explicit.
        (do_auto_deduction): Pass flags through.
        (build_deduction_guide): Copy explicit flag.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1z/class-deduction27.C
    trunk/gcc/testsuite/g++.dg/cpp1z/class-deduction28.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/error.c
    trunk/gcc/cp/parser.c
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/tree.c
    trunk/gcc/testsuite/g++.dg/cpp1z/class-deduction9.C
>From gcc-bugs-return-553637-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 20:56:35 2017
Return-Path: <gcc-bugs-return-553637-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74849 invoked by alias); 9 Feb 2017 20: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 74361 invoked by uid 55); 9 Feb 2017 20:56:26 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79350] "explicit" deduction guides don't work
Date: Thu, 09 Feb 2017 20: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason 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-79350-4-my4kQ6NHEA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79350-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79350-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01169.txt.bz2
Content-length: 1438

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

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Feb  9 20:55:54 2017
New Revision: 245314

URL: https://gcc.gnu.org/viewcvs?rev=245314&root=gcc&view=rev
Log:
        PR c++/79316 - default argument in deduction guide

        PR c++/79350 - explicit deduction guide
        * parser.c (cp_parser_constructor_declarator_p)
        (cp_parser_direct_declarator): Parse deduction guides more like
        constructors.
        * cp-tree.h (enum special_function_kind): Add sfk_deduction_guide.
        * tree.c (special_function_p): Return it.
        * decl.c (check_special_function_return_type): Handle it.
        (grokdeclarator, grokfndecl): Adjust.
        (cp_finish_decl): Pass flags to do_auto_deduction.
        * error.c (dump_decl_name): Use TFF_UNQUALIFIED_NAME.
        * pt.c (dguide_name_p): Take a const_tree.
        (do_class_deduction): Handle explicit.
        (do_auto_deduction): Pass flags through.
        (build_deduction_guide): Copy explicit flag.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1z/class-deduction27.C
    trunk/gcc/testsuite/g++.dg/cpp1z/class-deduction28.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/error.c
    trunk/gcc/cp/parser.c
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/tree.c
    trunk/gcc/testsuite/g++.dg/cpp1z/class-deduction9.C
>From gcc-bugs-return-553639-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 20:57:50 2017
Return-Path: <gcc-bugs-return-553639-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94086 invoked by alias); 9 Feb 2017 20:57: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 83095 invoked by uid 48); 9 Feb 2017 20:57:35 -0000
From: "damian at sourceryinstitute dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79447] New: [F08] gfortran rejects valid & accepts invalid internal subprogram submodule
Date: Thu, 09 Feb 2017 20:57: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.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: damian at sourceryinstitute 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-79447-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01171.txt.bz2
Content-length: 1771

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

            Bug ID: 79447
           Summary: [F08] gfortran rejects valid & accepts invalid
                    internal subprogram submodule
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: damian at sourceryinstitute dot org
  Target Milestone: ---

A recent build of gfortran 7 doesn’t allow an internal subprogram to be
contained inside a module subprogram when the subprogram is in a submodule and
is implemented with the “module procedure” keywords instead of “module
subroutine”.  See below.  gfortran 6.3.0 exhibits the same behavior.  It would
be great if any fix can also be back-ported to the 6 branch.

ifort 17 compiles the code below without error.  

Damian


$ cat procedure-contains.f90 
module foo_interface
  implicit none
  interface
    module subroutine foo()
    end subroutine
  end interface
end module foo_interface

submodule(foo_interface) foo_implementation
contains
    module procedure foo
    contains
      module subroutine bar()
      end subroutine
    end procedure
   !end subroutine ! gfortran accepts this invalid workaround
end submodule 

$ gfortran procedure-contains.f90 
procedure-contains.f90:15:7:

     end procedure
       1
Error: Expecting END SUBROUTINE statement at (1)
procedure-contains.f90:17:3:

 end submodule
   1
Error: Expecting END SUBROUTINE statement at (1)
f951: Error: Unexpected end of file in 'procedure-contains.f90'

$ gfortran --version
GNU Fortran (MacPorts gcc7 7-20170108_0) 7.0.0 20170108 (experimental)
>From gcc-bugs-return-553640-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 21:06:54 2017
Return-Path: <gcc-bugs-return-553640-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14611 invoked by alias); 9 Feb 2017 21: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 14434 invoked by uid 48); 9 Feb 2017 21:06:41 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/79403] Installation of Ada compiler gets permissions wrong
Date: Thu, 09 Feb 2017 21:06: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: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status
Message-ID: <bug-79403-4-KiamxhPmKR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79403-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79403-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01172.txt.bz2
Content-length: 2171

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

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

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

--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> The files are symlinks in the build tree, mode 640 in the source tree (like
> everything else) and are installed with "cp -p" which explains the broken
> permissions.  Most other things are installed "install -m 644".

Right, there are "chmod a+r" or "chmod 644" all over the place.  But we cannot
use 644 because we cannot have write access for the ALI files.

> Perhaps because few people install a system Ada compiler from sources.

Well, I guess not many people use your very unusual setup either...  This has
remained unchanged in the Makefile for 25 years!  Untested patch:

Index: gcc-interface/Makefile.in
===================================================================
--- gcc-interface/Makefile.in   (revision 245271)
+++ gcc-interface/Makefile.in   (working copy)
@@ -2687,8 +2687,8 @@ install-gnatlib: ../stamp-gnatlib-$(RTSD
        for file in $(RTSDIR)/*.ad[sb]*; do \
            $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_INCLUDE_DIR); \
        done
-       cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.adb
-       cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.ads
+       cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx+r *.adb
+       cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx+r *.ads

 ../stamp-gnatlib2-$(RTSDIR):
        $(RM) $(RTSDIR)/s-*.ali
@@ -2800,7 +2800,7 @@ gnatlib: ../stamp-gnatlib1-$(RTSDIR) ../
                  $(RTSDIR)/memtrack.o
                $(RANLIB_FOR_TARGET) $(RTSDIR)/libgmem$(arext)
         endif
-       $(CHMOD) a-wx $(RTSDIR)/*.ali
+       $(CHMOD) a-wx+r $(RTSDIR)/*.ali
        touch ../stamp-gnatlib-$(RTSDIR)

 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
>From gcc-bugs-return-553641-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 21:27:03 2017
Return-Path: <gcc-bugs-return-553641-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126262 invoked by alias); 9 Feb 2017 21:27: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 126014 invoked by uid 48); 9 Feb 2017 21:26:50 -0000
From: "gjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/75964] insn combiner removes comparison after ABS
Date: Thu, 09 Feb 2017 21: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: 6.1.1
X-Bugzilla-Keywords: diagnostic, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gjl 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-75964-4-KvhsXYjHpI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-75964-4@http.gcc.gnu.org/bugzilla/>
References: <bug-75964-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01173.txt.bz2
Content-length: 976

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

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic

--- Comment #2 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
(In reply to Eric Botcazou from comment #1)
> > After pass .combine, the 2nd comparison is missing, presumably because
> > combiner invokes signed overflow on ABS which does not apply because all
> > computations are performed as unsigned.
> 
> Then you should have a warning with -Wstrict-overflow; this possibly comes
> from simplify-rtx.c:simplify_const_relational_operation in this case.

With -Wstrict-overflow=2 and avr-gcc-6.3 I get

warning: assuming signed overflow does not occur when assuming abs (x) >= 0 is
true [-Wstrict-overflow]

So it's not only wrong code but also wrong diagnostic...
>From gcc-bugs-return-553642-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 21:31:53 2017
Return-Path: <gcc-bugs-return-553642-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3561 invoked by alias); 9 Feb 2017 21:31:53 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 3283 invoked by uid 48); 9 Feb 2017 21:31:40 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/79445] Address clause on named number gives Assert_Failure in the compiler
Date: Thu, 09 Feb 2017 21:31: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: 7.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-79445-4-wEAWsD0KFV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79445-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79445-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01174.txt.bz2
Content-length: 628

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-09
                 CC|                            |ebotcazou at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
.
>From gcc-bugs-return-553643-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 21:40:42 2017
Return-Path: <gcc-bugs-return-553643-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 51995 invoked by alias); 9 Feb 2017 21: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 51875 invoked by uid 48); 9 Feb 2017 21:40:28 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/11705] Bad interaction between cin and wcin after sync_with_stdio(false)
Date: Thu, 09 Feb 2017 21:40: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: 3.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority cc cf_known_to_fail
Message-ID: <bug-11705-4-yhensBQCFf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-11705-4@http.gcc.gnu.org/bugzilla/>
References: <bug-11705-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01175.txt.bz2
Content-length: 1459

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3
                 CC|                            |msebor at gcc dot gnu.org
      Known to fail|                            |3.4.0, 4.5.3, 4.8.3, 4.9.3,
                   |                            |5.3.0, 6.3.0, 7.0

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
More out of curiosity than in an effort to try to fix this P2 bug I tried the
test case with GCC 7.  It aborts so I take that as a confirmation that the bug
is still present.  Since the bug has been open for over 13 years with no
activity (and also because interleaving input from the same stream between
std::cin and std::wcin is rare) I think it's appropriate to reduce its
importance to P3.

$ /build/gcc-git/gcc/xg++ -B /build/gcc-git/gcc -nostdinc++ -I
/build/gcc-git/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu -I
/build/gcc-git/x86_64-pc-linux-gnu/libstdc++-v3/include -I
/src/gcc/git/libstdc++-v3/libsupc++ -I
/src/gcc/git/libstdc++-v3/include/backward -I
/src/gcc/git/libstdc++-v3/testsuite/util -L
/build/gcc-git/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs t.C && ./a.out
a.out: t.C:36: int main(): Assertion `wcin.fail()' failed.
Aborted (core dumped)
>From gcc-bugs-return-553644-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 21:47:19 2017
Return-Path: <gcc-bugs-return-553644-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107243 invoked by alias); 9 Feb 2017 21: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 107155 invoked by uid 48); 9 Feb 2017 21:47:06 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79316] Default parameter values in explicit deduction guides do not work
Date: Thu, 09 Feb 2017 21: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: 7.0.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-79316-4-Fb7B2StI16@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79316-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79316-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01176.txt.bz2
Content-length: 476

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |7.0

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-553645-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 21:54:21 2017
Return-Path: <gcc-bugs-return-553645-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118876 invoked by alias); 9 Feb 2017 21:54: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 118731 invoked by uid 48); 9 Feb 2017 21:54:05 -0000
From: "damian at sourceryinstitute dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79447] [F08] gfortran rejects valid & accepts invalid internal subprogram in a submodule
Date: Thu, 09 Feb 2017 21:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: damian at sourceryinstitute 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-79447-4-NN1RZ42tDL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79447-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79447-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01177.txt.bz2
Content-length: 221

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

--- Comment #1 from Damian Rouson <damian at sourceryinstitute dot org> ---
I just tested with a more recent build (7.0.1 dated 20170205) and see the same
behavior.
>From gcc-bugs-return-553646-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 22:12:58 2017
Return-Path: <gcc-bugs-return-553646-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64479 invoked by alias); 9 Feb 2017 22:12: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 64323 invoked by uid 55); 9 Feb 2017 22:12:47 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79143] [7 Regression][new inheriting constructors] inheriting constructor fails with brace initialization
Date: Thu, 09 Feb 2017 22:12: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: 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: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79143-4-0BSoks5ydG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79143-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79143-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01178.txt.bz2
Content-length: 579

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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Feb  9 22:12:15 2017
New Revision: 245315

URL: https://gcc.gnu.org/viewcvs?rev=245315&root=gcc&view=rev
Log:
        PR c++/79143
        * pt.c (instantiate_class_template_1): Copy CLASSTYPE_NON_AGGREGATE
        from pattern to type.

        * g++.dg/cpp1z/pr79143.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1z/pr79143.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-553647-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 22:17:55 2017
Return-Path: <gcc-bugs-return-553647-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81391 invoked by alias); 9 Feb 2017 22:17: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 81275 invoked by uid 48); 9 Feb 2017 22:17:42 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79433] __has_include(<new header>) is true but #include <new header> gives #error when -std=old
Date: Thu, 09 Feb 2017 22:17: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.1
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-79433-4-VufMGGMlsX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01179.txt.bz2
Content-length: 1921

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

--- Comment #16 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #15)
> Isn't it the same is true for any header that someone could create and not
> just about standard headers?

Yes.

__has_include can say the header is present (which is what it's designed to do)
and then including it could give an error because it uses 'constexpr' and you
compile with -std=c++03

Or you could include it, and it doesn't define anything, because all its
contents are hidden behind a #if __cplusplus > 201402L check (which is what
happens with libc++). So you include the header, try to use the library types
it is supposed to define, and get a compiler error.

In both cases __has_include is insufficient to tell you the header is usable.

Even if we moved our headers to separate directories, it wouldn't make
__has_include sufficient.. The intended mechanism Marc is so enamoured with
doesn't work.

My current plan to fix this is to change SD-6 so that instead of recommending
only a __has_include check, every feature has a feature-test macro, and change
the example to:

    #ifdef __has_include
    #  if __has_include(<optional>)
    #    include <optional>
    #    if __cpp_lib_optional >= nnnn
    #      define have_optional 1
    #    #endif
    #  elif __has_include(<experimental/optional>)
    #    include <experimental/optional>
    #    if __cpp_lib_experimental_optional >= nnnn
    #      define have_optional 1
    #      define experimental_optional
    #    #endif
    #  endif
    #endif
    #ifndef have_optional
    #  define have_optional 0
    #endif

Then we can change our headers to remove the #error and conditionally define a
__cpp_lib_xxx macro. Then the presence/absence of the __cpp_lib_xxx macro
indicates whether the header is actually usable, not just present on the
filesystem.
>From gcc-bugs-return-553648-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 22:21:26 2017
Return-Path: <gcc-bugs-return-553648-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85333 invoked by alias); 9 Feb 2017 22:21:26 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 85172 invoked by uid 48); 9 Feb 2017 22:21:13 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79143] [7 Regression][new inheriting constructors] inheriting constructor fails with brace initialization
Date: Thu, 09 Feb 2017 22:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: 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: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79143-4-0qhzGXmT3P@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79143-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79143-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01180.txt.bz2
Content-length: 423

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

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

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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-553649-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 22:22:46 2017
Return-Path: <gcc-bugs-return-553649-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86835 invoked by alias); 9 Feb 2017 22:22: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 86603 invoked by uid 48); 9 Feb 2017 22:22:33 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/75964] insn combiner removes comparison after ABS
Date: Thu, 09 Feb 2017 22: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: 6.1.1
X-Bugzilla-Keywords: diagnostic, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou 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-75964-4-RxfFaLMaeN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-75964-4@http.gcc.gnu.org/bugzilla/>
References: <bug-75964-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01181.txt.bz2
Content-length: 279

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

--- Comment #3 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> So it's not only wrong code but also wrong diagnostic...

It's rather a consistent diagnostic, there could have been wrong code and no
diagnostic at all.
>From gcc-bugs-return-553650-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 23:23:18 2017
Return-Path: <gcc-bugs-return-553650-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117128 invoked by alias); 9 Feb 2017 23:23: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 117002 invoked by uid 48); 9 Feb 2017 23:23:05 -0000
From: "mark at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79448] New: unhelpful -Wformat-truncation=2 warning
Date: Thu, 09 Feb 2017 23:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mark 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-79448-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01182.txt.bz2
Content-length: 1055

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

            Bug ID: 79448
           Summary: unhelpful -Wformat-truncation=2 warning
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mark at gcc dot gnu.org
  Target Milestone: ---

gcc (GCC) 7.0.1 20170209 (experimental)

$ cat t.c 
#include <stdio.h>

char *
gettext (char *__msgid)
{
  return __msgid;
}

char *
fill (char *buf, size_t len, int count)
{
  if (snprintf (buf, len, "%s: %d", gettext ("count"), count) >= len)
    return NULL;
  return buf;
}

$ gcc -Wformat-truncation=2 -c t.c
t.c: In function ‘fill’:
t.c:12:7: warning: ‘: ’ directive output of 2 bytes causes result to exceed
‘INT_MAX’ [-Wformat-truncation=]
   if (snprintf (buf, len, "%s: %d", gettext ("count"), count) >= len)
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>From gcc-bugs-return-553651-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 09 23:33:46 2017
Return-Path: <gcc-bugs-return-553651-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55534 invoked by alias); 9 Feb 2017 23:33: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 55346 invoked by uid 48); 9 Feb 2017 23:33:31 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79433] __has_include(<new header>) is true but #include <new header> gives #error when -std=old
Date: Thu, 09 Feb 2017 23:33: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.1
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-79433-4-2vuvGuWn6t@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01183.txt.bz2
Content-length: 1640

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

--- Comment #17 from Jonathan Wakely <redi at gcc dot gnu.org> ---
#ifdef __has_include
#if __has_include(<variant>)
#include <variant>
std::variant<int> v;
#endif
#endif
int main(){ }

Compiling this program with g++ -std=c++14 (using libstdc++) gives:

In file included from /opt/wandbox/gcc-head/include/c++/7.0.1/variant:35:0,
                 from prog.cc:3:
/opt/wandbox/gcc-head/include/c++/7.0.1/bits/c++17_warning.h:32:2:
error: #error This file requires compiler and library support for the
ISO C++ 2017 standard. This support must be enabled with the
-std=c++17 or -std=gnu++17 compiler options.
 #error This file requires compiler and library support \
  ^~~~~
prog.cc:4:6: error: 'variant' in namespace 'std' does not name a template type
 std::variant<int> v;
      ^~~~~~~

Live demo: http://melpon.org/wandbox/permlink/qwYfRA1FPBsIsCXi

And with clang++ -std=c++14 (using libc++):

prog.cc:4:6: error: no type named 'variant' in namespace 'std'
std::variant<int> v;
~~~~~^

Live demo: http://melpon.org/wandbox/permlink/GTrG5HpX1lCT07Dx

Just removing the #error from our headers isn't going to make the check work
portably. Having per-dialect directories for libstdc++ isn't going to help it
work with libc++ (and the libc++ devs have rejected the idea of doing that for
libc++).

Despite what comment 1 says, the best solution today is to also check
__cplusplus (oh, but that macro wasn't right 5 years ago is a silly argument,
none of these headers existed 5 years ago anyway). If you check __cplusplus
then the #error in our headers isn't a problem.
>From gcc-bugs-return-553652-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 00:02:34 2017
Return-Path: <gcc-bugs-return-553652-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101993 invoked by alias); 10 Feb 2017 00: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 101486 invoked by uid 48); 10 Feb 2017 00:02:18 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79433] __has_include(<new header>) is true but #include <new header> gives #error when -std=old
Date: Fri, 10 Feb 2017 00:02: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.1
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-79433-4-Jx3oZT0ZuP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01184.txt.bz2
Content-length: 739

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

--- Comment #18 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I've started a discussion about changing the SD-6 recommendations.

One idea that came out of the discussion so far would be to make a GCC-specific
extension to __has_include. If the has-includes-expression finds a file then it
could read the first line of the file to look for something like:

#pragma GCC has_include(constant-expression)

If found, the result of the has-include-expression would be 1 if the
constant-expression is non-zero, and 0 otherwise.

Then we could decorate our C++17 headers with:

#pragma GCC has_include(__cplusplus > 201402L)

and __has_include would magically give the right answer.
>From gcc-bugs-return-553653-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 00:40:44 2017
Return-Path: <gcc-bugs-return-553653-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27444 invoked by alias); 10 Feb 2017 00: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 27298 invoked by uid 55); 10 Feb 2017 00:40:30 -0000
From: "sgk at troutmask dot apl.washington.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79430] [7 Regression] action of statement incorrectly optimised away
Date: Fri, 10 Feb 2017 00: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.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sgk at troutmask dot apl.washington.edu
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79430-4-rCOoDI2AMp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01185.txt.bz2
Content-length: 2014

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

--- Comment #23 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Thu, Feb 09, 2017 at 10:42:08AM +0000, bijan at chokoufe dot com wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79430
> 
> --- Comment #19 from Bijan Chokoufe <bijan at chokoufe dot com> ---
> So in the build with '-O2 -g' (default), valgrind tells us
> 
> ==8214== Conditional jump or move depends on uninitialised value(s)
> ==8214==    at 0x5300201: __shower_core_MOD_shower_generate_next_isr_branching
> (shower_core.f90:3089)
> ==8214==    by 0x5306A90: __shower_core_MOD_shower_generate_emissions
> (shower_core.f90:316)
> ==8214==    by 0x52D3CE6: __shower_MOD_evt_shower_generate_weighted.part.2
> (shower.f90:238)
> ==8214==    by 0x52B0BBF: __event_transforms_MOD_evt_generate_unweighted
> (event_transforms.f90:203)
> ==8214==    by 0x52DCEA5: __events_MOD_event_evaluate_transforms
> (events.f90:520)
> ==8214==    by 0x52DC247: __events_MOD_event_generate (events.f90:751)
> ==8214==    by 0x5260A2F: __simulations_MOD_simulation_generate
> (simulations.f90:1639)
> ==8214==    by 0x5285A35: __commands_MOD_cmd_simulate_execute
> (commands.f90:4501)
> ==8214==    by 0x5267A08: __commands_MOD_command_list_execute
> (commands.f90:5835)
> ==8214==    by 0x52A84A5: __whizard_MOD_whizard_process_stream
> (whizard.f90:348)
> ==8214==    by 0x52A7C25: __whizard_MOD_whizard_process_file (whizard.f90:323)
> ==8214==    by 0x4E3EF61: MAIN__ (main.f90:415)
> ==8214==
> 
> which is exactely the problematic point we also identified with print
> debugging, mentioned in the description of this ticket.
> 

If you change the declaration for 'final' to

      real(default), intent(in), volatile :: final

do you still have a problem?  Hopefully, this will suppress
whatever is causing the optimizer to remove the if statement.
>From gcc-bugs-return-553654-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 00:50:19 2017
Return-Path: <gcc-bugs-return-553654-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122851 invoked by alias); 10 Feb 2017 00:50: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 122684 invoked by uid 48); 10 Feb 2017 00:50:05 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79448] unhelpful -Wformat-truncation=2 warning
Date: Fri, 10 Feb 2017 00:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: 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: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status keywords cf_reconfirmed_on component cc assigned_to see_also everconfirmed
Message-ID: <bug-79448-4-DutU81d52a@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79448-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79448-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01186.txt.bz2
Content-length: 1549

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
           Keywords|                            |diagnostic
   Last reconfirmed|                            |2017-02-10
          Component|c                           |middle-end
                 CC|                            |msebor at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |msebor at gcc dot gnu.org
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=79275
     Ever confirmed|0                           |1

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed.  This is similar to bug 79275.  Here, the pass must assume the
output for the %s directive is the maximum possible length of a string (i.e.,
PTRDIFF_MAX - 1) and uses it as the running maximum byte counter.  When it gets
to the ": " part of the format string, at level 2 it checks if the appending it
to the output produced so far will cause the maximum byte counter to exceed
INT_MAX.  Since it does, it issues a warning.  The checker should avoid this
test when the byte count is in a range with the lower bound less than INT_MAX
and the upper greater than (or equal to) PTRDIFF_MAX since that means a string
of unknown length.
>From gcc-bugs-return-553655-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 01:08:57 2017
Return-Path: <gcc-bugs-return-553655-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115386 invoked by alias); 10 Feb 2017 01:08: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 115199 invoked by uid 48); 10 Feb 2017 01:08:44 -0000
From: "doko at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79296] [6/7 Regression] ICE in mangle_decl, at cp/mangle.c:3845
Date: Fri, 10 Feb 2017 01:08: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: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: doko at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_known_to_work short_desc cf_known_to_fail
Message-ID: <bug-79296-4-KUMoOzvHit@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79296-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79296-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01187.txt.bz2
Content-length: 667

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

Matthias Klose <doko at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|6.3.1                       |6.3.0
            Summary|[7 Regression] ICE in       |[6/7 Regression] ICE in
                   |mangle_decl, at             |mangle_decl, at
                   |cp/mangle.c:3845            |cp/mangle.c:3845
      Known to fail|                            |6.3.1

--- Comment #3 from Matthias Klose <doko at gcc dot gnu.org> ---
now seen with r245197 on the gcc-6 branch as well
>From gcc-bugs-return-553656-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 03:19:19 2017
Return-Path: <gcc-bugs-return-553656-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86091 invoked by alias); 10 Feb 2017 03: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 71702 invoked by uid 48); 10 Feb 2017 03:17:20 -0000
From: "acsawdey at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79449] New: ppc builtin expansion of strncmp can cross page (4k) boundary where it should not
Date: Fri, 10 Feb 2017 03: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: acsawdey at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: acsawdey at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcctarget
Message-ID: <bug-79449-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01188.txt.bz2
Content-length: 955

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

            Bug ID: 79449
           Summary: ppc builtin expansion of strncmp can cross page (4k)
                    boundary where it should not
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: acsawdey at gcc dot gnu.org
          Reporter: acsawdey at gcc dot gnu.org
                CC: segher at gcc dot gnu.org, wschmidt at gcc dot gnu.org
  Target Milestone: ---
            Target: powerpc64*-*-*

When one of the string args to strncmp has alignment of less than 8 bytes, the
builtin expansion code generates a runtime check to see if the string might
cross a 4k boundary. However the runtime check looks for at least the length N
before the next 4k boundary and then the code generated may load a doubleword,
crossing the 4k boundary if N is less than 8.
>From gcc-bugs-return-553657-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 03:22:43 2017
Return-Path: <gcc-bugs-return-553657-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90780 invoked by alias); 10 Feb 2017 03:22: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 90630 invoked by uid 48); 10 Feb 2017 03:22:29 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78381] [c++17] Template Type Deduction from Constructor call with explicit deduction guide leads to constructor ambiguity
Date: Fri, 10 Feb 2017 03: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason 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-78381-4-zkbUuDgsEV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78381-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78381-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01189.txt.bz2
Content-length: 520

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |jason at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed by patch for bug 79350.
>From gcc-bugs-return-553658-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 04:20:18 2017
Return-Path: <gcc-bugs-return-553658-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54496 invoked by alias); 10 Feb 2017 04:20: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 54116 invoked by uid 48); 10 Feb 2017 04:19:52 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79055] gcc should not warn about the assignment-allocation character 'm' of scanf when POSIX is enabled
Date: Fri, 10 Feb 2017 04: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: 6.2.1
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 cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-79055-4-rKR90NzW2R@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79055-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79055-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01190.txt.bz2
Content-length: 1447

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-10
                 CC|                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
I agree that complaining about POSIX isn't very useful when targeting a POSIX
environment but I'm not sure expecting -Wpedantic/-pedantic not to warn POSIX
extensions to ISO C is in supported by the documented purpose of the options:

    Issue all the warnings demanded by strict ISO C and ISO C++; reject all
programs that use forbidden extensions, and some other programs that do not
follow ISO C and ISO C++. For ISO C, follows the version of the ISO C standard
specified by any -std option used.

I wonder if this could be somehow handled either by adding a new -std=posixXX
option or extending the existing -std=gnuXX options to extend to some version
of POSIX.

I'll confirm this as a reasonable request.  It seems that there would be other
uses for a strict POSIX-conformance mode besides the %m scanf directive (e.g.,
GCC could warn on POSIX obsolescent/deprecated features).
>From gcc-bugs-return-553659-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 06:05:16 2017
Return-Path: <gcc-bugs-return-553659-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14744 invoked by alias); 10 Feb 2017 06:05: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 14518 invoked by uid 48); 10 Feb 2017 06:05:03 -0000
From: "juergen.reuter at desy dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79430] [7 Regression] action of statement incorrectly optimised away
Date: Fri, 10 Feb 2017 06: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.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: juergen.reuter at desy dot de
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79430-4-6ebHYOeCa4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01191.txt.bz2
Content-length: 370

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

--- Comment #24 from Jürgen Reuter <juergen.reuter at desy dot de> ---
Actually, the volatile attribute conflicts with the intent(in) of the final
variable. But making the function result variable 'integral' volatile, does the
job. Thanks for the suggestion. And sorry again for not producing a smaller
case.
>From gcc-bugs-return-553660-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 06:14:59 2017
Return-Path: <gcc-bugs-return-553660-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35936 invoked by alias); 10 Feb 2017 06:14: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 35823 invoked by uid 48); 10 Feb 2017 06:14:46 -0000
From: "zsojka at seznam dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79450] New: [5/6/7 Regression] wrong code with loop at -O1
Date: Fri, 10 Feb 2017 06:14: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: 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-79450-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01192.txt.bz2
Content-length: 1875

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

            Bug ID: 79450
           Summary: [5/6/7 Regression] wrong code with loop at -O1
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu

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

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

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

All other tested targets:
aarch64-unknown-linux-gnu
armv7a-hardfloat-linux-gnueabi
armv7a-softfp-linux-gnueabi
i686-pc-linux-gnu
powerpc64-unknown-linux-gnu
powerpc-unknown-linux-gnu
sparc64-unknown-linux-gnu
sparc-unknown-linux-gnu
do not seem to have this problem.
>From gcc-bugs-return-553661-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 06:21:06 2017
Return-Path: <gcc-bugs-return-553661-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54680 invoked by alias); 10 Feb 2017 06: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 54571 invoked by uid 48); 10 Feb 2017 06:20:53 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79450] [5/6/7 Regression] wrong code with loop at -O1
Date: Fri, 10 Feb 2017 06:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-79450-4-cmLEj5wT6z@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79450-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79450-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01193.txt.bz2
Content-length: 292

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |5.5
>From gcc-bugs-return-553662-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 08:30:05 2017
Return-Path: <gcc-bugs-return-553662-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40600 invoked by alias); 10 Feb 2017 08: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 40246 invoked by uid 48); 10 Feb 2017 08:29:51 -0000
From: "dwolf at dannad dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/67224] UTF-8 support for identifier names in GCC
Date: Fri, 10 Feb 2017 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: 5.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: dwolf at dannad dot de
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-67224-4-WBm4Lz7QS1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67224-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67224-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01194.txt.bz2
Content-length: 1014

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

Daniel Wolf <dwolf at dannad dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dwolf at dannad dot de

--- Comment #22 from Daniel Wolf <dwolf at dannad dot de> ---
Has there been any progress on this since 2015? I'm maintaining a project that
uses the International Phonetic Alphabet (IPA) internally. My life would be
much easier if I could use identifiers like aÊŠ or dÊ’. Both are valid C++
identifiers supported by Clang, Xcode and Visual Studio, but not supported by
GCC.

My knowledge of compilers is very limited, so I'm afraid I can't be of
practical help. But I'd like to point out that there is indeed demand for this
feature -- see for example this StackOverflow question:
<http://stackoverflow.com/questions/12692067/and-other-unicode-characters-in-identifiers-not-allowed-by-g#>
>From gcc-bugs-return-553663-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 08:48:43 2017
Return-Path: <gcc-bugs-return-553663-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100402 invoked by alias); 10 Feb 2017 08:48: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 99730 invoked by uid 55); 10 Feb 2017 08:48:19 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79411] [5/6/7 Regression] ICE: SSA corruption (fail_abnormal_edge_coalesce)
Date: Fri, 10 Feb 2017 08:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 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: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79411-4-ns4BNTzZrm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79411-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79411-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01195.txt.bz2
Content-length: 730

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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Feb 10 08:47:32 2017
New Revision: 245324

URL: https://gcc.gnu.org/viewcvs?rev=245324&root=gcc&view=rev
Log:
        PR tree-optimization/79411
        * tree-ssa-reassoc.c (is_reassociable_op): Return false if
        stmt operands are SSA_NAMEs used in abnormal phis.
        (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
        phis.

        * gcc.c-torture/compile/pr79411.c: New test.

Added:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr79411.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-reassoc.c
>From gcc-bugs-return-553664-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 08:55:20 2017
Return-Path: <gcc-bugs-return-553664-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112097 invoked by alias); 10 Feb 2017 08:55: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 111940 invoked by uid 48); 10 Feb 2017 08:55:05 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/71012] ICE: in expand_expr_real_2, at expr.c:9348 when compiling stress-ng
Date: Fri, 10 Feb 2017 08: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: 5.3.1
X-Bugzilla-Keywords:
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: cc
Message-ID: <bug-71012-4-TmxhIcv36s@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71012-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71012-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01196.txt.bz2
Content-length: 453

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

Arseny Solokha <asolokha at gmx dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |asolokha at gmx dot com

--- Comment #2 from Arseny Solokha <asolokha at gmx dot com> ---
I can reproduce it w/ gcc 5.4.0, but cannot w/ 7.0.0-alpha20170205 snapshot.
>From gcc-bugs-return-553665-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 08:55:33 2017
Return-Path: <gcc-bugs-return-553665-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112948 invoked by alias); 10 Feb 2017 08: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 112091 invoked by uid 48); 10 Feb 2017 08:55:19 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79451] New: [7 Regression] ICE in expand_expr_real_2, at expr.c:9021 w/ -O3 -floop-nest-optimize
Date: Fri, 10 Feb 2017 08:55: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: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: asolokha at gmx dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget
Message-ID: <bug-79451-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01197.txt.bz2
Content-length: 2999

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

            Bug ID: 79451
           Summary: [7 Regression] ICE in expand_expr_real_2, at
                    expr.c:9021 w/ -O3 -floop-nest-optimize
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---
            Target: powerpc-e500v2-linux-gnuspe

7.0.0-alpha20170205 snapshot ICEs when compiling the following snippet w/ -O3
(or -Ofast) -floop-nest-optimize:

int dx;

void
bm (unsigned int ms)
{
  int fe = dx;
  unsigned int *gd = &ms;

  for (ms = 0; ms < 1; ++ms)
    gd = &dx;
  while (fe < 1)
    {
      *gd /= dx;
      *gd -= fe & 1;
      ++fe;
    }
}

% powerpc-e500v2-linux-gnuspe-gcc-7.0.0-alpha20170205 -O3 -floop-nest-optimize
-w -c kfzgpxfl.c
kfzgpxfl.c: In function 'bm':
kfzgpxfl.c:4:1: internal compiler error: in expand_expr_real_2, at expr.c:9021
 bm (unsigned int ms)
 ^~
0x312b1745f2d expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
       
/var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-7.0.0_alpha20170205/work/gcc-7-20170205/gcc/expr.c:9021
0x312b1730b60 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
       
/var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-7.0.0_alpha20170205/work/gcc-7-20170205/gcc/expr.c:9730
0x312b173c1fd expand_expr
       
/var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-7.0.0_alpha20170205/work/gcc-7-20170205/gcc/expr.h:276
0x312b173c1fd expand_operands(tree_node*, tree_node*, rtx_def*, rtx_def**,
rtx_def**, expand_modifier)
       
/var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-7.0.0_alpha20170205/work/gcc-7-20170205/gcc/expr.c:7672
0x312b174427a expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
       
/var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-7.0.0_alpha20170205/work/gcc-7-20170205/gcc/expr.c:9521
0x312b15f5f61 expand_gimple_stmt_1
       
/var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-7.0.0_alpha20170205/work/gcc-7-20170205/gcc/cfgexpand.c:3677
0x312b15f5f61 expand_gimple_stmt
       
/var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-7.0.0_alpha20170205/work/gcc-7-20170205/gcc/cfgexpand.c:3737
0x312b15f7d8b expand_gimple_basic_block
       
/var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-7.0.0_alpha20170205/work/gcc-7-20170205/gcc/cfgexpand.c:5744
0x312b15fe48f execute
       
/var/tmp/portage/cross-powerpc-e500v2-linux-gnuspe/gcc-7.0.0_alpha20170205/work/gcc-7-20170205/gcc/cfgexpand.c:6357

It may be similar to PR71012, but I cannot reproduce that one w/ the current
7.0 snapshot.
>From gcc-bugs-return-553666-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 09:05:45 2017
Return-Path: <gcc-bugs-return-553666-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58483 invoked by alias); 10 Feb 2017 09:05: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 58370 invoked by uid 48); 10 Feb 2017 09:05:31 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79451] [7 Regression] ICE in expand_expr_real_2, at expr.c:9021 w/ -O3 -floop-nest-optimize
Date: Fri, 10 Feb 2017 09:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-79451-4-sHoNGfmNuw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79451-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79451-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01198.txt.bz2
Content-length: 293

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |7.0
>From gcc-bugs-return-553667-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 09:06:07 2017
Return-Path: <gcc-bugs-return-553667-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62690 invoked by alias); 10 Feb 2017 09:06: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 59175 invoked by uid 48); 10 Feb 2017 09:05:54 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79450] [5/6/7 Regression] wrong code with loop at -O1
Date: Fri, 10 Feb 2017 09:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority
Message-ID: <bug-79450-4-SYtlO8llSS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79450-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79450-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01199.txt.bz2
Content-length: 292

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
>From gcc-bugs-return-553668-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 09:10:15 2017
Return-Path: <gcc-bugs-return-553668-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1297 invoked by alias); 10 Feb 2017 09:10: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 127685 invoked by uid 48); 10 Feb 2017 09:09:53 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79450] [5/6/7 Regression] wrong code with loop at -O1
Date: Fri, 10 Feb 2017 09: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: 7.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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-79450-4-TNCUjP34A1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79450-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79450-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01200.txt.bz2
Content-length: 1632

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

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

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

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r176984, but likely that just uncovered a latent RTL optimization
bug, because the only difference in *.optimized with that is swapping of
operands in a single stmt:

--- pr79450.c.143t.optimized_   2017-02-10 03:58:22.000000000 -0500
+++ pr79450.c.143t.optimized    2017-02-10 03:58:48.000000000 -0500
@@ -20,7 +20,7 @@ foo (u8 p1, u64 p2)
   D.2710_4 = p2_3(D) == 0;
   D.2711_5 = (signed char) D.2710_4;
   p1.0_6 = (signed char) p1_1;
-  D.2713_7 = p1.0_6 & D.2711_5;
+  D.2713_7 = D.2711_5 & p1.0_6;
   p1_8 = (u8) D.2713_7;
   p1_9 = p1_8 % 24;
   D.2714_10 = (u64) p1_9;

The resulting asm change is:

--- pr79450.s_  2017-02-10 03:58:22.000000000 -0500
+++ pr79450.s   2017-02-10 03:58:48.000000000 -0500
@@ -12,8 +12,7 @@ foo:
        movzbl  %dil, %eax
        cmpq    %rax, %rsi
        ja      .L2
-       movzbl  %dil, %edi
-       leal    (%rdi,%rsi), %eax
+       movl    %esi, %eax
        ret
        .cfi_endproc
 .LFE0:

though.
Things go wrong during combine.
>From gcc-bugs-return-553669-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 09:24:30 2017
Return-Path: <gcc-bugs-return-553669-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46279 invoked by alias); 10 Feb 2017 09:24: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 45971 invoked by uid 48); 10 Feb 2017 09:23:54 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79411] [5/6 Regression] ICE: SSA corruption (fail_abnormal_edge_coalesce)
Date: Fri, 10 Feb 2017 09:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-79411-4-XsuJ76YEXC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79411-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79411-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01201.txt.bz2
Content-length: 594

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[5/6/7 Regression] ICE: SSA |[5/6 Regression] ICE: SSA
                   |corruption                  |corruption
                   |(fail_abnormal_edge_coalesc |(fail_abnormal_edge_coalesc
                   |e)                          |e)

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed on the trunk so far.
>From gcc-bugs-return-553670-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 09:56:49 2017
Return-Path: <gcc-bugs-return-553670-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69265 invoked by alias); 10 Feb 2017 09:56: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 57503 invoked by uid 48); 10 Feb 2017 09:56:35 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79446] Passing internal procedure as argument causes segfault at runtime
Date: Fri, 10 Feb 2017 09:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 5.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-79446-4-CvN2UZI8BR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79446-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79446-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01202.txt.bz2
Content-length: 730

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-02-10
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Also, I don't experience the segfault on other Linux distros
> (e.g., Gentoo/3.16.5) or Mac OS.

Confirmed on x86_64-apple-darwin16, even using an instrumented gfortran and
-fsanitize=address,undefined.

What is the output of gfortran -v?
>From gcc-bugs-return-553671-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 09:57:38 2017
Return-Path: <gcc-bugs-return-553671-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107139 invoked by alias); 10 Feb 2017 09:57: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 96731 invoked by uid 48); 10 Feb 2017 09:57:24 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79447] [F08] gfortran rejects valid & accepts invalid internal subprogram in a submodule
Date: Fri, 10 Feb 2017 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: 7.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 cc everconfirmed
Message-ID: <bug-79447-4-XZLmYhvrGd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79447-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79447-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01203.txt.bz2
Content-length: 568

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-10
                 CC|                            |pault at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed.
>From gcc-bugs-return-553672-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 10:03:26 2017
Return-Path: <gcc-bugs-return-553672-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6747 invoked by alias); 10 Feb 2017 10:03: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 5636 invoked by uid 48); 10 Feb 2017 10:03:11 -0000
From: "glaubitz at physik dot fu-berlin.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/71012] ICE: in expand_expr_real_2, at expr.c:9348 when compiling stress-ng
Date: Fri, 10 Feb 2017 10:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 5.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: glaubitz at physik dot fu-berlin.de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-71012-4-rbUWEHyxMv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71012-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71012-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01204.txt.bz2
Content-length: 453

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

--- Comment #3 from John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin.de> ---
(In reply to Arseny Solokha from comment #2)
> I can reproduce it w/ gcc 5.4.0, but cannot w/ 7.0.0-alpha20170205 snapshot.

We also haven't seen it in Debian since last May, see:

> https://buildd.debian.org/status/logs.php?pkg=stress-ng&arch=powerpcspe

stress-ng has been building fine ever since.
>From gcc-bugs-return-553673-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 10:20:09 2017
Return-Path: <gcc-bugs-return-553673-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55858 invoked by alias); 10 Feb 2017 10:20: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 55643 invoked by uid 48); 10 Feb 2017 10:19:56 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/79450] [5/6/7 Regression] wrong code with loop at -O1
Date: Fri, 10 Feb 2017 10:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak 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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: component
Message-ID: <bug-79450-4-9M9XAhulVE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79450-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79450-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01205.txt.bz2
Content-length: 1404

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

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|target                      |rtl-optimization

--- Comment #2 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Jakub Jelinek from comment #1)

> Things go wrong during combine.

(insn 34 33 35 4 (set (reg:SI 116 [ p1 ])
        (zero_extend:SI (reg/v:QI 96 [ p1 ]))) "pr79450.c":14 134
{*zero_extendqisi2}
     (expr_list:REG_DEAD (reg/v:QI 96 [ p1 ])
        (nil)))
(insn 35 34 40 4 (parallel [
            (set (reg:SI 115)
                (plus:SI (reg:SI 116 [ p1 ])
                    (subreg:SI (reg/v:DI 98 [ p2 ]) 0)))
            (clobber (reg:CC 17 flags))
        ]) "pr79450.c":14 215 {*addsi_1}
     (expr_list:REG_DEAD (reg:SI 116 [ p1 ])
        (expr_list:REG_DEAD (reg/v:DI 98 [ p2 ])
            (expr_list:REG_UNUSED (reg:CC 17 flags)
                (nil)))))

combine converts this to:

Trying 34 -> 35:
Failed to match this instruction:
(parallel [
        (set (reg:SI 115)
            (subreg:SI (reg/v:DI 98 [ p2 ]) 0))
        (clobber (reg:CC 17 flags))
    ])
Successfully matched this instruction:
(set (reg:SI 115)
    (subreg:SI (reg/v:DI 98 [ p2 ]) 0))
allowing combination of insns 34 and 35
>From gcc-bugs-return-553674-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 10:28:44 2017
Return-Path: <gcc-bugs-return-553674-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90793 invoked by alias); 10 Feb 2017 10:28: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 90631 invoked by uid 48); 10 Feb 2017 10:28:31 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79430] [7 Regression] action of statement incorrectly optimised away
Date: Fri, 10 Feb 2017 10:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.0.1
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79430-4-hiSrVGcmz9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79430-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01206.txt.bz2
Content-length: 251

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

--- Comment #25 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
AFAICT the IF is already optimized away at r240458. Note that r240271 cannot
use the modules generated by later revisions.
>From gcc-bugs-return-553675-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 10:37:12 2017
Return-Path: <gcc-bugs-return-553675-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37922 invoked by alias); 10 Feb 2017 10:37: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 36212 invoked by uid 48); 10 Feb 2017 10:36:59 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Fri, 10 Feb 2017 10:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.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-79341-4-sWrs2QtusA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01207.txt.bz2
Content-length: 4050

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

--- Comment #32 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
On a machine with
 * glibc-2.23
 * kernel 4.4.0 + patch for the CVE
 * CVE environment variable set to allow running the Asan tests
 * patch from comment 24 applied

=>

In addition to the FAILs you've listed here:
https://gcc.gnu.org/ml/gcc-patches/2017-01/msg01814.html

(same test failing with different options listed only once)

Running target unix/-m31 
FAIL: c-c++-common/asan/memcmp-1.c   -O0  output pattern test, is
=================================================================
FAIL: c-c++-common/asan/misalign-1.c   -O2  output pattern test, is
================================================================= 
FAIL: c-c++-common/asan/misalign-2.c   -O2  output pattern test, is
================================================================= 
FAIL: c-c++-common/asan/strlen-overflow-1.c   -O0  output pattern test, is
================================================================= 
FAIL: c-c++-common/asan/strncpy-overflow-1.c   -O0  output pattern test, is
================================================================= 
...
Running target unix/-m64 
FAIL: c-c++-common/asan/null-deref-1.c   -O2  output pattern test, is
ASAN:DEADLYSIGNAL 
...
FAIL: c-c++-common/ubsan/float-cast-overflow-10.c   -O2  output pattern test,
is c-c++-common/ubsan/float-cast-overflow-7.h:147:1: runtime error: value
<unknown> is outside the range of representable values of \
type 'signed char' 
...
                === g++ tests === 


Running target unix/-m31 
FAIL: c-c++-common/asan/memcmp-1.c   -O0  output pattern test, is
================================================================= 
FAIL: c-c++-common/asan/misalign-1.c   -O2  output pattern test, is
================================================================= 
FAIL: c-c++-common/asan/misalign-2.c   -O2  output pattern test, is
================================================================= 
FAIL: c-c++-common/asan/strlen-overflow-1.c   -O0  output pattern test, is
================================================================= 
FAIL: g++.dg/asan/deep-tail-call-1.C   -O0  output pattern test, is
================================================================= 
...
Running target unix/-m64 
FAIL: c-c++-common/ubsan/float-cast-overflow-10.c   -O2  output pattern test,
is c-c++-common/ubsan/float-cast-overflow-7.h:147:1: runtime error: value
<unknown> is outside the range of representable values of \
type 'signed char' 

--

So, actually two more problems?

1) *san is not disabled with -m31 as it should(?)
2) ubsan/float-cast-overflow-10.c
>From gcc-bugs-return-553677-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 10:44:10 2017
Return-Path: <gcc-bugs-return-553677-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43492 invoked by alias); 10 Feb 2017 10:44: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 42867 invoked by uid 48); 10 Feb 2017 10:43:57 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/79388] [6/7 Regression] wrong code with -O -fno-tree-coalesce-vars
Date: Fri, 10 Feb 2017 10:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 7.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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79388-4-t0BvZB4ZcC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79388-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79388-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01209.txt.bz2
Content-length: 181

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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
*** Bug 79450 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-553676-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 10:44:00 2017
Return-Path: <gcc-bugs-return-553676-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42936 invoked by alias); 10 Feb 2017 10:44: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 42796 invoked by uid 48); 10 Feb 2017 10:43:55 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/79450] [5/6/7 Regression] wrong code with loop at -O1
Date: Fri, 10 Feb 2017 10:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79450-4-l5M9dA4VF9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79450-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79450-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01208.txt.bz2
Content-length: 971

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

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

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
IMNSHO this is a dup of PR79388.  The problem is again that get_last_value is
called on (reg/v:QI 96 [ x ]) and reg_stat[96].last_set is (note 22 21 24 3
NOTE_INSN_DELETED) and (const_int 0 [0]) which is wrong, because pseudo 96 has
been set multiple times, once indeed to something that would be always zero,
but all that has been removed when the whole something = something % 24
operation consisting of various shifts, additions and subtraction has been
optimized into something.

*** This bug has been marked as a duplicate of bug 79388 ***
>From gcc-bugs-return-553678-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 10:45:52 2017
Return-Path: <gcc-bugs-return-553678-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47446 invoked by alias); 10 Feb 2017 10:45: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 47255 invoked by uid 48); 10 Feb 2017 10:45:33 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/79388] [6/7 Regression] wrong code with -O -fno-tree-coalesce-vars
Date: Fri, 10 Feb 2017 10:45:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 7.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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79388-4-dt7bMTn0OV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79388-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79388-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01210.txt.bz2
Content-length: 411

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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Another testcase from the other PR (-O):
unsigned int
foo (unsigned char x, unsigned long long y)
{
  do
    {
      x &= !y;
      x %= 24;
    }
  while (x < y);
  return x + y;
}

int
main (void)
{
  unsigned int x = foo (1, 0);
  if (x != 1)
    __builtin_abort ();
  return 0;
}
>From gcc-bugs-return-553679-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 10:59:32 2017
Return-Path: <gcc-bugs-return-553679-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58082 invoked by alias); 10 Feb 2017 10:59: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 57892 invoked by uid 48); 10 Feb 2017 10:59:19 -0000
From: "ro at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/79356] XPASS in attr-alloc_size-11.c
Date: Fri, 10 Feb 2017 10:59: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: ro at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: segher at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_gcctarget cc target_milestone
Message-ID: <bug-79356-4-TGGx2krfFt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79356-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79356-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01211.txt.bz2
Content-length: 681

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

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|s390x-*-*, powerpc*-*-*,    |s390x-*-*, powerpc*-*-*,
                   |ia64-*-*, aarch64-*-*       |ia64-*-*, aarch64-*-*,
                   |                            |sparc*-*-*
                 CC|                            |ro at gcc dot gnu.org
   Target Milestone|---                         |7.0

--- Comment #5 from Rainer Orth <ro at gcc dot gnu.org> ---
Also on SPARC as mentioned in PR tree-optimization/78775.
>From gcc-bugs-return-553680-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 11:26:27 2017
Return-Path: <gcc-bugs-return-553680-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118295 invoked by alias); 10 Feb 2017 11:26: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 118157 invoked by uid 48); 10 Feb 2017 11:26:14 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/79388] [6/7 Regression] wrong code with -O -fno-tree-coalesce-vars
Date: Fri, 10 Feb 2017 11:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 7.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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79388-4-87s1XeGam8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79388-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79388-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01212.txt.bz2
Content-length: 1154

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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
--- gcc/combine.c.jj    2017-01-30 09:31:48.000000000 +0100
+++ gcc/combine.c       2017-02-10 12:16:18.507855160 +0100
@@ -14288,6 +14288,11 @@ distribute_notes (rtx notes, rtx_insn *f
                                            NULL_RTX, NULL_RTX, NULL_RTX);
                          distribute_links (LOG_LINKS (tem_insn));

+                         unsigned int regno = REGNO (XEXP (note, 0));
+                         reg_stat_type *rsp = &reg_stat[regno];
+                         if (rsp->last_set == tem_insn)
+                           record_value_for_reg (XEXP (note, 0), NULL,
NULL_RTX);
+
                          SET_INSN_DELETED (tem_insn);
                          if (tem_insn == i2)
                            i2 = NULL;

fixes both testcases by making sure that if we delete the instruction that is
still considered to be the setter of the last value, we also invalidate what
we've remembered for it.  No idea whether this is the right spot or right way
to invalidate that though.  Segher?
>From gcc-bugs-return-553681-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 11:30:49 2017
Return-Path: <gcc-bugs-return-553681-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14417 invoked by alias); 10 Feb 2017 11:30:49 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 14121 invoked by uid 48); 10 Feb 2017 11:30:34 -0000
From: "meisenmann.lba@fh-salzburg.ac.at" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/60936] [5/6/7 Regression] Binary code bloat with std::string
Date: Fri, 10 Feb 2017 11:30: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.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: meisenmann.lba@fh-salzburg.ac.at
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-60936-4-eRyMCQ8Feq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60936-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60936-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01213.txt.bz2
Content-length: 482

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

--- Comment #28 from Markus Eisenmann <meisenmann.lba@fh-salzburg.ac.at> ---
Hi!

@Jonathan:
Do you have any plans to backport/migrate these changes to the GCC 5 and/or 6
branch, to be provided/included on a next release?

An "official" fix would be much better (C++-development on embedded targets),
than waiting for (stable) GCC 7 or maintain a personal patched variant or
work-around.

Best regards from Salzburg,
Markus
>From gcc-bugs-return-553683-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 11:38:15 2017
Return-Path: <gcc-bugs-return-553683-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26706 invoked by alias); 10 Feb 2017 11:38: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 26635 invoked by uid 48); 10 Feb 2017 11:38:12 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79184] [7 Regression] -Wint-in-bool-context triggered erroneously in template parameter
Date: Fri, 10 Feb 2017 11:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: diagnostic
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.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79184-4-zmx5k2kOq0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79184-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79184-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01215.txt.bz2
Content-length: 977

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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I suppose we'll have to use something like

--- a/gcc/cp/cvt.c
+++ b/gcc/cp/cvt.c
@@ -798,7 +798,15 @@ ocp_convert (tree type, tree expr, int convtype, int
flags,
         to the underlying type first.  */
      if (SCOPED_ENUM_P (intype) && (convtype & CONV_STATIC))
        e = build_nop (ENUM_UNDERLYING_TYPE (intype), e);
-     return cp_truthvalue_conversion (e);
+     if (complain & tf_warning)
+       return cp_truthvalue_conversion (e);
+     else
+       {
+         /* Prevent bogus -Wint-in-bool-context warnings coming
+            from c_common_truthvalue_conversion down the line.  */
+         warning_sentinel w (warn_int_in_bool_context);
+         return cp_truthvalue_conversion (e);
+       }
    }

       converted = convert_to_integer_maybe_fold (type, e, dofold);

(that makes g++ not warn at all on the test from Comment 2)
>From gcc-bugs-return-553682-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 11:38:15 2017
Return-Path: <gcc-bugs-return-553682-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26690 invoked by alias); 10 Feb 2017 11:38: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 26557 invoked by uid 48); 10 Feb 2017 11:38:02 -0000
From: "gonzalobg88 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79452] New: Provide builtin to detect compile-time execution
Date: Fri, 10 Feb 2017 11:38: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: gonzalobg88 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-79452-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01214.txt.bz2
Content-length: 1930

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

            Bug ID: 79452
           Summary: Provide builtin to detect compile-time execution
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gonzalobg88 at gmail dot com
  Target Milestone: ---

The run-time performance of constexpr functions is often sub-optimal, because
the optimal algorithm cannot be expressed within the capabilities of C++'s
constexpr feature, and never will be (in the worst case, the optimal run-time
implementation will require inline assembly, which cannot ever be standardized
nor made constexpr). 

It would be very useful to have a builtin that allows detecting compile-time
execution of the current function/block/scope like this:

if constexpr(__ctfe) {
  // the outer scope is being executed at compile-time
} else {
  // the outer scope will be executed at run-time
}

Implementation as a builtin is preferred, because it is possible that "if
constexpr() { }" syntax will be proposed for standardization.

I'd rather have this built-in always work. That is, even if its invoked inside
a non-constexpr function, it might still be that some block inside that
function is evaluated by the constant expression evaluator of the C++ compiler.
The built-in should detect this case properly.

There is an alternative proposal, using a function attribute
[[constexpr_alias(constexpr_fn_decl)]]:

constexpr int foo_constexpr();

[[constexpr_alias(foo_constexpr)]]
int foo();

that will replace a call to foo by a call to foo_constexpr whenever foo is
called during constant expression evaluation. 

Both features are isomorphic, and enable the same new kind of programs to be
written. Only one of them should be implemented. It is still not clear which.
>From gcc-bugs-return-553684-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 11:43:49 2017
Return-Path: <gcc-bugs-return-553684-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38661 invoked by alias); 10 Feb 2017 11:43: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 33075 invoked by uid 48); 10 Feb 2017 11:43:34 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79452] Provide builtin to detect compile-time execution
Date: Fri, 10 Feb 2017 11: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: 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-79452-4-H6trFWkt0r@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79452-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79452-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01216.txt.bz2
Content-length: 676

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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to gnzlbg from comment #0)
> Implementation as a builtin is preferred, because it is possible that "if
> constexpr() { }" syntax will be proposed for standardization.

It's already in C++17 and supported by GCC.

> I'd rather have this built-in always work. That is, even if its invoked
> inside a non-constexpr function, it might still be that some block inside
> that function is evaluated by the constant expression evaluator of the C++
> compiler. The built-in should detect this case properly.

That sounds like a recipe for ODR violations.
>From gcc-bugs-return-553685-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 11:44:08 2017
Return-Path: <gcc-bugs-return-553685-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39454 invoked by alias); 10 Feb 2017 11:44: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 39321 invoked by uid 48); 10 Feb 2017 11:43:55 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79452] Provide builtin to detect compile-time execution
Date: Fri, 10 Feb 2017 11: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_severity
Message-ID: <bug-79452-4-MGuIBnpBks@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79452-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79452-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01217.txt.bz2
Content-length: 299

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
>From gcc-bugs-return-553686-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 11:48:51 2017
Return-Path: <gcc-bugs-return-553686-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60846 invoked by alias); 10 Feb 2017 11:48:51 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 60738 invoked by uid 48); 10 Feb 2017 11:48:38 -0000
From: "gonzalobg88 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79452] Provide builtin to detect compile-time execution
Date: Fri, 10 Feb 2017 11: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: gonzalobg88 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-79452-4-MbciZxVQ4G@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79452-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79452-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01218.txt.bz2
Content-length: 693

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

--- Comment #2 from gnzlbg <gonzalobg88 at gmail dot com> ---
> It's already in C++17 and supported by GCC.

The following program is ill-formed in C++17:

int main() {

  if constexpr() {  // Error: expression missing in if condition
    return 1;
  }

  return 0;
}

> That sounds like a recipe for ODR violations.

Could you elaborate on why? Since the `constexpr_alias` will only be called
during compile-time evaluation, it will never collide with the "run-time" alias
(which is inline, since constexpr implies inline). Note that `foo_constexpr` is
a completely different function than `foo`, so these two never collide either.
>From gcc-bugs-return-553687-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 11:49:27 2017
Return-Path: <gcc-bugs-return-553687-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62463 invoked by alias); 10 Feb 2017 11:49: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 62414 invoked by uid 48); 10 Feb 2017 11:49:22 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79435] [7 Regression] ICE on invalid C++ code (with member access into an incomplete type) on x86_64-linux-gnu: Segmentation fault
Date: Fri, 10 Feb 2017 11:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: error-recovery, 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: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79435-4-WAuYK2dhrN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79435-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79435-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01219.txt.bz2
Content-length: 902

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

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

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

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I think the fix is to make type_dependent_expression_p a bit more robust:

--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -23818,6 +23818,7 @@ type_dependent_expression_p (tree expression)
      we couldn't determine its length in cp_complete_array_type because
      it is dependent.  */
   if (VAR_P (expression)
+      && TREE_TYPE (expression) != NULL_TREE
       && TREE_CODE (TREE_TYPE (expression)) == ARRAY_TYPE
       && !TYPE_DOMAIN (TREE_TYPE (expression))
       && DECL_INITIAL (expression))


Will test.
>From gcc-bugs-return-553688-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 11:51:25 2017
Return-Path: <gcc-bugs-return-553688-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64838 invoked by alias); 10 Feb 2017 11:51: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 64598 invoked by uid 48); 10 Feb 2017 11:51:12 -0000
From: "gonzalobg88 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79452] Provide builtin to detect compile-time execution
Date: Fri, 10 Feb 2017 11: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: gonzalobg88 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-79452-4-epKXHseP3K@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79452-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79452-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01220.txt.bz2
Content-length: 267

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

--- Comment #3 from gnzlbg <gonzalobg88 at gmail dot com> ---
I guess I should have written, "How does this feature make ODR violations more
common than the inline keyword?". Which new perils does it introduce?
>From gcc-bugs-return-553689-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 12:31:57 2017
Return-Path: <gcc-bugs-return-553689-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66434 invoked by alias); 10 Feb 2017 12:31: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 50193 invoked by uid 48); 10 Feb 2017 12:31:42 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79396] [7 Regression] ICE (verify_flow_info failed) with -fnon-call-exceptions -O2
Date: Fri, 10 Feb 2017 12:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79396-4-amZLP39NhR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79396-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79396-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01221.txt.bz2
Content-length: 438

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

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> ---
The preprocessed source doesn't ICE for me neither.
>From gcc-bugs-return-553690-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 12:56:10 2017
Return-Path: <gcc-bugs-return-553690-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128062 invoked by alias); 10 Feb 2017 12:56: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 125961 invoked by uid 48); 10 Feb 2017 12:55:57 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Fri, 10 Feb 2017 12:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.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:
Message-ID: <bug-79341-4-PRxyEkhm9g@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01222.txt.bz2
Content-length: 1851

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

--- Comment #33 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Dominik Vogt from comment #32)
> On a machine with
>  * glibc-2.23

:(; I was hoping you could test #c24 patch against glibc 2.18

>  * kernel 4.4.0 + patch for the CVE
>  * CVE environment variable set to allow running the Asan tests

Yeah, that is a workaround if you have known fixed kernel.

Most of the issues can be fixed with:

--- libsanitizer/configure.tgt.jj       2017-01-31 14:49:14.000000000 +0100
+++ libsanitizer/configure.tgt  2017-02-10 13:29:44.571294678 +0100
@@ -40,9 +40,6 @@ case "${target}" in
   sparc*-*-linux*)
        ;;
   s390*-*-linux*)
-       if test x$ac_cv_sizeof_void_p = x4; then
-               UNSUPPORTED=1
-       fi
        ;;
   arm*-*-linux*)
        ;;
--- libsanitizer/sanitizer_common/sanitizer_internal_defs.h.jj  2016-11-09
15:22:41.000000000 +0100
+++ libsanitizer/sanitizer_common/sanitizer_internal_defs.h     2017-02-10
13:29:28.359506264 +0100
@@ -287,7 +287,12 @@ void NORETURN CheckFailed(const char *fi
 enum LinkerInitialized { LINKER_INITIALIZED = 0 };

 #if !defined(_MSC_VER) || defined(__clang__)
-# define GET_CALLER_PC() (uptr)__builtin_return_address(0)
+# if SANITIZER_S390_31
+#  define GET_CALLER_PC() \
+  (uptr)__builtin_extract_return_addr(__builtin_return_address(0))
+# else
+#  define GET_CALLER_PC() (uptr)__builtin_return_address(0)
+# endif
 # define GET_CURRENT_FRAME() (uptr)__builtin_frame_address(0)
 inline void Trap() {
   __builtin_trap();

With this, the only FAILs I'm seeing on asan.exp and ubsan.exp are (various opt
levels):
-m64 only:
FAIL: c-c++-common/ubsan/overflow-vec-1.c
FAIL: c-c++-common/ubsan/overflow-vec-2.c
both -m64 and -m31:
FAIL: g++.dg/asan/deep-stack-uaf-1.C

I can't reproduce float-cast-overflow-10.c.
>From gcc-bugs-return-553691-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 13:14:52 2017
Return-Path: <gcc-bugs-return-553691-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71895 invoked by alias); 10 Feb 2017 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 71726 invoked by uid 55); 10 Feb 2017 13:14:37 -0000
From: "paolo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/71737] [5/6/7 Regression] ICE following 2x pack expansion in non-pack with template alias
Date: Fri, 10 Feb 2017 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: 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: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: paolo.carlini at oracle dot com
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-71737-4-rSv10Oogbh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71737-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71737-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01223.txt.bz2
Content-length: 728

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

--- Comment #10 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Fri Feb 10 13:14:05 2017
New Revision: 245327

URL: https://gcc.gnu.org/viewcvs?rev=245327&root=gcc&view=rev
Log:
/cp
2017-02-10  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/71737
        * pt.c (tsubst_decl): Don't try to preserve a typedef that names
        an error_mark_node as type.

/testsuite
2017-02-10  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/71737
        * g++.dg/cpp0x/pr71737.C: New.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp0x/pr71737.C
>From gcc-bugs-return-553693-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 13:17:04 2017
Return-Path: <gcc-bugs-return-553693-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75006 invoked by alias); 10 Feb 2017 13:16: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 74845 invoked by uid 48); 10 Feb 2017 13:16:46 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/71737] [5/6 Regression] ICE following 2x pack expansion in non-pack with template alias
Date: Fri, 10 Feb 2017 13:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 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: paolo.carlini at oracle dot com
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status short_desc
Message-ID: <bug-71737-4-yTFvgxam3e@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71737-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71737-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01225.txt.bz2
Content-length: 695

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEW
            Summary|[5/6/7 Regression] ICE      |[5/6 Regression] ICE
                   |following 2x pack expansion |following 2x pack expansion
                   |in non-pack with template   |in non-pack with template
                   |alias                       |alias

--- Comment #11 from Paolo Carlini <paolo.carlini at oracle dot com> ---
This one should be fine. Fixed again in trunk.
>From gcc-bugs-return-553692-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 13:16:21 2017
Return-Path: <gcc-bugs-return-553692-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73958 invoked by alias); 10 Feb 2017 13:16: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 73657 invoked by uid 48); 10 Feb 2017 13:16:07 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79452] Provide builtin to detect compile-time execution
Date: Fri, 10 Feb 2017 13:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79452-4-AK6IEO9Gzh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79452-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79452-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01224.txt.bz2
Content-length: 1276

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

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to gnzlbg from comment #2)
>   if constexpr() {  // Error: expression missing in if condition

Oh, I didn't realise you meant without an expression. Yeah that doesn't work.

> > That sounds like a recipe for ODR violations.
> 
> Could you elaborate on why? Since the `constexpr_alias` will only be called
> during compile-time evaluation, it will never collide with the "run-time"
> alias (which is inline, since constexpr implies inline). Note that
> `foo_constexpr` is a completely different function than `foo`, so these two
> never collide either.

I wasn't replying to the part about function aliases, I was replying to the
part about having the built-in work even when used in a non-constexpr function.
It sounds like what you're suggesting would depend on optimisation levels,
rather than on the unambiguous semantics of whether something is actually a
constant-expression or not as defined by the C++ language. Maybe I
misunderstood what you mean by "some block inside that function is evaluated by
the constant expression evaluator". If you simply mean when the built-in
appears as part of a constant-expression that's fine.
>From gcc-bugs-return-553694-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 13:19:12 2017
Return-Path: <gcc-bugs-return-553694-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82810 invoked by alias); 10 Feb 2017 13:19: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 82720 invoked by uid 48); 10 Feb 2017 13:19:03 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79452] Provide builtin to detect compile-time execution
Date: Fri, 10 Feb 2017 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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
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-79452-4-nbdABDrWbG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79452-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79452-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01226.txt.bz2
Content-length: 163

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

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
What about __builtin_constant_expression.
>From gcc-bugs-return-553695-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 13:20:37 2017
Return-Path: <gcc-bugs-return-553695-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85153 invoked by alias); 10 Feb 2017 13:20: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 84940 invoked by uid 48); 10 Feb 2017 13:20:24 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Fri, 10 Feb 2017 13:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.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-79341-4-z9OXYLdRnK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01227.txt.bz2
Content-length: 591

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

--- Comment #34 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
(In reply to Jakub Jelinek from comment #33)
> (In reply to Dominik Vogt from comment #32)
> > On a machine with
> >  * glibc-2.23
> 
> :(; I was hoping you could test #c24 patch against glibc 2.18

I'll eventually do that, but the colleagues wanted to be nice and replaced 2.18
on the machine with 2.23, so I have to look for an alternative first.

> I can't reproduce float-cast-overflow-10.c.

I'll try your patch and take a look at float-cast-overflow-10.c.
>From gcc-bugs-return-553696-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 13:28:24 2017
Return-Path: <gcc-bugs-return-553696-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93169 invoked by alias); 10 Feb 2017 13:28: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 92017 invoked by uid 48); 10 Feb 2017 13:28:11 -0000
From: "gonzalobg88 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79452] Provide builtin to detect compile-time execution
Date: Fri, 10 Feb 2017 13: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: gonzalobg88 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-79452-4-4KcPQnHmz8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79452-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79452-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01228.txt.bz2
Content-length: 1970

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

--- Comment #6 from gnzlbg <gonzalobg88 at gmail dot com> ---
> I wasn't replying to the part about function aliases, I was replying to the part about having the built-in work even when used in a non-constexpr function. It sounds like what you're suggesting would depend on optimisation levels, rather than on the unambiguous semantics of whether something is actually a constant-expression or not as defined by the C++ language. Maybe I misunderstood what you mean by "some block inside that function is evaluated by the constant expression evaluator". 

I actually meant that, but yes, you are 100% correct, that would definetely
lead to ODR issues. Thanks for pointing this out, I guess that the builtin
should, as you say, only be usable in constant expressions (as defined by C++).

> What about __builtin_constant_expression.

FWIW I went with __ctfe for the built-in because there is prior-art in D. It
has a built-in named __ctfe (compile-time function evaluation) that does what
is being proposed here, see: http://dlang.org/spec/function.html

The only important thing is that the built-in does not resemble anything that
we might ever want to standardize to avoid collisions. I would rather wait for
an agreement on the semantics before bike-shedding the name, but:

- __ctfe
- __builtin_constant_expression
- reciclying __builtin_constant_p() without any expression,
__builtin_constant_p(expr) already exists in gcc and detects whether expr
returns a value known at compile-time.

There are multiple candidates, I actually don't really care much for the name
as long as it is sufficiently self explanatory. 

I'd rather decide which approach is worth pursuing, and which semantics should
the builtin have, so that somebody can submit a patch with chances of getting
merged. We can always bike-shed the name of the builtin or attribute at the
last minute and just change it.
>From gcc-bugs-return-553697-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 13:28:24 2017
Return-Path: <gcc-bugs-return-553697-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93178 invoked by alias); 10 Feb 2017 13:28: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 91995 invoked by uid 48); 10 Feb 2017 13:28:10 -0000
From: "townsend at astro dot wisc.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79446] Passing internal procedure as argument causes segfault at runtime
Date: Fri, 10 Feb 2017 13:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 5.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: townsend at astro dot wisc.edu
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-79446-4-Rw1KvCycEd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79446-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79446-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01229.txt.bz2
Content-length: 1274

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

--- Comment #2 from Rich Townsend <townsend at astro dot wisc.edu> ---
(In reply to Dominique d'Humieres from comment #1)
> > Also, I don't experience the segfault on other Linux distros
> > (e.g., Gentoo/3.16.5) or Mac OS.
> 
> Confirmed on x86_64-apple-darwin16, even using an instrumented gfortran and
> -fsanitize=address,undefined.
> 
> What is the output of gfortran -v?

Using built-in specs.
COLLECT_GCC=/var/lib/condor/execute/slot1/dir_727203/mesasdk/bin/gfortran.exec
COLLECT_LTO_WRAPPER=/var/lib/condor/execute/slot1/dir_727203/mesasdk/bin/../libexec/gcc/x86_64-pc-linux-gnu/5.3.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with:
/var/lib/condor/execute/slot1/dir_460062/mesasdk-src/gcc/configure CC=gcc
--build=x86_64-pc-linux-gnu
--prefix=/var/lib/condor/execute/slot1/dir_460062/mesasdk
--with-gmp=/var/lib/condor/execute/slot1/dir_460062/mesasdk
--with-mpfr=/var/lib/condor/execute/slot1/dir_460062/mesasdk
--with-mpc=/var/lib/condor/execute/slot1/dir_460062/mesasdk
--enable-languages=c,c++,fortran --disable-multilib --disable-nls
--disable-libsanitizer --enable-clocale=generic
Thread model: posix
gcc version 5.3.1 20160216 (GCC) 

Also, this is svn 245289.
>From gcc-bugs-return-553698-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 13:33:59 2017
Return-Path: <gcc-bugs-return-553698-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108297 invoked by alias); 10 Feb 2017 13:33: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 108185 invoked by uid 48); 10 Feb 2017 13:33:46 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Fri, 10 Feb 2017 13: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: 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: 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-79341-4-fOi4kyNeVc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01230.txt.bz2
Content-length: 211

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

--- Comment #35 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I've filed https://reviews.llvm.org/D29824 and https://reviews.llvm.org/D29825
upstream.
>From gcc-bugs-return-553699-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 13:38:59 2017
Return-Path: <gcc-bugs-return-553699-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1080 invoked by alias); 10 Feb 2017 13:38: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 116833 invoked by uid 48); 10 Feb 2017 13:38:46 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/41727] [7 Regression] inner template specialization on non-type arg template causes ICE
Date: Fri, 10 Feb 2017 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.5.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: major
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.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-41727-4-lxOfrUlP7e@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-41727-4@http.gcc.gnu.org/bugzilla/>
References: <bug-41727-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01231.txt.bz2
Content-length: 293

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |7.0
>From gcc-bugs-return-553701-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 13:39:44 2017
Return-Path: <gcc-bugs-return-553701-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 2879 invoked by alias); 10 Feb 2017 13:39:44 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 2750 invoked by uid 48); 10 Feb 2017 13:39:35 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79426] [5/6/7 Regression] fortran - internal compiler error: in fold_convert_loc, at fold-const.c:2251
Date: Fri, 10 Feb 2017 13: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: 6.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: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority target_milestone
Message-ID: <bug-79426-4-CDYc7kN2Pr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79426-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79426-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01233.txt.bz2
Content-length: 345

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
   Target Milestone|---                         |5.5
>From gcc-bugs-return-553700-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 13:39:21 2017
Return-Path: <gcc-bugs-return-553700-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1944 invoked by alias); 10 Feb 2017 13: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 1887 invoked by uid 48); 10 Feb 2017 13:39:16 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79345] [6/7 Regression] passing yet-uninitialized member as argument to base class constructor should warn (-Wunitialized)
Date: Fri, 10 Feb 2017 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: 7.0.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority target_milestone
Message-ID: <bug-79345-4-X4ndIzaDy1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79345-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79345-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01232.txt.bz2
Content-length: 345

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
   Target Milestone|---                         |6.4
>From gcc-bugs-return-553702-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 13:58:34 2017
Return-Path: <gcc-bugs-return-553702-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71553 invoked by alias); 10 Feb 2017 13:58: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 71467 invoked by uid 48); 10 Feb 2017 13:58:21 -0000
From: "fmarchal at perso dot be" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug translation/79453] New: Translator unfriendly string in avr_pgm_check_var_decl
Date: Fri, 10 Feb 2017 13:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: translation
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: fmarchal at perso dot be
X-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-79453-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01234.txt.bz2
Content-length: 962

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

            Bug ID: 79453
           Summary: Translator unfriendly string in avr_pgm_check_var_decl
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: translation
          Assignee: unassigned at gcc dot gnu.org
          Reporter: fmarchal at perso dot be
  Target Milestone: ---

In gcc/config/avr/avr.c, at line, 9831 (inside avr_pgm_check_var_decl()), one
can find this error message:

    error ("pointer targeting address space %qs must be const"
           " in %s %q+D",
             avr_addrspace[as].name, reason, node);

The "reason" variable contains an untranslated text such as "variable",
"function parameter", "return type of function", and so on. Building a string
out of fragments doesn't play well at all with translations.

I'm afraid every reason should have its own error message.
>From gcc-bugs-return-553703-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 14:02:16 2017
Return-Path: <gcc-bugs-return-553703-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85751 invoked by alias); 10 Feb 2017 14:02:16 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 85505 invoked by uid 48); 10 Feb 2017 14:02:03 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Fri, 10 Feb 2017 14:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.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: attachments.created
Message-ID: <bug-79341-4-Cef9vW5IuO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01235.txt.bz2
Content-length: 628

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

--- Comment #36 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
Created attachment 40711
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40711&action=edit
Reduced test for float-cast-overflow-10.c

Test for the float-cast-overflow-10.c failure.

This snippet should detect that _Decimal32 doesn't fit in a signed 64-bit
integer (either signed long or signed long long).  Test uses "-m64 -O2
-fsanitize=float-cast-overflow -fsanitize-recover=float-cast-overflow".

If you compile and execute this preprocessed file, does ubsan generate messages
or not?
>From gcc-bugs-return-553704-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 14:08:17 2017
Return-Path: <gcc-bugs-return-553704-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25037 invoked by alias); 10 Feb 2017 14:08: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 24747 invoked by uid 48); 10 Feb 2017 14:08:04 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Fri, 10 Feb 2017 14:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.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:
Message-ID: <bug-79341-4-HK0dpP8CF5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01236.txt.bz2
Content-length: 1024

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

--- Comment #37 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The overflow-vec-1.c and vec-2.c on -m64 fail also on ppc64{,le}.
Minimum failing testcase is:
#define SCHAR_MAX __SCHAR_MAX__
#define SCHAR_MIN (-__SCHAR_MAX__ - 1)
typedef signed char VC __attribute__((vector_size (16)));
void __attribute__((noinline,noclone))
checkvc (VC i, VC j)
{
  if (__builtin_memcmp (&i, &j, sizeof (VC)))
    __builtin_abort ();
}
int
main (void)
{
  /* Check that for a vector operation, only the first element with UB is
reported.  */
  volatile VC a = (VC) { 0, SCHAR_MAX - 2, SCHAR_MAX - 2, 3, 2, 3, 4, 5,  0, 7,
 1,  2,  3, 4,  SCHAR_MAX - 13, SCHAR_MAX };
  volatile VC b = (VC) { 5, 2,             1,             5, 0, 1, 2, 7,  8, 9,
 10, 11, 6, -2, 13,             0 };
  volatile VC k = b + a;
  checkvc (k,     (VC) { 5, SCHAR_MAX,     SCHAR_MAX - 1, 8, 2, 4, 6, 12, 8,
16, 11, 13, 9, 2,  SCHAR_MAX,      SCHAR_MAX });
  return 0;
}
Looking into that now.
>From gcc-bugs-return-553705-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 14:10:14 2017
Return-Path: <gcc-bugs-return-553705-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28150 invoked by alias); 10 Feb 2017 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 27862 invoked by uid 48); 10 Feb 2017 14:10:01 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Fri, 10 Feb 2017 14:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.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-79341-4-EEXdMUI7QR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01237.txt.bz2
Content-length: 231

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

--- Comment #38 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
(And if it does generate messages, does it take the if or the else bodies?  For
me it's the if-bodies.)
>From gcc-bugs-return-553706-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 14:50:19 2017
Return-Path: <gcc-bugs-return-553706-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49697 invoked by alias); 10 Feb 2017 14:50: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 49626 invoked by uid 48); 10 Feb 2017 14:50:11 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/79356] XPASS in attr-alloc_size-11.c
Date: Fri, 10 Feb 2017 14:50: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: segher 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.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-79356-4-zHEktO58P1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79356-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79356-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01238.txt.bz2
Content-length: 473

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

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

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

--- Comment #6 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Patch withdrawn.
>From gcc-bugs-return-553707-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 15:11:03 2017
Return-Path: <gcc-bugs-return-553707-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28518 invoked by alias); 10 Feb 2017 15: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 27026 invoked by uid 48); 10 Feb 2017 15:10:44 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79454] New: [7 Regression] c-c++-common/ubsan/overflow-vec-*.c FAILs on some 64-bit BE targets
Date: Fri, 10 Feb 2017 15:11: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: 7.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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-79454-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01239.txt.bz2
Content-length: 613

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

            Bug ID: 79454
           Summary: [7 Regression] c-c++-common/ubsan/overflow-vec-*.c
                    FAILs on some 64-bit BE targets
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

c-c++-common/ubsan/overflow-vec-1.c
and
c-c++-common/ubsan/overflow-vec-2.c
tests on big endian powerpc64-linux and s390x-linux.
>From gcc-bugs-return-553708-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 15:12:46 2017
Return-Path: <gcc-bugs-return-553708-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33259 invoked by alias); 10 Feb 2017 15:12: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 33029 invoked by uid 48); 10 Feb 2017 15:12:32 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79454] [7 Regression] c-c++-common/ubsan/overflow-vec-*.c FAILs on some 64-bit BE targets
Date: Fri, 10 Feb 2017 15:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.0
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.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on assigned_to target_milestone everconfirmed
Message-ID: <bug-79454-4-3opPjGa6ov@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79454-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79454-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01240.txt.bz2
Content-length: 940

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-02-10
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
   Target Milestone|---                         |7.0
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
This is actually a regression, while in gcc 6 we for
-fsanitize=signed-integer-overflow ignored vector arithmetics (thus wouldn't
signal possible overflows), at least we computed the correct values, but now we
properly signal the overflow, but compute wrong values.
>From gcc-bugs-return-553709-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 15:17:47 2017
Return-Path: <gcc-bugs-return-553709-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68244 invoked by alias); 10 Feb 2017 15:17: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 68094 invoked by uid 48); 10 Feb 2017 15:17:34 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79454] [7 Regression] c-c++-common/ubsan/overflow-vec-*.c FAILs on some 64-bit BE targets
Date: Fri, 10 Feb 2017 15:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: 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.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-79454-4-7zOHOjaH6H@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79454-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79454-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01241.txt.bz2
Content-length: 553

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 40712
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40712&action=edit
gcc7-pr79454.patch

Untested fix.  The problem was if the vector type had non-BLKmode, but not
vector mode, like e.g. for the 16xchar vector TImode, we actually performed the
addition to get the result in TImode rather than in V16QImode (not really
supported), or saving the result inside of the loop from each separate
comparison.
>From gcc-bugs-return-553710-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 15:18:47 2017
Return-Path: <gcc-bugs-return-553710-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69494 invoked by alias); 10 Feb 2017 15:18: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 69285 invoked by uid 48); 10 Feb 2017 15:18:26 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Fri, 10 Feb 2017 15:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.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:
Message-ID: <bug-79341-4-zdOfp751l4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01242.txt.bz2
Content-length: 164

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

--- Comment #39 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
For overflow-vec-*.c moved this to PR79454.
>From gcc-bugs-return-553711-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 15:32:47 2017
Return-Path: <gcc-bugs-return-553711-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102430 invoked by alias); 10 Feb 2017 15:32:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 102224 invoked by uid 48); 10 Feb 2017 15:32:34 -0000
From: "krebbel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79131] [7 Regression] ICE: in extract_constrain_insn, at recog.c:2213, big-endian ARM
Date: Fri, 10 Feb 2017 15: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: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: krebbel at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79131-4-7lwShDbocK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79131-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79131-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01243.txt.bz2
Content-length: 1956

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

Andreas Krebbel <krebbel at gcc dot gnu.org> changed:

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

--- Comment #12 from Andreas Krebbel <krebbel at gcc dot gnu.org> ---
(In reply to Vladimir Makarov from comment #3)
> Author: vmakarov
> Date: Thu Jan 26 17:08:12 2017
> New Revision: 244942
> 
> URL: https://gcc.gnu.org/viewcvs?rev=244942&root=gcc&view=rev
> Log:
> 2017-01-26  Vladimir Makarov  <vmakarov@redhat.com>
> 
> 	PR target/79131
> 	* lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
> 	endianess for subregs into account.
> 	* lra-constraints.c (lra_constraints): Do risky transformations
> 	always on the first iteration.
> 	* lra-lives.c (check_pseudos_live_through_calls): Add arg
> 	last_call_used_reg_set.
> 	(process_bb_lives): Define and use last_call_used_reg_set.
> 	* lra.c (lra): Always continue after lra_constraints on the first
> 	iteration.
> 
> 2017-01-26  Vladimir Makarov  <vmakarov@redhat.com>
> 
> 	PR target/79131
> 	* gcc.target/arm/pr79131.c: New.

Starting with that patch we see worse code being generated for:

int __attribute__((noinline,noclone))
all_eq_double (double __attribute__((vector_size(16))) a,
               double __attribute__((vector_size(16))) b)
{
 return __builtin_s390_vec_all_eq (a, b);
}

gcc -O3 -march=z13
before:
        vfcedbs %v0,%v24,%v26
        lhi     %r2,1
        lochine %r2,0
        lgfr    %r2,%r2
        br      %r14
after:
        vfcedbs %v0,%v24,%v26
        lhi     %r2,1
        lr      %r1,%r2
        lochine %r1,0
        lgfr    %r2,%r1
        br      %r14

Note: ideally it should be more like:
        vfcedbs %v0,%v24,%v26
        lghi %r2,1
        locghine %r2,0
        br %r14
... but that's a different topic:
>From gcc-bugs-return-553712-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 15:41:34 2017
Return-Path: <gcc-bugs-return-553712-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109359 invoked by alias); 10 Feb 2017 15:41: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 109266 invoked by uid 48); 10 Feb 2017 15:41:21 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79131] [7 Regression] ICE: in extract_constrain_insn, at recog.c:2213, big-endian ARM
Date: Fri, 10 Feb 2017 15: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: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79131-4-SPvPEDvxtw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79131-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79131-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01244.txt.bz2
Content-length: 473

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

--- Comment #13 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
Same without vectors:

long foo (long a, long b)                                               
{
        return a > b;
}

=>

        cgr     %r2,%r3
        lghi    %r1,1
        locghinh        %r1,0
        lgr     %r2,%r1
        br      %r14
>From gcc-bugs-return-553713-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 15:43:16 2017
Return-Path: <gcc-bugs-return-553713-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110775 invoked by alias); 10 Feb 2017 15:43: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 110631 invoked by uid 48); 10 Feb 2017 15:43:03 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Fri, 10 Feb 2017 15:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.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:
Message-ID: <bug-79341-4-tUOEAyKsS9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01245.txt.bz2
Content-length: 1973

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

--- Comment #40 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Dominik Vogt from comment #38)
> (And if it does generate messages, does it take the if or the else bodies? 
> For me it's the if-bodies.)

/home/jakub/gcc/obj/gcc/xgcc -B/home/jakub/gcc/obj/gcc/ fco.c
-B/home/jakub/gcc/obj/s390x-ibm-linux-gnu/./libsanitizer/
-B/home/jakub/gcc/obj/s390x-ibm-linux-gnu/32/libsanitizer/ubsan/
-L/home/jakub/gcc/obj/s390x-ibm-linux-gnu/32/libsanitizer/ubsan/.libs
-fno-diagnostics-show-caret -fdiagnostics-color=never -O0 -Wno-psabi
-fsanitize=float-cast-overflow -fsanitize-recover=float-cast-overflow -lm -o
./fco.exe -g -m31
[jakub@devel4 testsuite]$
LD_LIBRARY_PATH=/home/jakub/gcc/obj/s390x-ibm-linux-gnu/32/libsanitizer/ubsan/.libs:/home/jakub/gcc/obj/s390x-ibm-linux-gnu/32/libgcc/32/
./fco.exe
fco.c:4:3: runtime error: value <unknown> is outside the range of representable
values of type 'long int'
fco.c:9:3: runtime error: value <unknown> is outside the range of representable
values of type 'long long int'

What do you mean by if bodies?  (-0x7fffffffffffffffL - 1L) is non-zero, so
obviously the else bodies aren't reached.
The first loop loops until add is -1.000000E+12, at which point for the first
time tem is -9.223373E+18 and thus different from -9.223372E+18, and
-9.223373E+18 should not be representable in signed long.
Do you perhaps use HW dfp rather than software emulation?

In *.optimized dump I see:
  x.0_8 = x_7(D);
  _1 = x.0_8 u<= -9.223373E+18;
  _2 = x.0_8 u>= 9.223373E+18;
  _3 = _1 | _2;
  if (_3 != 0)
    goto <bb 3>; [0.00%]
  else
    goto <bb 4>; [0.00%]

  <bb 3> [0.00%]:
  _4 = VIEW_CONVERT_EXPR<unsigned int>(x.0_8);
  _5 = (unsigned long) _4;
  __builtin___ubsan_handle_float_cast_overflow (&*.Lubsan_data0, _5);

  <bb 4> [0.00%]:
  _11 = (long int) x.0_8;

<L3> [0.00%]:
  return _11;
which looks also correct to me.
>From gcc-bugs-return-553714-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 16:17:34 2017
Return-Path: <gcc-bugs-return-553714-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82053 invoked by alias); 10 Feb 2017 16:17: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 81760 invoked by uid 48); 10 Feb 2017 16:17:19 -0000
From: "rearnsha at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79131] [7 Regression] ICE: in extract_constrain_insn, at recog.c:2213, big-endian ARM
Date: Fri, 10 Feb 2017 16:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rearnsha at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79131-4-u4yVvLHA1p@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79131-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79131-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01246.txt.bz2
Content-length: 1089

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

--- Comment #14 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
(In reply to Andreas Krebbel from comment #12)

> Starting with that patch we see worse code being generated for:
> 
> int __attribute__((noinline,noclone))
> all_eq_double (double __attribute__((vector_size(16))) a,
>                double __attribute__((vector_size(16))) b)
> {
>  return __builtin_s390_vec_all_eq (a, b);
> }
> 
> gcc -O3 -march=z13
> before:
>         vfcedbs %v0,%v24,%v26
>         lhi     %r2,1
>         lochine %r2,0
>         lgfr    %r2,%r2
>         br      %r14
> after:
>         vfcedbs %v0,%v24,%v26
>         lhi     %r2,1
>         lr      %r1,%r2
>         lochine %r1,0
>         lgfr    %r2,%r1
>         br      %r14
> 
> Note: ideally it should be more like:
>         vfcedbs %v0,%v24,%v26
>         lghi %r2,1
>         locghine %r2,0
>         br %r14
> ... but that's a different topic:


I think you should open a new bug report.  This one has been closed (and the
ICE has been fixed), so this is a new issue.
>From gcc-bugs-return-553715-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 16:19:48 2017
Return-Path: <gcc-bugs-return-553715-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99320 invoked by alias); 10 Feb 2017 16:19: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 98940 invoked by uid 48); 10 Feb 2017 16:19:35 -0000
From: "vmakarov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/21182] [5/6/7 Regression] gcc can use registers but uses stack instead
Date: Fri, 10 Feb 2017 16:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 3.4.3
X-Bugzilla-Keywords: missed-optimization, ra
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-21182-4-RG28MZPtEt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-21182-4@http.gcc.gnu.org/bugzilla/>
References: <bug-21182-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01247.txt.bz2
Content-length: 1278

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

--- Comment #21 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
(In reply to Jeffrey A. Law from comment #20)
>
> Anyway, just some thoughts.  We're still not at a point where we really know
> if IRA is being presented with something that isn't actually colorable or if
> IRA is just doing a poor job.

IRA was introduced in GCC4.4.  That time, the numbers were ok.  So I don't
think something is missed in IRA.  It is not a deleted regmove pass (and new
threaded coloring in RA which substituted it) too as it was done for GCC4.9. 
Either it is a different input code to IRA (more aggressive optimizations
before RA) or some big changes in IRA after initial introducing it.  Although I
always checked new RA optimizations on SPEC2000/SPEC2006, this particular code
could be worsened such new changes.

The biggest change (several K lines patch) in IRA in this time span was a new
coloring scheme for irregular register files (an approach analogous to
https://pdfs.semanticscholar.org/1072/2533ba1d88f53ce6635865d5230b9802246f.pdf)
.  As I remember it gave 1% improvement for SPEC2000.  May be it is a culprit.

I any case I don't think i386 is important these days to spent much time on the
PR.
>From gcc-bugs-return-553716-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 16:20:46 2017
Return-Path: <gcc-bugs-return-553716-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116797 invoked by alias); 10 Feb 2017 16:20: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 115031 invoked by uid 48); 10 Feb 2017 16:20:34 -0000
From: "seurer at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/79455] New: c-c++-common/tsan/race_on_mutex.c fails on powerpcle starting with r244854 (where it was activated)
Date: Fri, 10 Feb 2017 16:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: testsuite
X-Bugzilla-Version: 7.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-79455-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01248.txt.bz2
Content-length: 2030

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

            Bug ID: 79455
           Summary: c-c++-common/tsan/race_on_mutex.c fails on powerpcle
                    starting with r244854 (where it was activated)
           Product: gcc
           Version: 7.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: ---

------------------------------------------------------------------------
r244854 | jakub | 2017-01-24 02:19:37 -0600 (Tue, 24 Jan 2017) | 2 lines

        * configure.tgt: Enable tsan and lsan on powerpc64{,le}-*-linux*.


When run on powerpcle the output is the same as on x86 except for one section,
the one with memset.

On x86 this part is:
  Previous write of size 1 at 0x000000601300 by thread T1:
    #0 pthread_mutex_init
/home/seurer/gcc/gcc-test/libsanitizer/tsan/tsan_interceptors.cc:1117
(libtsan.so.0+0x00000002c1ee)
    #1 Thread1
/home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/tsan/race_on_mutex.c:12
(race_on_mutex.exe+0x000000400bf8)

And on power it is:
  Previous write of size 8 at 0x000010011600 by thread T1:
    #0 memset
/home/seurer/gcc/gcc-test/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:558
(libtsan.so.0+0x0000000360f4)
    #1 pthread_mutex_init <null> (libpthread.so.0+0x00000000b61c)
    #2 Thread1
/home/seurer/gcc/gcc-test/gcc/testsuite/c-c++-common/tsan/race_on_mutex.c:12
(race_on_mutex.exe+0x000010000cb4)

It fails when run as a test because it doesn't quite match the expected pattern

/* { dg-output "  Previous write of size 1 at .* by thread T1:(\n|\r\n|\r)" }
*/
/* { dg-output "    #0 pthread_mutex_init .* (.)*" } */
/* { dg-output "    #1 Thread1.* .*(race_on_mutex.c:12|\\?{2}:0) .*" } */

>From poking around in the test case and the tsan code it looks like the test is
detecting what it should and the difference in output is mostly "cosmetic".
>From gcc-bugs-return-553717-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 16:23:10 2017
Return-Path: <gcc-bugs-return-553717-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21746 invoked by alias); 10 Feb 2017 16:23: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 21540 invoked by uid 48); 10 Feb 2017 16:22:58 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79301] With -Werror=pedantic outside C++17 mode, __has_cpp_attribute(fallthrough) is nonzero but [[fallthrough]] fails
Date: Fri, 10 Feb 2017 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: 7.0
X-Bugzilla-Keywords: diagnostic
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:
Message-ID: <bug-79301-4-N5wifkU4p0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79301-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79301-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01249.txt.bz2
Content-length: 1590

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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Jason Merrill from comment #7)
> (In reply to Jakub Jelinek from comment #4)
> > That said, I think e.g. for maybe_unused or nodiscard attributes we don't
> > complain with -pedantic about those attributes used in C++14 code, so either
> > we should do that as well, or we shouldn't do that for fallthrough either.
> > Jason?
> 
> We certainly don't want to both have __has_cpp_attribute(fallthrough)
> non-zero and also complain about its usage.  My inclination would be to
> remove the diagnostic.

Also for deprecated attribute and C++11?
      else if (is_attribute_p ("deprecated", attr_id))
        {
          if (cxx_dialect == cxx11)
            pedwarn (token->location, OPT_Wpedantic,
                     "%<deprecated%> is a C++14 feature;"
                     " use %<gnu::deprecated%>");
          TREE_PURPOSE (TREE_PURPOSE (attribute)) = get_identifier ("gnu");
        }
      /* C++17 fallthrough attribute is equivalent to GNU's.  */
      else if (is_attribute_p ("fallthrough", attr_id))
        {
          if (cxx_dialect < cxx1z)
            pedwarn (token->location, OPT_Wpedantic,
                     "%<fallthrough%> is a C++17 feature;"
                     " use %<gnu::fallthrough%>");
          TREE_PURPOSE (TREE_PURPOSE (attribute)) = get_identifier ("gnu");
        }
Even for that one can test #if __has_cpp_attribute(deprecated) and
[[deprecated]] still won't work if -std=c++11 -pedantic-errors.
>From gcc-bugs-return-553718-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 16:25:32 2017
Return-Path: <gcc-bugs-return-553718-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32998 invoked by alias); 10 Feb 2017 16: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 32065 invoked by uid 48); 10 Feb 2017 16:25:19 -0000
From: "krebbel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/79456] New: [7 regression] Extra instruction emitted after LRA patch
Date: Fri, 10 Feb 2017 16:25: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: unknown
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-79456-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01250.txt.bz2
Content-length: 1767

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

            Bug ID: 79456
           Summary: [7 regression] Extra instruction emitted after LRA
                    patch
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: krebbel at gcc dot gnu.org
  Target Milestone: ---

The zvector/vec-cmp-1.c testcase currently fails on s390x.

Starting with that patch we see worse code being generated for:

int __attribute__((noinline,noclone))
all_eq_double (double __attribute__((vector_size(16))) a,
               double __attribute__((vector_size(16))) b)
{
 return __builtin_s390_vec_all_eq (a, b);
}

gcc -O3 -march=z13
before:
        vfcedbs %v0,%v24,%v26
        lhi     %r2,1
        lochine %r2,0
        lgfr    %r2,%r2
        br      %r14
after:
        vfcedbs %v0,%v24,%v26
        lhi     %r2,1
        lr      %r1,%r2
        lochine %r1,0
        lgfr    %r2,%r1
        br      %r14

Note: ideally it should be more like:
        vfcedbs %v0,%v24,%v26
        lghi %r2,1
        locghine %r2,0
        br %r14
... but that's a different topic.

The same problem can be reproduced also with vector types:

long foo (long a, long b)                                               
{
        return a > b;
}

old (r244941):

        cgr     %r2,%r3
        lghi    %r2,1
        locghinh        %r2,0
        br      %r14

after (r244942):

        cgr     %r2,%r3
        lghi    %r1,1
        locghinh        %r1,0
        lgr     %r2,%r1
        br      %r14
>From gcc-bugs-return-553719-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 16:26:10 2017
Return-Path: <gcc-bugs-return-553719-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34518 invoked by alias); 10 Feb 2017 16:26: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 34267 invoked by uid 48); 10 Feb 2017 16:26:01 -0000
From: "krebbel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/79456] [7 regression] Extra instruction emitted after LRA patch
Date: Fri, 10 Feb 2017 16:26: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:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: krebbel 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_gcctarget priority cf_gcchost cf_gccbuild
Message-ID: <bug-79456-4-paY4V4vxJX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79456-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79456-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01251.txt.bz2
Content-length: 488

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

Andreas Krebbel <krebbel at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |s390x-ibm-linux
           Priority|P3                          |P2
               Host|                            |s390x-ibm-linux
              Build|                            |s390x-ibm-linux
>From gcc-bugs-return-553720-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 16:26:56 2017
Return-Path: <gcc-bugs-return-553720-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42296 invoked by alias); 10 Feb 2017 16:26: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 42057 invoked by uid 48); 10 Feb 2017 16:26:44 -0000
From: "krebbel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79131] [7 Regression] ICE: in extract_constrain_insn, at recog.c:2213, big-endian ARM
Date: Fri, 10 Feb 2017 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: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: krebbel at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79131-4-F0EqiVt3WB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79131-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79131-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01252.txt.bz2
Content-length: 320

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

--- Comment #15 from Andreas Krebbel <krebbel at gcc dot gnu.org> ---
(In reply to Richard Earnshaw from comment #14)
> I think you should open a new bug report.  This one has been closed (and the
> ICE has been fixed), so this is a new issue.

I've opened #79456
>From gcc-bugs-return-553721-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 16:33:05 2017
Return-Path: <gcc-bugs-return-553721-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78823 invoked by alias); 10 Feb 2017 16: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 78574 invoked by uid 55); 10 Feb 2017 16:32:52 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79435] [7 Regression] ICE on invalid C++ code (with member access into an incomplete type) on x86_64-linux-gnu: Segmentation fault
Date: Fri, 10 Feb 2017 16: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.0
X-Bugzilla-Keywords: error-recovery, 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: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79435-4-r4gT0vD8M6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79435-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79435-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01253.txt.bz2
Content-length: 566

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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Fri Feb 10 16:32:19 2017
New Revision: 245334

URL: https://gcc.gnu.org/viewcvs?rev=245334&root=gcc&view=rev
Log:
        PR c++/79435
        * pt.c (type_dependent_expression_p): Check if the expression type
        is null.

        * g++.dg/cpp1y/pr79435.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/pr79435.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-553722-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 16:34:31 2017
Return-Path: <gcc-bugs-return-553722-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111915 invoked by alias); 10 Feb 2017 16:34: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 96081 invoked by uid 55); 10 Feb 2017 16:34:17 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79184] [7 Regression] -Wint-in-bool-context triggered erroneously in template parameter
Date: Fri, 10 Feb 2017 16: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: 7.0
X-Bugzilla-Keywords: diagnostic
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.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79184-4-h46S3DQ5bA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79184-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79184-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01254.txt.bz2
Content-length: 619

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

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Fri Feb 10 16:33:45 2017
New Revision: 245335

URL: https://gcc.gnu.org/viewcvs?rev=245335&root=gcc&view=rev
Log:
        PR c++/79184
        * cvt.c (ocp_convert): Add a sentinel against -Wint-in-bool-context
        if warnings shouldn't be given.

        * g++.dg/warn/Wint-in-bool-context-1.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/warn/Wint-in-bool-context-1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cvt.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-553724-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 16:35:17 2017
Return-Path: <gcc-bugs-return-553724-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31666 invoked by alias); 10 Feb 2017 16: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 20447 invoked by uid 48); 10 Feb 2017 16:35:04 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79435] [7 Regression] ICE on invalid C++ code (with member access into an incomplete type) on x86_64-linux-gnu: Segmentation fault
Date: Fri, 10 Feb 2017 16:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek 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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79435-4-pymtPbECAq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79435-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79435-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01256.txt.bz2
Content-length: 429

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

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

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

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-553723-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 16:35:05 2017
Return-Path: <gcc-bugs-return-553723-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21003 invoked by alias); 10 Feb 2017 16:35: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 4129 invoked by uid 48); 10 Feb 2017 16:34:52 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79184] [7 Regression] -Wint-in-bool-context triggered erroneously in template parameter
Date: Fri, 10 Feb 2017 16:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek 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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79184-4-2v3FrZoiId@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79184-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79184-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01255.txt.bz2
Content-length: 429

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

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

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

--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-553725-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 16:39:57 2017
Return-Path: <gcc-bugs-return-553725-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55382 invoked by alias); 10 Feb 2017 16: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 53875 invoked by uid 48); 10 Feb 2017 16:39:43 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79301] With -Werror=pedantic outside C++17 mode, __has_cpp_attribute(fallthrough) is nonzero but [[fallthrough]] fails
Date: Fri, 10 Feb 2017 16:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: diagnostic
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: attachments.created
Message-ID: <bug-79301-4-Vg1w8p2fbD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79301-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79301-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01257.txt.bz2
Content-length: 313

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79301

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 40713
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40713&action=edit
gcc7-pr79301.patch

If that is what we want, I think this untested patch should implement it.
>From gcc-bugs-return-553726-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 16:49:26 2017
Return-Path: <gcc-bugs-return-553726-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78471 invoked by alias); 10 Feb 2017 16: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 78113 invoked by uid 48); 10 Feb 2017 16:49:11 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Fri, 10 Feb 2017 16:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.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-79341-4-m8sIYJoCoH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01258.txt.bz2
Content-length: 1520

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79341

--- Comment #41 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
> The first loop loops until add is -1.000000E+12, at which point for the
> first time tem is -9.223373E+18 and thus different from -9.223372E+18, and
> -9.223373E+18 should not be representable in signed long.
> Do you perhaps use HW dfp rather than software emulation?

Well, just what the test driver used:

 ... -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects 
-fsanitize=float-cast-overflow -fsanitize-recover=float-cast-overflow
-DUSE_INT128 -DUSE_DFP -DBROKEN_DECIMAL_INT128  -lm   -m64 ...

When the comparison is done in main, the values "min" and "tem" have 64-Bit
precision.  The actual comparison is

  if (tem.0_1 != -9223372036854775808)

Which is true because that value doesn't fit in a _Decimal32.  The if body is
executed, and "tem" is converted to 32 bit format and stored in %f0.  Gdb says
that the converted value is exactly the same as the value of "min", and that
seems to be the cause of the test failure.

In assembly:
        ste     %f2,160(%r15) <---- store "tem" on stack
        le      %f2,160(%r15) <---- load "tem" from stack
        ldetr   %f2,%f2,0     <---- convert "short" dfp value to "long"
        cdtr    %f2,%f4       <---- compare with "min"
        je      .L33
        le      %f0,160(%r15) <---- reload "tem"
        brasl   %r14,cvt_sl_d32

This must look differently for you.  Now, why does the test fail for me but not
for you?
>From gcc-bugs-return-553727-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 16:54:51 2017
Return-Path: <gcc-bugs-return-553727-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84560 invoked by alias); 10 Feb 2017 16:54: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 84244 invoked by uid 48); 10 Feb 2017 16:54:38 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79350] "explicit" deduction guides don't work
Date: Fri, 10 Feb 2017 16: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution assigned_to target_milestone
Message-ID: <bug-79350-4-7AXjB2UGF3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79350-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79350-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01259.txt.bz2
Content-length: 633

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79350

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |jason at gcc dot gnu.org
         Resolution|---                         |FIXED
           Assignee|unassigned at gcc dot gnu.org      |jason at gcc dot gnu.org
   Target Milestone|---                         |7.0

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-553728-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 16:56:57 2017
Return-Path: <gcc-bugs-return-553728-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89027 invoked by alias); 10 Feb 2017 16:56: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 88834 invoked by uid 48); 10 Feb 2017 16:56:44 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Fri, 10 Feb 2017 16:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.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-79341-4-EPQRNdCEMG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01260.txt.bz2
Content-length: 417

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79341

--- Comment #42 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
With glibc-2.18 and the various patches, the following tets fail:

-m31:
 * deep-stack-uaf-1.C

-m64:
 * null-deref-1.c
 * deep-stack-uaf-1.C
 * overflow-vec-1.c
 * overflow-vec-2.c
 * float-cast-overflow-10.c

I.e. the same as with glibc-2.23.  At least this part of the problems is
solved.
>From gcc-bugs-return-553729-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 16:58:57 2017
Return-Path: <gcc-bugs-return-553729-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91719 invoked by alias); 10 Feb 2017 16:58: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 91433 invoked by uid 48); 10 Feb 2017 16:58:43 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79401] [7 Regression] Protected inheriting ctor
Date: Fri, 10 Feb 2017 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: 7.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-79401-4-VOq6kgQggV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79401-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79401-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01261.txt.bz2
Content-length: 378

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79401

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-553730-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 16:58:58 2017
Return-Path: <gcc-bugs-return-553730-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91731 invoked by alias); 10 Feb 2017 16:58: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 91591 invoked by uid 55); 10 Feb 2017 16:58:48 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/66612] [6/7/8 regression] FAIL: gcc.target/powerpc/20050830-1.c scan-assembler bdn
Date: Fri, 10 Feb 2017 16: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: 6.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher 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.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-66612-4-zUqSTC8KOC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66612-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66612-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01262.txt.bz2
Content-length: 577

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66612

--- Comment #15 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Author: segher
Date: Fri Feb 10 16:58:14 2017
New Revision: 245337

URL: https://gcc.gnu.org/viewcvs?rev=245337&root=gcc&view=rev
Log:
testsuite, rs6000: Don't xfail 32-bit (PR66612)

-m32 works fine, only 64-bit still fails.


gcc/testsuite/
        PR tree-optimization/66612
        * gcc.target/powerpc/20050830-1.c: Don't xfail on 32-bit.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/powerpc/20050830-1.c
>From gcc-bugs-return-553731-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 17:16:12 2017
Return-Path: <gcc-bugs-return-553731-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49638 invoked by alias); 10 Feb 2017 17:16: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 49390 invoked by uid 48); 10 Feb 2017 17:15:54 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Fri, 10 Feb 2017 17:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.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:
Message-ID: <bug-79341-4-5tkpdGwwvo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01263.txt.bz2
Content-length: 1914

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79341

--- Comment #43 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Ah, so, if I build with -O0, I always get the expected errors.
If I build with -O2 -mcpu=z9-109, I also get them, but with -O2 -mcpu=z10 or
-O2 -mcpu=zEC12 I don't.
Does _Decimal32 on s390{,x} behave similarly to float/double on i387, that
computations and comparisons can be performed in bigger precision than their
types?
--- gcc/testsuite/c-c++-common/ubsan/float-cast-overflow-8.c.jj 2015-10-29
09:14:30.000000000 +0100
+++ gcc/testsuite/c-c++-common/ubsan/float-cast-overflow-8.c    2017-02-10
18:09:47.767251774 +0100
@@ -8,7 +8,7 @@
 #define TEST(type1, type2) \
   if (type1##_MIN)                                             \
     {                                                          \
-      type2 min = type1##_MIN;                                 \
+      volatile type2 min = type1##_MIN;                                \
       type2 add = -1.0;                                                \
       while (1)                                                        \
        {                                                       \
@@ -28,7 +28,7 @@
       volatile type1 tem3 = cvt_##type1##_##type2 (-1.0f);     \
     }                                                          \
   {                                                            \
-    type2 max = type1##_MAX;                                   \
+    volatile type2 max = type1##_MAX;                          \
     type2 add = 1.0;                                           \
     while (1)                                                  \
       {                                                                \

seems to be a workaround, the test primarily cares about the actual
conversions, not how those values are reached, so it isn't against the intent
of the test.
>From gcc-bugs-return-553732-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 17:20:13 2017
Return-Path: <gcc-bugs-return-553732-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108784 invoked by alias); 10 Feb 2017 17:20: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 101352 invoked by uid 48); 10 Feb 2017 17:20:00 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78897] [6/7 Regression] ICE: in output_constructor_regular_field, at varasm.c:5019
Date: Fri, 10 Feb 2017 17: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: 7.0
X-Bugzilla-Keywords:
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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc assigned_to
Message-ID: <bug-78897-4-RCRt9F6GYr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78897-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78897-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01264.txt.bz2
Content-length: 452

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78897

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |jason at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |jason at gcc dot gnu.org
>From gcc-bugs-return-553733-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 17:58:16 2017
Return-Path: <gcc-bugs-return-553733-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114633 invoked by alias); 10 Feb 2017 17:58:15 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 114422 invoked by uid 48); 10 Feb 2017 17:58:02 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79448] unhelpful -Wformat-truncation=2 INT_MAX warning
Date: Fri, 10 Feb 2017 17:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status short_desc
Message-ID: <bug-79448-4-iXGjxyOFHz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79448-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79448-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01265.txt.bz2
Content-length: 699

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79448

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
             Status|NEW                         |ASSIGNED
            Summary|unhelpful                   |unhelpful
                   |-Wformat-truncation=2       |-Wformat-truncation=2
                   |warning                     |INT_MAX warning

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Patch posted for review:
  https://gcc.gnu.org/ml/gcc-patches/2017-02/msg00730.html
>From gcc-bugs-return-553734-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 18:02:11 2017
Return-Path: <gcc-bugs-return-553734-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120400 invoked by alias); 10 Feb 2017 18:02: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 120196 invoked by uid 55); 10 Feb 2017 18:01:59 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79401] [7 Regression] Protected inheriting ctor
Date: Fri, 10 Feb 2017 18:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79401-4-1PPJFAtzrg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79401-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79401-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01266.txt.bz2
Content-length: 552

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79401

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Feb 10 18:01:27 2017
New Revision: 245339

URL: https://gcc.gnu.org/viewcvs?rev=245339&root=gcc&view=rev
Log:
        PR c++/79401 - protected inherited constructor

        * call.c (enforce_access): For inheriting constructor, find a base
        binfo in the path we already have.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/inh-ctor25.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
>From gcc-bugs-return-553735-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 18:04:44 2017
Return-Path: <gcc-bugs-return-553735-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122526 invoked by alias); 10 Feb 2017 18:04:43 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 122360 invoked by uid 48); 10 Feb 2017 18:04:31 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/71285] [7 regression] spurious 'insufficient contextual information' for member access on fold expression
Date: Fri, 10 Feb 2017 18:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-71285-4-sY9xcw9mfH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71285-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71285-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01267.txt.bz2
Content-length: 378

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71285

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-553738-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 18:25:56 2017
Return-Path: <gcc-bugs-return-553738-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45062 invoked by alias); 10 Feb 2017 18:25: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 44910 invoked by uid 48); 10 Feb 2017 18:25:44 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79401] [7 Regression] Protected inheriting ctor
Date: Fri, 10 Feb 2017 18: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: 7.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79401-4-rkRxXd2us9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79401-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79401-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01270.txt.bz2
Content-length: 423

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79401

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-553736-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 18:25:23 2017
Return-Path: <gcc-bugs-return-553736-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43423 invoked by alias); 10 Feb 2017 18:25: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 43221 invoked by uid 55); 10 Feb 2017 18:25:08 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/71285] [7 regression] spurious 'insufficient contextual information' for member access on fold expression
Date: Fri, 10 Feb 2017 18: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: 7.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-71285-4-ZQyPUFDCX7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71285-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71285-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01268.txt.bz2
Content-length: 546

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71285

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Feb 10 18:24:36 2017
New Revision: 245340

URL: https://gcc.gnu.org/viewcvs?rev=245340&root=gcc&view=rev
Log:
        PR c++/71285 - member of fold-expression

        * semantics.c (finish_unary_fold_expr)
        (finish_binary_fold_expr): Use null type for fold-expressions.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1z/fold9.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.c
>From gcc-bugs-return-553737-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 18:25:24 2017
Return-Path: <gcc-bugs-return-553737-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43435 invoked by alias); 10 Feb 2017 18:25: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 43336 invoked by uid 48); 10 Feb 2017 18:25:18 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/71285] [7 regression] spurious 'insufficient contextual information' for member access on fold expression
Date: Fri, 10 Feb 2017 18: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: 7.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-71285-4-CK2aX6xUJI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71285-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71285-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01269.txt.bz2
Content-length: 423

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71285

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-553739-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 18:29:21 2017
Return-Path: <gcc-bugs-return-553739-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52724 invoked by alias); 10 Feb 2017 18:29: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 52537 invoked by uid 48); 10 Feb 2017 18:29:06 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79104] [7 Regression] ambiguity calling std::begin on a local constexpr array of structs
Date: Fri, 10 Feb 2017 18:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-79104-4-O1RVrRR8mU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79104-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79104-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01271.txt.bz2
Content-length: 378

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79104

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-553740-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 18:43:27 2017
Return-Path: <gcc-bugs-return-553740-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73720 invoked by alias); 10 Feb 2017 18:43: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 71897 invoked by uid 48); 10 Feb 2017 18:43:14 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/56973] [DR 696] crash when capturing variables in nested lambdas
Date: Fri, 10 Feb 2017 18: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.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason 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: cc short_desc
Message-ID: <bug-56973-4-uOlGQYKJVj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56973-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56973-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01272.txt.bz2
Content-length: 850

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56973

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org
            Summary|crash when capturing        |[DR 696] crash when
                   |variables in nested lambdas |capturing variables in
                   |                            |nested lambdas

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
G++ still implements an early proposal for DR 696, whereby a reference to a
constant automatic variable from a lambda is replaced by the value of the
variable rather than implying a capture.  We need to properly implement DR 696
such that odr-use implies a capture.
>From gcc-bugs-return-553741-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 18:48:40 2017
Return-Path: <gcc-bugs-return-553741-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84366 invoked by alias); 10 Feb 2017 18:48:40 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 84134 invoked by uid 48); 10 Feb 2017 18:48:23 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79104] [DR 696] wrong semantics for odr-use of constant variable from lambda
Date: Fri, 10 Feb 2017 18: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: 7.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority bug_status short_desc
Message-ID: <bug-79104-4-BCaLJbNr0G@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79104-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79104-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01273.txt.bz2
Content-length: 1193

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79104

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3
             Status|ASSIGNED                    |NEW
            Summary|[7 Regression] ambiguity    |[DR 696] wrong semantics
                   |calling std::begin on a     |for odr-use of constant
                   |local constexpr array of    |variable from lambda
                   |structs                     |

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
The handling of this testcase went from wrong-code to rejects-valid, so I don't
think it qualifies as a regression.  The issue here is that we don't implement
DR 696 properly; we should capture a, but instead replace it with its initial
value.  Given that, r240819 changed this to be correctly rejected; a temporary
should not bind to a non-const reference.

Here's a simpler testcase to illustrate our non-conformance on DR 696:

void f ()
{
  const int i = 42;

  [&]() {
    &i;  // OK, captures i
  };
}
>From gcc-bugs-return-553742-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 18:51:15 2017
Return-Path: <gcc-bugs-return-553742-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88675 invoked by alias); 10 Feb 2017 18:51: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 88517 invoked by uid 55); 10 Feb 2017 18:51:02 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78897] [6/7 Regression] ICE: in output_constructor_regular_field, at varasm.c:5019
Date: Fri, 10 Feb 2017 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.0
X-Bugzilla-Keywords:
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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78897-4-hSPcB1elqz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78897-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78897-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01274.txt.bz2
Content-length: 557

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78897

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Feb 10 18:50:30 2017
New Revision: 245341

URL: https://gcc.gnu.org/viewcvs?rev=245341&root=gcc&view=rev
Log:
        PR c++/78897 - constexpr union

        * constexpr.c (cxx_eval_store_expression): A store to a union member
        erases a previous store to another member.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/constexpr-union1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/constexpr.c
>From gcc-bugs-return-553743-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 19:00:01 2017
Return-Path: <gcc-bugs-return-553743-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100034 invoked by alias); 10 Feb 2017 19:00: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 99876 invoked by uid 48); 10 Feb 2017 18:59:48 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79345] [6/7 Regression] passing yet-uninitialized member as argument to base class constructor should warn (-Wunitialized)
Date: Fri, 10 Feb 2017 19: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: 7.0.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason 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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79345-4-zFGf9XKCh9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79345-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79345-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01275.txt.bz2
Content-length: 533

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79345

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Compiling with -fno-lifetime-dse brings back the warning, so it seems that the
-Wuninitialized code is improperly treating the clobber as initialization.
>From gcc-bugs-return-553744-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 19:03:11 2017
Return-Path: <gcc-bugs-return-553744-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103752 invoked by alias); 10 Feb 2017 19:03: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 102793 invoked by uid 48); 10 Feb 2017 19:02:58 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/77790] [5/6/7 Regression] ICE on valid C++14 code when compiling with "-std=c++11": in push_access_scope, at cp/pt.c:227
Date: Fri, 10 Feb 2017 19: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: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor 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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-77790-4-dq5ACaZZ06@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77790-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77790-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01276.txt.bz2
Content-length: 795

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77790

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |msebor at gcc dot gnu.org

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
Prior to r185768 GCC in C++ 11 mode rejected auto functions without trailing
return type.  With r185768 GCC would accept it with a warning (enabled by
default).  r207055 changed the pedantic warning into an error.  In light of
this, should this bug be viewed as ice-on-invalid-code (error-recovery)?  Or is
it ice-on-valid because it broke in GCC 5 where the code was accepted in C++ 11
mode with just a warning?
>From gcc-bugs-return-553745-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 19:05:06 2017
Return-Path: <gcc-bugs-return-553745-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 124003 invoked by alias); 10 Feb 2017 19: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 117090 invoked by uid 48); 10 Feb 2017 19:04:51 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/70799] STV pass does not convert DImode shifts
Date: Fri, 10 Feb 2017 19: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: ubizjak at gmail dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ubizjak at gmail dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to attachments.created
Message-ID: <bug-70799-4-xmU0ENBr0R@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70799-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70799-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01277.txt.bz2
Content-length: 650

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70799

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |ubizjak at gmail dot com

--- Comment #8 from Uroš Bizjak <ubizjak at gmail dot com> ---
Created attachment 40714
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40714&action=edit
Patch to handle variable DImode shifts

This patch converts variable DImode shifts to vector insns.
>From gcc-bugs-return-553746-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 19:06:14 2017
Return-Path: <gcc-bugs-return-553746-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125846 invoked by alias); 10 Feb 2017 19:06: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 125719 invoked by uid 48); 10 Feb 2017 19:06:01 -0000
From: "amker at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79347] [7 regression] vect_do_peeling is messing up profile
Date: Fri, 10 Feb 2017 19:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amker at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: amker at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79347-4-7YHEkk5iIn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79347-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79347-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01278.txt.bz2
Content-length: 162

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79347

--- Comment #5 from amker at gcc dot gnu.org ---
Testing a patch, will send for review soon if no failures.
>From gcc-bugs-return-553747-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 19:21:15 2017
Return-Path: <gcc-bugs-return-553747-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14607 invoked by alias); 10 Feb 2017 19:21: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 14469 invoked by uid 48); 10 Feb 2017 19:21:02 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/21182] [5/6/7 Regression] gcc can use registers but uses stack instead
Date: Fri, 10 Feb 2017 19: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: 3.4.3
X-Bugzilla-Keywords: missed-optimization, ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-21182-4-JMA3ZNOsSB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-21182-4@http.gcc.gnu.org/bugzilla/>
References: <bug-21182-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01279.txt.bz2
Content-length: 554

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=21182

--- Comment #22 from Jeffrey A. Law <law at redhat dot com> ---
Vlad -- I was thinking more in the sense of whether or not IRA is presented
with something reasonable (ie, can be colored) vs unreasonable (can not be
colored).

The former is clearly possible with this source, but we well could be making
the graph uncolorable with some of the early tree optimizations -- I certainly
saw enough cprop/forwprop/dom transformations to give me concern that what
we're presenting to IRA isn't colorable.
>From gcc-bugs-return-553748-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 19:32:20 2017
Return-Path: <gcc-bugs-return-553748-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29402 invoked by alias); 10 Feb 2017 19:32: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 29278 invoked by uid 48); 10 Feb 2017 19:32:07 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78908] [6/7 Regression] template instantiation with bit-field type
Date: Fri, 10 Feb 2017 19: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: 6.3.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status assigned_to short_desc
Message-ID: <bug-78908-4-jCAEObQpN1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78908-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78908-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01280.txt.bz2
Content-length: 702

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78908

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|lto                         |ice-on-valid-code
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |jason at gcc dot gnu.org
            Summary|[6/7 Regression] lto1:      |[6/7 Regression] template
                   |internal compiler error: in |instantiation with
                   |lto_read_decls, at          |bit-field type
                   |lto/lto.c:1814              |
>From gcc-bugs-return-553749-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 19:50:12 2017
Return-Path: <gcc-bugs-return-553749-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56869 invoked by alias); 10 Feb 2017 19:50:12 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 56678 invoked by uid 48); 10 Feb 2017 19:49:58 -0000
From: "teemu at hecknology dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79457] New: Segmentation fault in templated decltype evaluation
Date: Fri, 10 Feb 2017 19:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: teemu at hecknology 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 attachments.created
Message-ID: <bug-79457-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01281.txt.bz2
Content-length: 2597

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79457

            Bug ID: 79457
           Summary: Segmentation fault in templated decltype evaluation
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: teemu at hecknology dot net
  Target Milestone: ---

Created attachment 40715
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40715&action=edit
Minimal example

GCC crashes compiling the attached source file. Clang builds the code in
question properly.

[ teemu@apotheosis ~/crash ]$ /usr/lib/gcc-snapshot/bin/g++ bug.cpp -std=c++11
-save-temps
bug.cpp: In substitution of 'template<class T> template<class R> using S =
decltype (((Foo*)(void)0)->Foo<T>::goo[R()]) [with R = R; T = T]':
bug.cpp:13:5:   required from here
bug.cpp:7:21: internal compiler error: in lookup_member, at cp/search.c:1256
  using S = decltype(goo[R()]);
                     ^~~

Version information (of gcc-snapshot; the example also crashes just the same in
default distribution-provided g++ 6.2.0):

[ teemu@apotheosis ~/crash ]$ /usr/lib/gcc-snapshot/bin/g++ -v
Using built-in specs.
COLLECT_GCC=/usr/lib/gcc-snapshot/bin/g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc-snapshot/libexec/gcc/x86_64-linux-gnu/7.0.0/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
20161006-1ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-snapshot/README.Bugs
--enable-languages=c,ada,c++,go,fortran,objc,obj-c++
--prefix=/usr/lib/gcc-snapshot --program-prefix= --enable-shared
--enable-linker-build-id --disable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie
--with-system-zlib --enable-objc-gc --enable-multiarch --disable-werror
--with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32
--enable-multilib --with-tune=generic --enable-checking=yes
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.0.0 20161006 (experimental) [trunk revision 240826] (Ubuntu
20161006-1ubuntu1)
[ teemu@apotheosis ~/crash ]$ uname -a
Linux apotheosis 4.8.0-37-generic #39-Ubuntu SMP Thu Jan 26 02:27:07 UTC 2017
x86_64 x86_64 x86_64 GNU/Linux
[ teemu@apotheosis ~/crash ]$ cat /etc/issue
Ubuntu 16.10 \n \l
>From gcc-bugs-return-553750-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 19:55:05 2017
Return-Path: <gcc-bugs-return-553750-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111576 invoked by alias); 10 Feb 2017 19:55: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 111323 invoked by uid 48); 10 Feb 2017 19:54:53 -0000
From: "teemu at hecknology dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79457] Segmentation fault in templated decltype evaluation
Date: Fri, 10 Feb 2017 19: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: teemu at hecknology dot net
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79457-4-glWTHYWicQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79457-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79457-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01282.txt.bz2
Content-length: 273

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79457

--- Comment #1 from Teemu Piippo <teemu at hecknology dot net> ---
If the "S" declaration is removed and the decltype(...) moved into the return
type of Foo::boo(), GCC does not crash and builds the example properly.
>From gcc-bugs-return-553751-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 19:55:56 2017
Return-Path: <gcc-bugs-return-553751-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116512 invoked by alias); 10 Feb 2017 19:55: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 116453 invoked by uid 48); 10 Feb 2017 19:55:43 -0000
From: "teemu at hecknology dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79457] Segmentation fault in templated decltype evaluation
Date: Fri, 10 Feb 2017 19: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: teemu at hecknology 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: attachments.created
Message-ID: <bug-79457-4-w8XBAoVijv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79457-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79457-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01283.txt.bz2
Content-length: 257

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79457

--- Comment #2 from Teemu Piippo <teemu at hecknology dot net> ---
Created attachment 40716
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40716&action=edit
Minimal example that does not crash
>From gcc-bugs-return-553752-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 20:09:14 2017
Return-Path: <gcc-bugs-return-553752-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34566 invoked by alias); 10 Feb 2017 20:09: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 34275 invoked by uid 48); 10 Feb 2017 20:09:01 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78897] [6/7 Regression] ICE: in output_constructor_regular_field, at varasm.c:5019
Date: Fri, 10 Feb 2017 20: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-78897-4-iDjiGkjD9T@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78897-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78897-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01284.txt.bz2
Content-length: 423

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78897

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-553753-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 20:09:26 2017
Return-Path: <gcc-bugs-return-553753-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35279 invoked by alias); 10 Feb 2017 20:09: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 34519 invoked by uid 55); 10 Feb 2017 20:09:13 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78897] [6/7 Regression] ICE: in output_constructor_regular_field, at varasm.c:5019
Date: Fri, 10 Feb 2017 20: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78897-4-o2kBqOB5nZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78897-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78897-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01285.txt.bz2
Content-length: 605

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78897

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Feb 10 20:08:39 2017
New Revision: 245342

URL: https://gcc.gnu.org/viewcvs?rev=245342&root=gcc&view=rev
Log:
        PR c++/78897 - constexpr union

        * constexpr.c (cxx_eval_store_expression): A store to a union member
        erases a previous store to another member.

Added:
    branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp1y/constexpr-union1.C
Modified:
    branches/gcc-6-branch/gcc/cp/ChangeLog
    branches/gcc-6-branch/gcc/cp/constexpr.c
>From gcc-bugs-return-553754-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 20:14:54 2017
Return-Path: <gcc-bugs-return-553754-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41161 invoked by alias); 10 Feb 2017 20:14: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 41084 invoked by uid 48); 10 Feb 2017 20:14:40 -0000
From: "jplejacq at quoininc dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79458] New: attributes on constructor between class name and parameter list not accepted
Date: Fri, 10 Feb 2017 20: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jplejacq at quoininc 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-79458-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01286.txt.bz2
Content-length: 1035

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79458

            Bug ID: 79458
           Summary: attributes on constructor between class name and
                    parameter list not accepted
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jplejacq at quoininc dot com
  Target Milestone: ---

Compiling the following with -std='c++1z' -W'all' -W'extra':

class test {
  test  [[gnu::nonnull]] (char * arg);
};

test::test(char * arg) {
}

results in the following errors:

!!error: candidates are: constexpr test::test(test&&)
x86-64 gcc 7 (snapshot)!!error: constexpr test::test(const test&)
x86-64 gcc 7 (snapshot)!!error: constexpr test::test()
3
  test  [[gnu::nonnull]] (char * arg);
x86-64 gcc 7 (snapshot)!!error: expected unqualified-id before 'char'
x86-64 gcc 7 (snapshot)!!error: expected ')' before 'char'


https://godbolt.org/g/sgdgNy
>From gcc-bugs-return-553755-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 20:40:02 2017
Return-Path: <gcc-bugs-return-553755-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118606 invoked by alias); 10 Feb 2017 20:40: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 118482 invoked by uid 48); 10 Feb 2017 20:39:49 -0000
From: "vmakarov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/21182] [5/6/7 Regression] gcc can use registers but uses stack instead
Date: Fri, 10 Feb 2017 20:40: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: 3.4.3
X-Bugzilla-Keywords: missed-optimization, ra
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-21182-4-38FYCwkkTn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-21182-4@http.gcc.gnu.org/bugzilla/>
References: <bug-21182-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01287.txt.bz2
Content-length: 1533

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=21182

--- Comment #23 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
(In reply to Jeffrey A. Law from comment #22)
> Vlad -- I was thinking more in the sense of whether or not IRA is presented
> with something reasonable (ie, can be colored) vs unreasonable (can not be
> colored).
> 
> The former is clearly possible with this source, but we well could be making
> the graph uncolorable with some of the early tree optimizations -- I
> certainly saw enough cprop/forwprop/dom transformations to give me concern
> that what we're presenting to IRA isn't colorable.

IRA can print the register pressure.  If it is bigger than the number of
available hard regs,  the graph cannot be colored for sure.  For -UNAIL_REGS
and -O3 I see the pressure 10 (and 7 available hard regs).  So it is not
colorable.

If the pressure is less or the same number it is really hard to define manually
non-trivial graph colorability.  It is even harder to evaluate the minimal
number of spill pseudos manually.  But we can evaluate the lower bound.

  To achieve register pressure 7 we need to spill at least 3 pseudos.   As the
pseudos should be defined and used, it means at least 6 stack memory
references.  It is more than 3 reported for the older GCC versions.  My
conclusion is that the optimizations before became more aggressive and they are
at least partially responsible for worse results.

So I believe, Jeff, your suspicions about the previous optimizations have a
ground.
>From gcc-bugs-return-553756-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 20:44:22 2017
Return-Path: <gcc-bugs-return-553756-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9084 invoked by alias); 10 Feb 2017 20:44: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 8655 invoked by uid 55); 10 Feb 2017 20:44:09 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78908] [6/7 Regression] template instantiation with bit-field type
Date: Fri, 10 Feb 2017 20: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: 6.3.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78908-4-xqiQSsXxSU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78908-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78908-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01288.txt.bz2
Content-length: 494

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78908

--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Feb 10 20:43:33 2017
New Revision: 245343

URL: https://gcc.gnu.org/viewcvs?rev=245343&root=gcc&view=rev
Log:
        PR c++/78908 - template ops and bitfields

        * tree.c (build_min_non_dep): Use unlowered_expr_type.

Added:
    trunk/gcc/testsuite/g++.dg/template/bitfield3.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/tree.c
>From gcc-bugs-return-553757-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 20:45:52 2017
Return-Path: <gcc-bugs-return-553757-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40120 invoked by alias); 10 Feb 2017 20:45: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 39324 invoked by uid 48); 10 Feb 2017 20:45:32 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/77790] [5/6/7 Regression] ICE on valid C++14 code when compiling with "-std=c++11": in push_access_scope, at cp/pt.c:227
Date: Fri, 10 Feb 2017 20:45:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: error-recovery
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status assigned_to
Message-ID: <bug-77790-4-3pw7gQuAvL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77790-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77790-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01289.txt.bz2
Content-length: 529

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77790

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-valid-code           |error-recovery
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |jason at gcc dot gnu.org

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
It's error-recovery.
>From gcc-bugs-return-553758-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 20:46:31 2017
Return-Path: <gcc-bugs-return-553758-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43469 invoked by alias); 10 Feb 2017 20:46: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 43173 invoked by uid 48); 10 Feb 2017 20:46:17 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79457] [5/6 Regression] Segmentation fault in templated decltype evaluation
Date: Fri, 10 Feb 2017 20: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: 6.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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc version target_milestone short_desc everconfirmed
Message-ID: <bug-79457-4-N4ngdGvoL2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79457-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79457-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01290.txt.bz2
Content-length: 1059

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79457

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-10
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |nathan at gcc dot gnu.org
            Version|7.0                         |6.3.1
   Target Milestone|---                         |5.5
            Summary|Segmentation fault in       |[5/6 Regression]
                   |templated decltype          |Segmentation fault in
                   |evaluation                  |templated decltype
                   |                            |evaluation
     Ever confirmed|0                           |1

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r181131, fixed with r244833 on the trunk (PR71710 fix).
>From gcc-bugs-return-553759-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 20:53:56 2017
Return-Path: <gcc-bugs-return-553759-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 79981 invoked by alias); 10 Feb 2017 20:53: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 79799 invoked by uid 48); 10 Feb 2017 20:53:43 -0000
From: "felix-gcc at fefe dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79459] New: Please add enable_if and diagnose_if attributes (from clang)
Date: Fri, 10 Feb 2017 20: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: felix-gcc at fefe dot de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-79459-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01291.txt.bz2
Content-length: 1391

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79459

            Bug ID: 79459
           Summary: Please add enable_if and diagnose_if attributes (from
                    clang)
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: felix-gcc at fefe dot de
  Target Milestone: ---

clang supports several advanced __attribute__ cases that gcc does not, and two
strike me as particularly useful: enable_if and diagnose_if. You can find the
documentation on those here:

https://clang.llvm.org/docs/AttributeReference.html#diagnose-if
https://clang.llvm.org/docs/AttributeReference.html#enable-if

Basically, diagnose_if allows to add custom warning messages, think of it as a
superset of the nonnull attribute. This could be a great tool to improve code
quality, if applied to an API from a library.

enable_if is much more complex and probably a lot harder to implement. It
allows to have a special case version of a library function and use the
attribute to tell the compiler to call it if the compiler knows the special
case is true. For example, one could have a special memset version that does
not need to do alignment handling if the compiler can tell that the destination
buffer is 16 byte aligned.
>From gcc-bugs-return-553760-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 20:59:17 2017
Return-Path: <gcc-bugs-return-553760-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17544 invoked by alias); 10 Feb 2017 20:59: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 17300 invoked by uid 55); 10 Feb 2017 20:59:03 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79457] [5/6 Regression] Segmentation fault in templated decltype evaluation
Date: Fri, 10 Feb 2017 20: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: 6.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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79457-4-1uYBrbpgTE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79457-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79457-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01292.txt.bz2
Content-length: 423

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79457

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Feb 10 20:58:31 2017
New Revision: 245344

URL: https://gcc.gnu.org/viewcvs?rev=245344&root=gcc&view=rev
Log:
        PR c++/79457
        * g++.dg/cpp0x/pr79457.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/pr79457.C
Modified:
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-553761-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 21:08:21 2017
Return-Path: <gcc-bugs-return-553761-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 63355 invoked by alias); 10 Feb 2017 21:08: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 63250 invoked by uid 55); 10 Feb 2017 21:08:08 -0000
From: "acsawdey at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79295] [7 regression] gcc.target/powerpc/bcd-3.c fails starting with r244942
Date: Fri, 10 Feb 2017 21: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: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: acsawdey at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: acsawdey at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79295-4-9Etxy38Dhd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79295-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79295-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01293.txt.bz2
Content-length: 516

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79295

--- Comment #4 from acsawdey at gcc dot gnu.org ---
Author: acsawdey
Date: Fri Feb 10 21:07:36 2017
New Revision: 245345

URL: https://gcc.gnu.org/viewcvs?rev=245345&root=gcc&view=rev
Log:
2017-02-10  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>

        PR target/79295
        * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.

Applying patch suggested by Meissner.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/rs6000/altivec.md
>From gcc-bugs-return-553762-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 21:26:42 2017
Return-Path: <gcc-bugs-return-553762-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88863 invoked by alias); 10 Feb 2017 21:26: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 88731 invoked by uid 48); 10 Feb 2017 21:26:29 -0000
From: "danglin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/60403] [5/6/7 Regression] fatal error, system.ads not formatted correctly
Date: Fri, 10 Feb 2017 21:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: danglin at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: WONTFIX
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-60403-4-hXNgasO6rp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60403-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60403-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01294.txt.bz2
Content-length: 454

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60403

John David Anglin <danglin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #3 from John David Anglin <danglin at gcc dot gnu.org> ---
Not an issue on hpux11.
>From gcc-bugs-return-553763-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 22:22:57 2017
Return-Path: <gcc-bugs-return-553763-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100853 invoked by alias); 10 Feb 2017 22:22: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 100715 invoked by uid 48); 10 Feb 2017 22:22:44 -0000
From: "drraph at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79460] New: gcc fails to optimise out a simple additive loop for seemingly arbitrary numbers of iterations
Date: Fri, 10 Feb 2017 22: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: drraph 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-79460-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01295.txt.bz2
Content-length: 1816

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79460

            Bug ID: 79460
           Summary: gcc fails to optimise out a simple additive loop for
                    seemingly arbitrary numbers of iterations
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: drraph at gmail dot com
  Target Milestone: ---

Consider:

float f(float x[]) {
  float p = 1.0;
  for (int i = 0; i < 202; i++)
    p += 1;
  return p;
}

and

float f(float x[]) {
  float p = 1.0;
  for (int i = 0; i < 200; i++)
    p += 1;
  return p;
}

both compiled in gcc 7 (20170210 snapshot) with  -Ofast .

In the former case (the 202 case) you get:

f:
        movss   xmm0, DWORD PTR .LC0[rip]
        ret
.LC0:
        .long   1128988672



In the latter case (the 200 case) you get:


f:
        movaps  xmm0, XMMWORD PTR .LC0[rip]
        xor     eax, eax
        movaps  xmm3, XMMWORD PTR .LC1[rip]
        movaps  xmm2, XMMWORD PTR .LC2[rip]
.L2:
        movaps  xmm1, xmm0
        add     eax, 1
        cmp     eax, 50
        addps   xmm0, xmm3
        addps   xmm1, xmm2
        jne     .L2
        shufps  xmm1, xmm1, 255
        movaps  xmm0, xmm1
        ret
.LC0:
        .long   1065353216
        .long   1073741824
        .long   1077936128
        .long   1082130432
.LC1:
        .long   1082130432
        .long   1082130432
        .long   1082130432
        .long   1082130432
.LC2:
        .long   1065353216
        .long   1065353216
        .long   1065353216
        .long   1065353216

There are a lot of other pairs of consecutive even numbered limits where one
optimizes well and the other doesn't. For example 194 and 196.
>From gcc-bugs-return-553764-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 22:38:32 2017
Return-Path: <gcc-bugs-return-553764-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117965 invoked by alias); 10 Feb 2017 22: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 117874 invoked by uid 48); 10 Feb 2017 22:38:18 -0000
From: "eric at efcs dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79452] Provide builtin to detect compile-time execution
Date: Fri, 10 Feb 2017 22: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: eric at efcs dot ca
X-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-79452-4-44A1IxbpD4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79452-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79452-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01296.txt.bz2
Content-length: 1225

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79452

Eric Fiselier <eric at efcs dot ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eric at efcs dot ca

--- Comment #7 from Eric Fiselier <eric at efcs dot ca> ---
There are definitely opportunities for ODR violations here, or at least
something like them. Consider the following case:

template <class T>
constexpr bool foo(T) {
  if constexpr(__ctfe__)
    return true;
  else
    return false
}

static_assert(foo(0));
auto runtime = foo(0);

Both calls instantiate foo with the same template arguments, so they should
seemingly both get the same instantiation with the w/e value of `__ctfe__` was
when the implicit instantiations occurred. Therefore one of the two calls to
foo() will return the wrong answer.

This problem is made ever worse if `__builtin_constant_expression` allows you
to generate non-dependent compile-time expressions based on the function
arguments.

One solution would be to consider the instantiation of `foo` to be value
dependent on a "implicit template parameter" representing `__ctfe__`.
>From gcc-bugs-return-553765-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 22:41:56 2017
Return-Path: <gcc-bugs-return-553765-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1271 invoked by alias); 10 Feb 2017 22:41: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 1071 invoked by uid 48); 10 Feb 2017 22:41:41 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79295] [7 regression] gcc.target/powerpc/bcd-3.c fails starting with r244942
Date: Fri, 10 Feb 2017 22: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: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
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: acsawdey at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-79295-4-uK2e0XH8tI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79295-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79295-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01297.txt.bz2
Content-length: 497

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79295

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jakub at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-553766-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 22:55:35 2017
Return-Path: <gcc-bugs-return-553766-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68269 invoked by alias); 10 Feb 2017 22:55:35 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 68150 invoked by uid 48); 10 Feb 2017 22:55:22 -0000
From: "hafnermorris at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79461] New: [C++1z] ICE when capturing a variable in a lambda in a constexpr constructor
Date: Fri, 10 Feb 2017 22:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hafnermorris 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-79461-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01298.txt.bz2
Content-length: 893

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79461

            Bug ID: 79461
           Summary: [C++1z] ICE when capturing a variable in a lambda in a
                    constexpr constructor
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hafnermorris at gmail dot com
  Target Milestone: ---

Created attachment 40717
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40717&action=edit
Minimal example code

The following example causes a segmentation fault in gcc 5, 6 and the current
trunk:

struct S {
  constexpr S(int i) {
    auto f = [i]{};
  }
};
int main() {}

on Compiler Explorer: https://godbolt.org/g/wlhJ5O

Compiled both with -std=c++14 and -std=c++1z, on a x86-64 Linux machine.
>From gcc-bugs-return-553767-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 23:13:49 2017
Return-Path: <gcc-bugs-return-553767-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98474 invoked by alias); 10 Feb 2017 23:13: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 98350 invoked by uid 48); 10 Feb 2017 23:13:35 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79451] [7 Regression] ICE in expand_expr_real_2, at expr.c:9021 w/ -O3 -floop-nest-optimize
Date: Fri, 10 Feb 2017 23:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority cc
Message-ID: <bug-79451-4-We6s4ImMfo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79451-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79451-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01299.txt.bz2
Content-length: 358

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79451

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
                 CC|                            |law at redhat dot com
>From gcc-bugs-return-553768-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 23:17:07 2017
Return-Path: <gcc-bugs-return-553768-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16343 invoked by alias); 10 Feb 2017 23: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 15985 invoked by uid 48); 10 Feb 2017 23:16:54 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79404] [7 Regression] h8300: ICE at gcc/ira.c:5541 whilst building libgcc
Date: Fri, 10 Feb 2017 23:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat 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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc target_milestone short_desc
Message-ID: <bug-79404-4-WfmFiKpGQq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79404-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79404-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01300.txt.bz2
Content-length: 573

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79404

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |law at redhat dot com
   Target Milestone|---                         |7.0
            Summary|h8300: ICE at               |[7 Regression] h8300: ICE
                   |gcc/ira.c:5541 whilst       |at gcc/ira.c:5541 whilst
                   |building libgcc             |building libgcc
>From gcc-bugs-return-553769-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 23:30:52 2017
Return-Path: <gcc-bugs-return-553769-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91865 invoked by alias); 10 Feb 2017 23:30:52 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 91732 invoked by uid 48); 10 Feb 2017 23:30:38 -0000
From: "dhowells at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79462] New: sh: Stack smashing detected when building __ashrdi3 in libgcc
Date: Fri, 10 Feb 2017 23:30: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.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dhowells at redhat 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-79462-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01301.txt.bz2
Content-length: 11859

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79462

            Bug ID: 79462
           Summary: sh: Stack smashing detected when building __ashrdi3 in
                    libgcc
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dhowells at redhat dot com
  Target Milestone: ---

Stack smashing is detected on some host arches (i686, ppc64, for example, but
not x86_64) when building libgcc for an sh-target cross compiler:

/builddir/build/BUILD/gcc-7.0.1-20170209/sh-linux-gnu/./gcc/xgcc
-B/builddir/build/BUILD/gcc-7.0.1-20170209/sh-linux-gnu/./gcc/
-B/usr/sh-linux-gnu/bin/ -B/usr/sh-linux-gnu/lib/ -isystem
/usr/sh-linux-gnu/include -isystem /usr/sh-linux-gnu/sys-include    -g -O2
-Wall -fexceptions -m2 -O2  -g -O2 -Wall -fexceptions -DIN_GCC 
-DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition 
-isystem ./include   -fpic -DNO_FPSCR_VALUES -w -Wno-sync-nand -g -DIN_LIBGCC2
-fbuilding-libgcc -fno-stack-protector -Dinhibit_libc  -fpic -DNO_FPSCR_VALUES
-w -Wno-sync-nand -I. -I. -I../../.././gcc
-I../../../../gcc-7.0.1-20170209/libgcc
-I../../../../gcc-7.0.1-20170209/libgcc/.
-I../../../../gcc-7.0.1-20170209/libgcc/../gcc
-I../../../../gcc-7.0.1-20170209/libgcc/../include  -DHAVE_CC_TLS  -o
_ashrdi3.o -MT _ashrdi3.o -MD -MP -MF _ashrdi3.dep -DL_ashrdi3 -c
../../../../gcc-7.0.1-20170209/libgcc/libgcc2.c -fvisibility=hidden
-DHIDE_EXPORTS
*** stack smashing detected ***:
/builddir/build/BUILD/gcc-7.0.1-20170209/sh-linux-gnu/./gcc/cc1 terminated
======= Backtrace: =========
/lib64/libc.so.6(+0x969b8)[0x3fff947069b8]
/lib64/libc.so.6(__fortify_fail+0x54)[0x3fff947d2fc4]
/lib64/libc.so.6(__stack_chk_fail+0x20)[0x3fff947d2f60]
/builddir/build/BUILD/gcc-7.0.1-20170209/sh-linux-gnu/./gcc/cc1(_Z14gen_cbranchdi4P7rtx_defS0_S0_S0_+0xd4)[0x10b904c4]
/builddir/build/BUILD/gcc-7.0.1-20170209/sh-linux-gnu/./gcc/cc1(_Z23emit_cmp_and_jump_insnsP7rtx_defS0_8rtx_codeS0_12machine_modeiS0_i+0x170)[0x105e4b70]
/builddir/build/BUILD/gcc-7.0.1-20170209/sh-linux-gnu/./gcc/cc1(_Z23do_compare_rtx_and_jumpP7rtx_defS0_8rtx_codei12machine_modeS0_P14rtx_code_labelS4_i+0x214)[0x102ff1a4]
/builddir/build/BUILD/gcc-7.0.1-20170209/sh-linux-gnu/./gcc/cc1[0x105ed30c]
/builddir/build/BUILD/gcc-7.0.1-20170209/sh-linux-gnu/./gcc/cc1(_Z12expand_binop12machine_mode9optab_tagP7rtx_defS2_S2_i13optab_methods+0x1d54)[0x105ec814]
/builddir/build/BUILD/gcc-7.0.1-20170209/sh-linux-gnu/./gcc/cc1(_Z12expand_binop12machine_mode9optab_tagP7rtx_defS2_S2_i13optab_methods+0x5b8)[0x105eb078]
/builddir/build/BUILD/gcc-7.0.1-20170209/sh-linux-gnu/./gcc/cc1[0x1039e220]
/builddir/build/BUILD/gcc-7.0.1-20170209/sh-linux-gnu/./gcc/cc1(_Z18expand_expr_real_2P12separate_opsP7rtx_def12machine_mode15expand_modifier+0x3aa8)[0x103ca268]
/builddir/build/BUILD/gcc-7.0.1-20170209/sh-linux-gnu/./gcc/cc1(_Z18expand_expr_real_1P9tree_nodeP7rtx_def12machine_mode15expand_modifierPS2_b+0x2f54)[0x103b6d14]
/builddir/build/BUILD/gcc-7.0.1-20170209/sh-linux-gnu/./gcc/cc1[0x103c5f7c]
/builddir/build/BUILD/gcc-7.0.1-20170209/sh-linux-gnu/./gcc/cc1(_Z17expand_assignmentP9tree_nodeS0_b+0x5b8)[0x103c2e68]
/builddir/build/BUILD/gcc-7.0.1-20170209/sh-linux-gnu/./gcc/cc1[0x102743e0]
/builddir/build/BUILD/gcc-7.0.1-20170209/sh-linux-gnu/./gcc/cc1[0x10276178]
/builddir/build/BUILD/gcc-7.0.1-20170209/sh-linux-gnu/./gcc/cc1[0x1027ca08]
/builddir/build/BUILD/gcc-7.0.1-20170209/sh-linux-gnu/./gcc/cc1(_Z16execute_one_passP8opt_pass+0x334)[0x10611e54]
/builddir/build/BUILD/gcc-7.0.1-20170209/sh-linux-gnu/./gcc/cc1[0x10612e04]
/builddir/build/BUILD/gcc-7.0.1-20170209/sh-linux-gnu/./gcc/cc1(_Z17execute_pass_listP8functionP8opt_pass+0x38)[0x10612ea8]
/builddir/build/BUILD/gcc-7.0.1-20170209/sh-linux-gnu/./gcc/cc1(_ZN11cgraph_node6expandEv+0x170)[0x102b85d0]
/builddir/build/BUILD/gcc-7.0.1-20170209/sh-linux-gnu/./gcc/cc1[0x102ba0e4]
/builddir/build/BUILD/gcc-7.0.1-20170209/sh-linux-gnu/./gcc/cc1(_ZN12symbol_table25finalize_compilation_unitEv+0x1ec)[0x102bc61c]
/builddir/build/BUILD/gcc-7.0.1-20170209/sh-linux-gnu/./gcc/cc1[0x1071e04c]
/builddir/build/BUILD/gcc-7.0.1-20170209/sh-linux-gnu/./gcc/cc1(_ZN6toplev4mainEiPPc+0xfcc)[0x101199ec]
/builddir/build/BUILD/gcc-7.0.1-20170209/sh-linux-gnu/./gcc/cc1(main+0x54)[0x1011bb34]
/lib64/libc.so.6(+0x22b20)[0x3fff94692b20]
/lib64/libc.so.6(__libc_start_main+0xb8)[0x3fff94692d18]
======= Memory map: ========
10000000-11100000 r-xp 00000000 fc:05 9181442                           
/builddir/build/BUILD/gcc-7.0.1-20170209/sh-linux-gnu/gcc/cc1
11100000-11130000 r--p 010f0000 fc:05 9181442                           
/builddir/build/BUILD/gcc-7.0.1-20170209/sh-linux-gnu/gcc/cc1
11130000-11140000 rw-p 01120000 fc:05 9181442                           
/builddir/build/BUILD/gcc-7.0.1-20170209/sh-linux-gnu/gcc/cc1
11140000-11220000 rw-p 00000000 00:00 0 
1000d640000-1000d880000 rw-p 00000000 00:00 0                            [heap]
3fff92660000-3fff94670000 rw-p 00000000 00:00 0 
3fff94670000-3fff94880000 r-xp 00000000 fc:05 5123537                   
/usr/lib64/libc-2.25.so
3fff94880000-3fff94890000 r--p 00200000 fc:05 5123537                   
/usr/lib64/libc-2.25.so
3fff94890000-3fff948a0000 rw-p 00210000 fc:05 5123537                   
/usr/lib64/libc-2.25.so
3fff948a0000-3fff948c0000 r-xp 00000000 fc:05 5123183                   
/usr/lib64/libgcc_s-7-20170204.so.1
3fff948c0000-3fff948d0000 r--p 00010000 fc:05 5123183                   
/usr/lib64/libgcc_s-7-20170204.so.1
3fff948d0000-3fff948e0000 rw-p 00020000 fc:05 5123183                   
/usr/lib64/libgcc_s-7-20170204.so.1
3fff948e0000-3fff949c0000 r-xp 00000000 fc:05 5123547                   
/usr/lib64/libm-2.25.so
3fff949c0000-3fff949d0000 r--p 000d0000 fc:05 5123547                   
/usr/lib64/libm-2.25.so
3fff949d0000-3fff949e0000 rw-p 000e0000 fc:05 5123547                   
/usr/lib64/libm-2.25.so
3fff949e0000-3fff94bf0000 r-xp 00000000 fc:05 5123732                   
/usr/lib64/libstdc++.so.6.0.23
3fff94bf0000-3fff94c00000 r--p 00200000 fc:05 5123732                   
/usr/lib64/libstdc++.so.6.0.23
3fff94c00000-3fff94c10000 rw-p 00210000 fc:05 5123732                   
/usr/lib64/libstdc++.so.6.0.23
3fff94c10000-3fff94c30000 r-xp 00000000 fc:05 5123681                   
/usr/lib64/libz.so.1.2.11
3fff94c30000-3fff94c40000 r--p 00010000 fc:05 5123681                   
/usr/lib64/libz.so.1.2.11
3fff94c40000-3fff94c50000 rw-p 00000000 00:00 0 
3fff94c50000-3fff94ce0000 r-xp 00000000 fc:05 5123699                   
/usr/lib64/libgmp.so.10.3.2
3fff94ce0000-3fff94cf0000 r--p 00080000 fc:05 5123699                   
/usr/lib64/libgmp.so.10.3.2
3fff94cf0000-3fff94d00000 rw-p 00090000 fc:05 5123699                   
/usr/lib64/libgmp.so.10.3.2
3fff94d00000-3fff94d80000 r-xp 00000000 fc:05 5123736                   
/usr/lib64/libmpfr.so.4.1.5
3fff94d80000-3fff94d90000 r--p 00070000 fc:05 5123736                   
/usr/lib64/libmpfr.so.4.1.5
3fff94d90000-3fff94da0000 rw-p 00000000 00:00 0 
3fff94da0000-3fff94dc0000 r-xp 00000000 fc:05 5123805                   
/usr/lib64/libmpc.so.3.0.0
3fff94dc0000-3fff94dd0000 r--p 00010000 fc:05 5123805                   
/usr/lib64/libmpc.so.3.0.0
3fff94dd0000-3fff94de0000 rw-p 00000000 00:00 0 
3fff94de0000-3fff94df0000 r-xp 00000000 fc:05 5123545                   
/usr/lib64/libdl-2.25.so
3fff94df0000-3fff94e00000 r--p 00000000 fc:05 5123545                   
/usr/lib64/libdl-2.25.so
3fff94e00000-3fff94e20000 rw-p 00000000 00:00 0 
3fff94e20000-3fff94e40000 r-xp 00000000 00:00 0                          [vdso]
3fff94e40000-3fff94e80000 r-xp 00000000 fc:05 5123530                   
/usr/lib64/ld-2.25.so
3fff94e80000-3fff94e90000 r--p 00030000 fc:05 5123530                   
/usr/lib64/ld-2.25.so
3fff94e90000-3fff94ea0000 rw-p 00040000 fc:05 5123530                   
/usr/lib64/ld-2.25.so
3fffc9510000-3fffc9540000 rw-p 00000000 00:00 0                         
[stack]
../../../../gcc-7.0.1-20170209/libgcc/libgcc2.c: In function '__ashrdi3':
../../../../gcc-7.0.1-20170209/libgcc/libgcc2.c:472:15: internal compiler
error: Aborted
       w.s.low = uu.s.high >> -bm;
       ~~~~~~~~^~~~~~~~~~~~~~~~~~
0x1071dba3 crash_signal
        ../../gcc-7.0.1-20170209/gcc/toplev.c:333
0x10b904c3 gen_cbranchdi4(rtx_def*, rtx_def*, rtx_def*, rtx_def*)
        ../../gcc-7.0.1-20170209/gcc/config/sh/sh.md:1333
0x105e4b6f insn_gen_fn::operator()(rtx_def*, rtx_def*, rtx_def*, rtx_def*)
const
        ../../gcc-7.0.1-20170209/gcc/recog.h:303
0x105e4b6f emit_cmp_and_jump_insn_1
        ../../gcc-7.0.1-20170209/gcc/optabs.c:3995
0x105e4b6f emit_cmp_and_jump_insns(rtx_def*, rtx_def*, rtx_code, rtx_def*,
machine_mode, int, rtx_def*, int)
        ../../gcc-7.0.1-20170209/gcc/optabs.c:4052
0x102ff1a3 do_compare_rtx_and_jump(rtx_def*, rtx_def*, rtx_code, int,
machine_mode, rtx_def*, rtx_code_label*, rtx_code_label*, int)
        ../../gcc-7.0.1-20170209/gcc/dojump.c:1144
0x105ed30b expand_doubleword_shift
        ../../gcc-7.0.1-20170209/gcc/optabs.c:695
0x105ec813 expand_binop(machine_mode, optab_tag, rtx_def*, rtx_def*, rtx_def*,
int, optab_methods)
        ../../gcc-7.0.1-20170209/gcc/optabs.c:1426
0x105eb077 expand_binop(machine_mode, optab_tag, rtx_def*, rtx_def*, rtx_def*,
int, optab_methods)
        ../../gcc-7.0.1-20170209/gcc/optabs.c:1293
0x1039e21f expand_shift_1
        ../../gcc-7.0.1-20170209/gcc/expmed.c:2443
0x103ca267 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
        ../../gcc-7.0.1-20170209/gcc/expr.c:9179
0x103b6d13 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../../gcc-7.0.1-20170209/gcc/expr.c:9730
0x103c5f7b expand_normal
        ../../gcc-7.0.1-20170209/gcc/expr.h:282
0x103c5f7b store_field
        ../../gcc-7.0.1-20170209/gcc/expr.c:6833
0x103c2e67 expand_assignment(tree_node*, tree_node*, bool)
        ../../gcc-7.0.1-20170209/gcc/expr.c:5169
0x102743df expand_gimple_stmt_1
        ../../gcc-7.0.1-20170209/gcc/cfgexpand.c:3639
0x102743df expand_gimple_stmt
        ../../gcc-7.0.1-20170209/gcc/cfgexpand.c:3737
0x10276177 expand_gimple_basic_block
        ../../gcc-7.0.1-20170209/gcc/cfgexpand.c:5744
0x1027ca07 execute
        ../../gcc-7.0.1-20170209/gcc/cfgexpand.c:6357
>From gcc-bugs-return-553770-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 23:35:42 2017
Return-Path: <gcc-bugs-return-553770-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96867 invoked by alias); 10 Feb 2017 23:35: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 96701 invoked by uid 55); 10 Feb 2017 23:35:29 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Fri, 10 Feb 2017 23:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.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:
Message-ID: <bug-79341-4-yvlR5bZDht@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01302.txt.bz2
Content-length: 953

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79341

--- Comment #44 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Feb 10 23:34:49 2017
New Revision: 245350

URL: https://gcc.gnu.org/viewcvs?rev=245350&root=gcc&view=rev
Log:
        PR sanitizer/79341
        * configure.tgt (s390*-*-linux*): Don't disable libsanitizer on
        s390-linux 31-bit.
        * sanitizer_common/sanitizer_internal_defs.h: Cherry-pick upstream
        r294793.
        * sanitizer_common/sanitizer_common_interceptors.inc: Cherry-pick
        upstream r294790.
        * sanitizer_common/sanitizer_linux_s390.cc: Cherry-pick upstream
        r294799.

Modified:
    trunk/libsanitizer/ChangeLog
    trunk/libsanitizer/configure.tgt
    trunk/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
    trunk/libsanitizer/sanitizer_common/sanitizer_internal_defs.h
    trunk/libsanitizer/sanitizer_common/sanitizer_linux_s390.cc
>From gcc-bugs-return-553771-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 10 23:38:47 2017
Return-Path: <gcc-bugs-return-553771-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39184 invoked by alias); 10 Feb 2017 23: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 20655 invoked by uid 48); 10 Feb 2017 23:38:33 -0000
From: "dhowells at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79462] sh: Stack smashing detected when building __ashrdi3 in libgcc
Date: Fri, 10 Feb 2017 23: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dhowells at redhat 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-79462-4-Vt2e5AVkpA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79462-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79462-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01303.txt.bz2
Content-length: 2660

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79462

--- Comment #1 from dhowells at redhat dot com <dhowells at redhat dot com> ---
Here's the configuration command for hosting on ppc64le:

CFLAGS='-O2 -g -Wall -Wformat-security -fexceptions -fstack-protector-strong
--param=ssp-buffer-size=4 -grecord-gcc-switches -mcpu=power8 -mtune=power8' \
CXXFLAGS=' -O2 -g -Wformat-security -fstack-protector-strong
--param=ssp-buffer-size=4 -grecord-gcc-switches -mcpu=power8 -mtune=power8 ' \
CFLAGS_FOR_TARGET='-g -O2 -Wall -fexceptions' \
AR_FOR_TARGET=/usr/bin/sh-linux-gnu-ar \
AS_FOR_TARGET=/usr/bin/sh-linux-gnu-as \
DLLTOOL_FOR_TARGET=/usr/bin/sh-linux-gnu-dlltool \
LD_FOR_TARGET=/usr/bin/sh-linux-gnu-ld \
NM_FOR_TARGET=/usr/bin/sh-linux-gnu-nm \
OBJDUMP_FOR_TARGET=/usr/bin/sh-linux-gnu-objdump \
RANLIB_FOR_TARGET=/usr/bin/sh-linux-gnu-ranlib \
READELF_FOR_TARGET=/usr/bin/sh-linux-gnu-readelf \
STRIP_FOR_TARGET=/usr/bin/sh-linux-gnu-strip \
WINDRES_FOR_TARGET=/usr/bin/sh-linux-gnu-windres \
WINDMC_FOR_TARGET=/usr/bin/sh-linux-gnu-windmc \
LDFLAGS='-Wl,-z,relro ' \
configure --bindir=/usr/bin --build=ppc64le-redhat-linux-gnu
--datadir=/usr/share --disable-decimal-float --disable-dependency-tracking
--disable-gold --disable-libgcj --disable-libgomp --disable-libmpx
--disable-libquadmath --disable-libssp --disable-libunwind-exceptions
--disable-shared --disable-silent-rules --disable-sjlj-exceptions
--disable-threads --with-ld=/usr/bin/sh-linux-gnu-ld --enable-__cxa_atexit
--enable-checking=release --enable-gnu-unique-object --enable-initfini-array
--enable-languages=c,c++ --enable-linker-build-id --enable-lto --enable-nls
--enable-obsolete --enable-plugin --enable-secureplt --enable-targets=all
--exec-prefix=/usr --host=ppc64le-redhat-linux-gnu --includedir=/usr/include
--infodir=/usr/share/info --libexecdir=/usr/libexec --localstatedir=/var
--mandir=/usr/share/man --prefix=/usr --program-prefix=sh-linux-gnu-
--sbindir=/usr/sbin --sharedstatedir=/var/lib --sysconfdir=/etc
--target=sh-linux-gnu --with-bugurl=http://bugzilla.redhat.com/bugzilla/
--with-gcc-major-version-only --with-isl --with-newlib
--with-plugin-ld=/usr/bin/sh-linux-gnu-ld
--with-sysroot=/usr/sh-linux-gnu/sys-root --with-system-libunwind
--with-system-zlib --without-headers
--with-multilib-list=m1,m2,m2e,m2a,m2a-single,m4,m4-single,m4-single-only,m4-nofpu
--with-linker-hash-style=gnu

Other arches would be similar.

The gcc-7 version in question would be:

%global DATE 20170209
%global SVNREV 245310

The binutils in 2.27 cross-compiled for sh.
>From gcc-bugs-return-553772-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 00:44:46 2017
Return-Path: <gcc-bugs-return-553772-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 97348 invoked by alias); 11 Feb 2017 00: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 97233 invoked by uid 48); 11 Feb 2017 00:44:32 -0000
From: "P at draigBrady dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/61582] C++11 regex memory corruption
Date: Sat, 11 Feb 2017 00: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: P at draigBrady dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: timshen at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-61582-4-4h3CK04XaY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61582-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61582-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01304.txt.bz2
Content-length: 439

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61582

Pádraig Brady <P at draigBrady dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |P at draigBrady dot com

--- Comment #20 from Pádraig Brady <P at draigBrady dot com> ---
Any status update on this. GCC7 is looming...
Thanks.
>From gcc-bugs-return-553773-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 01:05:50 2017
Return-Path: <gcc-bugs-return-553773-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14842 invoked by alias); 11 Feb 2017 01:05: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 14709 invoked by uid 48); 11 Feb 2017 01:05:36 -0000
From: "timshen at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/61582] C++11 regex memory corruption
Date: Sat, 11 Feb 2017 01:05: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: timshen at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: timshen at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-61582-4-YWAgU8QcXj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61582-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61582-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01305.txt.bz2
Content-length: 441

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61582

--- Comment #21 from Tim Shen <timshen at gcc dot gnu.org> ---
(In reply to Pádraig Brady from comment #20)
> Any status update on this. GCC7 is looming...
> Thanks.

Unfortunately I haven't get a chance to work on this. I plan to put up a
one-line tweak on the internal state limit to make the library throwing an
exception, instead of crash. That's probably a strict improvement.
>From gcc-bugs-return-553774-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 05:45:54 2017
Return-Path: <gcc-bugs-return-553774-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129976 invoked by alias); 11 Feb 2017 05:45: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 129598 invoked by uid 48); 11 Feb 2017 05:45:34 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/21182] [5/6/7 Regression] gcc can use registers but uses stack instead
Date: Sat, 11 Feb 2017 05:45: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: 3.4.3
X-Bugzilla-Keywords: missed-optimization, ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-21182-4-dgWMYnJRez@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-21182-4@http.gcc.gnu.org/bugzilla/>
References: <bug-21182-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01306.txt.bz2
Content-length: 400

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=21182

--- Comment #24 from Jeffrey A. Law <law at redhat dot com> ---
Do we happen to have easy access to the pressure at the various program points?
 Dumping that with the points might prove fruitful in both the search for
potential over-aggressive optimizations and to guide Bernd's work to schedule
statements better at the gimple/rtl boundary.
>From gcc-bugs-return-553775-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 08:16:24 2017
Return-Path: <gcc-bugs-return-553775-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37749 invoked by alias); 11 Feb 2017 08:16:22 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 37313 invoked by uid 55); 11 Feb 2017 08:16:06 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79454] [7 Regression] c-c++-common/ubsan/overflow-vec-*.c FAILs on some 64-bit BE targets
Date: Sat, 11 Feb 2017 08:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.0
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.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79454-4-q5EYuvXptq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79454-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79454-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01307.txt.bz2
Content-length: 525

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79454

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sat Feb 11 08:15:30 2017
New Revision: 245354

URL: https://gcc.gnu.org/viewcvs?rev=245354&root=gcc&view=rev
Log:
        PR middle-end/79454
        * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
        result computation whenever lhs doesn't have vector mode, not
        just when it has BLKmode.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/internal-fn.c
>From gcc-bugs-return-553776-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 09:16:20 2017
Return-Path: <gcc-bugs-return-553776-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59466 invoked by alias); 11 Feb 2017 09:16: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 59214 invoked by uid 48); 11 Feb 2017 09:16:07 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79462] [7 Regression] sh: Stack smashing detected when building __ashrdi3 in libgcc
Date: Sat, 11 Feb 2017 09:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0.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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc target_milestone short_desc everconfirmed
Message-ID: <bug-79462-4-jfZhGmKDzt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79462-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79462-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01308.txt.bz2
Content-length: 801

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79462

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-11
                 CC|                            |jakub at gcc dot gnu.org
   Target Milestone|---                         |7.0
            Summary|sh: Stack smashing detected |[7 Regression] sh: Stack
                   |when building __ashrdi3 in  |smashing detected when
                   |libgcc                      |building __ashrdi3 in
                   |                            |libgcc
     Ever confirmed|0                           |1
>From gcc-bugs-return-553777-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 09:20:38 2017
Return-Path: <gcc-bugs-return-553777-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62727 invoked by alias); 11 Feb 2017 09:20: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 62628 invoked by uid 48); 11 Feb 2017 09:20:23 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79462] [7 Regression] sh: Stack smashing detected when building __ashrdi3 in libgcc
Date: Sat, 11 Feb 2017 09: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: 7.0.1
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.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to attachments.created
Message-ID: <bug-79462-4-QOFaV7zaKc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79462-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79462-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01309.txt.bz2
Content-length: 968

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79462

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> ---
Created attachment 40718
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40718&action=edit
gcc7-pr79462.patch

Untested fix.  I believe the bug has been introduced in r235698 aka PR52898
fix, when the clobbers have been removed from expanders calling
expand_cbranchdi4.  operands[4] used to be that clobber, but now when it has
only 4 operands, it overwrites random memory after it.
I don't have access to SH hw nor any experience with cross-compilers to SH, so
I'd appreciate if somebody could actually test it.
>From gcc-bugs-return-553778-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 09:24:22 2017
Return-Path: <gcc-bugs-return-553778-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66147 invoked by alias); 11 Feb 2017 09:24: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 65848 invoked by uid 48); 11 Feb 2017 09:23:56 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/52898] SH Target: Inefficient DImode comparisons
Date: Sat, 11 Feb 2017 09:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-52898-4-tUtrrKOBCI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-52898-4@http.gcc.gnu.org/bugzilla/>
References: <bug-52898-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01310.txt.bz2
Content-length: 1303

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52898

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Oleg Endo from comment #11)
> Author: olegendo
> Date: Mon May  2 05:25:46 2016
> New Revision: 235698
> 
> URL: https://gcc.gnu.org/viewcvs?rev=235698&root=gcc&view=rev
> Log:
> gcc/
> 	PR target/52898
> 	* config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
> 	TARGET_CMPEQDI_T.
> 	(prepare_cbranch_operands): Don't use scratch register.  Assume that
> 	function is used when pseudos can be created.
> 	(expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
> 	* config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
> 	(cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
> 	define_expand.  Allow it only when pseudos can be created.
> 	* config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
> 
> 
> Modified:
>     trunk/gcc/ChangeLog
>     trunk/gcc/config/sh/sh.c
>     trunk/gcc/config/sh/sh.md
>     trunk/gcc/config/sh/sh.opt

This caused PR79462.
>From gcc-bugs-return-553779-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 09:53:39 2017
Return-Path: <gcc-bugs-return-553779-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19129 invoked by alias); 11 Feb 2017 09:53: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 19006 invoked by uid 48); 11 Feb 2017 09:53:26 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79454] [7 Regression] c-c++-common/ubsan/overflow-vec-*.c FAILs on some 64-bit BE targets
Date: Sat, 11 Feb 2017 09:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: wrong-code
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79454-4-44Dm4LkSTk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79454-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79454-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01311.txt.bz2
Content-length: 423

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79454

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-553780-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 09:55:07 2017
Return-Path: <gcc-bugs-return-553780-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20969 invoked by alias); 11 Feb 2017 09:55: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 20773 invoked by uid 48); 11 Feb 2017 09:54:54 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79284] [7 Regression] ICE on valid code at -O3 on x86_64-linux-gnu: verify_gimple failed
Date: Sat, 11 Feb 2017 09:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
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: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79284-4-C36Je4qAJT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79284-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79284-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01312.txt.bz2
Content-length: 423

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79284

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-553781-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 10:42:08 2017
Return-Path: <gcc-bugs-return-553781-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82452 invoked by alias); 11 Feb 2017 10: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 82300 invoked by uid 48); 11 Feb 2017 10:41:53 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Sat, 11 Feb 2017 10:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 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: 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-79341-4-1GNL8IJP90@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01313.txt.bz2
Content-length: 1649

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79341

--- Comment #45 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
deep-stack-uaf*.C failure is presumably because the fast unwind (one that
doesn't use .eh_frame unwind info) isn't working properly.
But I'm afraid I don't know enough about s390{,x} to debug that.
E.g. on following testcase with -O2 -fno-omit-frame-pointer I get:
void foo (char *);

int
bar (char *p)
{
  foo (p);
  return 1;
}

int
baz (char *p)
{
  char a[64];
  foo (a);
  return 1;
}

        stmg    %r11,%r15,88(%r15)
        aghi    %r15,-160
        lgr     %r11,%r15
        brasl   %r14,foo
        lg      %r4,272(%r11)
        lghi    %r2,1
        lmg     %r11,%r15,248(%r11)
        br      %r4

for bar and

        stmg    %r11,%r15,88(%r15)
        aghi    %r15,-224
        lgr     %r11,%r15
        la      %r2,160(%r11)
        brasl   %r14,foo
        lg      %r4,336(%r11)
        lghi    %r2,1
        lmg     %r11,%r15,312(%r11)
        br      %r4

for baz.  Frame pointer is $r15, stack pointer is $r11, if say in foo I ask for
frame pointer, I can easily get at $r15 from the caller (foo or bar), but how
do I get from there to the location where the outer function's $r15 is stored
at?  It is at offset 160+120 in one function and 224+120 in another (and the
stored memory value doesn't tell much, it can be always computed from the
memory location where it is stored.
So, is non-unwind info backtrace not possible on s390{,x}?  If yes, we should
disable the fast unwinding and maybe enable -fasynchronous-unwind-tables by
default on s390{,x}-linux at least when using -fsanitize=address?
>From gcc-bugs-return-553782-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 11:03:10 2017
Return-Path: <gcc-bugs-return-553782-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114709 invoked by alias); 11 Feb 2017 11: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 114475 invoked by uid 48); 11 Feb 2017 11:02:57 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Sat, 11 Feb 2017 11:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.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:
Message-ID: <bug-79341-4-NtbdELagFd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01314.txt.bz2
Content-length: 680

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79341

--- Comment #46 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Or shall we use -mbackchain for -fsanitize=address by default and tweak the
unwinding code sanitizer_common/sanitizer_stacktrace.{cc,h} to use the
backchain?
AFAIK libsanitizer uses the .eh_frame unwinding for printing error dumps but
the fast unwinding (through frame pointer) by default when capturing backtraces
of malloc and free.  Always using .eh_frame would be done by defining
SANITIZER_CAN_FAST_UNWIND to 0 in sanitizer_common/sanitizer_stacktrace.h if
__s390__ (e.g. sparc and mips do this).  Wonder if LLVM emits backchain by
default or what.
>From gcc-bugs-return-553783-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 11:24:20 2017
Return-Path: <gcc-bugs-return-553783-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130564 invoked by alias); 11 Feb 2017 11:24: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 130322 invoked by uid 48); 11 Feb 2017 11:23:51 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Sat, 11 Feb 2017 11:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.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:
Message-ID: <bug-79341-4-dkMtYgrWiX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01315.txt.bz2
Content-length: 581

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79341

--- Comment #47 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Seems clang doesn't default to -mbackchain for -fsanitize=address, they just
force it on when testing:
if config.target_arch == 's390x':
  clang_asan_static_cflags.append("-mbackchain")

So, if we just want to go that route, we could add to deep-stack-uaf-1.C
// { dg-additional-options "-mbackchain" { target { s390*-*-* } } }

It is of course not very kind to users that would need to add it manually if
they want accurate backtraces for malloc/free.
>From gcc-bugs-return-553784-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 12:39:41 2017
Return-Path: <gcc-bugs-return-553784-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 63081 invoked by alias); 11 Feb 2017 12:39: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 62827 invoked by uid 48); 11 Feb 2017 12:39:27 -0000
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79463] New: ice for -g with ./g++.dg/cpp1y/pr79435.C
Date: Sat, 11 Feb 2017 12:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.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-79463-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01316.txt.bz2
Content-length: 1016

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79463

            Bug ID: 79463
           Summary: ice for -g with ./g++.dg/cpp1y/pr79435.C
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

I tried to compile gcc/testsuite/g++.dg/cpp1y/pr79435.C
with compiler flag -g on current gcc trunk and got:

./g++.dg/cpp1y/pr79435.C:5:10: internal compiler error: Segmentation fault
 extern A a; // { dg-error "'a' has incomplete type" }
          ^
0xeab417 crash_signal
        ../../trunk/gcc/toplev.c:333
0x734b77 check_abi_tags
        ../../trunk/gcc/cp/class.c:1616
0x874ea3 write_mangled_name
        ../../trunk/gcc/cp/mangle.c:770
0x881533 mangle_decl_string
        ../../trunk/gcc/cp/mangle.c:3757

This code seems ok on gcc revision 245132 and seems
to go wrong on gcc revision 245341.
>From gcc-bugs-return-553785-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 12:44:41 2017
Return-Path: <gcc-bugs-return-553785-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67629 invoked by alias); 11 Feb 2017 12: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 67347 invoked by uid 48); 11 Feb 2017 12:44:27 -0000
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79464] New: new ice in ipa_modify_formal_ parameters
Date: Sat, 11 Feb 2017 12: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: 7.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-79464-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01317.txt.bz2
Content-length: 1111

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79464

            Bug ID: 79464
           Summary: new ice in ipa_modify_formal_ parameters
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

I tried to compile gcc/testsuite/g++.dg/cpp1z/inh-ctor23.C
with flag -O2 and recent gcc and it said this:

./g++.dg/cpp1z/inh-ctor23.C:10:7: internal compiler error: in
ipa_modify_formal_parameters, at ipa-prop.c:3979
 Z z(0); // OK: initialization of Y does not invoke default constructor of X
       ^
0xc7c97b ipa_modify_formal_parameters(tree_node*, vec<ipa_parm_adjustment,
va_heap, vl_ptr>)
        ../../trunk/gcc/ipa-prop.c:3979
0xfa6f19 modify_function
        ../../trunk/gcc/tree-sra.c:5179
0xfb1acd ipa_early_sra
        ../../trunk/gcc/tree-sra.c:5410
0xfb1acd execute
        ../../trunk/gcc/tree-sra.c:5457

This bug seems to have appeared between gcc revision 245132
and 245341.
>From gcc-bugs-return-553786-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 14:06:11 2017
Return-Path: <gcc-bugs-return-553786-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121416 invoked by alias); 11 Feb 2017 14:06: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 121346 invoked by uid 48); 11 Feb 2017 14:05:57 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/71017] libgcc/config/i386/cpuinfo.c:346:17: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
Date: Sat, 11 Feb 2017 14:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-71017-4-fqRWMwn4hU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-71017-4@http.gcc.gnu.org/bugzilla/>
References: <bug-71017-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01318.txt.bz2
Content-length: 465

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71017

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
It should be fixed now. Closing.
>From gcc-bugs-return-553787-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 14:10:49 2017
Return-Path: <gcc-bugs-return-553787-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130644 invoked by alias); 11 Feb 2017 14:10:48 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 130524 invoked by uid 48); 11 Feb 2017 14:10:36 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/61225] [5/6/7 Regression] Several new failures after r210458 on x86_64-*-* with -m32
Date: Sat, 11 Feb 2017 14:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-61225-4-HER4zJGops@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61225-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61225-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01319.txt.bz2
Content-length: 172

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61225

--- Comment #27 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
AFAICT this PR seems fixed. Can I close it?
>From gcc-bugs-return-553788-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 14:12:41 2017
Return-Path: <gcc-bugs-return-553788-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8000 invoked by alias); 11 Feb 2017 14:12: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 7875 invoked by uid 48); 11 Feb 2017 14:12:27 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/78267] libsanitizer breaks bootstrap on x86_64-apple-darwin16 at r241977
Date: Sat, 11 Feb 2017 14:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.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: ro at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78267-4-OziaPAO3nn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78267-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78267-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01320.txt.bz2
Content-length: 380

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78267

--- Comment #58 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> > --- Comment #56 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
> > So, is this resolved now?
>
> The bootstrap failures are AFAIK, but perhaps we should keep it open for
> the fixinclude fix backports discovered?

Any need to keep this PR open?
>From gcc-bugs-return-553789-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 14:19:31 2017
Return-Path: <gcc-bugs-return-553789-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11897 invoked by alias); 11 Feb 2017 14:19: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 11758 invoked by uid 48); 11 Feb 2017 14:19:18 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/61225] [5/6/7 Regression] Several new failures after r210458 on x86_64-*-* with -m32
Date: Sat, 11 Feb 2017 14: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: 5.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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-61225-4-Ovc1VU2yL4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61225-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61225-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01321.txt.bz2
Content-length: 177

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61225

--- Comment #28 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Don't we still XFAIL the gcc.target/i386/pr49095.c test?
>From gcc-bugs-return-553790-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 15:16:56 2017
Return-Path: <gcc-bugs-return-553790-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128879 invoked by alias); 11 Feb 2017 15:16: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 125637 invoked by uid 48); 11 Feb 2017 15:16:41 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79460] gcc fails to optimise out a trivial additive loop for seemingly arbitrary numbers of iterations
Date: Sat, 11 Feb 2017 15: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: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-79460-4-Tq8TXSK0p2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79460-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79460-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01322.txt.bz2
Content-length: 482

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79460

Segher Boessenkool <segher at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-11
                 CC|                            |segher at gcc dot gnu.org
     Ever confirmed|0                           |1
>From gcc-bugs-return-553791-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 15:18:06 2017
Return-Path: <gcc-bugs-return-553791-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130483 invoked by alias); 11 Feb 2017 15:18: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 130128 invoked by uid 48); 11 Feb 2017 15:17:52 -0000
From: "valsiterb at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/79465] New: infinite #include cycle is not detected
Date: Sat, 11 Feb 2017 15:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: preprocessor
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: valsiterb 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-79465-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01323.txt.bz2
Content-length: 996

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79465

            Bug ID: 79465
           Summary: infinite #include cycle is not detected
           Product: gcc
           Version: 6.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
          Assignee: unassigned at gcc dot gnu.org
          Reporter: valsiterb at gmail dot com
  Target Milestone: ---

I was working on a 20 years old codebase and in order to increase compilation
speed, I've converted all header guards to #ifdef ... #error to go on and
change things around, but there was a cycle somewhere in the headers (a.h
includes b.h but b.h also includes a.h) cpp does not detect this case and goes
on unil it gets killed.
I don't know if cycle detection is even supposed to part of the preprocessor,
but I expected that #error would make it stop there. I know that there is
-Wfatal-errors directive. Shouldn't #error be be fatal or am I missing
something?
>From gcc-bugs-return-553792-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 15:27:14 2017
Return-Path: <gcc-bugs-return-553792-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11574 invoked by alias); 11 Feb 2017 15:27: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 11441 invoked by uid 48); 11 Feb 2017 15:27:01 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/61225] [5/6/7 Regression] Several new failures after r210458 on x86_64-*-* with -m32
Date: Sat, 11 Feb 2017 15: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: 5.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-61225-4-YrCuKO8V7D@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61225-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61225-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01324.txt.bz2
Content-length: 263

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61225

--- Comment #29 from Jeffrey A. Law <law at redhat dot com> ---
Right.  I think the test is xfailed, but I don't think the issue has been
resolved.  It requires some rethinking of how the combiner works IIRC.
>From gcc-bugs-return-553793-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 15:45:17 2017
Return-Path: <gcc-bugs-return-553793-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15467 invoked by alias); 11 Feb 2017 15:45: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 11298 invoked by uid 48); 11 Feb 2017 15:44:54 -0000
From: "martin at netbsd dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79466] New: strange varargs warnings on superflous paranthesises
Date: Sat, 11 Feb 2017 15:45: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: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: martin at netbsd 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 attachments.created
Message-ID: <bug-79466-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01325.txt.bz2
Content-length: 1125

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79466

            Bug ID: 79466
           Summary: strange varargs warnings on superflous paranthesises
           Product: gcc
           Version: 5.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: martin at netbsd dot org
  Target Milestone: ---

Created attachment 40719
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40719&action=edit
Simple example triggering the warning

When compiled with g++ -std=gnu++14 the expression

  __builtin_va_start ((ap), (fmt));

triggers a strange warning:

example.cc:4:37: warning: second parameter of 'va_start' not last named
argument [-Wvarargs]
     __builtin_va_start ((ap), (fmt));
                                     ^

Removing the extra paranthesis makes it work. This does not happen with
-std=gnu++11.

Sample attached, compile with:

g++ -Wall -O2 -std=gnu++14 -c -o example.o example.cc

(warning and optimization settings do not make a difference, only std= is
important)
>From gcc-bugs-return-553794-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 16:12:47 2017
Return-Path: <gcc-bugs-return-553794-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78165 invoked by alias); 11 Feb 2017 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 77840 invoked by uid 55); 11 Feb 2017 16:12:33 -0000
From: "hubicka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79224] [7 Regression] Large C-Ray slowdown
Date: Sat, 11 Feb 2017 16: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: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hubicka at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79224-4-ygBcq0DNuk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79224-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79224-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01326.txt.bz2
Content-length: 519

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79224

--- Comment #7 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Author: hubicka
Date: Sat Feb 11 16:11:57 2017
New Revision: 245357

URL: https://gcc.gnu.org/viewcvs?rev=245357&root=gcc&view=rev
Log:

        PR ipa/79224
        * ipa-inline-analysis.c (get_minimal_bb): New function.
        (record_modified): Use it.
        (remap_edge_change_prob): Handle also ancestor functions.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ipa-inline-analysis.c
>From gcc-bugs-return-553795-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 17:25:08 2017
Return-Path: <gcc-bugs-return-553795-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95753 invoked by alias); 11 Feb 2017 17:25: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 95520 invoked by uid 48); 11 Feb 2017 17:24:55 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/61225] [5/6/7 Regression] Several new failures after r210458 on x86_64-*-* with -m32
Date: Sat, 11 Feb 2017 17:25: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: 5.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher 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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-61225-4-YwCSv3Xiv0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61225-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61225-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01327.txt.bz2
Content-length: 850

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61225

--- Comment #30 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Trying to combine the load+add+store, combine is trying insns like

Failed to match this instruction:
(parallel [
        (set (mem:SI (reg/v/f:SI 90 [ x ]) [1 *x_5(D)+0 S4 A32])
            (plus:SI (mem:SI (reg/v/f:SI 90 [ x ]) [1 *x_5(D)+0 S4 A32])
                (const_int -1 [0xffffffffffffffff])))
        (set (reg:SI 88 [ _2 ])
            (plus:SI (mem:SI (reg/v/f:SI 90 [ x ]) [1 *x_5(D)+0 S4 A32])
                (const_int -1 [0xffffffffffffffff])))
    ])

and it does not know how to split that into two (make the second SET
just a load).  If it could do that -- and costs work out for the target --
all would work fine as far as I see.  Alternatively, the target could
use a define_split for this pattern.
>From gcc-bugs-return-553797-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 17:30:56 2017
Return-Path: <gcc-bugs-return-553797-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23588 invoked by alias); 11 Feb 2017 17:30: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 23421 invoked by uid 55); 11 Feb 2017 17:30:42 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/77790] [5/6/7 Regression] ICE on valid C++14 code when compiling with "-std=c++11": in push_access_scope, at cp/pt.c:227
Date: Sat, 11 Feb 2017 17: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: 7.0
X-Bugzilla-Keywords: error-recovery
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-77790-4-HcX0GfBDQE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77790-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77790-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01329.txt.bz2
Content-length: 751

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77790

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Sat Feb 11 17:29:45 2017
New Revision: 245358

URL: https://gcc.gnu.org/viewcvs?rev=245358&root=gcc&view=rev
Log:
        PR c++/77790 - ICE with auto function in C++11 mode

        * decl.c (undeduced_auto_decl): Remove C++14 limitation.
        (require_deduced_type): Add complain parm, return bool.
        * cp-tree.h: Adjust.
        * decl2.c (mark_used): Use require_deduced_type.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/auto-fn35.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/decl2.c
    trunk/gcc/testsuite/g++.dg/cpp0x/auto41.C
>From gcc-bugs-return-553796-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 17:30:56 2017
Return-Path: <gcc-bugs-return-553796-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23576 invoked by alias); 11 Feb 2017 17:30: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 23415 invoked by uid 48); 11 Feb 2017 17:30:42 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/77659] [5/6/7 Regression] internal compiler error: in gimplify_expr, at gimplify.c:8858
Date: Sat, 11 Feb 2017 17: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: 5.4.0
X-Bugzilla-Keywords:
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-77659-4-cVEXM2UwBo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77659-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77659-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01328.txt.bz2
Content-length: 378

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77659

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-553798-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 17:41:18 2017
Return-Path: <gcc-bugs-return-553798-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39614 invoked by alias); 11 Feb 2017 17:41: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 39503 invoked by uid 48); 11 Feb 2017 17:41:05 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/77790] [5/6 Regression] ICE on valid C++14 code when compiling with "-std=c++11": in push_access_scope, at cp/pt.c:227
Date: Sat, 11 Feb 2017 17:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: error-recovery
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub 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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority short_desc
Message-ID: <bug-77790-4-D5Nq31Sw0g@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77790-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77790-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01330.txt.bz2
Content-length: 792

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77790

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P4
            Summary|[5/6/7 Regression] ICE on   |[5/6 Regression] ICE on
                   |valid C++14 code when       |valid C++14 code when
                   |compiling with              |compiling with
                   |"-std=c++11": in            |"-std=c++11": in
                   |push_access_scope, at       |push_access_scope, at
                   |cp/pt.c:227                 |cp/pt.c:227

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed on the trunk so far.
>From gcc-bugs-return-553799-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 17:56:53 2017
Return-Path: <gcc-bugs-return-553799-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52126 invoked by alias); 11 Feb 2017 17:56: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 52016 invoked by uid 55); 11 Feb 2017 17:56:40 -0000
From: "hubicka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/56727] Recursive call goes through the PLT unnecessarily
Date: Sat, 11 Feb 2017 17:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.7.2
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: minor
X-Bugzilla-Who: hubicka at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-56727-4-73Utq6OOZF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56727-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56727-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01331.txt.bz2
Content-length: 573

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56727

--- Comment #15 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Author: hubicka
Date: Sat Feb 11 17:56:02 2017
New Revision: 245359

URL: https://gcc.gnu.org/viewcvs?rev=245359&root=gcc&view=rev
Log:

        PR tree-ssa/56727
        * gcc.dg/tree-ssa/pr56727.c: New testcase.
        * ipa-utils.c (recursive_call_p): Be more careful about interposition.

Added:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr56727.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ipa-utils.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-553800-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 18:29:02 2017
Return-Path: <gcc-bugs-return-553800-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92230 invoked by alias); 11 Feb 2017 18:29: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 91951 invoked by uid 48); 11 Feb 2017 18:28:48 -0000
From: "uweigand at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Sat, 11 Feb 2017 18:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: uweigand 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-79341-4-V8VH8yOYwX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01332.txt.bz2
Content-length: 819

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79341

--- Comment #48 from Ulrich Weigand <uweigand at gcc dot gnu.org> ---
s390(x) has -fasynchronous-unwind-tables on by default anyway, and .eh_frame
based DWARF unwinding is the only way to create stack backtraces that always
works.

However, I understood that asan deliberately doesn't want to use DWARF
unwinding for the the malloc/free case since it can be slow.  That's why Marcin
actually added -mbackchain to LLVM in the first place.  (We've had -mbackchain
in GCC forever, but it has defaulted to off for a very long time.)

I don't think we should switch to *always* using backchain unwinding in asan,
since system libraries on s390 will be built without backchain.  However,
switching -mbackchain on by default when building for asan might make sense.
>From gcc-bugs-return-553801-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 18:34:50 2017
Return-Path: <gcc-bugs-return-553801-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 97332 invoked by alias); 11 Feb 2017 18:34: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 97030 invoked by uid 48); 11 Feb 2017 18:34:37 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Sat, 11 Feb 2017 18:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.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:
Message-ID: <bug-79341-4-UhGgBvY1GG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01333.txt.bz2
Content-length: 445

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79341

--- Comment #49 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
On the other side, we don't turn -fno-omit-frame-pointer or
-mno-omit-leaf-frame-pointer for -fsanitize=address on other targets either,
perhaps this is just a documentation issue.  I'll add -mbackchain to this
testcase.  Perhaps we should just mention those flags in -fsanitize=address
documentation in invoke.texi.
>From gcc-bugs-return-553802-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 18:38:57 2017
Return-Path: <gcc-bugs-return-553802-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101790 invoked by alias); 11 Feb 2017 18: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 101631 invoked by uid 55); 11 Feb 2017 18:38:44 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Sat, 11 Feb 2017 18:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.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:
Message-ID: <bug-79341-4-cvSXsBtoQu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01334.txt.bz2
Content-length: 439

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79341

--- Comment #50 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sat Feb 11 18:38:11 2017
New Revision: 245361

URL: https://gcc.gnu.org/viewcvs?rev=245361&root=gcc&view=rev
Log:
        PR sanitizer/79341
        * g++.dg/asan/deep-stack-uaf-1.C: New test.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/asan/deep-stack-uaf-1.C
>From gcc-bugs-return-553803-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 19:40:14 2017
Return-Path: <gcc-bugs-return-553803-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44018 invoked by alias); 11 Feb 2017 19:40: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 43875 invoked by uid 48); 11 Feb 2017 19:40:10 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79466] strange varargs warnings on superflous paranthesises
Date: Sat, 11 Feb 2017 19: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: 5.4.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-79466-4-5QUc4Eh9uP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79466-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79466-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01335.txt.bz2
Content-length: 223

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79466

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
C++14 changed the rules slightly about paranthesises which is why you are
seeing the difference here.
>From gcc-bugs-return-553804-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 20:10:30 2017
Return-Path: <gcc-bugs-return-553804-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73496 invoked by alias); 11 Feb 2017 20:10:23 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 65138 invoked by uid 48); 11 Feb 2017 20:10:15 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79467] New: [7 Regression] incorrect static assertion in shared_ptr
Date: Sat, 11 Feb 2017 20:10: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: 7.0.1
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: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-79467-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01336.txt.bz2
Content-length: 888

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79467

            Bug ID: 79467
           Summary: [7 Regression] incorrect static assertion in
                    shared_ptr
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
  Target Milestone: ---

#include <memory>

struct X { };

struct D {
  void operator()(X*&) {}
};
std::shared_ptr<X> p(new X(), D());

Fails on trunk with:

/home/jwakely/gcc/7/include/c++/7.0.1/bits/shared_ptr_base.h:1088:4: error:
static assertion failed: deleter expression d(p) is well-formed
    static_assert(__is_callable<_Deleter(_Yp*)>::value,


The __is_callable expression should be using lvalues not rvalues.
>From gcc-bugs-return-553805-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 20:12:49 2017
Return-Path: <gcc-bugs-return-553805-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115125 invoked by alias); 11 Feb 2017 20:12: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 115065 invoked by uid 48); 11 Feb 2017 20:12:44 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79467] [7 Regression] incorrect static assertion in shared_ptr
Date: Sat, 11 Feb 2017 20:12: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.1
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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cf_known_to_work assigned_to everconfirmed cf_known_to_fail
Message-ID: <bug-79467-4-KCEkEfdF0a@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79467-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79467-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01337.txt.bz2
Content-length: 599

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79467

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-02-11
      Known to work|                            |6.3.0
           Assignee|unassigned at gcc dot gnu.org      |redi at gcc dot gnu.org
     Ever confirmed|0                           |1
      Known to fail|                            |7.0.1
>From gcc-bugs-return-553806-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 20:14:24 2017
Return-Path: <gcc-bugs-return-553806-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116749 invoked by alias); 11 Feb 2017 20:14: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 116709 invoked by uid 48); 11 Feb 2017 20:14:20 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug web/79468] New: Clarify createaccount.cgi
Date: Sat, 11 Feb 2017 20:14: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: glisse 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-79468-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01338.txt.bz2
Content-length: 889

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79468

            Bug ID: 79468
           Summary: Clarify createaccount.cgi
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: web
          Assignee: unassigned at gcc dot gnu.org
          Reporter: glisse at gcc dot gnu.org
  Target Milestone: ---

Hello,

with the spam situation, bugzilla account creation currently consists in
sending an email to overseers. However, createaccount.cgi does not reflect
this, it says to fill in a one-field web form and only contact overseers if
that doesn't work for some unspecified amount of time (sounds like contacting
webmaster to report a bug, not like contacting an admin to create the account).
I very regularly see people on stackoverflow give up on reporting bugs because
of this.
>From gcc-bugs-return-553807-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 20:24:51 2017
Return-Path: <gcc-bugs-return-553807-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129159 invoked by alias); 11 Feb 2017 20:24: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 129118 invoked by uid 48); 11 Feb 2017 20:24:46 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug web/79468] Clarify createaccount.cgi
Date: Sat, 11 Feb 2017 20:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: web
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-79468-4-EyijvIhTo0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79468-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79468-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01339.txt.bz2
Content-length: 904

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79468

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-11
                 CC|                            |LpSolit at netscape dot net
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Also, it says:

"User account creation has been restricted. Contact your administrator or the
maintainer (overseers@gcc.gnu.org) for information about creating an account."

This also confuses people, who wonder "who is my administrator"?

Their local sysadmins can't help, so it's a confusing statement. It should just
tell them to contact overseers.
>From gcc-bugs-return-553808-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 21:08:56 2017
Return-Path: <gcc-bugs-return-553808-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105224 invoked by alias); 11 Feb 2017 21:08: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 104092 invoked by uid 55); 11 Feb 2017 21:08:43 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79467] [7 Regression] incorrect static assertion in shared_ptr
Date: Sat, 11 Feb 2017 21: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: 7.0.1
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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79467-4-LXx8nca437@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79467-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79467-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01340.txt.bz2
Content-length: 738

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79467

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Sat Feb 11 21:08:11 2017
New Revision: 245363

URL: https://gcc.gnu.org/viewcvs?rev=245363&root=gcc&view=rev
Log:
PR libstdc++/79467 use lvalues in is_callable check

        PR libstdc++/79467
        * include/bits/shared_ptr_base.h (__shared_ptr(_Yp*, _Deleter))
        (__shared_ptr(_Yp*, _Deleter, _Alloc)): Use lvalue types in
        __is_callable check.
        * testsuite/20_util/shared_ptr/cons/79467.cc: New.

Added:
    trunk/libstdc++-v3/testsuite/20_util/shared_ptr/cons/79467.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/shared_ptr_base.h
>From gcc-bugs-return-553809-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 21:11:49 2017
Return-Path: <gcc-bugs-return-553809-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111176 invoked by alias); 11 Feb 2017 21:11: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 110730 invoked by uid 48); 11 Feb 2017 21:11:43 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79467] [7 Regression] incorrect static assertion in shared_ptr
Date: Sat, 11 Feb 2017 21: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: 7.0.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-79467-4-cF3bHwZdVD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79467-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79467-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01341.txt.bz2
Content-length: 477

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79467

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |7.0

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed
>From gcc-bugs-return-553810-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 21:20:17 2017
Return-Path: <gcc-bugs-return-553810-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32931 invoked by alias); 11 Feb 2017 21:20: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 32525 invoked by uid 48); 11 Feb 2017 21:20:12 -0000
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79471] New: valgrind error for gcc.c-torture/compile/limits-fnargs.c
Date: Sat, 11 Feb 2017 21:20: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.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-79471-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01342.txt.bz2
Content-length: 1116

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79471

            Bug ID: 79471
           Summary: valgrind error for
                    gcc.c-torture/compile/limits-fnargs.c
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

I just built a valgrind version of gcc trunk and tried
out the gcc testsuite on it. 

For testcase gcc.c-torture/compile/limits-fnargs.c, I got

./gcc.c-torture/compile/limits-fnargs.c
==21687== Invalid write of size 8
==21687==    at 0x6F33B9: expand_call(tree_node*, rtx_def*, int) (calls.c:3266)
==21687==    by 0x7DFF36: expand_expr_real_1(tree_node*, rtx_def*,
machine_mode, expand_modifier, rtx_def**, bool) (expr.c:10785)
==21687==    by 0x703E54: expand_expr (expr.h:276)
==21687==    by 0x703E54: expand_call_stmt (cfgexpand.c:2658)

Admittedly an extreme case, but I think gcc shouldn't be doing
invalid writes.
>From gcc-bugs-return-553811-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 21:50:30 2017
Return-Path: <gcc-bugs-return-553811-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113607 invoked by alias); 11 Feb 2017 21:50: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 113244 invoked by uid 55); 11 Feb 2017 21:50:24 -0000
From: "hubicka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79224] [7 Regression] Large C-Ray slowdown
Date: Sat, 11 Feb 2017 21:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hubicka at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79224-4-qmnjv3sCEB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79224-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79224-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01343.txt.bz2
Content-length: 406

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79224

--- Comment #8 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Author: hubicka
Date: Sat Feb 11 21:49:51 2017
New Revision: 245366

URL: https://gcc.gnu.org/viewcvs?rev=245366&root=gcc&view=rev
Log:

        PR ipa/79224
        * params.def (inline-min-speedup) Change from 10 to 8.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/params.def
>From gcc-bugs-return-553812-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 22:16:10 2017
Return-Path: <gcc-bugs-return-553812-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23628 invoked by alias); 11 Feb 2017 22:16:10 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 23571 invoked by uid 48); 11 Feb 2017 22:16:05 -0000
From: "danglin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/79427] g++.dg/tls/thread_local-order2.C fails starting with r245249
Date: Sat, 11 Feb 2017 22:16: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: 7.0
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: 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-79427-4-ZLVKBXvCBa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79427-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79427-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01344.txt.bz2
Content-length: 584

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79427

John David Anglin <danglin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-11
                 CC|                            |danglin at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #5 from John David Anglin <danglin at gcc dot gnu.org> ---
Also fails on hppa*-*-hpux*.
>From gcc-bugs-return-553813-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 23:14:39 2017
Return-Path: <gcc-bugs-return-553813-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 51540 invoked by alias); 11 Feb 2017 23:14: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 51060 invoked by uid 48); 11 Feb 2017 23:14:27 -0000
From: "kkojima at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79462] [7 Regression] sh: Stack smashing detected when building __ashrdi3 in libgcc
Date: Sat, 11 Feb 2017 23: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kkojima 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.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79462-4-Inx5P1w1H8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79462-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79462-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01345.txt.bz2
Content-length: 493

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79462

Kazumoto Kojima <kkojima at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kkojima at gcc dot gnu.org

--- Comment #3 from Kazumoto Kojima <kkojima at gcc dot gnu.org> ---
I've tested the patch with the top "make -k check" on sh4-unknown-linux-gnu
and there are no regressions.
>From gcc-bugs-return-553814-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 11 23:59:07 2017
Return-Path: <gcc-bugs-return-553814-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56846 invoked by alias); 11 Feb 2017 23:59:07 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 56736 invoked by uid 48); 11 Feb 2017 23:59:02 -0000
From: "gonzalobg88 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79452] Provide builtin to detect compile-time execution
Date: Sat, 11 Feb 2017 23: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: gonzalobg88 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-79452-4-btXSC3RPLx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79452-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79452-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01346.txt.bz2
Content-length: 496

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79452

--- Comment #8 from gnzlbg <gonzalobg88 at gmail dot com> ---
Eric your concerns and suggestions make sense. Changing the signature of the
functions using something like __ctfe__ and probably anything that would use
those sounds like a major ABI breaking change though. I do not think we can
find a better solution though, but it makes me reconsider whether we really
need this. We do need something like this, but i don't know at what cost.
>From gcc-bugs-return-553815-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 00:12:44 2017
Return-Path: <gcc-bugs-return-553815-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94616 invoked by alias); 12 Feb 2017 00:12: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 94519 invoked by uid 48); 12 Feb 2017 00:12:39 -0000
From: "eric at efcs dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79452] Provide builtin to detect compile-time execution
Date: Sun, 12 Feb 2017 00:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: eric at efcs dot ca
X-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-79452-4-lIX6PZwVHN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79452-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79452-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01347.txt.bz2
Content-length: 528

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79452

--- Comment #9 from Eric Fiselier <eric at efcs dot ca> ---
I think it would be nice to be able to dispatch differently depending on being
called at compile time or runtime. However the ability to dispatch on that
condition doesn't have to be usable in "if constexpr". That way we don't run
into any instantiation problems.

If that behavior is desireable enough I think it could be simply implemented as
an invented __ctfe__ function local variable that changes value.
>From gcc-bugs-return-553816-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 01:20:08 2017
Return-Path: <gcc-bugs-return-553816-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130131 invoked by alias); 12 Feb 2017 01:20: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 129969 invoked by uid 48); 12 Feb 2017 01:20:01 -0000
From: "olegendo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79462] [7 Regression] sh: Stack smashing detected when building __ashrdi3 in libgcc
Date: Sun, 12 Feb 2017 01: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: olegendo 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.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79462-4-KEvzkzUWWn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79462-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79462-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01348.txt.bz2
Content-length: 247

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79462

--- Comment #4 from Oleg Endo <olegendo at gcc dot gnu.org> ---
If the patch fixes the problem, it's OK.  But please add a comment where the
line is removed as a hint of what's going on there.
>From gcc-bugs-return-553817-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 02:41:00 2017
Return-Path: <gcc-bugs-return-553817-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48988 invoked by alias); 12 Feb 2017 02:40: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 48785 invoked by uid 48); 12 Feb 2017 02:40:39 -0000
From: "yuriks at yuriks dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79472] New: x86-64: Switch table generation fails if default case has different code
Date: Sun, 12 Feb 2017 02:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: yuriks at yuriks 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-79472-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01349.txt.bz2
Content-length: 3674

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79472

            Bug ID: 79472
           Summary: x86-64: Switch table generation fails if default case
                    has different code
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: yuriks at yuriks dot net
  Target Milestone: ---

Consider the following code, compiled at -O2: (Compiler explorer link:
https://godbolt.org/g/GljuJt)

#include <cstdint>
#include <cstdio>
#include <cstdlib>

void frobulate(uint32_t v) {
  const char* s;

  switch (v) {
    case 0:
      s = "foo";
      break;
    case 1:
      s = "bar";
      break;
    case 2:
      s = "spam";
      break;
    default:
      abort();
      break;
  }

  printf("%s\n", s);
}

void frobulate_for_gcc(uint32_t v) {
  const char* s;

  switch (v) {
    case 0:
      s = "foo";
      break;
    case 1:
      s = "bar";
      break;
    case 2:
      s = "spam";
      break;
    default:
      s = nullptr;
      break;
  }

  if (s == nullptr) {
    abort();
  }

  printf("%s\n", s);
}
------------------------------------------------------------------------------


gcc 6.3 produces the following code. It fails to generate a data table in
"frobulate", even though it it doing a branch beforehand that could be used to
insert the abort into. If I add the indirection of checking for the null
pointer instead then the check is actually hoisted up into the range check for
the table:

frobulate(unsigned int):
        cmp     edi, 1
        je      .L3
        jb      .L4
        cmp     edi, 2
        jne     .L12
        mov     edi, OFFSET FLAT:.LC2
        jmp     puts
.L12:
        sub     rsp, 8
        call    abort
.L4:
        mov     edi, OFFSET FLAT:.LC0
        jmp     puts
.L3:
        mov     edi, OFFSET FLAT:.LC1
        jmp     puts
frobulate_for_gcc(unsigned int):
        cmp     edi, 2
        jbe     .L18
.L14:
        sub     rsp, 8
        call    abort
.L18:
        mov     edi, edi
        mov     rdi, QWORD PTR CSWTCH.2[0+rdi*8]
        test    rdi, rdi
        je      .L14
        jmp     puts
CSWTCH.2:
        .quad   .LC0
        .quad   .LC1
        .quad   .LC2
------------------------------------------------------------------------------


gcc 7 (20170211) appears to regress further, it fails to generate a table in
both cases:

frobulate(unsigned int):
        cmp     edi, 1
        je      .L3
        jb      .L4
        cmp     edi, 2
        jne     .L12
        mov     edi, OFFSET FLAT:.LC2
        jmp     puts
.L4:
        mov     edi, OFFSET FLAT:.LC0
        jmp     puts
.L3:
        mov     edi, OFFSET FLAT:.LC1
        jmp     puts
.L12:
        sub     rsp, 8
        call    abort
------------------------------------------------------------------------------


For comparison, clang 3.9.1 generates optimal code in both instances:

frobulate(unsigned int):                          # @frobulate(unsigned int)
        cmp     edi, 3
        jae     .LBB0_1
        movsxd  rax, edi
        mov     rdi, qword ptr [8*rax + .Lswitch.table.4]
        jmp     puts                    # TAILCALL
.LBB0_1:
        push    rax
        call    abort

frobulate_for_gcc(unsigned int):                 # @frobulate_for_gcc(unsigned
int)
        cmp     edi, 3
        jae     .LBB1_1
        movsxd  rax, edi
        mov     rdi, qword ptr [8*rax + .Lswitch.table.4]
        jmp     puts                    # TAILCALL
.LBB1_1:
        push    rax
        call    abort
>From gcc-bugs-return-553818-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 03:34:17 2017
Return-Path: <gcc-bugs-return-553818-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98366 invoked by alias); 12 Feb 2017 03:34: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 96691 invoked by uid 55); 12 Feb 2017 03:32:36 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/77659] [5/6/7 Regression] internal compiler error: in gimplify_expr, at gimplify.c:8858
Date: Sun, 12 Feb 2017 03: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: 5.4.0
X-Bugzilla-Keywords:
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-77659-4-1Glieg17tb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77659-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77659-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01350.txt.bz2
Content-length: 803

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77659

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Sun Feb 12 03:31:02 2017
New Revision: 245372

URL: https://gcc.gnu.org/viewcvs?rev=245372&root=gcc&view=rev
Log:
        PR c++/77659 - ICE with new and C++14 aggregate NSDMI

        * init.c (build_new): Make backups of any CONSTRUCTORs in init.
        (build_new_1): Use replace_placeholders.
        * tree.c (replace_placeholders_t): Also track whether we've seen a
        placeholder.
        (replace_placeholders, replace_placeholders_r): Adjust.
        * cp-tree.h: Adjust.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/nsdmi-aggr6.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/init.c
    trunk/gcc/cp/tree.c
>From gcc-bugs-return-553819-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 03:42:05 2017
Return-Path: <gcc-bugs-return-553819-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107047 invoked by alias); 12 Feb 2017 03:41: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 106780 invoked by uid 55); 12 Feb 2017 03:41:22 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78908] [6/7 Regression] template instantiation with bit-field type
Date: Sun, 12 Feb 2017 03: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: 6.3.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78908-4-RYqKc8ejH7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78908-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78908-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01351.txt.bz2
Content-length: 542

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78908

--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Sun Feb 12 03:34:11 2017
New Revision: 245373

URL: https://gcc.gnu.org/viewcvs?rev=245373&root=gcc&view=rev
Log:
        PR c++/78908 - template ops and bitfields

        * tree.c (build_min_non_dep): Use unlowered_expr_type.

Added:
    branches/gcc-6-branch/gcc/testsuite/g++.dg/template/bitfield3.C
Modified:
    branches/gcc-6-branch/gcc/cp/ChangeLog
    branches/gcc-6-branch/gcc/cp/tree.c
>From gcc-bugs-return-553820-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 03:58:17 2017
Return-Path: <gcc-bugs-return-553820-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128724 invoked by alias); 12 Feb 2017 03: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 128134 invoked by uid 48); 12 Feb 2017 03:58:09 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/78908] [6/7 Regression] template instantiation with bit-field type
Date: Sun, 12 Feb 2017 03: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.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-78908-4-Zcfrdsij8M@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78908-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78908-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01352.txt.bz2
Content-length: 423

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78908

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-553821-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 03:58:45 2017
Return-Path: <gcc-bugs-return-553821-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 2550 invoked by alias); 12 Feb 2017 03:58: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 2375 invoked by uid 48); 12 Feb 2017 03:58:36 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/77659] [5/6 Regression] internal compiler error: in gimplify_expr, at gimplify.c:8858
Date: Sun, 12 Feb 2017 03: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.4.0
X-Bugzilla-Keywords:
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-77659-4-YTTzUxwcbX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77659-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77659-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01353.txt.bz2
Content-length: 602

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77659

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[5/6/7 Regression] internal |[5/6 Regression] internal
                   |compiler error: in          |compiler error: in
                   |gimplify_expr, at           |gimplify_expr, at
                   |gimplify.c:8858             |gimplify.c:8858

--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for GCC 7 so far.
>From gcc-bugs-return-553822-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 05:06:34 2017
Return-Path: <gcc-bugs-return-553822-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107076 invoked by alias); 12 Feb 2017 05:06: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 106991 invoked by uid 48); 12 Feb 2017 05:06:25 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/36566] Cannot bind packed field
Date: Sun, 12 Feb 2017 05: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.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: glisse 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-36566-4-D83Y0JiAh8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-36566-4@http.gcc.gnu.org/bugzilla/>
References: <bug-36566-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01354.txt.bz2
Content-length: 1042

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36566

--- Comment #9 from Marc Glisse <glisse at gcc dot gnu.org> ---
I was thinking that
struct __attribute__((packed)) A { int i; };
should be handled like
typedef int int_unaligned __attribute__((aligned(1)));
struct A { int_unaligned i; };
but it appears that for the aligned attribute as well we ignore the attribute
when forming pointers or references. Depending on the uses, the compiler can
print things like "int_unaligned* {aka int*}" or "ignoring attributes on
template argument" etc. It seems to me that we should not drop the
alignment-reducing attribute in those cases (it is still fine to remove it when
deducing a pass-by-copy type, as in template<class T>void f(T);int_unaligned i;
f(i); which could safely deduce T=int. Return types may be more tricky when
they end up passed as invisible reference). The C/C++ standard only consider
_Alignas/alignas to increase alignment, so I don't think changes to the case
that decreases alignment would be a conformance issue.
>From gcc-bugs-return-553823-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 09:22:59 2017
Return-Path: <gcc-bugs-return-553823-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118284 invoked by alias); 12 Feb 2017 09:22: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 118210 invoked by uid 48); 12 Feb 2017 09:22:49 -0000
From: "drraph at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79460] gcc fails to optimise out a trivial additive loop for seemingly arbitrary numbers of iterations
Date: Sun, 12 Feb 2017 09:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: drraph 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-79460-4-uzEzPtZezb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79460-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79460-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01355.txt.bz2
Content-length: 449

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79460

--- Comment #1 from Raphael C <drraph at gmail dot com> ---
After some experimentation (also carried out by Hagen von Eitzen), it seems
that any limit of at least 72 which is also a multiple of 4 causes the same
optimisation problem. That is the loop is *not* optimised out in these cases.  

Perhaps this is an example of one optimisation (SIMD vectorisation) conflicting
with another?
>From gcc-bugs-return-553824-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 09:57:00 2017
Return-Path: <gcc-bugs-return-553824-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39725 invoked by alias); 12 Feb 2017 09: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 39642 invoked by uid 48); 12 Feb 2017 09:56:54 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79462] [7 Regression] sh: Stack smashing detected when building __ashrdi3 in libgcc
Date: Sun, 12 Feb 2017 09: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: 7.0.1
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.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79462-4-Hapg9uNr3u@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79462-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79462-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01356.txt.bz2
Content-length: 728

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79462

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
What kind of comment would you like to have?  Normally we document what the
code is supposed to do, but here I can imagine just something like:
  /* We used to clear operands[4] here, which used to be a scratch register,
     but that is no longer the case.  */
which I'm afraid would just confuse rather than explain anything useful.
r235698 removed all other references to operands[4] (also without adding
comment on what it used to be).

(In reply to Kazumoto Kojima from comment #3)

> I've tested the patch with the top "make -k check" on sh4-unknown-linux-gnu
> and there are no regressions.

Thanks.
>From gcc-bugs-return-553825-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 13:53:21 2017
Return-Path: <gcc-bugs-return-553825-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110424 invoked by alias); 12 Feb 2017 13:53: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 106819 invoked by uid 48); 12 Feb 2017 13:53:17 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/79357] Doubling a single complex float  gives inefficient code
Date: Sun, 12 Feb 2017 13:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: glisse at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79357-4-EHv2TJ2D0b@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79357-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79357-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01357.txt.bz2
Content-length: 356

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79357

--- Comment #3 from Marc Glisse <glisse at gcc dot gnu.org> ---
Note that we do not generate better code for
typedef float vec __attribute__((vector_size(8)));
vec g(vec x){return 2*x;}
(we don't consider larger vector modes when lowering/expanding vector
operations, there is already a PR about that)
>From gcc-bugs-return-553826-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 14:04:39 2017
Return-Path: <gcc-bugs-return-553826-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102242 invoked by alias); 12 Feb 2017 14:04: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 102189 invoked by uid 48); 12 Feb 2017 14:04:33 -0000
From: "mark at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79448] unhelpful -Wformat-truncation=2 INT_MAX warning
Date: Sun, 12 Feb 2017 14: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.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mark 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-79448-4-g6O2kWaGWf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79448-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79448-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01358.txt.bz2
Content-length: 3941

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79448

--- Comment #3 from Mark Wielaard <mark at gcc dot gnu.org> ---
A "workaround" for the example given in the description is to just pick some
arbitrary number you know wouldn't get exceeded. e.g:

  /* To help -Wformat-truncation=2 pretend the "count"
     translation will never be bigger than 128 chars.  */
  if (snprintf (buf, len, "%.*s: %d", 128 gettext ("count"), count) >= len)
    return NULL;

But I have also some code that explicitly wants to know whether or not the size
of the formatted string will exceed what is currently available, to make sure
the output buffer gets resized. e.g.

  /* Would the output fit in the current buffer?  */
  int needed = snprintf (buf, avail, "%%mm%" PRIxFAST8, byte);
  if (needed > avail)
    ...

There is no good workaround for the second case.

Both cases seem to be solved by the proposed patch. While it still catches the
real issue also found by -Wformat-truncation=2.

But... The following produces different output depending on whether the code is
compiled with -Wformat-truncation=2 or not (-Wformat-truncation=1 also does
produce the expected output).

The idea of the code is that we snprintf into a buffer at a particular index
that is updated depending on the size of the string produced or, if the buffer
isn't big enough, returns extra space that would be needed.

This is using gcc trunk and the posted patch.

$ cat fct.c 
#include <stdio.h>
#include <string.h>
#include <inttypes.h>

struct output_data
{
  char *bufp;           // buffer to write in.
  size_t *bufcntp;      // where in the buffer to write (to be updated).
  size_t bufsize;       // total buffer size.
  const uint8_t *data;  // auxiliary data (which register, flags, etc).
};

static int
FCT_freg (struct output_data *d)
{
  size_t *bufcntp = d->bufcntp;
  size_t avail = d->bufsize - *bufcntp;
  int needed = snprintf (&d->bufp[*bufcntp], avail, "%%st(%" PRIx32 ")",
                         (uint32_t) (d->data[1] & 7));
  if ((size_t) needed > avail)
    return (size_t) needed - avail;
  *bufcntp += needed;
  return 0;
}

typedef int (*opfct_t) (struct output_data *);
static const opfct_t op1_fct = FCT_freg;

int
main (int argc, char **argv)
{
  size_t size = 64;
  char buf[size];
  size_t idx = 0;
  uint8_t data[8] = { 0, 1, 2, 3, 4, 5, 6, 7 };
  int res;
  const char *prefix = "regs: ";

  struct output_data output_data =
    {
      .bufp = buf,
      .bufsize = size,
      .bufcntp = &idx,
      .data = data,
    };

  // Add some random data to the buf for debugging.
  memset (buf, 'A', size);
  buf[size - 1] = '\0';

  memcpy (buf, prefix, strlen (prefix) + 1);
  idx = strlen (prefix);
  for (uint8_t i = 0; i < 3; i++)
    {
      data[1] = i; // Update register number to print.
      buf[idx] = 'X'; // Override expected zero char for debugging.

      printf ("Adding to buf at idx: %zd\n", idx);

      res = op1_fct (&output_data);
      if (res == 0)
        {
          printf ("buf: \"%s\"\n", buf);
          buf[idx++] = ',';
        }
      else
        printf ("Need more space: %d\n", res);
    }
  return 0;
}

$ gcc -g -O2 -o fct fct.c
$ ./fct 
Adding to buf at idx: 6
buf: "regs: %st(0)"
Adding to buf at idx: 13
buf: "regs: %st(0),%st(1)"
Adding to buf at idx: 20
buf: "regs: %st(0),%st(1),%st(2)"

$ gcc -Wformat-truncation=2 -g -O2 -o fct fct.c 
$ ./fct 
Adding to buf at idx: 6
buf: "regs: XAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
Adding to buf at idx: 13
buf: "regs: XAAAAA,XAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
Adding to buf at idx: 20
buf: "regs: XAAAAA,XAAAAA,XAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"

Note how with -Wformat-truncation=2 the idx is correctly updated, but the
characters aren't actually written into the buffer...

Dropping -O2 does produce the expected output again.
>From gcc-bugs-return-553827-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 14:07:10 2017
Return-Path: <gcc-bugs-return-553827-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113815 invoked by alias); 12 Feb 2017 14:07: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 113750 invoked by uid 48); 12 Feb 2017 14:07:05 -0000
From: "amker at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79460] gcc fails to optimise out a trivial additive loop for seemingly arbitrary numbers of iterations
Date: Sun, 12 Feb 2017 14:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amker at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79460-4-itTIeNmRRh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79460-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79460-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01359.txt.bz2
Content-length: 939

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79460

amker at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |amker at gcc dot gnu.org

--- Comment #2 from amker at gcc dot gnu.org ---
(In reply to Raphael C from comment #1)
> After some experimentation (also carried out by Hagen von Eitzen), it seems
> that any limit of at least 72 which is also a multiple of 4 causes the same
> optimisation problem. That is the loop is *not* optimised out in these
> cases.  
> 
> Perhaps this is an example of one optimisation (SIMD vectorisation)
> conflicting with another?

IMHO, this is "scev propagation" on floating point values if ffast-math? is
enabled.  We shouldn't rely on vectorizer to propagate final value, it should
be done somewhere before vectorizer.  Thanks.
>From gcc-bugs-return-553828-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 14:27:44 2017
Return-Path: <gcc-bugs-return-553828-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16280 invoked by alias); 12 Feb 2017 14: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 3539 invoked by uid 48); 12 Feb 2017 14:27:38 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79433] __has_include(<new header>) is true but #include <new header> gives #error when -std=old
Date: Sun, 12 Feb 2017 14:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: glisse at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79433-4-cHEoNycIQc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01360.txt.bz2
Content-length: 437

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79433

--- Comment #19 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #16)
> Even if we moved our headers to separate directories, it wouldn't make
> __has_include sufficient..

Could you explain why? It would be a pain for other compilers using libstdc++
to add a suitable list of directories, but I don't immediately see why that
would fail.
>From gcc-bugs-return-553829-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 14:38:10 2017
Return-Path: <gcc-bugs-return-553829-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84566 invoked by alias); 12 Feb 2017 14:38:09 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 84527 invoked by uid 48); 12 Feb 2017 14:38:04 -0000
From: "roland.illig at gmx dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79473] New: -mload-store-pairs option is not documented in invoke.texi
Date: Sun, 12 Feb 2017 14:38: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.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: roland.illig at gmx dot de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-79473-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01361.txt.bz2
Content-length: 692

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79473

            Bug ID: 79473
           Summary: -mload-store-pairs option is not documented in
                    invoke.texi
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: roland.illig at gmx dot de
  Target Milestone: ---

As a translator, I didn't know the concept before, so I had to look it up.

The explanation at
http://www.anandtech.com/show/8457/mips-strikes-back-64bit-warrior-i6400-architecture-arrives/3
looks short and easily understandable.
>From gcc-bugs-return-553830-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 14:45:30 2017
Return-Path: <gcc-bugs-return-553830-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41393 invoked by alias); 12 Feb 2017 14:45: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 33168 invoked by uid 48); 12 Feb 2017 14:45:20 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/49974] missing warning for indirectly returning reference to local/temporary
Date: Sun, 12 Feb 2017 14: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: 4.7.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: glisse at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-49974-4-ol505ZvoXv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-49974-4@http.gcc.gnu.org/bugzilla/>
References: <bug-49974-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01362.txt.bz2
Content-length: 362

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49974

--- Comment #9 from Marc Glisse <glisse at gcc dot gnu.org> ---
gcc is unable to look through dynamic static initializers, even with -flto or
-fwhole-program. If you use constexpr, you can make the program fail to
compile.
(adding your warning would be good, I just wanted to clarify what we already
have)
>From gcc-bugs-return-553831-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 16:11:00 2017
Return-Path: <gcc-bugs-return-553831-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 124015 invoked by alias); 12 Feb 2017 16:11: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 123968 invoked by uid 55); 12 Feb 2017 16:10:56 -0000
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/65542] [5/6/7 Regression] SPREAD intrinsic incorrectly accepted in initialization expressions with -stdù5
Date: Sun, 12 Feb 2017 16:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.9.1
X-Bugzilla-Keywords: accepts-invalid
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-65542-4-TuxC8g9Tu0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65542-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65542-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01363.txt.bz2
Content-length: 829

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65542

--- Comment #6 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Author: tkoenig
Date: Sun Feb 12 16:10:22 2017
New Revision: 245376

URL: https://gcc.gnu.org/viewcvs?rev=245376&root=gcc&view=rev
Log:
2017-02-12  Thomas Koenig  <tkoenig@gcc.gnu.org>

        PR fortran/65542
        * intrinsic.c (gfc_intrinsic_func_interface):  Return an error
        for -std=f95 for disallowed transformational functions in
        initialization expressions.

2017-02-12  Thomas Koenig  <tkoenig@gcc.gnu.org>

        PR fortran/65542
        * gfortran.dg/spread_init_expr_2.f90:  New test case.


Added:
    trunk/gcc/testsuite/gfortran.dg/spread_init_expr_2.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/intrinsic.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-553832-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 16:28:10 2017
Return-Path: <gcc-bugs-return-553832-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27279 invoked by alias); 12 Feb 2017 16:28: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 27247 invoked by uid 48); 12 Feb 2017 16:28:06 -0000
From: "roland.illig at gmx dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79475] New: Missing space in error message: SINK addend not a constant integer
Date: Sun, 12 Feb 2017 16:28: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.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: roland.illig at gmx dot de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-79475-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01364.txt.bz2
Content-length: 568

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79475

            Bug ID: 79475
           Summary: Missing space in error message: SINK addend not a
                    constant integer
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: roland.illig at gmx dot de
  Target Milestone: ---

fortran/openmp.c:

gfc_error ("SINK addend not a constant integer"
           "at %L", &n->where);
>From gcc-bugs-return-553833-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 17:11:02 2017
Return-Path: <gcc-bugs-return-553833-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25634 invoked by alias); 12 Feb 2017 17:11: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 25605 invoked by uid 48); 12 Feb 2017 17:10:57 -0000
From: "jak@jak-linux.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79476] New: C++ frontend ignores diagnostic pragma in macro
Date: Sun, 12 Feb 2017 17:11: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: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jak@jak-linux.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 attachments.created
Message-ID: <bug-79476-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01365.txt.bz2
Content-length: 2216

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79476

            Bug ID: 79476
           Summary: C++ frontend ignores diagnostic pragma in macro
           Product: gcc
           Version: 6.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jak@jak-linux.org
  Target Milestone: ---

Created attachment 40721
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40721&action=edit
Reproducer

We define three macros in APT:

        #define APT_IGNORE_DEPRECATED_PUSH \
                _Pragma("GCC diagnostic push") \
                _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
        #define APT_IGNORE_DEPRECATED_POP \
                _Pragma("GCC diagnostic pop")
        #define APT_IGNORE_DEPRECATED(XXX) \
                APT_IGNORE_DEPRECATED_PUSH \
                XXX \
                APT_IGNORE_DEPRECATED_POP

So you can do stuff like APT_IGNORE_DEPRECATED(f();). This does not work
correctly however. Compiling the attached file with the C compiler results in
no warnings, with the C++ compiler a warning is emitted for
APT_IGNORE_DEPRECATED(f();) but not for using push/pop macros explicitly around
the f(); in the other functions:

$ gcc -c -Wdeprecated-declarations a.c
$ g++ -c -Wdeprecated-declarations a.c
a.c: In function ‘int a()’:
a.c:15:27: warning: ‘int f()’ is deprecated [-Wdeprecated-declarations]
     APT_IGNORE_DEPRECATED(f();)
                           ^
a.c:8:3: note: in definition of macro ‘APT_IGNORE_DEPRECATED’
   XXX \
   ^~~
a.c:11:5: note: declared here
 int f() __attribute__((deprecated));
     ^
a.c:15:29: warning: ‘int f()’ is deprecated [-Wdeprecated-declarations]
     APT_IGNORE_DEPRECATED(f();)
                             ^
a.c:8:3: note: in definition of macro ‘APT_IGNORE_DEPRECATED’
   XXX \
   ^~~
a.c:11:5: note: declared here
 int f() __attribute__((deprecated));
     ^

According to cpp, all functions expand to the same code.

This used to work at some point a long time ago, but I can't remember when.
>From gcc-bugs-return-553834-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 17:28:16 2017
Return-Path: <gcc-bugs-return-553834-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44622 invoked by alias); 12 Feb 2017 17:28: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 44498 invoked by uid 48); 12 Feb 2017 17:28:11 -0000
From: "roland.illig at gmx dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug translation/79477] New: Please write code more translator-friendly
Date: Sun, 12 Feb 2017 17:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: translation
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: roland.illig at gmx dot de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-79477-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01366.txt.bz2
Content-length: 930

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79477

            Bug ID: 79477
           Summary: Please write code more translator-friendly
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: translation
          Assignee: unassigned at gcc dot gnu.org
          Reporter: roland.illig at gmx dot de
  Target Milestone: ---

As a translator, I have to translate these strings:

-mdirect-move requires -mvsx
-mupper-regs-di requires -mvsx
-mpower9-vector requires -mpower8-vector
-mpower9-dform requires -mpower9-vector

And several more of this pattern. This is both boring and error-prone.

Instead of calling:

    error ("-mpower9-dform requires -mpower9-vector");

Could you perhaps call:

    error ("%s requires %s", "-mpower9-dform", "-mpower9-vector");

This would save the translators of each language a lot of work.
>From gcc-bugs-return-553835-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 18:05:39 2017
Return-Path: <gcc-bugs-return-553835-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76547 invoked by alias); 12 Feb 2017 18:05:39 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 76417 invoked by uid 48); 12 Feb 2017 18:05:34 -0000
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79478] New: possible gimple error with gcc.dg/gimplefe-16.c
Date: Sun, 12 Feb 2017 18:05: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.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-79478-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01367.txt.bz2
Content-length: 1034

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79478

            Bug ID: 79478
           Summary: possible gimple error with gcc.dg/gimplefe-16.c
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

I just tried out gcc/testsuite/gcc.dg/gimplefe-16.c with
a valgrind version of gcc trunk. It said:

$ ~/gcc/results.245356/bin/gcc -c -fgimple gcc.dg/gimplefe-16.c
==16161== Conditional jump or move depends on uninitialised value(s)
==16161==    at 0x11233E8: can_be_stored_compactly_p (line-map.c:144)
==16161==    by 0x11233E8: get_combined_adhoc_loc(line_maps*, unsigned int,
sour
ce_range, void*) (line-map.c:186)
==16161==    by 0xC7323F: COMBINE_LOCATION_DATA (line-map.h:1020)
==16161==    by 0xC7323F: set_source_range(tree_node*, source_range)
(tree.c:142
98)
>From gcc-bugs-return-553836-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 18:47:58 2017
Return-Path: <gcc-bugs-return-553836-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128564 invoked by alias); 12 Feb 2017 18:47: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 128478 invoked by uid 48); 12 Feb 2017 18:47:52 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79396] [7 Regression] ICE (verify_flow_info failed) with -fnon-call-exceptions -O2
Date: Sun, 12 Feb 2017 18:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: janus at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79396-4-Xmq49KiLDo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79396-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79396-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01368.txt.bz2
Content-length: 611

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79396

--- Comment #5 from janus at gcc dot gnu.org ---
(In reply to Marek Polacek from comment #4)
> The preprocessed source doesn't ICE for me neither.

Huh, I guess then the problem is with me not doing a full bootstrap. I'm
configuring with:

--program-suffix=-7 --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu --with-arch=haswell --prefix=/usr --libdir=/usr/lib
--libexecdir=/usr/lib --enable-languages=c,c++,fortran --disable-bootstrap
--disable-multilib

Will check if enabling bootstrap solves the problem.
>From gcc-bugs-return-553837-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 19:33:52 2017
Return-Path: <gcc-bugs-return-553837-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87061 invoked by alias); 12 Feb 2017 19:33: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 83898 invoked by uid 48); 12 Feb 2017 19:33:47 -0000
From: "eggert at gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79479] New: -Woverflow false alarm in unreachable expression
Date: Sun, 12 Feb 2017 19:33: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: 6.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: eggert at gnu 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 attachments.created
Message-ID: <bug-79479-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01369.txt.bz2
Content-length: 1312

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79479

            Bug ID: 79479
           Summary: -Woverflow false alarm in unreachable expression
           Product: gcc
           Version: 6.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: eggert at gnu dot org
  Target Milestone: ---

Created attachment 40722
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40722&action=edit
gcc -m32 -Woverflow incorrectly complains about this

Compile the attached program with:

gcc -m32 -S too-large.c

and it responds:

too-large.c: In function ‘too_large’:
too-large.c:5:18: warning: integer overflow in expression [-Woverflow]
     return 32768 * 65536L < x;

Since the expression 32768 * 65536L cannot be executed on this platform (and
this is by design, the code tests whether the multiplication is advisable
before  trying it), the warning is a false alarm.

Bruno Haible originally reported this problem in bug-gnulib, here:

http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00041.html

As this sort of thing is common in portable code that is checking for overflow
correctly, I suggest disabling -Woverflow tests inside unreachable expressions.
>From gcc-bugs-return-553838-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 19:55:06 2017
Return-Path: <gcc-bugs-return-553838-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 2205 invoked by alias); 12 Feb 2017 19:55: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 2091 invoked by uid 48); 12 Feb 2017 19:55:00 -0000
From: "xilun0 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79364] some variadic functions with an empty struct miscompiled with C++ (at least for x64 targets)
Date: Sun, 12 Feb 2017 19: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: 6.3.0
X-Bugzilla-Keywords: ABI, wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: xilun0 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-79364-4-gSYnTSObZI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79364-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79364-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01370.txt.bz2
Content-length: 192

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79364

--- Comment #4 from Guillaume Knispel <xilun0 at gmail dot com> ---
The dup seems to be 69846
This might also be vaguely related to 52154
>From gcc-bugs-return-553839-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 20:12:17 2017
Return-Path: <gcc-bugs-return-553839-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22544 invoked by alias); 12 Feb 2017 20:12:17 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 22443 invoked by uid 48); 12 Feb 2017 20:12:12 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/78854] [F03] DTIO namelist output not working on internal unit
Date: Sun, 12 Feb 2017 20:12: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: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jvdelisle at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jvdelisle at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78854-4-eackxqDKlq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78854-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78854-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01371.txt.bz2
Content-length: 285

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78854

--- Comment #8 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Sorry for the delay here. The unit number passed to the users dtio procedure is
0, so thats clearly wrong. I will see if I can fix that and see what happens.
>From gcc-bugs-return-553840-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 20:24:43 2017
Return-Path: <gcc-bugs-return-553840-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45725 invoked by alias); 12 Feb 2017 20:24: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 45675 invoked by uid 48); 12 Feb 2017 20:24:39 -0000
From: "tulipawn at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79480] New: -O3 and -mfpu=neon produces crashing code on ARM
Date: Sun, 12 Feb 2017 20:24: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.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tulipawn 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-79480-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01372.txt.bz2
Content-length: 1358

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79480

            Bug ID: 79480
           Summary: -O3 and -mfpu=neon produces crashing code on ARM
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tulipawn at gmail dot com
  Target Milestone: ---

The gl-117 binary (source link attached) compiled with:

-mcpu=cortex-a5 -O3 -marm -fomit-frame-pointer -mfpu=neon -ftree-vectorize

crashes with a SIGBUS plus this kernel info:

 Alignment trap: not handling instruction f4620adf at [<00067c8c>]
 Unhandled fault: alignment exception (0x001) at 0x0048fcb1

Moreover, using LTO prints a warning about undefined behaviour:

main.cpp: In function ‘_ZL11myTimerFunci.isra.26’:
main.cpp:4762:29: warning: iteration 256 invokes undefined behavior
[-Waggressive-loop-optimizations]
      int h = heat [yind] [i2];
                             ^
main.cpp:4757:5: note: containing loop
     for (i2 = 0; i2 < maxfx + 1; i2 ++)
     ^

The code is rather old C++ (g++ warns: ISO C++ forbids converting a string
constant to ‘char*’) but as long as -mfpu=neon is not used it doesn't crash,
even with the above warning. Reporting just in case.
>From gcc-bugs-return-553841-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 20:31:07 2017
Return-Path: <gcc-bugs-return-553841-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58770 invoked by alias); 12 Feb 2017 20:31: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 58719 invoked by uid 48); 12 Feb 2017 20:31:03 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79480] -O3 and -mfpu=neon produces crashing code on ARM
Date: Sun, 12 Feb 2017 20: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.1
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-79480-4-71kmlRrOUX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79480-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79480-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01373.txt.bz2
Content-length: 233

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79480

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Have you tried -fsanitize=undefined or -fsanitize=address to see if there is
undefined behavior in there?
>From gcc-bugs-return-553842-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 20:39:27 2017
Return-Path: <gcc-bugs-return-553842-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127421 invoked by alias); 12 Feb 2017 20:39: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 122577 invoked by uid 48); 12 Feb 2017 20:39:21 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79396] [7 Regression] ICE (verify_flow_info failed) with -fnon-call-exceptions -O2
Date: Sun, 12 Feb 2017 20:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 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: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79396-4-LyupLv0s3f@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79396-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79396-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01374.txt.bz2
Content-length: 498

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79396

--- Comment #6 from janus at gcc dot gnu.org ---
(In reply to janus from comment #5)
> I'm configuring with:
> 
> --program-suffix=-7 --build=x86_64-linux-gnu --host=x86_64-linux-gnu
> --target=x86_64-linux-gnu --with-arch=haswell --prefix=/usr
> --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,fortran
> --disable-bootstrap --disable-multilib

The error goes away when using --enable-checking=release.
>From gcc-bugs-return-553843-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 20:41:47 2017
Return-Path: <gcc-bugs-return-553843-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 867 invoked by alias); 12 Feb 2017 20: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 774 invoked by uid 48); 12 Feb 2017 20:41:41 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79396] [7 Regression] ICE (verify_flow_info failed) with -fnon-call-exceptions -O2
Date: Sun, 12 Feb 2017 20:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79396-4-VybMWDYbRw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79396-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79396-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01375.txt.bz2
Content-length: 303

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79396

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to janus from comment #6)
> The error goes away when using --enable-checking=release.

Well that is kinda of expected as the error is only enabled with checking
enabled.
>From gcc-bugs-return-553844-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 21:28:24 2017
Return-Path: <gcc-bugs-return-553844-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74652 invoked by alias); 12 Feb 2017 21: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 74571 invoked by uid 48); 12 Feb 2017 21:28:19 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79396] [7 Regression] ICE (verify_flow_info failed) with -fnon-call-exceptions -O2
Date: Sun, 12 Feb 2017 21: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: 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: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79396-4-KqBtxAwaH2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79396-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79396-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01376.txt.bz2
Content-length: 837

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79396

--- Comment #8 from janus at gcc dot gnu.org ---
(In reply to janus from comment #5)
> Will check if enabling bootstrap solves the problem.

Actually this does not seem to be the case. I still see the error with the
following GCC build (on Ubuntu 16.10):

Target: x86_64-linux-gnu
Configured with: /home/janus/gcc/trunk/configure --program-suffix=-7
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
--prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib
--enable-languages=c,c++,fortran --disable-multilib --with-arch=haswell
Thread model: posix
gcc version 7.0.1 20170212 (experimental) [trunk revision 245376] (GCC)


Since no one can reproduce it, maybe it is Haswell-specific? I'll check if
removing "--with-arch=haswell" helps ...
>From gcc-bugs-return-553845-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 21:31:53 2017
Return-Path: <gcc-bugs-return-553845-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77290 invoked by alias); 12 Feb 2017 21:31: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 77233 invoked by uid 48); 12 Feb 2017 21:31:45 -0000
From: "tulipawn at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79480] -O3 and -mfpu=neon produces crashing code on ARM
Date: Sun, 12 Feb 2017 21: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.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tulipawn 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-79480-4-TFHAxNBO9e@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79480-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79480-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01377.txt.bz2
Content-length: 4303

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79480

--- Comment #2 from PeteVine <tulipawn at gmail dot com> ---
OK, having been built with: 

-mcpu=cortex-a5 -O3 -ffast-math -marm -fomit-frame-pointer -fipa-pta
-mfpu=neon-vfpv4 -ftree-vectorize -flto -fsanitize=undefined

doesn't crash but prints many errors, e.g.:

3ds.cpp:111:8: runtime error: load of misaligned address 0x007de59a for type
'Uint32', which requires 4 byte alignment
0x007de59a: note: pointer points here
 00 00  4d 4d 0d be 00 00 02 00  0a 00 00 00 03 00 00 00  3d 3d b9 ab 00 00 3e
3d  0a 00 00 00 03 00
              ^ 
3ds.cpp:111:8: runtime error: load of misaligned address 0x007de5aa for type
'Uint32', which requires 4 byte alignment
0x007de5aa: note: pointer points here
 00 00  3d 3d b9 ab 00 00 3e 3d  0a 00 00 00 03 00 00 00  ff af fa 00 00 00 00
a0  14 00 00 00 30 31
              ^ 
3ds.cpp:125:8: runtime error: load of misaligned address 0x007de5e1 for type
'Uint16', which requires 2 byte alignment
0x007de5e1: note: pointer points here
 00 96 96  96 20 a0 0f 00 00 00 11  00 09 00 00 00 96 96 96  30 a0 0f 00 00 00
11 00  09 00 00 00 e5
              ^ 
3ds.cpp:111:8: runtime error: load of misaligned address 0x007de5e3 for type
'Uint32', which requires 4 byte alignment
0x007de5e3: note: pointer points here
 96  96 20 a0 0f 00 00 00 11  00 09 00 00 00 96 96 96  30 a0 0f 00 00 00 11 00 
09 00 00 00 e5 e5 e5
              ^ 
3ds.cpp:125:8: runtime error: load of misaligned address 0x007de5e7 for type
'Uint16', which requires 2 byte alignment
0x007de5e7: note: pointer points here
 0f 00 00 00 11  00 09 00 00 00 96 96 96  30 a0 0f 00 00 00 11 00  09 00 00 00
e5 e5 e5 40  a0 0e 00

LIBGL: warning, gles_glBlendFuncSeparate is NULL
main.cpp:4762:29: runtime error: index 256 out of bounds for type 'int [256]'
main.cpp:4762:10: runtime error: load of address 0x00427180 with insufficient
space for an object of type 'int'
0x00427180: note: pointer points here
 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  01 00 00 00 00
00 00 00  d8 2a 61 00
              ^ 
main.cpp:4783:35: runtime error: index 65536 out of bounds for type 'unsigned
char [65536]'
main.cpp:4783:37: runtime error: store to address 0x00407180 with insufficient
space for an object of type 'unsigned char'
0x00407180: note: pointer points here
 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00
00 00 00  00 00 00 00
              ^ 
main.cpp:4784:39: runtime error: index 65537 out of bounds for type 'unsigned
char [65536]'
main.cpp:4784:41: runtime error: store to address 0x00407181 with insufficient
space for an object of type 'unsigned char'
0x00407181: note: pointer points here
 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00
00 00  00 00 00 00 00
              ^ 
main.cpp:4785:39: runtime error: index 65538 out of bounds for type 'unsigned
char [65536]'
main.cpp:4785:41: runtime error: store to address 0x00407182 with insufficient
space for an object of type 'unsigned char'
0x00407182: note: pointer points here
 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00
00  00 00 00 00 00 00
              ^ 
main.cpp:4786:39: runtime error: index 65539 out of bounds for type 'unsigned
char [65536]'
main.cpp:4786:41: runtime error: store to address 0x00407183 with insufficient
space for an object of type 'unsigned char'
0x00407183: note: pointer points here
 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00
              ^ 
main.cpp:3384:44: runtime error: downcast of address 0x00cb3488 which does not
point to an object of type 'AIObj'
0x00cb3488: note: object is of type 'DynamicObj'
 61 01 00 00  c4 2f 29 00 00 00 00 00  00 00 00 00 01 1b c8 00  00 00 80 3f 00
00 80 3f  00 00 00 3f
              ^~~~~~~~~~~
              vptr for 'DynamicObj'
main.cpp:3385:19: runtime error: member access within address 0x00cc67d8 which
does not point to an object of type 'DynamicObj'
0x00cc67d8: note: object is of type 'CExplosion'
 61 00 00 00  e4 43 29 00 00 00 00 00  00 00 00 00 00 00 00 00  cd cc cc 3d 00
00 80 3f  00 00 00 3f
              ^~~~~~~~~~~
              vptr for 'CExplosion'
>From gcc-bugs-return-553846-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 21:40:52 2017
Return-Path: <gcc-bugs-return-553846-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86624 invoked by alias); 12 Feb 2017 21:40: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 86599 invoked by uid 48); 12 Feb 2017 21:40:48 -0000
From: "tulipawn at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79480] -O3 and -mfpu=neon produces crashing code on ARM
Date: Sun, 12 Feb 2017 21:40: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.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tulipawn 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-79480-4-9OEFugWcJI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79480-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79480-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01378.txt.bz2
Content-length: 197

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79480

--- Comment #3 from PeteVine <tulipawn at gmail dot com> ---
That's the same command line that leads to an immediate crash (uninstrumented).
>From gcc-bugs-return-553847-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 21:54:51 2017
Return-Path: <gcc-bugs-return-553847-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102331 invoked by alias); 12 Feb 2017 21:54: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 102281 invoked by uid 48); 12 Feb 2017 21:54:46 -0000
From: "tulipawn at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79480] -O3 and -mfpu=neon produces crashing code on ARM
Date: Sun, 12 Feb 2017 21:54: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.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tulipawn 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-79480-4-uu0XpdWddZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79480-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79480-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01379.txt.bz2
Content-length: 1880

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79480

--- Comment #4 from PeteVine <tulipawn at gmail dot com> ---
Whereas `-fsanitize=address` aborts all the same:

==28821==ERROR: AddressSanitizer: alloc-dealloc-mismatch (operator new [] vs
operator delete) on 0xaf012100
    #0 0xb6af76fb in operator delete(void*, unsigned int)
(/usr/gcc7/lib/libasan.so.4+0xd86fb)
    #1 0xe5e53 in CLoad3DS::ProcessNextObjectChunk(CModel*, CObject*, Chunk*)
[clone .constprop.38] (/tmp/gl-117-1.3.2-src/src/gl-117+0xe5e53)
    #2 0xe6773 in CLoad3DS::ProcessNextObjectChunk(CModel*, CObject*, Chunk*)
[clone .constprop.38] (/tmp/gl-117-1.3.2-src/src/gl-117+0xe6773)
    #3 0xf8ae7 in CLoad3DS::ProcessNextChunk(CModel*, Chunk*) [clone
.constprop.30] (/tmp/gl-117-1.3.2-src/src/gl-117+0xf8ae7)
    #4 0xf8ecf in CLoad3DS::ProcessNextChunk(CModel*, Chunk*) [clone
.constprop.30] (/tmp/gl-117-1.3.2-src/src/gl-117+0xf8ecf)
    #5 0x80537 in CLoad3DS::Import3DS(CModel*, char*) [clone .constprop.29]
(/tmp/gl-117-1.3.2-src/src/gl-117+0x80537)
    #6 0x3e403 in myFirstInit() (/tmp/gl-117-1.3.2-src/src/gl-117+0x3e403)
    #7 0x1b2a7 in main (/tmp/gl-117-1.3.2-src/src/gl-117+0x1b2a7)
    #8 0xb659d66f in __libc_start_main
(/lib/arm-linux-gnueabihf/libc.so.6+0x1766f)

0xaf012100 is located 0 bytes inside of 7680-byte region
[0xaf012100,0xaf013f00)
allocated by thread T0 here:
    #0 0xb6af66cf in operator new[](unsigned int)
(/usr/gcc7/lib/libasan.so.4+0xd76cf)
    #1 0xe5a5b in CLoad3DS::ProcessNextObjectChunk(CModel*, CObject*, Chunk*)
[clone .constprop.38] (/tmp/gl-117-1.3.2-src/src/gl-117+0xe5a5b)

SUMMARY: AddressSanitizer: alloc-dealloc-mismatch
(/usr/gcc7/lib/libasan.so.4+0xd86fb) in operator delete(void*, unsigned int)
==28821==HINT: if you don't care about these errors you may set
ASAN_OPTIONS=alloc_dealloc_mismatch=0
==28821==ABORTING
>From gcc-bugs-return-553848-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 22:38:08 2017
Return-Path: <gcc-bugs-return-553848-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121562 invoked by alias); 12 Feb 2017 22:38: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 121463 invoked by uid 48); 12 Feb 2017 22:38:03 -0000
From: "wenzel@mitsuba-renderer.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79481] New: AVX512PF: unmasked gather prefetch intrinsics missing
Date: Sun, 12 Feb 2017 22:38: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.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wenzel@mitsuba-renderer.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-79481-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01380.txt.bz2
Content-length: 756

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79481

            Bug ID: 79481
           Summary: AVX512PF: unmasked gather prefetch intrinsics missing
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: wenzel@mitsuba-renderer.org
  Target Milestone: ---

The latest trunk version (and all versions before as far as I can tell) are
missing the following (unmasked) intrinsics for gather prefetches:

_mm512_prefetch_i32gather_pd
_mm512_prefetch_i64gather_pd
_mm512_prefetch_i32gather_ps
_mm512_prefetch_i64gather_ps

It would be great if these could be added.

Thanks,
Wenzel
>From gcc-bugs-return-553849-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 12 23:35:44 2017
Return-Path: <gcc-bugs-return-553849-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127635 invoked by alias); 12 Feb 2017 23:35: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 127612 invoked by uid 48); 12 Feb 2017 23:35:38 -0000
From: "mocramis at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79482] New: _Static_assert(__builtin_constant_p(x)):
Date: Sun, 12 Feb 2017 23:35: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: 6.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mocramis 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-79482-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01381.txt.bz2
Content-length: 1430

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79482

            Bug ID: 79482
           Summary: _Static_assert(__builtin_constant_p(x)):
           Product: gcc
           Version: 6.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mocramis at gmail dot com
  Target Milestone: ---

Compiling the wollowing code with gcc -O1 main.c:
===== main.c =====
int main(int argc, char *argv[]) { 
    int x = 0;

    _Static_assert(__builtin_constant_p(x) ? 1 : 2, "error");

    return 0;
}
===================

fails with the error :
  error: expression in static assertion is not constant
With optimizations disabled (O0), it compiles fine.

Also, if we replace the '?' operator by __builtin_choose_expr, the compiler
seems to behave as expected :
===== main.c =====
int main(int argc, char *argv[]) { 
    int x = 0;

    _Static_assert(__builtin_choose_expr(__builtin_constant_p(x), 1, 2),
                   "error");

    return 0;
}
===================

This compiles fine with any level of optimisation (while __builtin_choose_expr
should expect the same 'constness' as _Static assert).

Clang 3.9 compiles both versions without errors (with O3).

Tested with gcc 6.3.1.
>From gcc-bugs-return-553850-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 08:00:18 2017
Return-Path: <gcc-bugs-return-553850-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 2207 invoked by alias); 13 Feb 2017 08:00: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 1885 invoked by uid 48); 13 Feb 2017 07:59:58 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79452] Provide builtin to detect compile-time execution
Date: Mon, 13 Feb 2017 08: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:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: trippels at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79452-4-xHrwHbAHkK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79452-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79452-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01382.txt.bz2
Content-length: 496

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79452

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |trippels at gcc dot gnu.org

--- Comment #10 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Also see Daveed's proposal:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0595r0.html
>From gcc-bugs-return-553851-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 08:06:30 2017
Return-Path: <gcc-bugs-return-553851-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40019 invoked by alias); 13 Feb 2017 08:06: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 39926 invoked by uid 48); 13 Feb 2017 08:06:25 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79483] New: [7 Regression] [graphite] ICE: verify_ssa failed (error: definition in block 31 does not dominate use in block 28)
Date: Mon, 13 Feb 2017 08:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: asolokha at gmx dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-79483-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01383.txt.bz2
Content-length: 723

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79483

            Bug ID: 79483
           Summary: [7 Regression] [graphite] ICE: verify_ssa failed
                    (error: definition in block 31 does not dominate use
                    in block 28)
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

At least gcc-7.0.0-alpha20170205 and gcc-7.0.0-alpha20170212 snapshots ICE when
compiling the following snippet w/ -O2 -floop-nest-optimize:
>From gcc-bugs-return-553852-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 08:07:36 2017
Return-Path: <gcc-bugs-return-553852-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41203 invoked by alias); 13 Feb 2017 08:07: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 41147 invoked by uid 48); 13 Feb 2017 08:07:31 -0000
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79483] [7 Regression] [graphite] ICE: verify_ssa failed (error: definition in block 31 does not dominate use in block 28)
Date: Mon, 13 Feb 2017 08:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: asolokha at gmx dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79483-4-SOemOpS13g@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79483-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79483-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01384.txt.bz2
Content-length: 840

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79483

--- Comment #1 from Arseny Solokha <asolokha at gmx dot com> ---
int tc, ag;

int
yv (void)
{
  int bt[2];
  int cu;

  bt[0] = 0;
  for (tc = 0; tc < 2; ++tc)
  {
    cu = bt[tc];
    for (ag = 0; ag < 2; ++ag)
      bt[ag] = 0;
  }

  return cu;
}

% gcc-7.0.0-alpha20170212 -O2 -floop-nest-optimize -c xggwz5dp.c                
xggwz5dp.c: In function 'yv':
xggwz5dp.c:4:1: error: definition in block 31 does not dominate use in block 28
 yv (void)
 ^~
for SSA_NAME: pretmp_27 in statement:
prephitmp_25 = PHI <0(17), pretmp_27(28)>
PHI argument
pretmp_27
for PHI node
prephitmp_25 = PHI <0(17), pretmp_27(28)>
xggwz5dp.c:4:1: internal compiler error: verify_ssa failed

It looks similar to PR69675 but also reproduces w/ isl 0.18.
>From gcc-bugs-return-553853-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 08:15:02 2017
Return-Path: <gcc-bugs-return-553853-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46416 invoked by alias); 13 Feb 2017 08:15: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 46338 invoked by uid 48); 13 Feb 2017 08:14:53 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79396] [5/6/7 Regression] ICE (verify_flow_info failed) with -fnon-call-exceptions -O2
Date: Mon, 13 Feb 2017 08:15:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc cf_known_to_work short_desc everconfirmed cf_known_to_fail
Message-ID: <bug-79396-4-Afje5HB3oT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79396-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79396-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01385.txt.bz2
Content-length: 1120

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79396

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-13
                 CC|                            |marxin at gcc dot gnu.org
      Known to work|6.2.0                       |
            Summary|[7 Regression] ICE          |[5/6/7 Regression] ICE
                   |(verify_flow_info failed)   |(verify_flow_info failed)
                   |with -fnon-call-exceptions  |with -fnon-call-exceptions
                   |-O2                         |-O2
     Ever confirmed|0                           |1
      Known to fail|                            |4.9.4, 5.4.0, 6.3.0

--- Comment #9 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed with: g++ pr79396.c -fnon-call-exceptions -O2 -march=haswell -c
-std=c++11

I can see the ICE for 4.9.0+, former versions does not support -march=haswell.
>From gcc-bugs-return-553854-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 08:17:19 2017
Return-Path: <gcc-bugs-return-553854-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48937 invoked by alias); 13 Feb 2017 08:17: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 48894 invoked by uid 48); 13 Feb 2017 08:17:15 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79483] [7 Regression] [graphite] ICE: verify_ssa failed (error: definition in block 31 does not dominate use in block 28)
Date: Mon, 13 Feb 2017 08: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: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc cf_gcchost assigned_to everconfirmed
Message-ID: <bug-79483-4-RB3hJuzAwn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79483-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79483-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01386.txt.bz2
Content-length: 881

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79483

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-13
                 CC|                            |marxin at gcc dot gnu.org,
                   |                            |rguenth at gcc dot gnu.org
               Host|                            |x86_64-linux-gnu
           Assignee|unassigned at gcc dot gnu.org      |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed on trunk on x86_64-linux-gnu w/ isl 0.16, started with r241329. I'm
going to investigate.
>From gcc-bugs-return-553855-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 08:24:44 2017
Return-Path: <gcc-bugs-return-553855-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17759 invoked by alias); 13 Feb 2017 08:24: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 17708 invoked by uid 48); 13 Feb 2017 08:24:38 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79471] [5/6/7 Regression] valgrind error for gcc.c-torture/compile/limits-fnargs.c
Date: Mon, 13 Feb 2017 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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc assigned_to short_desc everconfirmed
Message-ID: <bug-79471-4-C41zaeRxut@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79471-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79471-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01387.txt.bz2
Content-length: 978

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79471

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-13
                 CC|                            |marxin at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |marxin at gcc dot gnu.org
            Summary|valgrind error for          |[5/6/7 Regression] valgrind
                   |gcc.c-torture/compile/limit |error for
                   |s-fnargs.c                  |gcc.c-torture/compile/limit
                   |                            |s-fnargs.c
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started probably with GCC 5.1.0. I've got patch for that.
>From gcc-bugs-return-553856-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 08:41:33 2017
Return-Path: <gcc-bugs-return-553856-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28040 invoked by alias); 13 Feb 2017 08:41: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 27948 invoked by uid 48); 13 Feb 2017 08:41:27 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79461] [5/6/7 Regression] [C++1z] ICE when capturing a variable in a lambda in a constexpr constructor
Date: Mon, 13 Feb 2017 08:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc short_desc everconfirmed cf_known_to_fail
Message-ID: <bug-79461-4-ieJfpruerI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79461-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79461-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01388.txt.bz2
Content-length: 1074

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79461

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-13
                 CC|                            |jason at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org
            Summary|[C++1z] ICE when capturing  |[5/6/7 Regression] [C++1z]
                   |a variable in a lambda in a |ICE when capturing a
                   |constexpr constructor       |variable in a lambda in a
                   |                            |constexpr constructor
     Ever confirmed|0                           |1
      Known to fail|                            |7.0

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r218653.
>From gcc-bugs-return-553857-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 08:49:36 2017
Return-Path: <gcc-bugs-return-553857-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61943 invoked by alias); 13 Feb 2017 08:49: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 61361 invoked by uid 48); 13 Feb 2017 08:49:31 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79481] AVX512PF: unmasked gather prefetch intrinsics missing
Date: Mon, 13 Feb 2017 08:49: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.1
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-79481-4-GpNy4chP68@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79481-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79481-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01389.txt.bz2
Content-length: 248

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79481

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The SDM (at least 325462-061) doesn't mention these.
Though: https://software.intel.com/en-us/node/523825
and LLVM has them too.
>From gcc-bugs-return-553858-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 08:56:28 2017
Return-Path: <gcc-bugs-return-553858-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76861 invoked by alias); 13 Feb 2017 08:56:28 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 76735 invoked by uid 48); 13 Feb 2017 08:56:23 -0000
From: "sergi.mateo at bsc dot es" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79484] New: Segfault when executing a test in Power8
Date: Mon, 13 Feb 2017 08:56: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: sergi.mateo at bsc dot es
X-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-79484-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01390.txt.bz2
Content-length: 1820

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79484

            Bug ID: 79484
           Summary: Segfault when executing a test in Power8
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sergi.mateo at bsc dot es
  Target Milestone: ---

Created attachment 40723
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40723&action=edit
test

Hi,

I'm getting a segfault every time that I execute a simple testcase (attached to
this ticket) compiled and linked with gfortran in a Power8 machine.
The same test, compiled and linked also with gfortran, runs fine in x86_64
architectures. I also detected that changing the optimizations flags from -O0
to -O2 makes it work.

These are the versions of gfortran I tested (none of them worked when compiling
with -O0):
* GNU Fortran (GCC) 4.9.3
* GNU Fortran (GCC) 5.1.0
* GNU Fortran (GCC) 7.0.1 20170209 (experimental)


About the test: what I'm doing is capturing the addresses of some variables in
a derived type variable and calling a Fortran subroutine with this derived type
variable as an argument (among others).
This Fortran subroutine calls to a C function, passing all the addresses
captured in the derived type variable  and also a pointer to a Fortran
subroutine as arguments (note that everything is passed by value).
Finally, this C function calls to the function passed as an argument with all
the other parameters as arguments.


About the crash: I have been debugging this application for a while and I
detected that some variables are corrupted as soon as we enter to the last
Fortran function (the one that it's called from a C function).

Thanks,

Sergi Mateo
>From gcc-bugs-return-553859-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 09:00:29 2017
Return-Path: <gcc-bugs-return-553859-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84173 invoked by alias); 13 Feb 2017 09:00: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 83688 invoked by uid 48); 13 Feb 2017 09:00:02 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79483] [7 Regression] [graphite] ICE: verify_ssa failed (error: definition in block 31 does not dominate use in block 28)
Date: Mon, 13 Feb 2017 09: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: 7.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: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-79483-4-4sEvZ2RoQY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79483-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79483-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01391.txt.bz2
Content-length: 293

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79483

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |7.0
>From gcc-bugs-return-553860-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 09:08:52 2017
Return-Path: <gcc-bugs-return-553860-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 83622 invoked by alias); 13 Feb 2017 09:08: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 83552 invoked by uid 48); 13 Feb 2017 09:08:47 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/79456] [7 regression] Extra instruction emitted after LRA patch
Date: Mon, 13 Feb 2017 09:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 7.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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority version target_milestone
Message-ID: <bug-79456-4-q1zdbwYWMX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79456-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79456-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01392.txt.bz2
Content-length: 398

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79456

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3
            Version|unknown                     |7.0
   Target Milestone|---                         |7.0
>From gcc-bugs-return-553861-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 09:09:04 2017
Return-Path: <gcc-bugs-return-553861-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84467 invoked by alias); 13 Feb 2017 09:09: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 84343 invoked by uid 48); 13 Feb 2017 09:08:59 -0000
From: "wenzel@mitsuba-renderer.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79481] AVX512PF: unmasked gather prefetch intrinsics missing
Date: Mon, 13 Feb 2017 09:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wenzel@mitsuba-renderer.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-79481-4-jkAAKUFX31@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79481-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79481-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01393.txt.bz2
Content-length: 339

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79481

--- Comment #2 from Wenzel Jakob <wenzel@mitsuba-renderer.org> ---
I agree that the docs from Intel are not particularly consistent. In this case,
the hardware has dedicated instructions for these type of gathers, so it would
make sense for a matching intrinsic to be part of GCC.
>From gcc-bugs-return-553862-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 09:09:09 2017
Return-Path: <gcc-bugs-return-553862-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85262 invoked by alias); 13 Feb 2017 09: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 84436 invoked by uid 48); 13 Feb 2017 09:09:02 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79464] [7 Regression] ICE in ipa_modify_formal_ parameters
Date: Mon, 13 Feb 2017 09:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc short_desc everconfirmed
Message-ID: <bug-79464-4-CQGrTXnbs8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79464-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79464-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01394.txt.bz2
Content-length: 992

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79464

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-13
                 CC|                            |jamborm at gcc dot gnu.org,
                   |                            |jason at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org
            Summary|new ice in                  |[7 Regression] ICE in
                   |ipa_modify_formal_          |ipa_modify_formal_
                   |parameters                  |parameters
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r245172.
>From gcc-bugs-return-553864-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 09:09:56 2017
Return-Path: <gcc-bugs-return-553864-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28166 invoked by alias); 13 Feb 2017 09:09: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 18895 invoked by uid 48); 13 Feb 2017 09:09:52 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79459] Please add enable_if and diagnose_if attributes (from clang)
Date: Mon, 13 Feb 2017 09:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_severity
Message-ID: <bug-79459-4-XQ2krzBI1w@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79459-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79459-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01396.txt.bz2
Content-length: 301

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79459

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
>From gcc-bugs-return-553863-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 09:09:19 2017
Return-Path: <gcc-bugs-return-553863-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86168 invoked by alias); 13 Feb 2017 09:09: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 85616 invoked by uid 48); 13 Feb 2017 09:09:13 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79457] [5/6 Regression] Segmentation fault in templated decltype evaluation
Date: Mon, 13 Feb 2017 09:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.3.1
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority
Message-ID: <bug-79457-4-6vVDh0X3cq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79457-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79457-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01395.txt.bz2
Content-length: 292

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79457

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
>From gcc-bugs-return-553866-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 09:10:45 2017
Return-Path: <gcc-bugs-return-553866-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30263 invoked by alias); 13 Feb 2017 09: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 30205 invoked by uid 48); 13 Feb 2017 09:10:41 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79462] [7 Regression] sh: Stack smashing detected when building __ashrdi3 in libgcc
Date: Mon, 13 Feb 2017 09: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_gcctarget priority
Message-ID: <bug-79462-4-Is4xJ2agbe@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79462-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79462-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01398.txt.bz2
Content-length: 344

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79462

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |sh
           Priority|P3                          |P4
>From gcc-bugs-return-553865-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 09:10:24 2017
Return-Path: <gcc-bugs-return-553865-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29265 invoked by alias); 13 Feb 2017 09:10:23 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 29123 invoked by uid 48); 13 Feb 2017 09:10:12 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79461] [5/6/7 Regression] [C++1z] ICE when capturing a variable in a lambda in a constexpr constructor
Date: Mon, 13 Feb 2017 09: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: 7.0
X-Bugzilla-Keywords: ice-on-invalid-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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority target_milestone
Message-ID: <bug-79461-4-LLNDqUhsKi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79461-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79461-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01397.txt.bz2
Content-length: 345

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79461

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
   Target Milestone|---                         |5.5
>From gcc-bugs-return-553867-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 09:11:16 2017
Return-Path: <gcc-bugs-return-553867-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32924 invoked by alias); 13 Feb 2017 09: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 32465 invoked by uid 48); 13 Feb 2017 09:11:11 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79463] [7 Regression] ICE for -g with ./g++.dg/cpp1y/pr79435.C
Date: Mon, 13 Feb 2017 09:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone short_desc
Message-ID: <bug-79463-4-lmTlWG2trE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79463-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79463-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01399.txt.bz2
Content-length: 496

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79463

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |7.0
            Summary|ice for -g with             |[7 Regression] ICE for -g
                   |./g++.dg/cpp1y/pr79435.C    |with
                   |                            |./g++.dg/cpp1y/pr79435.C
>From gcc-bugs-return-553868-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 09:11:23 2017
Return-Path: <gcc-bugs-return-553868-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35225 invoked by alias); 13 Feb 2017 09:11: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 33951 invoked by uid 48); 13 Feb 2017 09:11:19 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79464] [7 Regression] ICE in ipa_modify_formal_ parameters
Date: Mon, 13 Feb 2017 09:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.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: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority target_milestone
Message-ID: <bug-79464-4-DbQ4ZbL9zw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79464-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79464-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01400.txt.bz2
Content-length: 345

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79464

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
   Target Milestone|---                         |7.0
>From gcc-bugs-return-553869-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 09:12:47 2017
Return-Path: <gcc-bugs-return-553869-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38953 invoked by alias); 13 Feb 2017 09:12: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 38890 invoked by uid 48); 13 Feb 2017 09:12:42 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79471] [5/6/7 Regression] valgrind error for gcc.c-torture/compile/limits-fnargs.c
Date: Mon, 13 Feb 2017 09:12: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:
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: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority target_milestone
Message-ID: <bug-79471-4-YxZI9Cz82G@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79471-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79471-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01401.txt.bz2
Content-length: 345

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79471

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
   Target Milestone|---                         |5.5
>From gcc-bugs-return-553870-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 09:14:56 2017
Return-Path: <gcc-bugs-return-553870-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76146 invoked by alias); 13 Feb 2017 09:14: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 76083 invoked by uid 48); 13 Feb 2017 09:14:52 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79478] possible gimple error with gcc.dg/gimplefe-16.c
Date: Mon, 13 Feb 2017 09:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.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: P3
X-Bugzilla-Assigned-To: rguenth 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-79478-4-ByKZBzGKXk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79478-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79478-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01402.txt.bz2
Content-length: 583

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79478

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-02-13
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
I will have a look.
>From gcc-bugs-return-553871-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 09:19:53 2017
Return-Path: <gcc-bugs-return-553871-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92958 invoked by alias); 13 Feb 2017 09:19: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 90177 invoked by uid 48); 13 Feb 2017 09:19:46 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/79469] Feature request: provide `__builtin_assume` builtin function to allow more aggressive optimizations and to match clang
Date: Mon, 13 Feb 2017 09:19: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: enhancement
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: cc bug_severity
Message-ID: <bug-79469-4-9s0e4kdHjI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79469-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79469-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01403.txt.bz2
Content-length: 378

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79469

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marxin at gcc dot gnu.org
           Severity|normal                      |enhancement
>From gcc-bugs-return-553872-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 09:23:27 2017
Return-Path: <gcc-bugs-return-553872-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129565 invoked by alias); 13 Feb 2017 09:23: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 129492 invoked by uid 48); 13 Feb 2017 09:23:20 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79460] gcc fails to optimise out a trivial additive loop for seemingly arbitrary numbers of iterations
Date: Mon, 13 Feb 2017 09:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.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 assigned_to
Message-ID: <bug-79460-4-NjQ5fQlGOA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79460-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79460-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01404.txt.bz2
Content-length: 892

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79460

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 #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
In this case it is complete unrolling that can estimate the non-vector code to
constant fold but not the vectorized code.  OTOH it's quite excessive work done
by the unroller when doing this for large N...

And yes, SCEV final value replacement doesn't know how to handle float
reductions
(we have a different PR for that).

Let's track the unroll cost model issue here (I believe I have partial patches
for that somewhere, so mine).
>From gcc-bugs-return-553873-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 09:30:41 2017
Return-Path: <gcc-bugs-return-553873-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57838 invoked by alias); 13 Feb 2017 09:30: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 57727 invoked by uid 48); 13 Feb 2017 09:30:36 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79472] x86-64: Switch table generation fails if default case has different code
Date: Mon, 13 Feb 2017 09:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-79472-4-EKFkzq3AwQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79472-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79472-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01405.txt.bz2
Content-length: 785

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79472

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-13
                 CC|                            |hubicka at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, table generation for frobulate_for_gcc disappeared in r240221. Older
version of GCC are not able to create switch table for the first version.
>From gcc-bugs-return-553874-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 09:36:47 2017
Return-Path: <gcc-bugs-return-553874-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95005 invoked by alias); 13 Feb 2017 09:36: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 94918 invoked by uid 48); 13 Feb 2017 09:36:41 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79481] AVX512PF: unmasked gather prefetch intrinsics missing
Date: Mon, 13 Feb 2017 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: 7.0.1
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 attachments.created
Message-ID: <bug-79481-4-xegDGCRoby@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79481-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79481-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01406.txt.bz2
Content-length: 874

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79481

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-02-13
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 40724
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40724&action=edit
gcc7-pr79481.patch

Untested patch.

I think the HW doesn't, non-masked is simply masked with all ones mask.
That said, for consistency it is IMHO desirable to add this, we have non-masked
scatter prefetches already.
>From gcc-bugs-return-553875-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 09:39:33 2017
Return-Path: <gcc-bugs-return-553875-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112105 invoked by alias); 13 Feb 2017 09:39:32 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 112041 invoked by uid 48); 13 Feb 2017 09:39:28 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79472] [7 Regression] x86-64: Switch table generation fails if default case has different code
Date: Mon, 13 Feb 2017 09:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.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: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc target_milestone short_desc
Message-ID: <bug-79472-4-FGg92Biubp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79472-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79472-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01407.txt.bz2
Content-length: 743

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79472

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org
   Target Milestone|---                         |7.0
            Summary|x86-64: Switch table        |[7 Regression] x86-64:
                   |generation fails if default |Switch table generation
                   |case has different code     |fails if default case has
                   |                            |different code

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
But then it is a regression.
>From gcc-bugs-return-553876-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 09:41:11 2017
Return-Path: <gcc-bugs-return-553876-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115693 invoked by alias); 13 Feb 2017 09:41: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 115573 invoked by uid 48); 13 Feb 2017 09:41:05 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79472] [7 Regression] x86-64: Switch table generation fails if default case has different code
Date: Mon, 13 Feb 2017 09:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79472-4-3j37meQhDe@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79472-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79472-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01408.txt.bz2
Content-length: 1224

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79472

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
GCC 6:
void frobulate_for_gcc(uint32_t) (uint32_t v)
{
  const char * s;

  <bb 2>:
  switch (v_2(D)) <default: <L3>, case 0: <L7>, case 1: <L1>, case 2: <L2>>

<L1>:
  goto <bb 6> (<L7>);

<L2>:
  goto <bb 6> (<L7>);

<L3>:

  # s_1 = PHI <"foo"(2), "bar"(3), "spam"(4), 0B(5)>
<L7>:
  if (s_1 == 0B)
    goto <bb 7>;
  else
    goto <bb 8>;

  <bb 7>:
  abort ();

  <bb 8>:
  __builtin_puts (s_1);
  return;

}

GCC7:
Bailing out - no common successor to all case label target blocks found
--------------------------------
void frobulate_for_gcc(uint32_t) (uint32_t v)
{
  const char * s;

  <bb 2> [0.00%]:
  switch (v_2(D)) <default: <L9> [0.00%], case 0: <L7> [0.00%], case 1: <L1>
[0.00%], case 2: <L2> [0.00%]>

<L1> [0.00%]:
  goto <bb 5> (<L7>); [0.00%]

<L2> [0.00%]:

  # s_1 = PHI <"foo"(2), "bar"(3), "spam"(4)>
<L7> [0.00%]:
  __builtin_puts (s_1);
  return;

<L9> [0.00%]:
  abort ();

}

Looks that early jump threading transforms frobulate_for_gcc case to frobulate.
Well, I guess we can improve switchconv to handle cases, where a case contains
a noreturn call.
Honza?
>From gcc-bugs-return-553877-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 09:51:26 2017
Return-Path: <gcc-bugs-return-553877-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64582 invoked by alias); 13 Feb 2017 09:51: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 64507 invoked by uid 48); 13 Feb 2017 09:51:21 -0000
From: "yuriks at yuriks dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79472] [7 Regression] x86-64: Switch table generation fails if default case has different code
Date: Mon, 13 Feb 2017 09:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: yuriks at yuriks dot net
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79472-4-8pz2Al5I0P@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79472-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79472-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01409.txt.bz2
Content-length: 779

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79472

--- Comment #4 from Yuri Kunde Schlesner <yuriks at yuriks dot net> ---
Note that, while this particular example uses a noreturn call, the same pattern
applies to any switch where the default case is the only one which has code
that can't be transformed into a table. For example, replacing `abort();` with
`s = external_getstr();` (`const char* external_getstr();`) follows the same
pattern in all compilers (gcc 6.3 can optimize to table with the nullptr hack,
clang can always optimize, gcc 7 can't optimize at all).

Another thing I noticed is that gcc 6.3 still leaves in the nullptr check after
the switch, even though it's actually unreachable at that point. (Probably out
of scope for this bug though.)
>From gcc-bugs-return-553878-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 10:02:03 2017
Return-Path: <gcc-bugs-return-553878-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93830 invoked by alias); 13 Feb 2017 10:02: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 93659 invoked by uid 48); 13 Feb 2017 10:01:55 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79433] __has_include(<new header>) is true but #include <new header> gives #error when -std=old
Date: Mon, 13 Feb 2017 10:02: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.1
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-79433-4-uVTcScCNa0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01410.txt.bz2
Content-length: 1145

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79433

--- Comment #20 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Marc Glisse from comment #19)
> (In reply to Jonathan Wakely from comment #16)
> > Even if we moved our headers to separate directories, it wouldn't make
> > __has_include sufficient..
> 
> Could you explain why? It would be a pain for other compilers using
> libstdc++ to add a suitable list of directories, but I don't immediately see
> why that would fail.

As I wrote:

Or you could include it, and it doesn't define anything, because all its
contents are hidden behind a #if __cplusplus > 201402L check (which is what
happens with libc++). So you include the header, try to use the library types
it is supposed to define, and get a compiler error.

i.e. it wouldn't make __has_include sufficient for portable checks.

A solution that only work for GCC isn't a very good solution, because the whole
point of the feature-test macros is to have portable checks that work across
implementations. I've spoken to the libc++ maintainers and they are strongly
opposed to lots of different sub-directories.
>From gcc-bugs-return-553880-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 10:04:07 2017
Return-Path: <gcc-bugs-return-553880-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102807 invoked by alias); 13 Feb 2017 10:04: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 102502 invoked by uid 48); 13 Feb 2017 10:04:01 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/65656] __builtin_constant_p should always be constexpr
Date: Mon, 13 Feb 2017 10: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: 4.8.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: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-65656-4-BYSH7W7Y0t@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65656-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65656-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01412.txt.bz2
Content-length: 442

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65656

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mocramis at gmail dot com

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
*** Bug 79482 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-553879-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 10:04:04 2017
Return-Path: <gcc-bugs-return-553879-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102550 invoked by alias); 13 Feb 2017 10:04: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 102324 invoked by uid 48); 13 Feb 2017 10:03:58 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79482] _Static_assert(__builtin_constant_p(x)):
Date: Mon, 13 Feb 2017 10: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: 6.3.1
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-79482-4-KMCVtnsK5W@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79482-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79482-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01411.txt.bz2
Content-length: 498

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79482

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> ---
See Bug 65656

*** This bug has been marked as a duplicate of bug 65656 ***
>From gcc-bugs-return-553881-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 10:20:51 2017
Return-Path: <gcc-bugs-return-553881-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119204 invoked by alias); 13 Feb 2017 10:20: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 119105 invoked by uid 48); 13 Feb 2017 10:20:47 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/43027] #pragma rejected inside enum defn
Date: Mon, 13 Feb 2017 10: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: 4.4.2
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-43027-4-dl5gVexhkj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-43027-4@http.gcc.gnu.org/bugzilla/>
References: <bug-43027-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01413.txt.bz2
Content-length: 137

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43027

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
dup of PR 70811?
>From gcc-bugs-return-553882-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 10:21:32 2017
Return-Path: <gcc-bugs-return-553882-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120412 invoked by alias); 13 Feb 2017 10: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 120325 invoked by uid 48); 13 Feb 2017 10:21:28 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/70811] error on #pragma GCC diagnostic in an enum
Date: Mon, 13 Feb 2017 10:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: diagnostic, 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-70811-4-ioVTRLCLkc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70811-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70811-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01414.txt.bz2
Content-length: 159

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70811

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Looks similar to PR 78657 and PR 60875
>From gcc-bugs-return-553883-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 10:21:34 2017
Return-Path: <gcc-bugs-return-553883-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120749 invoked by alias); 13 Feb 2017 10: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 120371 invoked by uid 48); 13 Feb 2017 10:21:30 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/78657] Using macro with _Pragma gives error: '#pragma' is not allowed here
Date: Mon, 13 Feb 2017 10:21: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: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78657-4-gO9ApgBQb9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78657-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78657-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01415.txt.bz2
Content-length: 177

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78657

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This does seem like a dup of either PR 70811 or PR 60875
>From gcc-bugs-return-553884-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 10:22:45 2017
Return-Path: <gcc-bugs-return-553884-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126573 invoked by alias); 13 Feb 2017 10:22: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 126544 invoked by uid 48); 13 Feb 2017 10:22:41 -0000
From: "vladimir.fuka at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79485] New: Bind(c) and module procedure renaming causes wrong procedure to be called
Date: Mon, 13 Feb 2017 10:22: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: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vladimir.fuka 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-79485-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01416.txt.bz2
Content-length: 1251

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79485

            Bug ID: 79485
           Summary: Bind(c) and module procedure renaming causes wrong
                    procedure to be called
           Product: gcc
           Version: 6.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vladimir.fuka at gmail dot com
  Target Milestone: ---

Reported at
http://stackoverflow.com/questions/42189625/renaming-a-subroutine-in-a-fortran-module-when-using-iso-c-binding

Related to bug77746 and bug66695.


The following code finishes as expected in gfortran 4.8 and crashes due to
stack overflow in 6.3 (and likely alredy in 4.9) because procedure `foo` in
`fmod2` calls itself ad infinitum.

module fmod1

  contains

  subroutine foo(i)
    implicit none

    integer, intent(inout) :: i

    i=i+1

  end subroutine foo

end module fmod1

module fmod2
  use iso_c_binding
  use fmod1, only : foo_first => foo

  contains

  subroutine foo(i) bind(c)
    implicit none

    integer, intent(inout) :: i

    i=i+2
    call foo_first(i)

  end subroutine foo

end module fmod2

  use fmod2

  call foo(i)
end
>From gcc-bugs-return-553885-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 10:26:13 2017
Return-Path: <gcc-bugs-return-553885-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129852 invoked by alias); 13 Feb 2017 10: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 129807 invoked by uid 48); 13 Feb 2017 10:26:07 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79474] Multiple definitions of user-defined conversion operator cause ICE (internal compiler error)
Date: Mon, 13 Feb 2017 10: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed cf_known_to_fail
Message-ID: <bug-79474-4-zfy3HGKbkg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79474-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79474-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01417.txt.bz2
Content-length: 1816

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79474

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-13
                 CC|                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1
      Known to fail|                            |4.9.1, 5.1.0, 6.1.0, 7.0

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, GCC 4.9.x created an invalid code:

/tmp/ccMxhwLo.s: Assembler messages:
/tmp/ccMxhwLo.s:170: Error: symbol `_ZN7FunjectcvDaEv' is already defined

while as Honza fixed comdat group verifier in r221736, we report the
aforementioned error.

I guess the proper fix is to reject the code as clang does:

$ clang++ pr79474.cpp -c -std=c++14
pr79474.cpp:4:9: error: conversion function cannot be redeclared
        operator auto() { return +[](bool b, bool, bool) {return b;}; }
        ^
pr79474.cpp:3:9: note: previous declaration is here
        operator auto() { return +[](bool b) {return b;}; }
        ^
pr79474.cpp:4:34: error: cannot initialize return object of type 'auto' with an
rvalue of type 'bool (*)(bool, bool, bool)'
        operator auto() { return +[](bool b, bool, bool) {return b;}; }
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pr79474.cpp:9:17: error: no matching function for call to object of type
'Funject'
    auto bbbb = fun(true, false, true);
                ^~~
pr79474.cpp:3:9: note: conversion candidate of type 'bool (*)(bool)'
        operator auto() { return +[](bool b) {return b;}; }
        ^
3 errors generated.
>From gcc-bugs-return-553886-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 10:27:49 2017
Return-Path: <gcc-bugs-return-553886-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8594 invoked by alias); 13 Feb 2017 10:27: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 8548 invoked by uid 48); 13 Feb 2017 10:27:44 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79476] C++ frontend ignores diagnostic pragma in macro
Date: Mon, 13 Feb 2017 10: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: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79476-4-diwfLpNwQK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79476-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79476-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01418.txt.bz2
Content-length: 572

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79476

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Julian Andres Klode from comment #0)
> According to cpp, all functions expand to the same code.

The difference is where the _Pragma is handled.

> This used to work at some point a long time ago, but I can't remember when.

I don't think so. Until GCC 4.6 you couldn't use the diagnostic pragmas inside
functions, and since 4.6 it has failed to disable the warnings.

This is probably a dup of one of the bugs that PR 78657 links to.
>From gcc-bugs-return-553887-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 10:36:09 2017
Return-Path: <gcc-bugs-return-553887-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37742 invoked by alias); 13 Feb 2017 10:36: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 37676 invoked by uid 48); 13 Feb 2017 10:36:04 -0000
From: "wenzel@mitsuba-renderer.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79481] AVX512PF: unmasked gather prefetch intrinsics missing
Date: Mon, 13 Feb 2017 10: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.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wenzel@mitsuba-renderer.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-79481-4-RXnbMXdubV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79481-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79481-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01419.txt.bz2
Content-length: 426

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79481

--- Comment #4 from Wenzel Jakob <wenzel@mitsuba-renderer.org> ---
I think that's right. Clang e.g. also does this:

#define _mm512_prefetch_i32gather_ps(index, addr, scale, hint) ({\
  __builtin_ia32_gatherpfdps((__mmask16) -1, \
                             (__v16si)(__m512i)(index), (int const *)(addr), \
                             (int)(scale), (int)(hint)); })
>From gcc-bugs-return-553888-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 11:01:22 2017
Return-Path: <gcc-bugs-return-553888-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78146 invoked by alias); 13 Feb 2017 11:01: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 78070 invoked by uid 48); 13 Feb 2017 11:01:14 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79300] Wrong diagnostics position
Date: Mon, 13 Feb 2017 11: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: 7.0
X-Bugzilla-Keywords: diagnostic
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: dmalcolm at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79300-4-gR6GtezgFE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79300-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79300-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01420.txt.bz2
Content-length: 1193

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79300

--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
I've got one similar:

$ cat tc.cpp
#define MOZALLOC_THROW_BAD_ALLOC_IF_HAS_EXCEPTIONS throw(std::bad_alloc)
MOZALLOC_THROW_BAD_ALLOC_IF_HAS_EXCEPTIONS 

$ g++ tc.cpp
tc.cpp:1:52: error: expected unqualified-id before ‘throw’
 #define MOZALLOC_THROW_BAD_ALLOC_IF_HAS_EXCEPTIONS throw(std::bad_alloc)
                                                    ^
tc.cpp:2:1: note: in expansion of macro
‘MOZALLOC_THROW_BAD_ALLOC_IF_HAS_EXCEPTIONS’
 MOZALLOC_THROW_BAD_ALLOC_IF_HAS_EXCEPTIONS
 ^

With your patch for the PR, I see:

./xg++ -B. /tmp/tc.cpp
/tmp/tc.cpp:1:52: error: expected unqualified-id before ‘throw’
 #define MOZALLOC_THROW_BAD_ALLOC_IF_HAS_EXCEPTIONS throw(std::bad_alloc)
                                                    ^~~~~
/tmp/tc.cpp:2:1: note: in expansion of macro
‘MOZALLOC_THROW_BAD_ALLOC_IF_HAS_EXCEPTIONS’
 MOZALLOC_THROW_BAD_ALLOC_IF_HAS_EXCEPTIONS
 ^

and I'm wondering whether 'MOZALLOC_THROW_BAD_ALLOC_IF_HAS_EXCEPTIONS' should
be completely underlined or not? Thanks.
>From gcc-bugs-return-553889-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 11:04:58 2017
Return-Path: <gcc-bugs-return-553889-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93865 invoked by alias); 13 Feb 2017 11:04:57 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 93821 invoked by uid 48); 13 Feb 2017 11:04:53 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79475] Missing space in error message: SINK addend not a constant integer
Date: Mon, 13 Feb 2017 11: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: 7.0.1
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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-79475-4-OfiH6K1M2L@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79475-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79475-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01421.txt.bz2
Content-length: 542

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79475

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |jakub at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
This has been fixed already in r244245 a month ago.
>From gcc-bugs-return-553890-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 11:15:52 2017
Return-Path: <gcc-bugs-return-553890-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12197 invoked by alias); 13 Feb 2017 11:15: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 12106 invoked by uid 48); 13 Feb 2017 11:15:47 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79460] gcc fails to optimise out a trivial additive loop for seemingly arbitrary numbers of iterations
Date: Mon, 13 Feb 2017 11:15:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79460-4-hbfzDYxusm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79460-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79460-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01422.txt.bz2
Content-length: 1443

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79460

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> ---
(In reply to Richard Biener from comment #3)
> In this case it is complete unrolling that can estimate the non-vector code
> to constant fold but not the vectorized code.  OTOH it's quite excessive
> work done by the unroller when doing this for large N...
> 
> And yes, SCEV final value replacement doesn't know how to handle float
> reductions
> (we have a different PR for that).

Doesn't handle float reductions nor vector (integer or vector) reductions.
Even the vector ones would be useful, if e.g. to a vector every iteration adds
a VECTOR_CST or similar, then it could be still nicely optimized.

For the 202 case, it seems we are generating a scalar loop epilogue (not needed
for 200) and somehow it seems something in the vector is actually able to
figure out the floating point final value, because we get:
  # p_2 = PHI <2.01e+2(5), p_12(7)>
  # i_3 = PHI <200(5), i_13(7)>
on the scalar loop epilogue.  So if something in the vectorizer is able to
figure it out, why can't it just use that even in the case where no epilogue
loop is needed?
>From gcc-bugs-return-553891-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 11:32:06 2017
Return-Path: <gcc-bugs-return-553891-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130790 invoked by alias); 13 Feb 2017 11: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 128100 invoked by uid 48); 13 Feb 2017 11:32:01 -0000
From: "amker at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79460] gcc fails to optimise out a trivial additive loop for seemingly arbitrary numbers of iterations
Date: Mon, 13 Feb 2017 11:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amker at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79460-4-rGUY1XwnTm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79460-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79460-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01423.txt.bz2
Content-length: 1662

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79460

--- Comment #5 from amker at gcc dot gnu.org ---
(In reply to Jakub Jelinek from comment #4)
> (In reply to Richard Biener from comment #3)
> > In this case it is complete unrolling that can estimate the non-vector code
> > to constant fold but not the vectorized code.  OTOH it's quite excessive
> > work done by the unroller when doing this for large N...
> > 
> > And yes, SCEV final value replacement doesn't know how to handle float
> > reductions
> > (we have a different PR for that).
> 
> Doesn't handle float reductions nor vector (integer or vector) reductions.
> Even the vector ones would be useful, if e.g. to a vector every iteration
> adds a VECTOR_CST or similar, then it could be still nicely optimized.
Integer version should have already been supported now.

> 
> For the 202 case, it seems we are generating a scalar loop epilogue (not
> needed for 200) and somehow it seems something in the vector is actually
> able to figure out the floating point final value, because we get:
>   # p_2 = PHI <2.01e+2(5), p_12(7)>
>   # i_3 = PHI <200(5), i_13(7)>
> on the scalar loop epilogue.  So if something in the vectorizer is able to
> figure it out, why can't it just use that even in the case where no epilogue
> loop is needed?
IIUC, scev-ccp should be made query based interface so that it can be called
for each loop closed phi at different compilation stage.  It also needs to be
extended to cover basic floating point case like this.  Effectively, it need to
do the same transformation as vectorizer does now, but just thought it might be
a better place to do that.
>From gcc-bugs-return-553892-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 11:44:06 2017
Return-Path: <gcc-bugs-return-553892-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52302 invoked by alias); 13 Feb 2017 11: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 52162 invoked by uid 48); 13 Feb 2017 11:43:58 -0000
From: "amker at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79347] [7 regression] vect_do_peeling is messing up profile
Date: Mon, 13 Feb 2017 11:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amker at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: amker at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79347-4-OdXfMv5xah@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79347-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79347-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01424.txt.bz2
Content-length: 988

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79347

--- Comment #6 from amker at gcc dot gnu.org ---
(In reply to amker from comment #5)
> Testing a patch, will send for review soon if no failures.

After patching, # of mismatches in profile is improved from:

tramp3d-v4.cpp.157t.ifcvt:296
tramp3d-v4.cpp.158t.vect:1118
tramp3d-v4.cpp.159t.dce6:1118
tramp3d-v4.cpp.160t.pcom:1118
tramp3d-v4.cpp.161t.cunroll:1019
tramp3d-v4.cpp.162t.slp1:1019
tramp3d-v4.cpp.164t.ivopts:1019
tramp3d-v4.cpp.165t.lim4:1019
tramp3d-v4.cpp.166t.loopdone:1007
tramp3d-v4.cpp.167t.no_loop:31
...
tramp3d-v4.cpp.226t.optimized:1009

to:

tramp3d-v4.cpp.157t.ifcvt:296
tramp3d-v4.cpp.158t.vect:814
tramp3d-v4.cpp.159t.dce6:814
tramp3d-v4.cpp.160t.pcom:814
tramp3d-v4.cpp.161t.cunroll:723
tramp3d-v4.cpp.162t.slp1:723
tramp3d-v4.cpp.164t.ivopts:723
tramp3d-v4.cpp.165t.lim4:723
tramp3d-v4.cpp.166t.loopdone:711
tramp3d-v4.cpp.167t.no_loop:31
...
tramp3d-v4.cpp.226t.optimized:831


Will send patch for review.
>From gcc-bugs-return-553893-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 11:45:53 2017
Return-Path: <gcc-bugs-return-553893-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55081 invoked by alias); 13 Feb 2017 11:45: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 55006 invoked by uid 48); 13 Feb 2017 11:45:48 -0000
From: "prathamesh3492 at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79478] possible gimple error with gcc.dg/gimplefe-16.c
Date: Mon, 13 Feb 2017 11: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: prathamesh3492 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: cc attachments.created
Message-ID: <bug-79478-4-mqoF6DGeHc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79478-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79478-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01425.txt.bz2
Content-length: 686

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79478

prathamesh3492 at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |prathamesh3492 at gcc dot gnu.org

--- Comment #2 from prathamesh3492 at gcc dot gnu.org ---
Created attachment 40725
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40725&action=edit
Untested patch

It seems ssa-name parsing in c_parser_gimple_postfix_expression missed setting
source-range. The attached untested patch sets the source range, which fixes
the error for me.

Thanks,
Prathamesh
>From gcc-bugs-return-553894-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 11:48:44 2017
Return-Path: <gcc-bugs-return-553894-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 83080 invoked by alias); 13 Feb 2017 11:48: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 83048 invoked by uid 48); 13 Feb 2017 11:48:40 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79486] New: [7 Regression]
Date: Mon, 13 Feb 2017 11:48: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: 7.0.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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-79486-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01426.txt.bz2
Content-length: 395

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79486

            Bug ID: 79486
           Summary: [7 Regression]
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
  Target Milestone: ---
>From gcc-bugs-return-553895-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 11:50:22 2017
Return-Path: <gcc-bugs-return-553895-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87582 invoked by alias); 13 Feb 2017 11:50: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 87539 invoked by uid 48); 13 Feb 2017 11:50:16 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79486] [7 Regression] packaged_task uses wrong value category with result_of
Date: Mon, 13 Feb 2017 11: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: 7.0.1
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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cf_known_to_work target_milestone short_desc everconfirmed
Message-ID: <bug-79486-4-Xt1SqJBHZH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79486-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79486-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01427.txt.bz2
Content-length: 7515

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79486

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-02-13
      Known to work|                            |6.3.1
   Target Milestone|---                         |7.0
            Summary|[7 Regression]              |[7 Regression]
                   |                            |packaged_task uses wrong
                   |                            |value category with
                   |                            |result_of
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
#include <future>

struct F {
  int& operator()() & { return i; }
  void operator()() && = delete;
  int i = 0;
};

int main()
{
  std::packaged_task<int()> t{F{}};
  t();
}

This fails to compie, and also gives an ICE (which I'll report separately)

In file included from task.cc:1:0:
/home/jwakely/gcc/7/include/c++/7.0.1/future: In instantiation of ‘struct
std::__future_base::_Task_state<_Fn, _Alloc, _Res(_Args ...)>::_M_run(_Args&&
...) [with _Fn = F; _Alloc = std::allocator<int>; _Res = int; _Args =
{}]::<lambda>’:
/home/jwakely/gcc/7/include/c++/7.0.1/future:1419:7:   required from ‘void
std::__future_base::_Task_state<_Fn, _Alloc, _Res(_Args ...)>::_M_run(_Args&&
...) [with _Fn = F; _Alloc = std::allocator<int>; _Res = int; _Args = {}]’
task.cc:13:1:   required from here
/home/jwakely/gcc/7/include/c++/7.0.1/future:1419:66: error: no type named
‘type’ in ‘class std::result_of<F()>’
  auto __boundfn = [&] () -> typename result_of<_Fn(_Args&&...)>::type {
                                                                  ^~~~
/home/jwakely/gcc/7/include/c++/7.0.1/future: In instantiation of ‘struct
std::__future_base::_Task_state<_Fn, _Alloc, _Res(_Args
...)>::_M_run_delayed(_Args&& ...,
std::weak_ptr<std::__future_base::_State_baseV2>) [with _Fn = F; _Alloc =
std::allocator<int>; _Res = int; _Args = {}]::<lambda>’:
/home/jwakely/gcc/7/include/c++/7.0.1/future:1428:7:   required from ‘void
std::__future_base::_Task_state<_Fn, _Alloc, _Res(_Args
...)>::_M_run_delayed(_Args&& ...,
std::weak_ptr<std::__future_base::_State_baseV2>) [with _Fn = F; _Alloc =
std::allocator<int>; _Res = int; _Args = {}]’
task.cc:13:1:   required from here
/home/jwakely/gcc/7/include/c++/7.0.1/future:1428:66: error: no type named
‘type’ in ‘class std::result_of<F()>’
  auto __boundfn = [&] () -> typename result_of<_Fn(_Args&&...)>::type {
                                                                  ^~~~
/home/jwakely/gcc/7/include/c++/7.0.1/future:600:7: error: ‘static
std::__future_base::_Task_setter<_Res_ptr, _BoundFn>
std::__future_base::_S_task_setter(_Res_ptr&, _BoundFn&) [with _Res_ptr =
std::unique_ptr<std::__future_base::_Result<int>,
std::__future_base::_Result_base::_Deleter>; _BoundFn =
std::__future_base::_Task_state<_Fn, _Alloc, _Res(_Args ...)>::_M_run(_Args&&
...) [with _Fn = F; _Alloc = std::allocator<int>; _Res = int; _Args =
{}]::<lambda>; typename _Res_ptr::element_type::result_type = int]’, declared
using local type ‘std::__future_base::_Task_state<_Fn, _Alloc, _Res(_Args
...)>::_M_run(_Args&& ...) [with _Fn = F; _Alloc = std::allocator<int>; _Res =
int; _Args = {}]::<lambda>’, is used but never defined [-fpermissive]
       _S_task_setter(_Res_ptr& __ptr, _BoundFn& __call)
       ^~~~~~~~~~~~~~
/home/jwakely/gcc/7/include/c++/7.0.1/future:600:7: error: ‘static
std::__future_base::_Task_setter<_Res_ptr, _BoundFn>
std::__future_base::_S_task_setter(_Res_ptr&, _BoundFn&) [with _Res_ptr =
std::unique_ptr<std::__future_base::_Result<int>,
std::__future_base::_Result_base::_Deleter>; _BoundFn =
std::__future_base::_Task_state<_Fn, _Alloc, _Res(_Args
...)>::_M_run_delayed(_Args&& ...,
std::weak_ptr<std::__future_base::_State_baseV2>) [with _Fn = F; _Alloc =
std::allocator<int>; _Res = int; _Args = {}]::<lambda>; typename
_Res_ptr::element_type::result_type = int]’, declared using local type
‘std::__future_base::_Task_state<_Fn, _Alloc, _Res(_Args
...)>::_M_run_delayed(_Args&& ...,
std::weak_ptr<std::__future_base::_State_baseV2>) [with _Fn = F; _Alloc =
std::allocator<int>; _Res = int; _Args = {}]::<lambda>’, is used but never
defined [-fpermissive]
/home/jwakely/gcc/7/include/c++/7.0.1/future: In instantiation of ‘static
std::__future_base::_Task_setter<_Res_ptr, _BoundFn>
std::__future_base::_S_task_setter(_Res_ptr&, _BoundFn&) [with _Res_ptr =
std::unique_ptr<std::__future_base::_Result<int>,
std::__future_base::_Result_base::_Deleter>; _BoundFn =
std::__future_base::_Task_state<_Fn, _Alloc, _Res(_Args
...)>::_M_run_delayed(_Args&& ...,
std::weak_ptr<std::__future_base::_State_baseV2>) [with _Fn = F; _Alloc =
std::allocator<int>; _Res = int; _Args = {}]::<lambda>]’:
/home/jwakely/gcc/7/include/c++/7.0.1/future:1426:7:   required from here
/home/jwakely/gcc/7/include/c++/7.0.1/future:600:7: internal compiler error:
Segmentation fault
0xdc0ddf crash_signal
        /home/jwakely/src/gcc/gcc/gcc/toplev.c:333
0x84c9b6 contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
        /home/jwakely/src/gcc/gcc/gcc/tree.h:3173
0x84c9b6 write_closure_type_name
        /home/jwakely/src/gcc/gcc/gcc/cp/mangle.c:1639
0x84c9b6 write_unqualified_name
        /home/jwakely/src/gcc/gcc/gcc/cp/mangle.c:1383
0x852717 write_name
        /home/jwakely/src/gcc/gcc/gcc/cp/mangle.c:937
0x8525bc write_local_name
        /home/jwakely/src/gcc/gcc/gcc/cp/mangle.c:2035
0x8525bc write_name
        /home/jwakely/src/gcc/gcc/gcc/cp/mangle.c:964
0x853209 write_class_enum_type
        /home/jwakely/src/gcc/gcc/gcc/cp/mangle.c:2777
0x853209 write_type
        /home/jwakely/src/gcc/gcc/gcc/cp/mangle.c:2195
0x8520e8 write_template_args
        /home/jwakely/src/gcc/gcc/gcc/cp/mangle.c:2806
0x85880d write_nested_name
        /home/jwakely/src/gcc/gcc/gcc/cp/mangle.c:1063
0x852457 write_name
        /home/jwakely/src/gcc/gcc/gcc/cp/mangle.c:976
0x8570d6 write_encoding
        /home/jwakely/src/gcc/gcc/gcc/cp/mangle.c:825
0x85915c mangle_decl_string
        /home/jwakely/src/gcc/gcc/gcc/cp/mangle.c:3757
0x8593ab get_mangled_id
        /home/jwakely/src/gcc/gcc/gcc/cp/mangle.c:3779
0x8593ab mangle_decl(tree_node*)
        /home/jwakely/src/gcc/gcc/gcc/cp/mangle.c:3849
0x1067f40 decl_assembler_name(tree_node*)
        /home/jwakely/src/gcc/gcc/gcc/tree.c:671
0x9aee1c symbol_table::insert_to_assembler_name_hash(symtab_node*, bool)
        /home/jwakely/src/gcc/gcc/gcc/symtab.c:171
0x9b4e3f cgraph_node::create(tree_node*)
        /home/jwakely/src/gcc/gcc/gcc/cgraph.c:511
0x9b4c90 cgraph_node::get_create(tree_node*)
        /home/jwakely/src/gcc/gcc/gcc/cgraph.c:533
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
>From gcc-bugs-return-553896-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 11:52:04 2017
Return-Path: <gcc-bugs-return-553896-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89802 invoked by alias); 13 Feb 2017 11:52: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 89752 invoked by uid 48); 13 Feb 2017 11:51:58 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79433] __has_include(<new header>) is true but #include <new header> gives #error when -std=old
Date: Mon, 13 Feb 2017 11:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: glisse at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79433-4-8Usd3dHfnn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79433-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01428.txt.bz2
Content-length: 881

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79433

--- Comment #21 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #20)
> A solution that only work for GCC isn't a very good solution, because the
> whole point of the feature-test macros is to have portable checks that work
> across implementations. I've spoken to the libc++ maintainers and they are
> strongly opposed to lots of different sub-directories.

Ah, so it would work, but the issue is that libc++ refuses to do the same.
Since Microsoft is ignoring SD6 as well, it makes this portability mechanism
useless. Ok, thanks. I guess the pragma idea is not bad. (in principle we could
use multiple subdirectories in libstdc++ and let libc++ use pragmas, but using
the pragmas is probably easier for libstdc++ as well)

(I didn't find a corresponding PR in llvm's bugzilla)
>From gcc-bugs-return-553897-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 12:29:23 2017
Return-Path: <gcc-bugs-return-553897-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90087 invoked by alias); 13 Feb 2017 12:29: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 89998 invoked by uid 48); 13 Feb 2017 12:29:18 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79472] [7 Regression] x86-64: Switch table generation fails if default case has different code
Date: Mon, 13 Feb 2017 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: 7.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: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79472-4-v8BwXBs9sA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79472-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79472-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01429.txt.bz2
Content-length: 304

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79472

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
We can indeed ignore what the default: case does, but only if all the other
case labels form a contiguous range (i.e. there are no gaps in which the
default would need to be supplied).
>From gcc-bugs-return-553899-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 12:31:44 2017
Return-Path: <gcc-bugs-return-553899-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99643 invoked by alias); 13 Feb 2017 12:31: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 99539 invoked by uid 48); 13 Feb 2017 12:31:33 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/61225] [5/6/7 Regression] Several new failures after r210458 on x86_64-*-* with -m32
Date: Mon, 13 Feb 2017 12:31: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: 5.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak 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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-61225-4-SeAz9dPXDR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61225-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61225-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01431.txt.bz2
Content-length: 2046

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61225

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu.org

--- Comment #31 from Uroš Bizjak <ubizjak at gmail dot com> ---
What I find interesting here is, that following testcase:

--cut here--
void foo (void *);

#define F(T, OP, OPN) \
T *                     \
f##T##OPN (T *x, T y)   \
{                       \
  *x OP y;              \
  if (!*x)              \
    foo (x);            \
  return x;             \
}

#define G(T) \
F (T, |=, or)           \
F (T, ^=, xor)

G (int)
--cut here--

in fact also fails on x86_64 (-Os, -O2):

fintxor:
.LFB1:
        movl    (%rdi), %eax
        pushq   %rbx
.LCFI2:
        movq    %rdi, %rbx
        movl    %eax, %edx
        xorl    %esi, %edx
        cmpl    %esi, %eax
        movl    %edx, (%rdi)
        jne     .L6
        call    foo
.L6:
        movq    %rbx, %rax
        popq    %rbx
.LCFI3:
        ret

The failure is not detected, since the test scans only for TEST insn, not also
for CMP.

The difference between these two functions is already in the .optimized tree
dump between fintor (good):

fintor (int * x, int y)
{
  int _1;
  int _2;

  <bb 2> [100.00%]:
  _1 = *x_5(D);
  _2 = _1 | y_6(D);
  *x_5(D) = _2;
  if (_2 == 0)
    goto <bb 3>; [36.64%]
  else
    goto <bb 4>; [63.36%]

  <bb 3> [36.64%]:
  foo (x_5(D));

  <bb 4> [100.00%]:
  return x_5(D);

}

and fintxor (bad):

fintxor (int * x, int y)
{
  int _1;
  int _2;

  <bb 2> [100.00%]:
  _1 = *x_5(D);
  _2 = _1 ^ y_6(D);
  *x_5(D) = _2;
  if (_1 == y_6(D))
    goto <bb 3>; [36.64%]
  else
    goto <bb 4>; [63.36%]

  <bb 3> [36.64%]:
  foo (x_5(D));

  <bb 4> [100.00%]:
  return x_5(D);

}

Consequently, fintxor function is not expanded with memory operand, and things
remain unoptimized from the expand onward.
>From gcc-bugs-return-553898-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 12:31:18 2017
Return-Path: <gcc-bugs-return-553898-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92024 invoked by alias); 13 Feb 2017 12:31: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 91850 invoked by uid 48); 13 Feb 2017 12:31:09 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Mon, 13 Feb 2017 12:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.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-79341-4-HElNyI9kNN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01430.txt.bz2
Content-length: 216

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79341

--- Comment #51 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
With r245382 plus the patch from comment 43, only the failure in null-deref-1.c
is left.
>From gcc-bugs-return-553900-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 12:55:07 2017
Return-Path: <gcc-bugs-return-553900-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30634 invoked by alias); 13 Feb 2017 12: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 30581 invoked by uid 48); 13 Feb 2017 12:55:02 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79483] [7 Regression] [graphite] ICE: verify_ssa failed (error: definition in block 31 does not dominate use in block 28)
Date: Mon, 13 Feb 2017 12:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79483-4-P6eW73Zznh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79483-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79483-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01432.txt.bz2
Content-length: 249

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79483

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
It's gone with ISL 0.18 (and w/ --param graphite-min-loops-per-function=1)
because it does not process any transformation.
>From gcc-bugs-return-553901-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 13:05:49 2017
Return-Path: <gcc-bugs-return-553901-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80182 invoked by alias); 13 Feb 2017 13:05: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 80088 invoked by uid 48); 13 Feb 2017 13:05:44 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79471] valgrind error for gcc.c-torture/compile/limits-fnargs.c
Date: Mon, 13 Feb 2017 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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc cf_known_to_fail
Message-ID: <bug-79471-4-YRr1SeeQMU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79471-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79471-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01433.txt.bz2
Content-length: 730

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79471

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[5/6/7 Regression] valgrind |valgrind error for
                   |error for                   |gcc.c-torture/compile/limit
                   |gcc.c-torture/compile/limit |s-fnargs.c
                   |s-fnargs.c                  |
      Known to fail|                            |4.9.4, 5.4.0, 6.3.0, 7.0

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Well, I'm removing Regression as alloca lives in the code probably from very
beginning.
>From gcc-bugs-return-553902-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 13:13:58 2017
Return-Path: <gcc-bugs-return-553902-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92891 invoked by alias); 13 Feb 2017 13:13:58 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 92847 invoked by uid 55); 13 Feb 2017 13:13:54 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79471] valgrind error for gcc.c-torture/compile/limits-fnargs.c
Date: Mon, 13 Feb 2017 13:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79471-4-Lzb9Z6AX0n@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79471-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79471-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01434.txt.bz2
Content-length: 500

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79471

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Mon Feb 13 13:13:21 2017
New Revision: 245385

URL: https://gcc.gnu.org/viewcvs?rev=245385&root=gcc&view=rev
Log:
Replace XALLOCAVEC with XCNEWVEC (PR c/79471).

2017-02-13  Martin Liska  <mliska@suse.cz>

        PR c/79471
        * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/calls.c
>From gcc-bugs-return-553904-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 13:14:18 2017
Return-Path: <gcc-bugs-return-553904-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94479 invoked by alias); 13 Feb 2017 13:14: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 94256 invoked by uid 48); 13 Feb 2017 13:14:13 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79471] valgrind error for gcc.c-torture/compile/limits-fnargs.c
Date: Mon, 13 Feb 2017 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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_known_to_work cf_known_to_fail
Message-ID: <bug-79471-4-Uw5pXkEQuP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79471-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79471-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01436.txt.bz2
Content-length: 439

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79471

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |7.0
      Known to fail|7.0                         |

--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed on trunk so far.
>From gcc-bugs-return-553903-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 13:14:07 2017
Return-Path: <gcc-bugs-return-553903-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93667 invoked by alias); 13 Feb 2017 13:14: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 93320 invoked by uid 55); 13 Feb 2017 13:14:02 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79486] [7 Regression] packaged_task uses wrong value category with result_of
Date: Mon, 13 Feb 2017 13: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: 7.0.1
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79486-4-k7pMifDMOw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79486-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79486-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01435.txt.bz2
Content-length: 734

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79486

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Mon Feb 13 13:13:29 2017
New Revision: 245386

URL: https://gcc.gnu.org/viewcvs?rev=245386&root=gcc&view=rev
Log:
PR libstdc++/79486 use lvalues in result_of expressions

        PR libstdc++/79486
        * include/std/future (__future_base::_Task_state::_M_run)
        (__future_base::_Task_state::_M_run_delayed): Use lvalue types in
        result_of expressions.
        * testsuite/30_threads/packaged_task/79486.cc: New.

Added:
    trunk/libstdc++-v3/testsuite/30_threads/packaged_task/79486.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/std/future
>From gcc-bugs-return-553905-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 13:36:01 2017
Return-Path: <gcc-bugs-return-553905-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7577 invoked by alias); 13 Feb 2017 13: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 7475 invoked by uid 48); 13 Feb 2017 13:35:56 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79487] New: Invalid _Decimal32 comparison on s390x
Date: Mon, 13 Feb 2017 13:36: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.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcchost cf_gcctarget
Message-ID: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01437.txt.bz2
Content-length: 3804

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79487

            Bug ID: 79487
           Summary: Invalid _Decimal32 comparison on s390x
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vogt at linux dot vnet.ibm.com
                CC: jakub at gcc dot gnu.org, krebbel at gcc dot gnu.org
  Target Milestone: ---
              Host: s390x
            Target: s390x

This is a finding from an Asan test case failure reported here:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79341
It may be a bug in the middle end or the backend.

The failing program is

--
extern _Decimal32 bar(_Decimal32 x); 

void foo(void) 
{ 
  int i; 

#if 0 /*!!!*/ 
  volatile 
#endif 
    _Decimal32 min = (-0x7fffffffffffffffL - 1L); 
  volatile _Decimal32 tem = min; 

  for (i = 0; i < 999999; i++) 
    { 
      tem -= (_Decimal32)1.0; 
      if (min != tem) 
        { 
          bar(tem); 
          break; 
        } 
    } 
} 
--

When compiled with -O3 -march=zEC12, with the "volatile" disabled, the
comparison "min != tem" is true right in the first pass of the loop, but bar()
is called actually with the a value that is identical to "(_Decimal32)min".

One cause of this is that although s390x supports 32-Bit decimal floating point
in hardware, there are no instructions to do arithmetics or comparisons on such
values.  The 32 bit values need to be converted to 64 bit format for
comparisons.  Gcc pre-calculates the constant (7fffffffffffffffL - 1L) and puts
it into the literal pool as 64 bit quantity.  At the same time, "tem" is kept
in memory as a 32 bit quantity, loaded to a register, extended to 64 bits and
then compared to the value from the literal pool.  Since the latter was not
rounded, the comparison is always true.  Making "min" volatile circumvents the
problem.

This is a (slightly shortened) diff of the assembly code with the "volatile"
enabled (-, good) and disabled (+, bad):

--
 foo:
        ldgr    %f4,%r15
        larl    %r5,.L8
        lay     %r15,-168(%r15)
        le      %f0,.L9-.L8(%r5)
-       ste     %f0,160(%r15)
+       ste     %f0,164(%r15)
        iilf    %r1,999999
-       l       %r2,160(%r15)
-       st      %r2,164(%r15)
 .L3:
        le      %f0,164(%r15)
        ldetr   %f0,%f0,0         <-- extend tem to 64 bits
        ld      %f2,.L10-.L8(%r5)
        sdtr    %f0,%f0,%f2       <-- subtract 1 from tem
+       ld      %f2,.L11-.L8(%r5) <-- min: 64-bit from literal pool
        ledtr   %f0,0,%f0,0       <-- round tem to 32 bits
        ste     %f0,164(%r15)     <-- store a copy to stack
-       le      %f2,160(%r15)     <-- min: 32-bit from stack
        le      %f0,164(%r15)     <-- load tem from stack (32 bits)
-       ldetr   %f2,%f2,0         <-- min: extend to 64 bits
        ldetr   %f0,%f0,0         <-- tem: extend to 64 bits
-       cdtr    %f2,%f0           <-- compare min and tem (64 bits)
+       cdtr    %f0,%f2
        jne     .L7
        brct    %r1,.L3
        lgdr    %r15,%f4
        br      %r14
 .L7:
        le      %f0,164(%r15)
        lgdr    %r15,%f4
        jg      bar
...
 .L8:
+.L11:
+       .long   -297458820   <--- (-7fffffffffffffffL - 1L) as 64 bit value
+       .long   -2090241034  <-/
 .L10:
        .long   573833216
        .long   16
 .L9:
        .long   -283865614   <--- (-7fffffffffffffffL - 1L) as 32 bit value
--

Somewhere, Gcc is using 64 bit precision for _Decimal32 where it should not. 
Note that this does not happen on Power which has similar DFP instructions. 
Gcc does not store the constant with 64 bit precision in the literal pool
there.
>From gcc-bugs-return-553906-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 13:37:09 2017
Return-Path: <gcc-bugs-return-553906-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11689 invoked by alias); 13 Feb 2017 13:37:09 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 9143 invoked by uid 48); 13 Feb 2017 13:37:04 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Mon, 13 Feb 2017 13:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.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: see_also
Message-ID: <bug-79341-4-fS7VRiiEPK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01438.txt.bz2
Content-length: 562

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79341

Dominik Vogt <vogt at linux dot vnet.ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=79487

--- Comment #52 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
New bug report for the _Decimal32 problem:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79487
>From gcc-bugs-return-553907-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 13:38:22 2017
Return-Path: <gcc-bugs-return-553907-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22829 invoked by alias); 13 Feb 2017 13:38: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 22767 invoked by uid 48); 13 Feb 2017 13:38:18 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79488] New: [7 Regression] ICE from lambda that has invalid return type
Date: Mon, 13 Feb 2017 13:38: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.0.1
X-Bugzilla-Keywords: ice-on-invalid-code
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-79488-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01439.txt.bz2
Content-length: 4013

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79488

            Bug ID: 79488
           Summary: [7 Regression] ICE from lambda that has invalid return
                    type
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
  Target Milestone: ---

This is reduced from Bug 79486, where a bug in the libstdc++ code could trigger
this ICE.

Without the weakref or the 'virtual' keyword there's no ICE.


int f();
static int g __attribute__((__weakref__("f")));

template <typename Fn> struct res {
  static Fn val();
  using type = decltype(val()());
};

template <typename Fn> struct A {
  template <typename T> void set_result(T) {}

  virtual void run() {
    auto boundfn = []() -> typename res<Fn>::type{};
    set_result(boundfn);
  }
};

struct F {
  void operator()() &;
};

A<F> t;


r.cc: In instantiation of 'struct res<F>':
r.cc:13:46:   required from 'struct A<Fn>::run() [with Fn = F]::<lambda>'
r.cc:13:10:   required from 'void A<Fn>::run() [with Fn = F]'
r.cc:22:7:   required from here
r.cc:6:30: error: no match for call to '(F) ()'
   using type = decltype(val()());
                         ~~~~~^~
r.cc:19:8: note: candidate: void F::operator()() & <near match>
   void operator()() &;
        ^~~~~~~~
r.cc:19:8: note:   passing 'F' as 'this' argument discards qualifiers
r.cc:10:30: error: 'void A<Fn>::set_result(T) [with T = A<Fn>::run() [with Fn =
F]::<lambda>; Fn = F]', declared using local type 'A<Fn>::run() [with Fn =
F]::<lambda>', is used but never defined [-fpermissive]
   template <typename T> void set_result(T) {}
                              ^~~~~~~~~~
r.cc: In instantiation of 'void A<Fn>::set_result(T) [with T = A<Fn>::run()
[with Fn = F]::<lambda>; Fn = F]':
r.cc:12:16:   required from here
r.cc:10:30: internal compiler error: Segmentation fault
0xdbb6df crash_signal
        /home/jwakely/src/gcc/gcc/gcc/toplev.c:337
0x845d56 contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
        /home/jwakely/src/gcc/gcc/gcc/tree.h:3177
0x845d56 write_closure_type_name
        /home/jwakely/src/gcc/gcc/gcc/cp/mangle.c:1639
0x845d56 write_unqualified_name
        /home/jwakely/src/gcc/gcc/gcc/cp/mangle.c:1383
0x84bab7 write_name
        /home/jwakely/src/gcc/gcc/gcc/cp/mangle.c:937
0x84b95c write_local_name
        /home/jwakely/src/gcc/gcc/gcc/cp/mangle.c:2035
0x84b95c write_name
        /home/jwakely/src/gcc/gcc/gcc/cp/mangle.c:964
0x84c5a9 write_class_enum_type
        /home/jwakely/src/gcc/gcc/gcc/cp/mangle.c:2777
0x84c5a9 write_type
        /home/jwakely/src/gcc/gcc/gcc/cp/mangle.c:2195
0x84b488 write_template_args
        /home/jwakely/src/gcc/gcc/gcc/cp/mangle.c:2806
0x851bad write_nested_name
        /home/jwakely/src/gcc/gcc/gcc/cp/mangle.c:1063
0x84b7f7 write_name
        /home/jwakely/src/gcc/gcc/gcc/cp/mangle.c:976
0x850476 write_encoding
        /home/jwakely/src/gcc/gcc/gcc/cp/mangle.c:825
0x8524fc mangle_decl_string
        /home/jwakely/src/gcc/gcc/gcc/cp/mangle.c:3757
0x85274b get_mangled_id
        /home/jwakely/src/gcc/gcc/gcc/cp/mangle.c:3779
0x85274b mangle_decl(tree_node*)
        /home/jwakely/src/gcc/gcc/gcc/cp/mangle.c:3849
0x1063490 decl_assembler_name(tree_node*)
        /home/jwakely/src/gcc/gcc/gcc/tree.c:671
0x9a836c symbol_table::insert_to_assembler_name_hash(symtab_node*, bool)
        /home/jwakely/src/gcc/gcc/gcc/symtab.c:171
0x9ae38f cgraph_node::create(tree_node*)
        /home/jwakely/src/gcc/gcc/gcc/cgraph.c:511
0x9ae1e0 cgraph_node::get_create(tree_node*)
        /home/jwakely/src/gcc/gcc/gcc/cgraph.c:533
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-553908-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 13:40:40 2017
Return-Path: <gcc-bugs-return-553908-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25586 invoked by alias); 13 Feb 2017 13:40: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 25535 invoked by uid 48); 13 Feb 2017 13:40:35 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79488] [7 Regression] ICE from lambda that has invalid return type
Date: Mon, 13 Feb 2017 13: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: 7.0.1
X-Bugzilla-Keywords: ice-on-invalid-code
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: cf_known_to_work
Message-ID: <bug-79488-4-bua4BjluJX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79488-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79488-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01440.txt.bz2
Content-length: 1303

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79488

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |6.3.1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
GCC 5 and 6 stop with "confused by earlier errors, bailing out" instead:


r.cc: In instantiation of 'struct res<F>':
r.cc:13:46:   required from 'struct A<Fn>::run() [with Fn = F]::<lambda>'
r.cc:13:51:   required from 'void A<Fn>::run() [with Fn = F]'
r.cc:22:7:   required from here
r.cc:6:30: error: no match for call to '(F) ()'
   using type = decltype(val()());
                         ~~~~~^~
r.cc:19:8: note: candidate: void F::operator()() & <near match>
   void operator()() &;
        ^~~~~~~~
r.cc:19:8: note:   passing 'F' as 'this' argument discards qualifiers
r.cc:10:30: error: 'void A<Fn>::set_result(T) [with T = A<Fn>::run() [with Fn =
F]::<lambda>; Fn = F]', declared using local type 'A<Fn>::run() [with Fn =
F]::<lambda>', is used but never defined [-fpermissive]
   template <typename T> void set_result(T) {}
                              ^~~~~~~~~~
r.cc:10: confused by earlier errors, bailing out
>From gcc-bugs-return-553909-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 13:41:18 2017
Return-Path: <gcc-bugs-return-553909-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29030 invoked by alias); 13 Feb 2017 13:41: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 28762 invoked by uid 48); 13 Feb 2017 13:41:13 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79486] [7 Regression] packaged_task uses wrong value category with result_of
Date: Mon, 13 Feb 2017 13: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: 7.0.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79486-4-MNOteyuNnR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79486-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79486-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01441.txt.bz2
Content-length: 478

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79486

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The library regression is fixed.

The ICE is now Bug 79488.
>From gcc-bugs-return-553910-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 13:44:32 2017
Return-Path: <gcc-bugs-return-553910-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46496 invoked by alias); 13 Feb 2017 13:44: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 41987 invoked by uid 48); 13 Feb 2017 13:44:26 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79487] Invalid _Decimal32 comparison on s390x
Date: Mon, 13 Feb 2017 13: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79487-4-Qf5Irl5usY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01442.txt.bz2
Content-length: 411

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79487

--- Comment #1 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
It seems that the pass ccp1 eliminates all information about the type of "min"?

Before ccp1:

  _Decimal32 min;
  ...
  if (min_8 != tem.1_3)

After ccp1:

  if (tem.1_3 != -9223372036854775808)

(Or is there some hidden information about the type or perecision of the
constant?)
>From gcc-bugs-return-553911-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 14:18:56 2017
Return-Path: <gcc-bugs-return-553911-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26951 invoked by alias); 13 Feb 2017 14:18: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 26745 invoked by uid 48); 13 Feb 2017 14:18:51 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79479] -Woverflow false alarm in unreachable expression
Date: Mon, 13 Feb 2017 14: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
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: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-79479-4-w0KrBWM7Aj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79479-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79479-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01443.txt.bz2
Content-length: 790

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79479

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-13
                 CC|                            |mpolacek at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed.

Note we don't warn for "0 ? 32768 * 65536L < x : 1", because
c_parser_conditional_expression sets c_inhibit_evaluation_warnings if the cond
is truthvalue_false_node.  So I think we should do the same in
c_parser_if_statement.
>From gcc-bugs-return-553912-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 14:24:44 2017
Return-Path: <gcc-bugs-return-553912-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35597 invoked by alias); 13 Feb 2017 14: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 35145 invoked by uid 48); 13 Feb 2017 14:24:38 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79489] New: Strange static branch prediction for n != 0
Date: Mon, 13 Feb 2017 14:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: glisse 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-79489-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01444.txt.bz2
Content-length: 1347

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79489

            Bug ID: 79489
           Summary: Strange static branch prediction for n != 0
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: glisse at gcc dot gnu.org
  Target Milestone: ---

http://stackoverflow.com/q/41880779/1918193

extern void foo();
extern void bar();

int some_func(int n)
{
    if (n) {
        foo();
    }
    else {
        bar();
    }
    return 0;
}

gcc's profile_estimate guesses (DS theory heuristics) that n is 0 with
probability 54%. This seems strange, as other parts of the compiler predict ==
as more likely false (at least for types with precision > 1).

Also, we may want to document somewhere that gcc tends to consider the "else"
branch as more likely (or at least does not particularly favor the "then"
branch), since there is quite a bit of information on the web that recommends
writing conditions the other way around. But the heuristics are complicated
enough that it is hard to come up with a statement that is true without being
uselessly vague.

(I won't be surprised if this ends up as invalid or wontfix, but it felt worth
forwarding)
>From gcc-bugs-return-553913-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 14:32:06 2017
Return-Path: <gcc-bugs-return-553913-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73380 invoked by alias); 13 Feb 2017 14: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 73296 invoked by uid 48); 13 Feb 2017 14:32:00 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66135] trailing return type error for generic lambda
Date: Mon, 13 Feb 2017 14: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: 5.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: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-66135-4-VaWpMdNeNJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66135-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66135-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01445.txt.bz2
Content-length: 601

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66135

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |5.4

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This is fixed in GCC 5.4.0 by r235044 which was the backport of r233955

https://gcc.gnu.org/ml/gcc-patches/2016-03/msg00303.html
>From gcc-bugs-return-553914-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 14:35:42 2017
Return-Path: <gcc-bugs-return-553914-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 83180 invoked by alias); 13 Feb 2017 14:35: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 82893 invoked by uid 48); 13 Feb 2017 14:35:36 -0000
From: "vz-gcc at zeitlins dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79490] New: ICE when compiling CATCH unit testing framework header
Date: Mon, 13 Feb 2017 14:35: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: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vz-gcc at zeitlins 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-79490-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01446.txt.bz2
Content-length: 3197

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79490

            Bug ID: 79490
           Summary: ICE when compiling CATCH unit testing framework header
           Product: gcc
           Version: 6.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vz-gcc at zeitlins dot org
  Target Milestone: ---

I can't provide a self-contained example showing the problem, unfortunately, it
involves a (huge) header implementing the rather popular CATCH unit testing
framework which is available at
https://github.com/philsquared/Catch/releases/download/v1.7.1/catch.hpp

If you do get this header, the problem is easily reproducible however:

% g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-6'
--with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs
--enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-6 --program-prefix=x86_64-linux-gnu- --enable-shared
--enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/
--enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie
--with-system-zlib --disable-browser-plugin --enable-java-awt=gtk
--enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre
--enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64
--with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--with-target-system-zlib --enable-objc-gc=auto --enable-multiarch
--with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32
--enable-multilib --with-tune=generic --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 6.3.0 20170205 (Debian 6.3.0-6)
% cat -n tst.cpp
     1  #define CATCH_CONFIG_MAIN
     2  #include <catch.hpp>
     3
     4  TEST_CASE("Foo")
     5  {
     6  }
% g++-6 -c -fsyntax-only -Wall -I. tst.cpp
tst.cpp:6:1: internal compiler error: Segmentation fault
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.

The problem is, in fact, somewhere inside catch.hpp itself as it can also be
reproduced with just "g++-6 -c -fsyntax-only -Wall -x c++ -DCATCH_CONFIG_MAIN
catch.hpp", but this also gives an unrelated "#pragma system_header ignored"
warnings and doesn't give any extra information anyhow (it just points to the
end of the file).

Again, sorry for the lack of a SSCCE but I failed to find it by trying to
compile various parts of catch.hpp separately. Hopefully this report might
still be useful even in its current state.
>From gcc-bugs-return-553915-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 15:03:46 2017
Return-Path: <gcc-bugs-return-553915-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53272 invoked by alias); 13 Feb 2017 15:03: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 52765 invoked by uid 48); 13 Feb 2017 15:03:38 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79472] [7 Regression] x86-64: Switch table generation fails if default case has different code
Date: Mon, 13 Feb 2017 15:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.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: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-79472-4-NfXyvrFfkw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79472-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79472-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01447.txt.bz2
Content-length: 507

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79472

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 40726
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40726&action=edit
gcc7-pr79472-wip.patch

Untested WIP patch.  I believe I still don't handle the PHIs right in the
non-standard default case if there are any phis involved (not in the case of
abort of course or when it doesn't fall through to final_bb at all).
Guess I need to write some testcases first.
>From gcc-bugs-return-553916-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 15:14:36 2017
Return-Path: <gcc-bugs-return-553916-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91861 invoked by alias); 13 Feb 2017 15:14:35 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 91775 invoked by uid 48); 13 Feb 2017 15:14:30 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79490] ICE when compiling CATCH unit testing framework header
Date: Mon, 13 Feb 2017 15: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: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi 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-79490-4-WvknIkV5zh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79490-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79490-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01448.txt.bz2
Content-length: 951

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79490

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-02-13
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Vadim Zeitlin from comment #0)
> Again, sorry for the lack of a SSCCE but I failed to find it by trying to
> compile various parts of catch.hpp separately. Hopefully this report might
> still be useful even in its current state.

No, it isn't. The compiler error you showed above and the instructions at
https://gcc.gnu.org/bugs/ (which you were asked to read before creating a bug)
explain what is needed. A SSCCE is not necessary, but preprocessed source is.
>From gcc-bugs-return-553917-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 15:14:52 2017
Return-Path: <gcc-bugs-return-553917-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92853 invoked by alias); 13 Feb 2017 15:14: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 92606 invoked by uid 48); 13 Feb 2017 15:14:48 -0000
From: "hafnermorris at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79461] [5/6/7 Regression] [C++1z] ICE when capturing a variable in a lambda in a constexpr constructor
Date: Mon, 13 Feb 2017 15: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: 7.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hafnermorris 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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79461-4-79ydJCCpL2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79461-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79461-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01449.txt.bz2
Content-length: 370

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79461

--- Comment #2 from Morris Hafner <hafnermorris at gmail dot com> ---
I can see that the ice-on-invalid-code tag was set. This is only true in C++14
mode, because constexpr lambdas are part of the current C++17 draft (see Bug
70979).
The code is also accepted by the current clang svn in C++1z mode exclusively.
>From gcc-bugs-return-553918-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 15:16:03 2017
Return-Path: <gcc-bugs-return-553918-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94809 invoked by alias); 13 Feb 2017 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 94743 invoked by uid 48); 13 Feb 2017 15:15:59 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79483] [7 Regression] [graphite] ICE: verify_ssa failed (error: definition in block 31 does not dominate use in block 28)
Date: Mon, 13 Feb 2017 15: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: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat 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.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority cc
Message-ID: <bug-79483-4-eP3dSIaxKs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79483-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79483-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01450.txt.bz2
Content-length: 358

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79483

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
                 CC|                            |law at redhat dot com
>From gcc-bugs-return-553919-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 15:33:45 2017
Return-Path: <gcc-bugs-return-553919-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50491 invoked by alias); 13 Feb 2017 15:33: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 50440 invoked by uid 48); 13 Feb 2017 15:33:38 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79479] -Woverflow false alarm in unreachable expression
Date: Mon, 13 Feb 2017 15:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords: diagnostic
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:
Message-ID: <bug-79479-4-D5JJAbkzpy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79479-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79479-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01451.txt.bz2
Content-length: 1789

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79479

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Generalized extended testcase:

int
fn1 (long x)
{
  if (0)
    return __INT_MAX__ + 1;

  if (x || 0)
    return __INT_MAX__ + 1; /* { dg-warning "integer overflow" } */

  if (1 || 0)
    return __INT_MAX__ + 1; /* { dg-warning "integer overflow" } */

  if (0 && 0)
    return __INT_MAX__ + 1;

  if (0)
    return __INT_MAX__ + 1;
  else
    return 0;

  if (0)
    return 0;
  else
    return __INT_MAX__ + 1; /* { dg-warning "integer overflow" } */

  if (0)
    {
      if (x)
        return __INT_MAX__ + 1;
    }

  if (0)
    {
      if (x)
        return __INT_MAX__ + 1;
    }
  else
    {
      if (x)
        return __INT_MAX__ + 1; /* { dg-warning "integer overflow" } */
    }

  if (0)
    if (0)
      return __INT_MAX__ + 1;

  if (1)
    return 0;
  else
    return __INT_MAX__ + 1;

  if (1)
    if (0)
      return __INT_MAX__ + 1;

  if (1)
    {
      if (x)
        return __INT_MAX__ + 1; /* { dg-warning "integer overflow" } */
    }
  else
    {
      if (x)
        return __INT_MAX__ + 1;
    }

  if (0)
    return __INT_MAX__ + 1;
  else if (0)
    return __INT_MAX__ + 1;
  else
    return __INT_MAX__ + 1; /* { dg-warning "integer overflow" } */

  if (0)
    return __INT_MAX__ + 1;
  else if (1)
    return __INT_MAX__ + 1; /* { dg-warning "integer overflow" } */
  else
    return __INT_MAX__ + 1;

  if (1)
    return __INT_MAX__ + 1; /* { dg-warning "integer overflow" } */
  else if (0)
    return __INT_MAX__ + 1;

  return 0 ? __INT_MAX__ + 1 : 1;
}

void
fn2 (int x)
{
  if (0)
    x <<= sizeof (int) * __CHAR_BIT__;

  if (0)
    x <<= -1;

  if (0)
    x >>= sizeof (int) * __CHAR_BIT__;

  if (0)
    x >>= -1;
}
>From gcc-bugs-return-553920-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 15:34:52 2017
Return-Path: <gcc-bugs-return-553920-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52218 invoked by alias); 13 Feb 2017 15: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 51820 invoked by uid 48); 13 Feb 2017 15:34:46 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79472] [7 Regression] x86-64: Switch table generation fails if default case has different code
Date: Mon, 13 Feb 2017 15:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.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: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79472-4-beRLyBSjF1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79472-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79472-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01452.txt.bz2
Content-length: 818

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79472

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Seems even unpatched switchconf isn't able to deal with virtual phis:
void foo (int);

void
f1 (int v, int w)
{
  int i;
  if (w)
    {
      foo (23);
      i = 129;
    }
  else
    switch (v)
      {
      case 170:
        i = 27;
        break;
      case 171:
        i = 8;
        break;
      case 172:
        i = 21;
        break;
      case 173:
        i = 18;
        break;
      case 174:
        i = 139;
        break;
      case 175:
        i = 14;
        break;
      case 176:
        i = -14;
        break;
      case 177:
        i = 12;
        break;
      default:
        i = 80;
        break;
      }

 lab:
  foo (i);
}

isn't converted either.
>From gcc-bugs-return-553921-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 15:39:12 2017
Return-Path: <gcc-bugs-return-553921-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74794 invoked by alias); 13 Feb 2017 15:39: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 74716 invoked by uid 55); 13 Feb 2017 15:39:06 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79348] [7 Regression] abi_check fails  on s390x (2 undesignated symbols)
Date: Mon, 13 Feb 2017 15: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: 7.0
X-Bugzilla-Keywords: ABI
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79348-4-TPxQvMsHcT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79348-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79348-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01453.txt.bz2
Content-length: 1713

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79348

--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Feb 13 15:38:33 2017
New Revision: 245389

URL: https://gcc.gnu.org/viewcvs?rev=245389&root=gcc&view=rev
Log:
        PR libstdc++/79348
        * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
        * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
        * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Likewise.
        * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
        * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Likewise.
        * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
        * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Likewise.
        * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
        * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/config/abi/post/aarch64-linux-gnu/baseline_symbols.txt
    trunk/libstdc++-v3/config/abi/post/i386-linux-gnu/baseline_symbols.txt
    trunk/libstdc++-v3/config/abi/post/i486-linux-gnu/baseline_symbols.txt
    trunk/libstdc++-v3/config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt
    trunk/libstdc++-v3/config/abi/post/s390-linux-gnu/baseline_symbols.txt
    trunk/libstdc++-v3/config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt
    trunk/libstdc++-v3/config/abi/post/s390x-linux-gnu/baseline_symbols.txt
    trunk/libstdc++-v3/config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt
    trunk/libstdc++-v3/config/abi/post/x86_64-linux-gnu/baseline_symbols.txt
>From gcc-bugs-return-553923-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 15:40:44 2017
Return-Path: <gcc-bugs-return-553923-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77810 invoked by alias); 13 Feb 2017 15:40: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 77667 invoked by uid 55); 13 Feb 2017 15:40:37 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/79450] [5/6/7 Regression] wrong code with loop at -O1
Date: Mon, 13 Feb 2017 15:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79450-4-I9M00BgArd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79450-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79450-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01455.txt.bz2
Content-length: 807

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79450

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Feb 13 15:39:59 2017
New Revision: 245390

URL: https://gcc.gnu.org/viewcvs?rev=245390&root=gcc&view=rev
Log:
        PR rtl-optimization/79388
        PR rtl-optimization/79450
        * combine.c (distribute_notes): When removing TEM_INSN for which
        corresponding dest has last value recorded, invalidate that last
        value.

        * gcc.c-torture/execute/pr79388.c: New test.
        * gcc.c-torture/execute/pr79450.c: New test.

Added:
    trunk/gcc/testsuite/gcc.c-torture/execute/pr79388.c
    trunk/gcc/testsuite/gcc.c-torture/execute/pr79450.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/combine.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-553922-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 15:40:43 2017
Return-Path: <gcc-bugs-return-553922-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77795 invoked by alias); 13 Feb 2017 15:40: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 77691 invoked by uid 55); 13 Feb 2017 15:40:38 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/79388] [6/7 Regression] wrong code with -O -fno-tree-coalesce-vars
Date: Mon, 13 Feb 2017 15:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 7.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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79388-4-RR3AX6eCUP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79388-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79388-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01454.txt.bz2
Content-length: 807

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79388

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Feb 13 15:39:59 2017
New Revision: 245390

URL: https://gcc.gnu.org/viewcvs?rev=245390&root=gcc&view=rev
Log:
        PR rtl-optimization/79388
        PR rtl-optimization/79450
        * combine.c (distribute_notes): When removing TEM_INSN for which
        corresponding dest has last value recorded, invalidate that last
        value.

        * gcc.c-torture/execute/pr79388.c: New test.
        * gcc.c-torture/execute/pr79450.c: New test.

Added:
    trunk/gcc/testsuite/gcc.c-torture/execute/pr79388.c
    trunk/gcc/testsuite/gcc.c-torture/execute/pr79450.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/combine.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-553924-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 15:50:04 2017
Return-Path: <gcc-bugs-return-553924-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117440 invoked by alias); 13 Feb 2017 15:50:03 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 117298 invoked by uid 48); 13 Feb 2017 15:49:58 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79487] Invalid _Decimal32 comparison on s390x
Date: Mon, 13 Feb 2017 15:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79487-4-aaYNjCufbI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01456.txt.bz2
Content-length: 1687

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79487

--- Comment #2 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
Ah, no, the first Rtl pass that produces an incorrect expression is Cse1.

Before:

--
(insn 22 21 23 3 (set (reg:SD 75)
        (const_double:SD -9223372036854775808 [N/A])) "decimal32.c":23 1121
{movsd}
(insn 23 22 24 3 (set (reg:DD 74)
        (float_extend:DD (reg:SD 75))) "decimal32.c":23 1330 {extendsddd2}
(insn 24 23 25 3 (set (reg:CCZ 33 %cc)
        (compare:CCZ (reg:DD 73)
            (reg:DD 74))) "decimal32.c":23 1081 {*cmpdd_ccs}
--

The 32 bit constant is float_extended to 64 bits and the result is used in the
comparison (remember that only a 64 bit comparison pattern is available
anyway).  Cse1 removes the extension and directly places the constant in the
comparison, changing its mode:

--
(insn 22 21 23 3 (set (reg:SD 75)
        (const_double:SD -9223372036854775808 [N/A])) "decimal32.c":23 1121
{movsd}
(insn 23 22 24 3 (set (reg:DD 74)
        (const_double:DD -9223372036854775808 [N/A])) "decimal32.c":23 1115
{*movdd_64dfp}
(insn 24 23 25 3 (set (reg:CCZ 33 %cc)
        (compare:CCZ (reg:DD 73)
            (const_double:DD -9223372036854775808 [N/A]))) "decimal32.c":23
1081 {*cmpdd_ccs}
                         ^^^^
                      64 bit mode
--

And eventually Reload puts a 64 bit constant in the pool:

--
(insn 86 21 24 3 (set (reg:DD 17 %f2 [81])
        (mem/u/c:DD (symbol_ref/u:DI ("*.LC3") [flags 0x2]) [2  S8 A64]))
"decimal32.c":23 1115 {*movdd_64dfp}
(insn 24 86 25 3 (set (reg:CCZ 33 %cc)
        (compare:CCZ (reg:DD 16 %f0 [73])
            (reg:DD 17 %f2 [81]))) "decimal32.c":23 1081 {*cmpdd_ccs}
--
>From gcc-bugs-return-553925-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 15:59:43 2017
Return-Path: <gcc-bugs-return-553925-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29302 invoked by alias); 13 Feb 2017 15:59: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 17643 invoked by uid 48); 13 Feb 2017 15:59:28 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79490] ICE when compiling CATCH unit testing framework header
Date: Mon, 13 Feb 2017 15:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: 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-79490-4-sYQcJ6Gq8F@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79490-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79490-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01457.txt.bz2
Content-length: 270

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79490

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I can only reproduce this with -fsyntax-only, not when compiling.

Reducing now with C-Reduce

https://gcc.gnu.org/wiki/A_guide_to_testcase_reduction
>From gcc-bugs-return-553926-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 16:01:10 2017
Return-Path: <gcc-bugs-return-553926-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40148 invoked by alias); 13 Feb 2017 16:01: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 33124 invoked by uid 55); 13 Feb 2017 16:00:55 -0000
From: "acsawdey at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79449] ppc builtin expansion of strncmp can cross page (4k) boundary where it should not
Date: Mon, 13 Feb 2017 16:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: acsawdey at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: acsawdey at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79449-4-jqjazsyRaU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79449-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79449-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01458.txt.bz2
Content-length: 837

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79449

--- Comment #1 from acsawdey at gcc dot gnu.org ---
Author: acsawdey
Date: Mon Feb 13 16:00:22 2017
New Revision: 245392

URL: https://gcc.gnu.org/viewcvs?rev=245392&root=gcc&view=rev
Log:
2017-02-13  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>

        PR target/79449
        * gcc.dg/strncmp-2.c: New.  Test strncmp and memcmp builtin expansion
        for reading beyond a 4k boundary.

2017-02-13  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>

        PR target/79449
        * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
        boundary crossing check and subsequent code generation agree.



Added:
    trunk/gcc/testsuite/gcc.dg/strncmp-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/rs6000/rs6000.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-553927-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 16:01:33 2017
Return-Path: <gcc-bugs-return-553927-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41129 invoked by alias); 13 Feb 2017 16: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 41025 invoked by uid 48); 13 Feb 2017 16:01:25 -0000
From: "vz-gcc at zeitlins dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79490] ICE when compiling CATCH unit testing framework header
Date: Mon, 13 Feb 2017 16: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: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vz-gcc at zeitlins dot 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: attachments.created
Message-ID: <bug-79490-4-kp6UTrdL89@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79490-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79490-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01459.txt.bz2
Content-length: 273

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79490

--- Comment #3 from Vadim Zeitlin <vz-gcc at zeitlins dot org> ---
Created attachment 40727
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40727&action=edit
Compressed preprocessed source of a trivial example
>From gcc-bugs-return-553928-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 16:02:44 2017
Return-Path: <gcc-bugs-return-553928-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43324 invoked by alias); 13 Feb 2017 16:02: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 43151 invoked by uid 48); 13 Feb 2017 16:02:29 -0000
From: "vz-gcc at zeitlins dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79490] ICE when compiling CATCH unit testing framework header
Date: Mon, 13 Feb 2017 16: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.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vz-gcc at zeitlins dot 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-79490-4-8a58bDZfWF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79490-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79490-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01460.txt.bz2
Content-length: 350

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79490

--- Comment #4 from Vadim Zeitlin <vz-gcc at zeitlins dot org> ---
I thought it would be simpler to use the URL I provided to download the real
header rather than downloading and uncompressing the attachment (it had to be
compressed due to its size), but, sure, here it is if it can be useful.
>From gcc-bugs-return-553929-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 16:06:46 2017
Return-Path: <gcc-bugs-return-553929-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50470 invoked by alias); 13 Feb 2017 16:06: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 50236 invoked by uid 48); 13 Feb 2017 16:06:32 -0000
From: "vz-gcc at zeitlins dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79490] ICE when compiling CATCH unit testing framework header
Date: Mon, 13 Feb 2017 16: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: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vz-gcc at zeitlins dot 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-79490-4-4IYFIisQ5x@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79490-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79490-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01461.txt.bz2
Content-length: 623

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79490

--- Comment #5 from Vadim Zeitlin <vz-gcc at zeitlins dot org> ---
(In reply to Jonathan Wakely from comment #2)
> I can only reproduce this with -fsyntax-only, not when compiling.

Oops, you're right, really sorry about not realizing this. I was actually
testing warning generation (or not), so was using -fsyntax-only all this time
and didn't even think to check without it, but the problem indeed disappears if
I remove it.

Sorry again, but it's the first time ever I see an ICE appearing only with
-fsyntax-only, so I didn't even think about this possibility.
>From gcc-bugs-return-553930-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 16:29:31 2017
Return-Path: <gcc-bugs-return-553930-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85642 invoked by alias); 13 Feb 2017 16:29: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 84171 invoked by uid 48); 13 Feb 2017 16:29:16 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79490] ICE when using -fsyntax-only with CATCH unit testing framework header
Date: Mon, 13 Feb 2017 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: 6.3.0
X-Bugzilla-Keywords: ice-on-valid-code
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: keywords bug_status short_desc
Message-ID: <bug-79490-4-JH20VV6Xwy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79490-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79490-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01462.txt.bz2
Content-length: 897

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79490

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|WAITING                     |NEW
            Summary|ICE when compiling CATCH    |ICE when using
                   |unit testing framework      |-fsyntax-only with CATCH
                   |header                      |unit testing framework
                   |                            |header

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Thanks. C-Reduce stripped it down to this, which ICEs with -fsyntax-only

struct IRegistryHub {
  virtual ~IRegistryHub();
};
namespace {
class A : IRegistryHub {};
A *fn1();
}
void fn2() { delete fn1(); }
>From gcc-bugs-return-553932-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 16:41:57 2017
Return-Path: <gcc-bugs-return-553932-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77792 invoked by alias); 13 Feb 2017 16:41: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 77721 invoked by uid 48); 13 Feb 2017 16:41:51 -0000
From: "drraph at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79491] New: Possibly inefficient code for the inner product of two vectors
Date: Mon, 13 Feb 2017 16:41: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.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: drraph 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-79491-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01464.txt.bz2
Content-length: 6270

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79491

            Bug ID: 79491
           Summary: Possibly inefficient code for the inner product of two
                    vectors
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: drraph at gmail dot com
  Target Milestone: ---

Consider:

float f(float x[], float y[]) {
  float p = 0;
  for (int i = 0; i <64; i++)
    p += x[i] * y[i];
  return p;
}

Using gcc 7 (snapshot) and  -Ofast -march=core-avx2  you get:

f:
        mov     rax, rdi
        shr     rax, 2
        neg     rax
        and     eax, 7
        je      .L6
        vmovss  xmm0, DWORD PTR [rdi]
        vmulss  xmm1, xmm0, DWORD PTR [rsi]
        cmp     eax, 1
        je      .L7
        vmovss  xmm4, DWORD PTR [rdi+4]
        vfmadd231ss     xmm1, xmm4, DWORD PTR [rsi+4]
        cmp     eax, 2
        je      .L8
        vmovss  xmm3, DWORD PTR [rdi+8]
        vfmadd231ss     xmm1, xmm3, DWORD PTR [rsi+8]
        cmp     eax, 3
        je      .L9
        vmovss  xmm2, DWORD PTR [rdi+12]
        vfmadd231ss     xmm1, xmm2, DWORD PTR [rsi+12]
        cmp     eax, 4
        je      .L10
        vmovss  xmm3, DWORD PTR [rdi+16]
        vfmadd231ss     xmm1, xmm3, DWORD PTR [rsi+16]
        cmp     eax, 5
        je      .L11
        vmovss  xmm7, DWORD PTR [rdi+20]
        vfmadd231ss     xmm1, xmm7, DWORD PTR [rsi+20]
        cmp     eax, 7
        jne     .L12
        vmovss  xmm4, DWORD PTR [rsi+24]
        vfmadd231ss     xmm1, xmm4, DWORD PTR [rdi+24]
        mov     r9d, 57
        mov     r10d, 7
.L2:
        mov     ecx, 64
        sub     ecx, eax
        mov     eax, eax
        sal     rax, 2
        mov     r8d, ecx
        lea     rdx, [rdi+rax]
        add     rax, rsi
        shr     r8d, 3
        vmovups ymm0, YMMWORD PTR [rax+32]
        vmulps  ymm0, ymm0, YMMWORD PTR [rdx+32]
        vmovaps ymm3, YMMWORD PTR [rdx]
        vfmadd231ps     ymm0, ymm3, YMMWORD PTR [rax]
        vmovaps ymm4, YMMWORD PTR [rdx+64]
        vfmadd231ps     ymm0, ymm4, YMMWORD PTR [rax+64]
        vmovaps ymm5, YMMWORD PTR [rdx+96]
        vfmadd231ps     ymm0, ymm5, YMMWORD PTR [rax+96]
        vmovaps ymm6, YMMWORD PTR [rdx+128]
        vmovaps ymm7, YMMWORD PTR [rdx+160]
        vfmadd231ps     ymm0, ymm6, YMMWORD PTR [rax+128]
        vmovaps ymm3, YMMWORD PTR [rdx+192]
        vfmadd231ps     ymm0, ymm7, YMMWORD PTR [rax+160]
        vfmadd231ps     ymm0, ymm3, YMMWORD PTR [rax+192]
        cmp     r8d, 8
        jne     .L4
        vmovaps ymm4, YMMWORD PTR [rdx+224]
        vfmadd231ps     ymm0, ymm4, YMMWORD PTR [rax+224]
.L4:
        vhaddps ymm0, ymm0, ymm0
        mov     r8d, ecx
        mov     edx, r9d
        and     r8d, -8
        lea     eax, [r8+r10]
        sub     edx, r8d
        vhaddps ymm2, ymm0, ymm0
        vperm2f128      ymm0, ymm2, ymm2, 1
        vaddps  ymm0, ymm0, ymm2
        vaddss  xmm0, xmm0, xmm1
        cmp     ecx, r8d
        je      .L31
        movsx   rcx, eax
        vmovss  xmm5, DWORD PTR [rdi+rcx*4]
        vfmadd231ss     xmm0, xmm5, DWORD PTR [rsi+rcx*4]
        lea     ecx, [rax+1]
        cmp     edx, 1
        je      .L31
        movsx   rcx, ecx
        vmovss  xmm6, DWORD PTR [rdi+rcx*4]
        vfmadd231ss     xmm0, xmm6, DWORD PTR [rsi+rcx*4]
        lea     ecx, [rax+2]
        cmp     edx, 2
        je      .L31
        movsx   rcx, ecx
        vmovss  xmm7, DWORD PTR [rdi+rcx*4]
        vfmadd231ss     xmm0, xmm7, DWORD PTR [rsi+rcx*4]
        lea     ecx, [rax+3]
        cmp     edx, 3
        je      .L31
        movsx   rcx, ecx
        vmovss  xmm2, DWORD PTR [rdi+rcx*4]
        vfmadd231ss     xmm0, xmm2, DWORD PTR [rsi+rcx*4]
        lea     ecx, [rax+4]
        cmp     edx, 4
        je      .L31
        movsx   rcx, ecx
        vmovss  xmm7, DWORD PTR [rdi+rcx*4]
        vfmadd231ss     xmm0, xmm7, DWORD PTR [rsi+rcx*4]
        lea     ecx, [rax+5]
        cmp     edx, 5
        je      .L31
        movsx   rcx, ecx
        add     eax, 6
        vmovss  xmm5, DWORD PTR [rdi+rcx*4]
        vfmadd231ss     xmm0, xmm5, DWORD PTR [rsi+rcx*4]
        cmp     edx, 6
        je      .L31
        cdqe
        vmovss  xmm6, DWORD PTR [rdi+rax*4]
        vfmadd231ss     xmm0, xmm6, DWORD PTR [rsi+rax*4]
.L31:
        vzeroupper
        ret
.L10:
        mov     r9d, 60
        mov     r10d, 4
        jmp     .L2
.L7:
        mov     r9d, 63
        mov     r10d, 1
        jmp     .L2
.L6:
        mov     r9d, 64
        xor     r10d, r10d
        vxorps  xmm1, xmm1, xmm1
        jmp     .L2
.L8:
        mov     r9d, 62
        mov     r10d, 2
        jmp     .L2
.L9:
        mov     r9d, 61
        mov     r10d, 3
        jmp     .L2
.L11:
        mov     r9d, 59
        mov     r10d, 5
        jmp     .L2
.L12:
        mov     r9d, 58
        mov     r10d, 6
        jmp     .L2

However this seems more efficient from clang trunk:

f:                                      # @f
        vmovups ymm0, ymmword ptr [rsi]
        vmovups ymm1, ymmword ptr [rsi + 32]
        vmovups ymm2, ymmword ptr [rsi + 64]
        vmovups ymm3, ymmword ptr [rsi + 96]
        vmulps  ymm0, ymm0, ymmword ptr [rdi]
        vfmadd231ps     ymm0, ymm1, ymmword ptr [rdi + 32]
        vfmadd231ps     ymm0, ymm2, ymmword ptr [rdi + 64]
        vfmadd231ps     ymm0, ymm3, ymmword ptr [rdi + 96]
        vmovups ymm1, ymmword ptr [rsi + 128]
        vfmadd132ps     ymm1, ymm0, ymmword ptr [rdi + 128]
        vmovups ymm0, ymmword ptr [rsi + 160]
        vfmadd132ps     ymm0, ymm1, ymmword ptr [rdi + 160]
        vmovups ymm1, ymmword ptr [rsi + 192]
        vfmadd132ps     ymm1, ymm0, ymmword ptr [rdi + 192]
        vmovups ymm0, ymmword ptr [rsi + 224]
        vfmadd132ps     ymm0, ymm1, ymmword ptr [rdi + 224]
        vextractf128    xmm1, ymm0, 1
        vaddps  ymm0, ymm0, ymm1
        vpermilpd       xmm1, xmm0, 1   # xmm1 = xmm0[1,0]
        vaddps  ymm0, ymm0, ymm1
        vhaddps ymm0, ymm0, ymm0
        vzeroupper
        ret


It seems that gcc is going to some lengths to align the data which may not be
worth the cost.
>From gcc-bugs-return-553931-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 16:41:36 2017
Return-Path: <gcc-bugs-return-553931-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73143 invoked by alias); 13 Feb 2017 16:41: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 71743 invoked by uid 48); 13 Feb 2017 16:41:17 -0000
From: "bruno at clisp dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79479] -Woverflow false alarm in unreachable expression
Date: Mon, 13 Feb 2017 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: 6.3.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bruno at clisp 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:
Message-ID: <bug-79479-4-QWmbJjQ9Hw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79479-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79479-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01463.txt.bz2
Content-length: 1124

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79479

--- Comment #3 from Bruno Haible <bruno at clisp dot org> ---
(In reply to Marek Polacek from comment #2)
> int
> fn1 (long x)
> {
>   if (0)
>     return __INT_MAX__ + 1;
> 
>   if (x || 0)
>     return __INT_MAX__ + 1; /* { dg-warning "integer overflow" } */
> 
>   if (1 || 0)
>     return __INT_MAX__ + 1; /* { dg-warning "integer overflow" } */

The rest of fn1 is dead code (at least a good dataflow analysis would detect
it). How about splitting fn1 into several functions?

int
fn11 (long x)
{
  if (0)
    return __INT_MAX__ + 1;
  return 0;
}
int
fn12 (long x)
{
  if (x || 0)
    return __INT_MAX__ + 1; /* { dg-warning "integer overflow" } */
  return 0;
}
int
fn13 (long x)
{
  if (1 || 0)
    return __INT_MAX__ + 1; /* { dg-warning "integer overflow" } */
  return 0;
}
int
fn14 (long x)
{
  if (0 && 0)
    return __INT_MAX__ + 1;
  return 0;
}
int
fn15 (long x)
{
  if (0)
    return __INT_MAX__ + 1;
  else
    return 0;
}
int
fn16 (long x)
{
  if (0)
    return 0;
  else
    return __INT_MAX__ + 1; /* { dg-warning "integer overflow" } */
}
etc.
>From gcc-bugs-return-553933-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 16:42:09 2017
Return-Path: <gcc-bugs-return-553933-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 78981 invoked by alias); 13 Feb 2017 16:42: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 78474 invoked by uid 48); 13 Feb 2017 16:42:03 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/79403] Installation of Ada compiler gets permissions wrong
Date: Mon, 13 Feb 2017 16: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: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.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-79403-4-PrjXHH3zOM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79403-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79403-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01465.txt.bz2
Content-length: 139

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79403

--- Comment #5 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
Fixed, thanks.
>From gcc-bugs-return-553934-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 16:43:53 2017
Return-Path: <gcc-bugs-return-553934-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 89700 invoked by alias); 13 Feb 2017 16:43: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 89635 invoked by uid 48); 13 Feb 2017 16:43:47 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79358] gcc.dg/c99-stdint-1.c fails with excess error
Date: Mon, 13 Feb 2017 16:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79358-4-OXgSJNDk7i@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79358-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79358-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01466.txt.bz2
Content-length: 461

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79358

Dominik Vogt <vogt at linux dot vnet.ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #13 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
Fixed by upgrading to glibc-2.23.
>From gcc-bugs-return-553935-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 16:44:34 2017
Return-Path: <gcc-bugs-return-553935-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91546 invoked by alias); 13 Feb 2017 16:44: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 90944 invoked by uid 48); 13 Feb 2017 16:44:23 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/79403] Installation of Ada compiler gets permissions wrong
Date: Mon, 13 Feb 2017 16:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79403-4-Ie7RJ6hIxq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79403-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79403-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01467.txt.bz2
Content-length: 433

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79403

Dominik Vogt <vogt at linux dot vnet.ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
Fixed.
>From gcc-bugs-return-553936-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 16:48:42 2017
Return-Path: <gcc-bugs-return-553936-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117847 invoked by alias); 13 Feb 2017 16:48: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 117104 invoked by uid 55); 13 Feb 2017 16:48:10 -0000
From: "hjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79348] [7 Regression] abi_check fails  on s390x (2 undesignated symbols)
Date: Mon, 13 Feb 2017 16: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: ABI
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79348-4-dUNJZ5D4Ec@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79348-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79348-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01468.txt.bz2
Content-length: 537

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79348

--- Comment #12 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Mon Feb 13 16:47:35 2017
New Revision: 245394

URL: https://gcc.gnu.org/viewcvs?rev=245394&root=gcc&view=rev
Log:
x32: Update baseline_symbols.txt

        PR libstdc++/79348
        * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.

Modified:
    trunk/libstdc++-v3/ChangeLog
   
trunk/libstdc++-v3/config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt
>From gcc-bugs-return-553937-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 16:52:14 2017
Return-Path: <gcc-bugs-return-553937-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126309 invoked by alias); 13 Feb 2017 16:52: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 125980 invoked by uid 48); 13 Feb 2017 16:52:00 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/69148] [5 Regression] ICE (floating point exception) on s390x-linux-gnu
Date: Mon, 13 Feb 2017 16:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 5.3.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-69148-4-OeR3R7pnvr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69148-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69148-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01469.txt.bz2
Content-length: 274

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69148

--- Comment #10 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
(In reply to Matthias Klose from comment #8)
> I prepared a patch for the distro builds. Any reason that this can't go to
> the gcc-5-branch?

Ping?
>From gcc-bugs-return-553938-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 16:54:51 2017
Return-Path: <gcc-bugs-return-553938-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39176 invoked by alias); 13 Feb 2017 16:54: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 38863 invoked by uid 48); 13 Feb 2017 16:54:37 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79491] Possibly inefficient code for the inner product of two vectors
Date: Mon, 13 Feb 2017 16: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: glisse 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-79491-4-0HXyvaCvZ6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79491-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79491-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01470.txt.bz2
Content-length: 208

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79491

--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
Did you benchmark it on some unaligned x and y then? Would you care to share
the results?
>From gcc-bugs-return-553939-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 16:56:36 2017
Return-Path: <gcc-bugs-return-553939-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47743 invoked by alias); 13 Feb 2017 16:56: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 47638 invoked by uid 48); 13 Feb 2017 16:56:31 -0000
From: "oivulf at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79492] New: odd behaviour triggered on applying log function
Date: Mon, 13 Feb 2017 16:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: oivulf 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-79492-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01471.txt.bz2
Content-length: 790

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79492

            Bug ID: 79492
           Summary: odd behaviour triggered on applying log function
           Product: gcc
           Version: 6.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: oivulf at gmail dot com
  Target Milestone: ---

Created attachment 40728
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40728&action=edit
compile it with -g -fcheck=all to trigger runtime error

When compiling with all checks activated,
real, allocatable:: a(:)
real:: b(5)

a=b    !no complains
a=log(b) !Array bound mismatch for dimension 1 of array
but ...
a=b; a=log(b)  ! no complains
>From gcc-bugs-return-553940-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 17:24:57 2017
Return-Path: <gcc-bugs-return-553940-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84941 invoked by alias); 13 Feb 2017 17:24: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 72635 invoked by uid 48); 13 Feb 2017 17:24:41 -0000
From: "acsawdey at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79449] ppc builtin expansion of strncmp can cross page (4k) boundary where it should not
Date: Mon, 13 Feb 2017 17: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: 7.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: acsawdey at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: acsawdey at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79449-4-pYZ6l9HArf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79449-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79449-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01472.txt.bz2
Content-length: 416

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79449

acsawdey at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from acsawdey at gcc dot gnu.org ---
Fix checked in to 245392.
>From gcc-bugs-return-553941-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 17:37:49 2017
Return-Path: <gcc-bugs-return-553941-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43896 invoked by alias); 13 Feb 2017 17:37: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 43514 invoked by uid 55); 13 Feb 2017 17:37:35 -0000
From: "ian at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/79443] libgo/math test fails on s390x (undefined symbols cosh, sinh, tanh, hasVX)
Date: Mon, 13 Feb 2017 17:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: go
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ian at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79443-4-2pA9PVmmkf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79443-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79443-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01473.txt.bz2
Content-length: 649

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79443

--- Comment #5 from ian at gcc dot gnu.org <ian at gcc dot gnu.org> ---
Author: ian
Date: Mon Feb 13 17:37:02 2017
New Revision: 245397

URL: https://gcc.gnu.org/viewcvs?rev=245397&root=gcc&view=rev
Log:
        PR go/79443
    libgo: fix some s390x tests

    Add `+build ignore` to ignore tests that rely on s390x assembly code
    not yet implemented for gccgo.

    Fixes GCC PR 79443.

    Reviewed-on: https://go-review.googlesource.com/36909

Modified:
    trunk/gcc/go/gofrontend/MERGE
    trunk/libgo/go/crypto/sha256/fallback_test.go
    trunk/libgo/go/math/export_s390x_test.go
>From gcc-bugs-return-553942-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 17:38:30 2017
Return-Path: <gcc-bugs-return-553942-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45348 invoked by alias); 13 Feb 2017 17:38: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 44860 invoked by uid 48); 13 Feb 2017 17:38:17 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/79443] libgo/math test fails on s390x (undefined symbols cosh, sinh, tanh, hasVX)
Date: Mon, 13 Feb 2017 17:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: go
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ian at airs dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ian at airs dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79443-4-Xg1ZN75ufw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79443-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79443-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01474.txt.bz2
Content-length: 439

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79443

Ian Lance Taylor <ian at airs dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Ian Lance Taylor <ian at airs dot com> ---
Fix committed to mainline.
>From gcc-bugs-return-553943-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 17:41:01 2017
Return-Path: <gcc-bugs-return-553943-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62081 invoked by alias); 13 Feb 2017 17: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 60786 invoked by uid 48); 13 Feb 2017 17:40:47 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79348] [7 Regression] abi_check fails  on s390x (2 undesignated symbols)
Date: Mon, 13 Feb 2017 17:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ABI
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-79348-4-ReTiVjX4Oo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79348-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79348-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01475.txt.bz2
Content-length: 621

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79348

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jakub at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Should be fixed now.  The TLS symbols weren't a problem, the problem was that
the ABI files weren't updated from GCC 5 release.
>From gcc-bugs-return-553944-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 17:41:32 2017
Return-Path: <gcc-bugs-return-553944-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 97491 invoked by alias); 13 Feb 2017 17: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 92256 invoked by uid 48); 13 Feb 2017 17:41:26 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79479] -Woverflow false alarm in unreachable expression
Date: Mon, 13 Feb 2017 17:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords: diagnostic
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:
Message-ID: <bug-79479-4-gUuf0vJZBd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79479-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79479-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01476.txt.bz2
Content-length: 238

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79479

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I might, but the front ends, where the warning is taking place, can't see that
the function always returns early.
>From gcc-bugs-return-553946-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 17:42:31 2017
Return-Path: <gcc-bugs-return-553946-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38030 invoked by alias); 13 Feb 2017 17:42: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 32203 invoked by uid 48); 13 Feb 2017 17:42:24 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/79388] [6 Regression] wrong code with -O -fno-tree-coalesce-vars
Date: Mon, 13 Feb 2017 17: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: 7.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_known_to_work assigned_to short_desc cf_known_to_fail
Message-ID: <bug-79388-4-zWd7L6tB4t@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79388-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79388-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01478.txt.bz2
Content-length: 782

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79388

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
      Known to work|                            |7.0.1
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
            Summary|[6/7 Regression] wrong code |[6 Regression] wrong code
                   |with -O                     |with -O
                   |-fno-tree-coalesce-vars     |-fno-tree-coalesce-vars
      Known to fail|7.0.1                       |

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed on the trunk so far.
>From gcc-bugs-return-553945-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 17:42:30 2017
Return-Path: <gcc-bugs-return-553945-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36075 invoked by alias); 13 Feb 2017 17:42:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 21552 invoked by uid 48); 13 Feb 2017 17:42:15 -0000
From: "me at haldean dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79493] New: Bad diagnostic when referring to inner type that does not exist
Date: Mon, 13 Feb 2017 17:42: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: 6.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: me at haldean 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 attachments.created
Message-ID: <bug-79493-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01477.txt.bz2
Content-length: 1882

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79493

            Bug ID: 79493
           Summary: Bad diagnostic when referring to inner type that does
                    not exist
           Product: gcc
           Version: 6.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: me at haldean dot org
  Target Milestone: ---

Created attachment 40729
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40729&action=edit
C++ source that exercises the poor diagnostic

Hi all,

The following code snippet (this is the same as the contents of the attached
file):

    struct A { int x; };

    struct B {
        void *DoThing(A::nonexistent param);
    };

Emits the following compiler diagnostics, when compiling with "g++
BadTypeDiagnostic.cpp"

BadTypeDiagnostic.cpp:4:11: error: expected ‘;’ at end of member declaration
     void *DoThing(A::nonexistent param);
           ^
BadTypeDiagnostic.cpp:4:34: error: expected ‘)’ before ‘param’
     void *DoThing(A::nonexistent param);
                                  ^

This is not particularly helpful to the programmer; the error here is in the
type chosen for param, not the syntax of the declaration of DoThing. In this
trivial example, the error is obvious, but when there is a minor typo in your
attempt at mimicking the misspelling of an inner class in a third-party
library, this is enough to pull your hair out for hours ;)

I found this with "g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609", but
testing on godbolt.org (https://godbolt.org/g/10zL5i) shows that the diagnostic
is the same for GCC 6.3. For reference, clang's diagnostic here is "no type
named 'nonexistent' in 'A'", which does point at the cause of the error.
>From gcc-bugs-return-553947-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 17:43:18 2017
Return-Path: <gcc-bugs-return-553947-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88770 invoked by alias); 13 Feb 2017 17:43: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 65916 invoked by uid 55); 13 Feb 2017 17:43:04 -0000
From: "nathan at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79296] [6/7 Regression] ICE in mangle_decl, at cp/mangle.c:3845
Date: Mon, 13 Feb 2017 17:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nathan at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79296-4-Y7WlW5H6rz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79296-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79296-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01479.txt.bz2
Content-length: 649

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79296

--- Comment #4 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Author: nathan
Date: Mon Feb 13 17:42:31 2017
New Revision: 245398

URL: https://gcc.gnu.org/viewcvs?rev=245398&root=gcc&view=rev
Log:
        PR c++/79296 - ICE mangling localized template instantiation
        * decl2.c (determine_visibility): Use template fn context for
        local class instantiations.

        PR c++/79296
        * g++.dg/cpp0x/pr79296.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/pr79296.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl2.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-553948-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 17:47:51 2017
Return-Path: <gcc-bugs-return-553948-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5321 invoked by alias); 13 Feb 2017 17:47: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 5207 invoked by uid 48); 13 Feb 2017 17:47:38 -0000
From: "gerhard.steinmetz.fortran@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79494] New: ICE in maybe_record_trace_start, at dwarf2cfi.c:2330
Date: Mon, 13 Feb 2017 17:47: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.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gerhard.steinmetz.fortran@t-online.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
Message-ID: <bug-79494-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01480.txt.bz2
Content-length: 1288

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79494

            Bug ID: 79494
           Summary: ICE in maybe_record_trace_start, at dwarf2cfi.c:2330
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fortran@t-online.de
  Target Milestone: ---

Option -fsplit-stack gives this ICE for roughly two dozen files
from gcc/testsuite, for example (down to 4.9) :


$ cat pr49994-1.c
void x (int a)
{
  __label__ xlab;
  void y (int b)
  {
    switch (b)
      {
      case 1:
        goto xlab;
      case 2:
        goto xlab;
      }
  }
  y (a);
xlab:;
}


$ gcc-7-20170212 -fsplit-stack -c pr49994-1.c
pr49994-1.c: In function 'x':
pr49994-1.c:16:1: internal compiler error: in maybe_record_trace_start, at
dwarf2cfi.c:2330
 }
 ^
0x83e7eb maybe_record_trace_start
        ../../gcc/dwarf2cfi.c:2330
0x83eaf7 create_trace_edges
        ../../gcc/dwarf2cfi.c:2440
0x840cca scan_trace
        ../../gcc/dwarf2cfi.c:2640
0x84185a create_cfi_notes
        ../../gcc/dwarf2cfi.c:2666
0x84185a execute_dwarf2_frame
        ../../gcc/dwarf2cfi.c:3024
0x84185a execute
        ../../gcc/dwarf2cfi.c:3504
>From gcc-bugs-return-553949-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 17:52:36 2017
Return-Path: <gcc-bugs-return-553949-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27407 invoked by alias); 13 Feb 2017 17:52:36 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 27298 invoked by uid 48); 13 Feb 2017 17:52:22 -0000
From: "gerhard.steinmetz.fortran@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79495] New: ICE in extract_constrain_insn, at recog.c:2213
Date: Mon, 13 Feb 2017 17:52: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.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gerhard.steinmetz.fortran@t-online.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
Message-ID: <bug-79495-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01481.txt.bz2
Content-length: 1552

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79495

            Bug ID: 79495
           Summary: ICE in extract_constrain_insn, at recog.c:2213
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fortran@t-online.de
  Target Milestone: ---

A test run with option -msoft-float hits an ICE for testsuite file
.../ieee/fp-cmp-3.c, version 6/7 at -Os, -O1 or higher.
Reduced :


$ cat z1.c
long double dnan = 1.0l/0.0l - 1.0l/0.0l;
long double x = 1.0l;
void fn1 (void)
{
  if (dnan != x)
    x = 1.0;
}


$ gcc-7-20170212 -O2 -msoft-float -c z1.c
z1.c: In function 'fn1':
z1.c:7:1: error: insn does not satisfy its constraints:
 }
 ^
(insn 29 16 30 3 (set (mem/c:DI (symbol_ref:DI ("x") [flags 0x2] <var_decl
0x2ad2b9f5dea0 x>) [1 x+0 S8 A128])
        (const_int -9223372036854775808 [0x8000000000000000])) "z1.c":6 81
{*movdi_internal}
     (nil))
z1.c:7:1: internal compiler error: in extract_constrain_insn, at recog.c:2213
0xb894d8 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        ../../gcc/rtl-error.c:108
0xb894ff _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        ../../gcc/rtl-error.c:119
0xb57bfd extract_constrain_insn(rtx_insn*)
        ../../gcc/recog.c:2213
0xb609ef copyprop_hardreg_forward_1
        ../../gcc/regcprop.c:794
0xb61724 execute
        ../../gcc/regcprop.c:1301
>From gcc-bugs-return-553950-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 17:53:25 2017
Return-Path: <gcc-bugs-return-553950-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28806 invoked by alias); 13 Feb 2017 17:53:24 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 28675 invoked by uid 48); 13 Feb 2017 17:53:11 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79494] ICE in maybe_record_trace_start, at dwarf2cfi.c:2330
Date: Mon, 13 Feb 2017 17:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-79494-4-5tVc9b3pQJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79494-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79494-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01482.txt.bz2
Content-length: 561

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79494

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-13
                 CC|                            |mpolacek at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed.
>From gcc-bugs-return-553953-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 17:55:50 2017
Return-Path: <gcc-bugs-return-553953-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38273 invoked by alias); 13 Feb 2017 17:55: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 37742 invoked by uid 48); 13 Feb 2017 17:55:42 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79496] call to snprintf eliminated with -Wformat-truncation=2
Date: Mon, 13 Feb 2017 17:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: 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
Message-ID: <bug-79496-4-nVY0lViT72@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79496-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79496-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01485.txt.bz2
Content-length: 633

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79496

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-02-13
           Assignee|unassigned at gcc dot gnu.org      |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Testing a patch.
>From gcc-bugs-return-553951-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 17:55:19 2017
Return-Path: <gcc-bugs-return-553951-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31657 invoked by alias); 13 Feb 2017 17:55: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 31478 invoked by uid 48); 13 Feb 2017 17:55:06 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79348] [7 Regression] abi_check fails  on s390x (2 undesignated symbols)
Date: Mon, 13 Feb 2017 17: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: 7.0
X-Bugzilla-Keywords: ABI
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79348-4-ETjAsHWLz6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79348-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79348-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01483.txt.bz2
Content-length: 217

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79348

--- Comment #14 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
Yep, fixed.(In reply to Jakub Jelinek from comment #13)
> Should be fixed now.

Yep, fixed.
>From gcc-bugs-return-553952-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 17:55:19 2017
Return-Path: <gcc-bugs-return-553952-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31667 invoked by alias); 13 Feb 2017 17:55: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 31470 invoked by uid 48); 13 Feb 2017 17:55:06 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79496] New: call to snprintf eliminated with -Wformat-truncation=2
Date: Mon, 13 Feb 2017 17:55: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: 7.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-79496-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01484.txt.bz2
Content-length: 1395

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79496

            Bug ID: 79496
           Summary: call to snprintf eliminated with -Wformat-truncation=2
           Product: gcc
           Version: 7.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: ---

As pointed out in bug 79448 comment 3, using -Wformat-truncation=2 results in
eliminating calls to snprintf with a non-constant size argument the lower bound
of whose range is zero.  The following small test case demonstrates the
problem.

$ cat u.c && gcc -O2 -S -Wformat-truncation=2
-fdump-tree-printf-return-value=/dev/stdout u.c
void f (void*);

int g (char *d, unsigned n)
{
  if (4 < n)
    n = 4;
  return __builtin_snprintf (d, n, "%i", 123);
}

;; Function g (g, funcdef_no=0, decl_uid=1798, cgraph_uid=0, symbol_order=0)

u.c:7: __builtin_snprintf: objsize = 9223372036854775807, fmtstr = "%i"
  Directive 1 at offset 0: "%i"
    Result: 3, 3, 3, 3 (3, 3, 3, 3)
  Directive 2 at offset 2: "", length = 1
  Substituting 3 for statement.

g (char * d, unsigned int n)
{
  long unsigned int _1;
  int _7;

  <bb 2> [100.00%]:
  n_8 = MIN_EXPR <n_3(D), 4>;
  _1 = (long unsigned int) n_8;
  _7 = 3;
  return _7;

}
>From gcc-bugs-return-553954-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 17:56:11 2017
Return-Path: <gcc-bugs-return-553954-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39718 invoked by alias); 13 Feb 2017 17:56: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 38938 invoked by uid 48); 13 Feb 2017 17:55:57 -0000
From: "gerhard.steinmetz.fortran@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79497] New: ICE in extract_insn, at recog.c:2311
Date: Mon, 13 Feb 2017 17: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gerhard.steinmetz.fortran@t-online.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
Message-ID: <bug-79497-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01486.txt.bz2
Content-length: 1736

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79497

            Bug ID: 79497
           Summary: ICE in extract_insn, at recog.c:2311
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fortran@t-online.de
  Target Milestone: ---

A test run with option -mcmodel=large hits an ICE for testsuite
file run-gd.c and run-ld.c, down to at least gcc 4.8.


$ gcc-7-20170212 -mcmodel=large -c run-gd.c
run-gd.c: In function 'get_gd':
run-gd.c:12:1: error: unrecognizable insn:
 }
 ^
(call_insn/u 5 2 6 2 (parallel [
            (set (reg:DI 0 ax)
                (call:DI (mem:QI (symbol_ref:DI ("__tls_get_addr")) [0  S1 A8])
                    (const_int 0 [0])))
            (unspec:DI [
                    (symbol_ref:DI ("tls_gd") [flags 0x12] <var_decl
0x2b5d2aa67e10 tls_gd>)
                    (reg/f:DI 7 sp)
                ] UNSPEC_TLS_GD)
        ]) "run-gd.c":11 -1
     (expr_list:REG_EH_REGION (const_int -2147483648 [0xffffffff80000000])
        (nil))
    (nil))
run-gd.c:12:1: internal compiler error: in extract_insn, at recog.c:2311
0xb894d8 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        ../../gcc/rtl-error.c:108
0xb89509 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        ../../gcc/rtl-error.c:116
0xb56b71 extract_insn(rtx_insn*)
        ../../gcc/recog.c:2311
0x921e7f instantiate_virtual_regs_in_insn
        ../../gcc/function.c:1637
0x921e7f instantiate_virtual_regs
        ../../gcc/function.c:1957
0x921e7f execute
        ../../gcc/function.c:2006
>From gcc-bugs-return-553955-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 17:58:41 2017
Return-Path: <gcc-bugs-return-553955-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45221 invoked by alias); 13 Feb 2017 17:58: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 45034 invoked by uid 48); 13 Feb 2017 17:58:27 -0000
From: "gerhard.steinmetz.fortran@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79498] New: ICE in df_insn_delete, at df-scan.c:948
Date: Mon, 13 Feb 2017 17: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gerhard.steinmetz.fortran@t-online.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
Message-ID: <bug-79498-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01487.txt.bz2
Content-length: 1502

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79498

            Bug ID: 79498
           Summary: ICE in df_insn_delete, at df-scan.c:948
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fortran@t-online.de
  Target Milestone: ---

Version 7 gives an ICE for testsuite file pr78526.c
in combination with -mcmodel=large and -Os, -O2 or higher :


$ gcc-7-20170212 -O2 -mcmodel=large -c pr78526.c
pr78526.c: In function 'bar':
pr78526.c:11:1: warning: AVX512F vector return without AVX512F enabled changes
the ABI [-Wpsabi]
 {
 ^
pr78526.c: In function 'foo':
pr78526.c:18:1: note: The ABI for passing parameters with 64-byte alignment has
changed in GCC 4.6
 foo (U u)
 ^~~
pr78526.c:18:1: warning: AVX512F vector argument without AVX512F enabled
changes the ABI [-Wpsabi]
pr78526.c:21:1: internal compiler error: in df_insn_delete, at df-scan.c:948
 }
 ^
0x82e90c df_insn_delete(rtx_insn*)
        ../../gcc/df-scan.c:948
0x7d5a87 delete_insn(rtx_insn*)
        ../../gcc/cfgrtl.c:169
0x7d5bb6 delete_insn_and_edges(rtx_insn*)
        ../../gcc/cfgrtl.c:231
0x12af85d delete_trivially_dead_insns(rtx_insn*, int)
        ../../gcc/cse.c:7146
0x12c962b fwprop_done
        ../../gcc/fwprop.c:1451
0x12cc31f fwprop_addr
        ../../gcc/fwprop.c:1552
0x12cc31f execute
        ../../gcc/fwprop.c:1580
>From gcc-bugs-return-553956-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 17:59:01 2017
Return-Path: <gcc-bugs-return-553956-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 46070 invoked by alias); 13 Feb 2017 17: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 45954 invoked by uid 48); 13 Feb 2017 17:58:50 -0000
From: "gerhard.steinmetz.fortran@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79498] ICE in df_insn_delete, at df-scan.c:948
Date: Mon, 13 Feb 2017 17: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gerhard.steinmetz.fortran@t-online.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-79498-4-vhUV9KAr2L@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79498-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79498-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01488.txt.bz2
Content-length: 2625

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79498

--- Comment #1 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
No ICE seen with gcc version 6.3.1 20170131.
On my environment, gcc-5.4.1 gives :


$ gcc-5-20170110 -mcmodel=large -O2 -c pr78526.c
pr78526.c: In function 'bar':
pr78526.c:11:1: warning: AVX512F vector return without AVX512F enabled changes
the ABI [-Wpsabi]
 {
 ^
pr78526.c: In function 'foo':
pr78526.c:18:1: note: The ABI for passing parameters with 64-byte alignment has
changed in GCC 4.6
 foo (U u)
 ^
pr78526.c: In function 'bar':
pr78526.c:13:16: internal compiler error: in tree_to_shwi, at tree.c:7151
   v[x[0]] <<= u[-63];
                ^
0xd99522 tree_to_shwi(tree_node const*)
        ../../gcc/tree.c:7151
0x8629c4 fold_indirect_ref_1(unsigned int, tree_node*, tree_node*)
        ../../gcc/fold-const.c:15945
0x88da53 fold_indirect_ref_loc(unsigned int, tree_node*)
        ../../gcc/fold-const.c:16024
0x92d4a8 gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../gcc/gimplify.c:8241
0x92d1a8 gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../gcc/gimplify.c:8833
0x93a4a8 gimplify_modify_expr
        ../../gcc/gimplify.c:4647
0x92d9a6 gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../gcc/gimplify.c:8129
0x931a76 gimplify_stmt(tree_node**, gimple_statement_base**)
        ../../gcc/gimplify.c:5548
0x92ee8b gimplify_statement_list
        ../../gcc/gimplify.c:1487
0x92ee8b gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../gcc/gimplify.c:8544
0x931a76 gimplify_stmt(tree_node**, gimple_statement_base**)
        ../../gcc/gimplify.c:5548
0x93297d gimplify_bind_expr
        ../../gcc/gimplify.c:1136
0x92dd73 gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../gcc/gimplify.c:8326
0x931a76 gimplify_stmt(tree_node**, gimple_statement_base**)
        ../../gcc/gimplify.c:5548
0x9334f0 gimplify_body(tree_node*, bool)
        ../../gcc/gimplify.c:9263
0x933af6 gimplify_function_tree(tree_node*)
        ../../gcc/gimplify.c:9417
0x7781b7 cgraph_node::analyze()
        ../../gcc/cgraphunit.c:634
0x77b3c3 analyze_functions
        ../../gcc/cgraphunit.c:1024
0x77bba5 symbol_table::finalize_compilation_unit()
        ../../gcc/cgraphunit.c:2453
0x62257a c_write_global_declarations()
        ../../gcc/c/c-decl.c:10857
>From gcc-bugs-return-553957-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 18:00:44 2017
Return-Path: <gcc-bugs-return-553957-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48634 invoked by alias); 13 Feb 2017 18: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 48485 invoked by uid 48); 13 Feb 2017 18:00:38 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Mon, 13 Feb 2017 18:00:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.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-79341-4-uXC2a3s4PU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01489.txt.bz2
Content-length: 460

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79341

--- Comment #53 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
(In reply to Dominik Vogt from comment #51)
> With r245382 plus the patch from comment 43, only the failure in
> null-deref-1.c is left.

Ah, not quite; no fails with -m31; with -m64 null-deref-1.c fails with c and
c++, and memcmp-1.c with c++ only.  Was any of this shupposed to be fixed? 
This thread has become a bit confusing.
>From gcc-bugs-return-553958-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 18:01:00 2017
Return-Path: <gcc-bugs-return-553958-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49487 invoked by alias); 13 Feb 2017 18:01: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 48969 invoked by uid 48); 13 Feb 2017 18:00:47 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79448] unhelpful -Wformat-truncation=2 INT_MAX warning
Date: Mon, 13 Feb 2017 18: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.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79448-4-bI5L3QdCRt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79448-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79448-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01490.txt.bz2
Content-length: 603

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79448

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
Ouch.  When its size argument is zero, a snprintf call is a request to compute
the size of output without actually writing any into the destination (which may
be a null pointer).  At level 2 the checker uses the lower bound of the range
of the size argument (for greater strictness) but fails to distinguish it from
a constant zero.  Since the argument may or may not be zero this is not safe. 
I've raised bug 79496 to track the problem (which is unrelated to this bug).
>From gcc-bugs-return-553959-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 18:01:16 2017
Return-Path: <gcc-bugs-return-553959-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50238 invoked by alias); 13 Feb 2017 18:01: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 49450 invoked by uid 48); 13 Feb 2017 18:00:58 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79493] Bad diagnostic when referring to inner type that does not exist
Date: Mon, 13 Feb 2017 18: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: 6.3.1
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: keywords bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-79493-4-aseumNCJKm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79493-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79493-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01491.txt.bz2
Content-length: 1104

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79493

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-13
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
namespace A { }
struct B {
  void f(A::nonexistent param);
  void* g(A::nonexistent param);
};

For f we get a much better error, but the ptr-declarator on g confuses things:

p.cc:3:13: error: ‘A::nonexistent’ has not been declared
   void f(A::nonexistent param);
             ^~~~~~~~~~~
p.cc:4:9: error: expected ‘;’ at end of member declaration
   void* g(A::nonexistent param);
         ^
p.cc:4:26: error: expected ‘)’ before ‘param’
   void* g(A::nonexistent param);
                          ^~~~~
>From gcc-bugs-return-553960-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 18:03:10 2017
Return-Path: <gcc-bugs-return-553960-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52728 invoked by alias); 13 Feb 2017 18:03: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 52408 invoked by uid 48); 13 Feb 2017 18:02:55 -0000
From: "gerhard.steinmetz.fortran@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79499] New: ICE in rtl_verify_bb_insns, at cfgrtl.c:2661
Date: Mon, 13 Feb 2017 18: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gerhard.steinmetz.fortran@t-online.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
Message-ID: <bug-79499-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01492.txt.bz2
Content-length: 1856

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79499

            Bug ID: 79499
           Summary: ICE in rtl_verify_bb_insns, at cfgrtl.c:2661
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fortran@t-online.de
  Target Milestone: ---

Version 6/7 with a involved -fno-omit-frame-pointer (at -Os|2|3)
ICEs for at least two testsuite files pr57478.c, pr78542.c :


$ cat pr57478.c
typedef struct Node Node;
struct Node
{
  Node *Pred, *Suc;
  Node *SubBestPred;
  Node *SubBestSuc;
};
void
foo (Node *N)
{
  do
    {
      N->SubBestPred = N->Pred;
      N->SubBestSuc = N->Suc;
    }
  while (N = N->Suc);
}


$ gcc-7-20170212 -O2 -fsplit-stack -c pr57478.c
$ gcc-7-20170212 -O2 -fsplit-stack -fno-omit-frame-pointer -c pr57478.c
pr57478.c: In function 'foo':
pr57478.c:17:1: error: in basic block 2:
 }
 ^
pr57478.c:17:1: error: flow control insn inside a basic block
(jump_insn 22 21 23 2 (set (pc)
        (if_then_else (geu (reg:CC 17 flags)
                (const_int 0 [0]))
            (label_ref 27)
            (pc))) "pr57478.c":10 -1
     (int_list:REG_BR_PROB 9900 (nil))
 -> 27)
pr57478.c:17:1: internal compiler error: in rtl_verify_bb_insns, at
cfgrtl.c:2661
0xb894d8 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        ../../gcc/rtl-error.c:108
0x7d2d63 rtl_verify_bb_insns
        ../../gcc/cfgrtl.c:2661
0x7d2d63 rtl_verify_flow_info_1
        ../../gcc/cfgrtl.c:2747
0x7d2dc5 rtl_verify_flow_info
        ../../gcc/cfgrtl.c:2989
0x7c20d5 verify_flow_info()
        ../../gcc/cfghooks.c:258
0xb17981 execute_function_todo
        ../../gcc/passes.c:1978
0xb18395 execute_todo
        ../../gcc/passes.c:2016
>From gcc-bugs-return-553961-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 18:05:40 2017
Return-Path: <gcc-bugs-return-553961-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57570 invoked by alias); 13 Feb 2017 18:05: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 57246 invoked by uid 48); 13 Feb 2017 18:05:26 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/79403] Installation of Ada compiler gets permissions wrong
Date: Mon, 13 Feb 2017 18:05: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: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.com
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-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-79403-4-zBWhb4NhmI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79403-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79403-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01493.txt.bz2
Content-length: 494

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79403

Dominik Vogt <vogt at linux dot vnet.ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #7 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
Oops, sorry, closed the bug report when the fix is not committed yet.
>From gcc-bugs-return-553963-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 18:13:26 2017
Return-Path: <gcc-bugs-return-553963-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75482 invoked by alias); 13 Feb 2017 18:13:25 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 75383 invoked by uid 48); 13 Feb 2017 18:13:17 -0000
From: "nathan at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79296] [6/7 Regression] ICE in mangle_decl, at cp/mangle.c:3845
Date: Mon, 13 Feb 2017 18:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nathan at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79296-4-3BxDHj58oz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79296-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79296-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01495.txt.bz2
Content-length: 448

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79296

Nathan Sidwell <nathan at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Fixed on trunk & 6 branches
>From gcc-bugs-return-553962-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 18:13:03 2017
Return-Path: <gcc-bugs-return-553962-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74636 invoked by alias); 13 Feb 2017 18:13: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 74470 invoked by uid 55); 13 Feb 2017 18:12:49 -0000
From: "nathan at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79296] [6/7 Regression] ICE in mangle_decl, at cp/mangle.c:3845
Date: Mon, 13 Feb 2017 18:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nathan at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79296-4-Or4KriZtp5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79296-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79296-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01494.txt.bz2
Content-length: 713

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79296

--- Comment #5 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Author: nathan
Date: Mon Feb 13 18:12:17 2017
New Revision: 245400

URL: https://gcc.gnu.org/viewcvs?rev=245400&root=gcc&view=rev
Log:
        PR c++/79296 - ICE mangling localized template instantiation
        * decl2.c (determine_visibility): Use template fn context for
        local class instantiations.

        PR c++/79296
        * g++.dg/cpp0x/pr79296.C: New.

Added:
    branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp0x/pr79296.C
Modified:
    branches/gcc-6-branch/gcc/cp/ChangeLog
    branches/gcc-6-branch/gcc/cp/decl2.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-553964-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 18:21:21 2017
Return-Path: <gcc-bugs-return-553964-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 63832 invoked by alias); 13 Feb 2017 18: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 40461 invoked by uid 48); 13 Feb 2017 18:21:08 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79479] -Woverflow false alarm in unreachable expression
Date: Mon, 13 Feb 2017 18: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
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: cc
Message-ID: <bug-79479-4-9AwHApWAen@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79479-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79479-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01496.txt.bz2
Content-length: 704

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79479

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |msebor at gcc dot gnu.org

--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
I think a similar issue was discussed in the past.  The warnings are justified
because implementations are allowed (even encouraged) to evaluate constant
expressions during translation rather than runtime.  As a result, the
translation of a program that contains an overflowing constant expression has
undefined behavior.
>From gcc-bugs-return-553965-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 18:27:06 2017
Return-Path: <gcc-bugs-return-553965-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103456 invoked by alias); 13 Feb 2017 18:27: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 103336 invoked by uid 48); 13 Feb 2017 18:26:53 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79479] -Woverflow false alarm in unreachable expression
Date: Mon, 13 Feb 2017 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: 6.3.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: see_also
Message-ID: <bug-79479-4-hYE2nFt9d6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79479-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79479-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01497.txt.bz2
Content-length: 507

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79479

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=68971

--- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> ---
A prior discussion on this subject is in bug 68971.
>From gcc-bugs-return-553966-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 18:36:17 2017
Return-Path: <gcc-bugs-return-553966-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 123687 invoked by alias); 13 Feb 2017 18:36: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 123406 invoked by uid 48); 13 Feb 2017 18:36:03 -0000
From: "vmakarov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/21182] [5/6/7 Regression] gcc can use registers but uses stack instead
Date: Mon, 13 Feb 2017 18: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: 3.4.3
X-Bugzilla-Keywords: missed-optimization, ra
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-21182-4-ysC7DqNsjy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-21182-4@http.gcc.gnu.org/bugzilla/>
References: <bug-21182-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01498.txt.bz2
Content-length: 1430

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=21182

--- Comment #25 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
(In reply to Jeffrey A. Law from comment #24)
> Do we happen to have easy access to the pressure at the various program
> points?  Dumping that with the points might prove fruitful in both the
> search for potential over-aggressive optimizations and to guide Bernd's work
> to schedule statements better at the gimple/rtl boundary.

Currently, we have only maximal pressure information in a region (including
function).  I think I can add printing register pressure in some readable way
at every program point for GCC8.

The problem with register pressure is that this info is approximate when we
have intersected and/or included register classes (e.g. one register class can
be profitable for a pseudo but smaller class could be the best).  IRA coloring
handles this with register classes trees.  Oppositely, the register pressure is
calculated now only for subset of classes (pressure classes) which do not
intersect.

As for making scheduling on gimple/rtl boundary, some obvious rearrangements
probably could be done there and may be in a simpler way but still I believe we
will need scheduling at the current places where we have the most accurate
information on used resources.  

There is always contradiction between RA and insn scheduler and therefore they
always work nearby.
>From gcc-bugs-return-553967-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 18:52:37 2017
Return-Path: <gcc-bugs-return-553967-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 97653 invoked by alias); 13 Feb 2017 18:52:36 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 96645 invoked by uid 48); 13 Feb 2017 18:52:23 -0000
From: "mocramis at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79482] _Static_assert(__builtin_constant_p(x)):
Date: Mon, 13 Feb 2017 18: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:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mocramis 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_status resolution
Message-ID: <bug-79482-4-05ODgn2HMt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79482-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79482-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01499.txt.bz2
Content-length: 746

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79482

Remy NOEL <mocramis at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|DUPLICATE                   |---

--- Comment #2 from Remy NOEL <mocramis at gmail dot com> ---
Unless there is another patch solving the duplicate bug than the one mentionned
in  Bug 65656 (rev 222531), the problem is not solved as this was tested on gcc
6.3 which includes aforementioned revision. 
I checked that the exemple mentionned in Bug 65656 did indeed compile with gcc
6.3 while the one in this ticket does not.
>From gcc-bugs-return-553968-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 18:54:30 2017
Return-Path: <gcc-bugs-return-553968-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102900 invoked by alias); 13 Feb 2017 18:54: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 102608 invoked by uid 48); 13 Feb 2017 18:54:17 -0000
From: "kargl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79492] LHS reallocation, intrinsic function RHS, and -fcheck=all
Date: Mon, 13 Feb 2017 18:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kargl 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: priority bug_status cf_reconfirmed_on cc short_desc everconfirmed cf_known_to_fail
Message-ID: <bug-79492-4-70r0h8579j@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79492-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79492-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01500.txt.bz2
Content-length: 2056

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79492

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-13
                 CC|                            |kargl at gcc dot gnu.org,
                   |                            |pault at gcc dot gnu.org
            Summary|odd behaviour triggered on  |LHS reallocation, intrinsic
                   |applying log function       |function RHS, and
                   |                            |-fcheck=all
     Ever confirmed|0                           |1
      Known to fail|                            |6.3.1, 7.0.1

--- Comment #1 from kargl at gcc dot gnu.org ---
This bug appears to date back to 

troutmask:sgk[224] svn log -r 167220 | more
------------------------------------------------------------------------
r167220 | pault | 2010-11-28 05:47:26 -0800 (Sun, 28 Nov 2010) | 51 lines

2010-11-28  Paul Thomas  <pault@gcc.gnu.org>

The suggested back is

Index: trans-expr.c
===================================================================
--- trans-expr.c        (revision 245254)
+++ trans-expr.c        (working copy)
@@ -9811,7 +9811,7 @@ gfc_trans_assignment_1 (gfc_expr * expr1
   /* Walk the lhs.  */
   lss = gfc_walk_expr (expr1);
   if (gfc_is_reallocatable_lhs (expr1)
-       && !(expr2->expr_type == EXPR_FUNCTION
+       && (expr2->expr_type == EXPR_FUNCTION
             && expr2->value.function.isym != NULL))
     lss->is_alloc_lhs = 1;
   rss = NULL;

In other words, the 2nd part of the if conditional looks to
be meant to disable LHS reallocation if the intrinsic procedure
is NULL().  Paul was that your intention five years ago?
>From gcc-bugs-return-553969-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 18:58:17 2017
Return-Path: <gcc-bugs-return-553969-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 344 invoked by alias); 13 Feb 2017 18:58:17 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 130911 invoked by uid 48); 13 Feb 2017 18:58:04 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79491] Possibly inefficient code for the inner product of two vectors
Date: Mon, 13 Feb 2017 18:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.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: cc
Message-ID: <bug-79491-4-U1aGJ5sEQ9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79491-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79491-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01501.txt.bz2
Content-length: 451

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79491

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hjl.tools at gmail dot com

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
Add "--param vect-max-peeling-for-alignment=0" will generate similar codes.
>From gcc-bugs-return-553970-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 19:07:03 2017
Return-Path: <gcc-bugs-return-553970-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16962 invoked by alias); 13 Feb 2017 19:07: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 16850 invoked by uid 48); 13 Feb 2017 19:06:49 -0000
From: "eggert at gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79479] -Woverflow false alarm in unreachable expression
Date: Mon, 13 Feb 2017 19: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: 6.3.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: eggert at gnu 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:
Message-ID: <bug-79479-4-ttnJx6XoIv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79479-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79479-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01502.txt.bz2
Content-length: 1201

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79479

--- Comment #7 from Paul Eggert <eggert at gnu dot org> ---
> the translation of a program that contains an overflowing constant expression has undefined behavior

Sure, but the programs in question do not contain constant expressions in sense
of the C standard. They contain expressions that consist entirely of constants,
which is a different thing. For example, assuming 32-bit int the following
program contains the constant expression 'INT_MAX + 1' and the C standard
requires a diagnostic for the overflow: 

  #include <limits.h>
  int F (void) {
    if (0) {
      static int too_big = INT_MAX + 1;
      return too_big != 0;
    }
    return 0;
  }

In contrast, the following program is valid C code and its behavior is
well-defined because 'INT_MAX + 1' is not a constant expression (in the
C-standard sense) and it is never evaluated:

  #include <limits.h>
  int G (void) {
    if (0) {
      int too_big = INT_MAX + 1;
      return too_big != 0;
    }
    return 0;
  }

This bug report is about the latter kind of program. In practice these are
often useful programs and GCC's overflow diagnostics are false alarms.
>From gcc-bugs-return-553971-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 19:10:50 2017
Return-Path: <gcc-bugs-return-553971-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22799 invoked by alias); 13 Feb 2017 19:10: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 22614 invoked by uid 48); 13 Feb 2017 19:10:37 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79482] _Static_assert(__builtin_constant_p(x)):
Date: Mon, 13 Feb 2017 19: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: 6.3.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-79482-4-6OGfFT62vB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79482-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79482-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01503.txt.bz2
Content-length: 310

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79482

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I didn't say it's solved, I said its the same. Notice that Bug 65656 is still
open, because it isn't fixed properly yet.

But since that's for C++ and this is for C we can keep both open.
>From gcc-bugs-return-553972-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 19:13:51 2017
Return-Path: <gcc-bugs-return-553972-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28173 invoked by alias); 13 Feb 2017 19:13: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 27920 invoked by uid 55); 13 Feb 2017 19:13:38 -0000
From: "sgk at troutmask dot apl.washington.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79492] LHS reallocation, intrinsic function RHS, and -fcheck=all
Date: Mon, 13 Feb 2017 19:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sgk at troutmask dot apl.washington.edu
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:
Message-ID: <bug-79492-4-kY9FgrLJms@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79492-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79492-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01504.txt.bz2
Content-length: 981

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79492

--- Comment #2 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Mon, Feb 13, 2017 at 06:54:16PM +0000, kargl at gcc dot gnu.org wrote:
> 
> The suggested back is

s/back/fix

> Index: trans-expr.c
> ===================================================================
> --- trans-expr.c        (revision 245254)
> +++ trans-expr.c        (working copy)
> @@ -9811,7 +9811,7 @@ gfc_trans_assignment_1 (gfc_expr * expr1
>    /* Walk the lhs.  */
>    lss = gfc_walk_expr (expr1);
>    if (gfc_is_reallocatable_lhs (expr1)
> -       && !(expr2->expr_type == EXPR_FUNCTION
> +       && (expr2->expr_type == EXPR_FUNCTION
>              && expr2->value.function.isym != NULL))
>      lss->is_alloc_lhs = 1;
>    rss = NULL;

This seems to cause regressions.
>From gcc-bugs-return-553973-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 19:32:02 2017
Return-Path: <gcc-bugs-return-553973-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54402 invoked by alias); 13 Feb 2017 19:32: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 54181 invoked by uid 55); 13 Feb 2017 19:31:48 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79232] [7 Regression] error: invalid rhs for gimple memory store
Date: Mon, 13 Feb 2017 19: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: 7.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: P1
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79232-4-OXBwLuVXlF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79232-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79232-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01505.txt.bz2
Content-length: 755

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79232

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Feb 13 19:31:14 2017
New Revision: 245401

URL: https://gcc.gnu.org/viewcvs?rev=245401&root=gcc&view=rev
Log:
        PR c++/79232
        * typeck.c (cp_build_modify_expr): Handle properly COMPOUND_EXPRs
        on lhs that have {PRE{DEC,INC}REMENT,MODIFY,MIN,MAX,COND}_EXPR
        in the rightmost operand.

        * g++.dg/cpp1z/eval-order4.C: New test.
        * g++.dg/other/pr79232.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1z/eval-order4.C
    trunk/gcc/testsuite/g++.dg/other/pr79232.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-553974-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 19:52:15 2017
Return-Path: <gcc-bugs-return-553974-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40629 invoked by alias); 13 Feb 2017 19:52: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 39638 invoked by uid 48); 13 Feb 2017 19:52:01 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79232] [7 Regression] error: invalid rhs for gimple memory store
Date: Mon, 13 Feb 2017 19: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: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
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: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79232-4-ejLb2C3KKQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79232-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79232-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01506.txt.bz2
Content-length: 424

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79232

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-553975-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 20:07:04 2017
Return-Path: <gcc-bugs-return-553975-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54412 invoked by alias); 13 Feb 2017 20:07: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 54335 invoked by uid 48); 13 Feb 2017 20:06:51 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79461] [5/6/7 Regression] [C++1z] ICE when capturing a variable in a lambda in a constexpr constructor
Date: Mon, 13 Feb 2017 20: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: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status assigned_to
Message-ID: <bug-79461-4-Ee9luEHKHZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79461-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79461-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01507.txt.bz2
Content-length: 445

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79461

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-invalid-code         |ice-on-valid-code
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |jason at gcc dot gnu.org
>From gcc-bugs-return-553976-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 20:17:59 2017
Return-Path: <gcc-bugs-return-553976-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 114848 invoked by alias); 13 Feb 2017 20:17: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 114671 invoked by uid 48); 13 Feb 2017 20:17:46 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70979] [C++14] g++ falsely accepts constexpr function returning a lambda
Date: Mon, 13 Feb 2017 20: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: 5.3.0
X-Bugzilla-Keywords: accepts-invalid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc assigned_to
Message-ID: <bug-70979-4-fKAM99nPv8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70979-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70979-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01508.txt.bz2
Content-length: 452

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70979

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |jason at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |jason at gcc dot gnu.org
>From gcc-bugs-return-553977-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 20:39:21 2017
Return-Path: <gcc-bugs-return-553977-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 123953 invoked by alias); 13 Feb 2017 20: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 122846 invoked by uid 48); 13 Feb 2017 20:39:08 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66297] [C++14] [DR 1684] constexpr non-static member functions of non-literal types
Date: Mon, 13 Feb 2017 20: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.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc assigned_to
Message-ID: <bug-66297-4-vxG8vU9hQh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66297-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66297-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01509.txt.bz2
Content-length: 452

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66297

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |jason at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |jason at gcc dot gnu.org
>From gcc-bugs-return-553978-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 20:58:25 2017
Return-Path: <gcc-bugs-return-553978-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39879 invoked by alias); 13 Feb 2017 20:58: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 39718 invoked by uid 48); 13 Feb 2017 20:58:10 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79479] -Woverflow false alarm in unreachable expression
Date: Mon, 13 Feb 2017 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: 6.3.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79479-4-Ut4bKJ3yiK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79479-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79479-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01510.txt.bz2
Content-length: 1360

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79479

--- Comment #8 from Martin Sebor <msebor at gcc dot gnu.org> ---
I understand the distinction, but I don't think it would be helpful to try to
make it in the implementation of the warning, for a few reasons:

1) It's too subtle for non-expert programmers to understand.
2) It's unclear under what conditions the warning should or should not be
issued.  What if the controlling expression evaluates to zero but is not a
constant expression?  With or without optimization?
3) Avoiding the warning would require removing the implementation from the
front end and adding it to the middle-end, which tends to lead to
inconsistencies and both false positives and negatives.  (This isn't an
argument against also handling the overflow in the middle-end, as
-Wstrict-overflow does, but rather one against removing it from the front end.)
4) There are a number of similar warnings that behave the same way (e.g.,
-Wshift-negative-value, -Wshift-count-overflow and -Wshift-overflow).  GCC
should be consistent in handling all these and so all the others would need to
change as well.
5) There is an easy way to rewrite the code to avoid the warning:

  int too_large (long x)
  {
  #if INT_MAX < LONG_MAX   // or in GCC 7, INT_SIZE < LONG_SIZE
    return 32768 * 65536L < x;
  #else
    return 0;
  #endif
  }
>From gcc-bugs-return-553979-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 20:58:58 2017
Return-Path: <gcc-bugs-return-553979-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41569 invoked by alias); 13 Feb 2017 20:58: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 40689 invoked by uid 48); 13 Feb 2017 20:58:45 -0000
From: "mocramis at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79482] _Static_assert(__builtin_constant_p(x)):
Date: Mon, 13 Feb 2017 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: 6.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mocramis 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-79482-4-3xRi17b70O@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79482-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79482-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01511.txt.bz2
Content-length: 459

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79482

--- Comment #4 from Remy NOEL <mocramis at gmail dot com> ---
Ha indeed, my bad.

I was confused by the fact that he original problem of the linked ticket is
solved (and also because the last comment targets the fix for an old release
which made me though it was either solved or forgotten).

If it is not worth keeping this ticket open, i'll close it. (though the failing
example is much more simple).
>From gcc-bugs-return-553980-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 20:59:11 2017
Return-Path: <gcc-bugs-return-553980-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42311 invoked by alias); 13 Feb 2017 20:59: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 41561 invoked by uid 48); 13 Feb 2017 20:58:58 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79496] call to snprintf eliminated with -Wformat-truncation=2
Date: Mon, 13 Feb 2017 20:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: patch, wrong-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: keywords
Message-ID: <bug-79496-4-OwypvYKH2z@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79496-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79496-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01512.txt.bz2
Content-length: 443

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79496

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 submitted for review:
https://gcc.gnu.org/ml/gcc-patches/2017-02/msg00851.html
>From gcc-bugs-return-553981-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 21:41:42 2017
Return-Path: <gcc-bugs-return-553981-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80715 invoked by alias); 13 Feb 2017 21:41: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 80423 invoked by uid 55); 13 Feb 2017 21:41:24 -0000
From: "prathamesh3492 at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79478] possible gimple error with gcc.dg/gimplefe-16.c
Date: Mon, 13 Feb 2017 21:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: prathamesh3492 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-79478-4-t0FHEMUSNb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79478-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79478-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01513.txt.bz2
Content-length: 540

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79478

--- Comment #3 from prathamesh3492 at gcc dot gnu.org ---
Author: prathamesh3492
Date: Mon Feb 13 21:40:51 2017
New Revision: 245406

URL: https://gcc.gnu.org/viewcvs?rev=245406&root=gcc&view=rev
Log:
2017-02-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

        PR c/79478
        * gimple-parser.c (c_parser_gimple_postfix_expression): Call
        set_c_expr_source_range when parsing ssa-name.

Modified:
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/gimple-parser.c
>From gcc-bugs-return-553982-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 21:45:35 2017
Return-Path: <gcc-bugs-return-553982-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 83754 invoked by alias); 13 Feb 2017 21:45: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 83288 invoked by uid 48); 13 Feb 2017 21:44:52 -0000
From: "prathamesh3492 at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79478] possible gimple error with gcc.dg/gimplefe-16.c
Date: Mon, 13 Feb 2017 21: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: prathamesh3492 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-79478-4-9GDw0DhmVm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79478-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79478-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01514.txt.bz2
Content-length: 189

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79478

--- Comment #4 from prathamesh3492 at gcc dot gnu.org ---
David, could you please confirm if r245406 fixes the error for you ?
Thanks!
>From gcc-bugs-return-553983-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 22:06:56 2017
Return-Path: <gcc-bugs-return-553983-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41527 invoked by alias); 13 Feb 2017 22:06: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 41376 invoked by uid 48); 13 Feb 2017 22:06:42 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70555] ICE in expand_expr_real_1 accessing a multi-dimensional VLA via lambda-capture
Date: Mon, 13 Feb 2017 22: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: 6.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_known_to_fail
Message-ID: <bug-70555-4-zF4lZ5qfdl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70555-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70555-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01515.txt.bz2
Content-length: 1736

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70555

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |7.0

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
Current trunk (GCC 7) looks even more confused than GCC 6.  Note also the SSA
names above the notes:

$ cat t.C && gcc -S -Wall t.C
void f (int n)
{
  int x[n][n];

  [&x](int i) {
    return x[0][i] = 0;
  }(0);
}
t.C: In lambda function:
t.C:5:13: error: Local declaration from a different function
   [&x](int i) {
             ^
D.2312
t.C:5:15: note: in statement
   [&x](int i) {
               ^
_2 = (sizetype) D.2312;
t.C:5:13: error: Local declaration from a different function
   [&x](int i) {
             ^
D.2312
t.C:5:15: note: in statement
   [&x](int i) {
               ^
_9 = (sizetype) D.2312;
t.C:5:13: error: Local declaration from a different function
   [&x](int i) {
             ^
D.2315
t.C:6:18: note: in statement
     return x[0][i] = 0;
            ~~~~~~^
_13 = D.2315 /[ex] 4;
t.C:5:13: internal compiler error: verify_gimple failed
   [&x](int i) {
             ^
0x11b3ca5 verify_gimple_in_cfg(function*, bool)
        /src/gcc/git/gcc/tree-cfg.c:5266
0x10412c2 execute_function_todo
        /src/gcc/git/gcc/passes.c:1966
0x104034d do_per_function
        /src/gcc/git/gcc/passes.c:1650
0x1041494 execute_todo
        /src/gcc/git/gcc/passes.c:2016
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-553984-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 22:08:41 2017
Return-Path: <gcc-bugs-return-553984-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42928 invoked by alias); 13 Feb 2017 22:08:41 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 42836 invoked by uid 48); 13 Feb 2017 22:08:28 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79494] [5/6/7 Regression] ICE in maybe_record_trace_start, at dwarf2cfi.c:2330
Date: Mon, 13 Feb 2017 22:08: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.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords cc cf_known_to_work target_milestone short_desc cf_known_to_fail
Message-ID: <bug-79494-4-GU25J2M6vz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79494-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79494-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01516.txt.bz2
Content-length: 939

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79494

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
                 CC|                            |marxin at gcc dot gnu.org
      Known to work|                            |4.6.4
   Target Milestone|---                         |7.0
            Summary|ICE in                      |[5/6/7 Regression] ICE in
                   |maybe_record_trace_start,   |maybe_record_trace_start,
                   |at dwarf2cfi.c:2330         |at dwarf2cfi.c:2330
      Known to fail|                            |4.7.4, 4.8.5, 4.9.4, 5.4.0,
                   |                            |6.3.0, 7.0

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with 4.7.x.
>From gcc-bugs-return-553985-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 22:10:55 2017
Return-Path: <gcc-bugs-return-553985-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45607 invoked by alias); 13 Feb 2017 22:10: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 45465 invoked by uid 48); 13 Feb 2017 22:10:42 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79495] [6/7 Regression] ICE in extract_constrain_insn, at recog.c:2213
Date: Mon, 13 Feb 2017 22: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: 7.0.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc target_milestone short_desc everconfirmed
Message-ID: <bug-79495-4-qUMPVlY03R@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79495-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79495-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01517.txt.bz2
Content-length: 991

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79495

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-13
                 CC|                            |marxin at gcc dot gnu.org,
                   |                            |ubizjak at gmail dot com
   Target Milestone|---                         |7.0
            Summary|ICE in                      |[6/7 Regression] ICE in
                   |extract_constrain_insn, at  |extract_constrain_insn, at
                   |recog.c:2213                |recog.c:2213
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r225919.
>From gcc-bugs-return-553986-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 22:12:37 2017
Return-Path: <gcc-bugs-return-553986-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47739 invoked by alias); 13 Feb 2017 22:12: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 47542 invoked by uid 48); 13 Feb 2017 22:12:25 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79497] ICE in extract_insn, at recog.c:2311
Date: Mon, 13 Feb 2017 22:12: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.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc target_milestone everconfirmed
Message-ID: <bug-79497-4-LXXEOWAqXB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79497-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79497-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01518.txt.bz2
Content-length: 705

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79497

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-13
                 CC|                            |marxin at gcc dot gnu.org
   Target Milestone|---                         |7.0
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
All releases I have ICE (4.5.0).
>From gcc-bugs-return-553987-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 22:17:54 2017
Return-Path: <gcc-bugs-return-553987-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55531 invoked by alias); 13 Feb 2017 22:17: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 55086 invoked by uid 48); 13 Feb 2017 22:17:41 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79498] [5/7 Regression] ICE in df_insn_delete, at df-scan.c:948
Date: Mon, 13 Feb 2017 22: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: 7.0.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc target_milestone short_desc everconfirmed
Message-ID: <bug-79498-4-s44HYxNC9n@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79498-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79498-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01519.txt.bz2
Content-length: 1123

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79498

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-13
                 CC|                            |hjl.tools at gmail dot com,
                   |                            |marxin at gcc dot gnu.org,
                   |                            |rguenth at gcc dot gnu.org
   Target Milestone|---                         |7.0
            Summary|ICE in df_insn_delete, at   |[5/7 Regression] ICE in
                   |df-scan.c:948               |df_insn_delete, at
                   |                            |df-scan.c:948
     Ever confirmed|0                           |1

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, the df-scan ICE appeared in r239383 and the folding stuff
disappeared in r233852.
>From gcc-bugs-return-553988-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 22:19:22 2017
Return-Path: <gcc-bugs-return-553988-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 63529 invoked by alias); 13 Feb 2017 22:19: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 63389 invoked by uid 48); 13 Feb 2017 22:19:09 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70555] ICE in expand_expr_real_1 accessing a multi-dimensional VLA via lambda-capture
Date: Mon, 13 Feb 2017 22: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: 6.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-70555-4-bMakuVfogN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70555-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70555-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01520.txt.bz2
Content-length: 204

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70555

--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
A somewhat simplified test case:

void f (int n)
{
  int a[n][n];

  [&a]() { }();
}
>From gcc-bugs-return-553989-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 22:25:01 2017
Return-Path: <gcc-bugs-return-553989-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68278 invoked by alias); 13 Feb 2017 22:25: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 68127 invoked by uid 48); 13 Feb 2017 22:24:48 -0000
From: "eggert at gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79479] -Woverflow false alarm in unreachable expression
Date: Mon, 13 Feb 2017 22: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
X-Bugzilla-Severity: normal
X-Bugzilla-Who: eggert at gnu 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:
Message-ID: <bug-79479-4-UD58Csj2Jl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79479-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79479-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01521.txt.bz2
Content-length: 3406

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79479

--- Comment #9 from Paul Eggert <eggert at gnu dot org> ---
> 1) It's too subtle for non-expert programmers to understand.

Actually, it's typically easy for non-experts to follow this. For example,
although GCC falsely warns about this:

  /*1*/ if (0) return INT_MAX + 1; else return 0;

GCC handles this correctly:

  /*2*/ return 0 ? INT_MAX + 1 : 0;

If /*1*/ were really "too subtle" for non-experts, /*2*/ would also be "too
subtle". In practice, though, /*2*/ is working well and is not "too subtle",
and GCC should be able to make /*1*/ work as well.

> 2) It's unclear under what conditions the warning should or should not be
> issued.

As a first approximation, have GCC treat /*1*/ like it treats /*2*/.

> What if the controlling expression evaluates to zero but is not a
> constant expression?

Do what /*2*/ does.

> With or without optimization?

Again, do what /*2*/ does.

> 3) Avoiding the warning would require removing the implementation from the
> front end and adding it to the middle-end, which tends to lead to
> inconsistencies and both false positives and negatives.  (This isn't an
> argument against also handling the overflow in the middle-end, as
> -Wstrict-overflow does, but rather one against removing it from the front end.)

Perhaps, given GCC's current internal structure it's nontrivial to fix GCC to
eliminate the false alarms.  However, this doesn't affect the fact that they
are false alarms, and that problems in this area are due to problems in GCC's
internal structure rather than being problems intrinsic to the analysis of C
programs.

> 4) There are a number of similar warnings that behave the same way (e.g.,
> -Wshift-negative-value, -Wshift-count-overflow and -Wshift-overflow).  GCC
> should be consistent in handling all these and so all the others would need to
> change as well.

Yes, that sounds right.

> 5) There is an easy way to rewrite the code to avoid the warning:
>
>   int too_large (long x)
>   {
>   #if INT_MAX < LONG_MAX   // or in GCC 7, INT_SIZE < LONG_SIZE
>     return 32768 * 65536L < x;
>   #else
>     return 0;
>   #endif
>   }

Although #if works for this particular example, it does not work with modern
programming styles that try to avoid the preprocessor for various good reasons.
Worse, #if does not work for expressions that contain constants that are not
visible to the C proprocessor. In the following example, GCC reports a false
alarm and this cannot be handled by the preprocessor because the preprocessor
cannot see the values of ELTS and MULTIPLIER. Another example: sizeof is
commonly involved in overflow checks, and the preprocessor cannot handle
sizeof.

#include <limits.h>
/* Assume these are supplied by some header elsewhere, as enums.  */
enum { ELTS = 1000000000, MULTIPLIER = 10 };
/* Return ELTS times MULTIPLIER.  If the result would overflow,
   return the closest representable value.  */
int ELTS_times_MULTIPLIER_saturated (void) {
  enum { a = ELTS, b = MULTIPLIER };
  if (b < 0) {
    if (a < 0) {
      if (INT_MAX / b <= a)
        return INT_MAX;
    } else {
      if (b != -1 && INT_MIN / b < a)
        return INT_MIN;
    }
  } else if (b != 0) {
    if (a < 0) {
      if (a < INT_MIN / b)
        return INT_MIN;
    } else {
      if (INT_MAX / b < a)
        return INT_MAX;
    }
  }
  return a * b;
}
>From gcc-bugs-return-553990-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 22:31:49 2017
Return-Path: <gcc-bugs-return-553990-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95508 invoked by alias); 13 Feb 2017 22: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 95190 invoked by uid 55); 13 Feb 2017 22:31:45 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79461] [5/6/7 Regression] [C++1z] ICE when capturing a variable in a lambda in a constexpr constructor
Date: Mon, 13 Feb 2017 22: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.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79461-4-PDjucWPRIu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79461-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79461-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01522.txt.bz2
Content-length: 565

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79461

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Feb 13 22:31:12 2017
New Revision: 245410

URL: https://gcc.gnu.org/viewcvs?rev=245410&root=gcc&view=rev
Log:
        PR c++/79461 - ICE with lambda in constexpr constructor

        * constexpr.c (build_data_member_initialization): Ignore
        initialization of a local variable.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1z/constexpr-lambda15.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/constexpr.c
>From gcc-bugs-return-553991-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 22:32:28 2017
Return-Path: <gcc-bugs-return-553991-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96721 invoked by alias); 13 Feb 2017 22:32: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 96612 invoked by uid 48); 13 Feb 2017 22:32:15 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79461] [5/6 Regression] [C++1z] ICE when capturing a variable in a lambda in a constexpr constructor
Date: Mon, 13 Feb 2017 22: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: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-79461-4-DMhdxhxzD3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79461-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79461-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01523.txt.bz2
Content-length: 613

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79461

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[5/6/7 Regression] [C++1z]  |[5/6 Regression] [C++1z]
                   |ICE when capturing a        |ICE when capturing a
                   |variable in a lambda in a   |variable in a lambda in a
                   |constexpr constructor       |constexpr constructor

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for 7 so far.
>From gcc-bugs-return-553992-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 22:34:34 2017
Return-Path: <gcc-bugs-return-553992-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98470 invoked by alias); 13 Feb 2017 22:34:33 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 98357 invoked by uid 48); 13 Feb 2017 22:34:21 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70979] [C++14] g++ falsely accepts constexpr function returning a lambda
Date: Mon, 13 Feb 2017 22: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: 5.3.0
X-Bugzilla-Keywords: accepts-invalid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-70979-4-Jkbt5W81a7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70979-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70979-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01524.txt.bz2
Content-length: 320

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70979

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Created attachment 40730
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40730&action=edit
fix

Here's a fix; I'm inclined to hold it for GCC 8, now that the trunk is in
regression-only mode.
>From gcc-bugs-return-553993-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 22:36:11 2017
Return-Path: <gcc-bugs-return-553993-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 104641 invoked by alias); 13 Feb 2017 22:36: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 104434 invoked by uid 48); 13 Feb 2017 22:35:58 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/70979] [C++14] g++ falsely accepts constexpr function returning a lambda
Date: Mon, 13 Feb 2017 22: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: 5.3.0
X-Bugzilla-Keywords: accepts-invalid, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-70979-4-u2aGpXIen3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70979-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70979-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01525.txt.bz2
Content-length: 437

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70979

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Created attachment 40731
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40731&action=edit
patch for DR 1071

Relatedly, here's a patch to implement DR 1071, which is the error clang gives.
 But this breaks several things in libstdc++, so it needs more investigation
before it will be ready even for GCC 8.
>From gcc-bugs-return-553994-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 22:37:11 2017
Return-Path: <gcc-bugs-return-553994-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106035 invoked by alias); 13 Feb 2017 22:37: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 105885 invoked by uid 48); 13 Feb 2017 22:36:58 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66297] [C++14] [DR 1684] constexpr non-static member functions of non-literal types
Date: Mon, 13 Feb 2017 22: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.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-66297-4-polIwmTxoC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66297-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66297-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01526.txt.bz2
Content-length: 320

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66297

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Created attachment 40732
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40732&action=edit
fix

Here's a fix; I'm inclined to hold it for GCC 8, now that the trunk is in
regression-only mode.
>From gcc-bugs-return-553995-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 23:05:05 2017
Return-Path: <gcc-bugs-return-553995-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106938 invoked by alias); 13 Feb 2017 23:05: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 106774 invoked by uid 48); 13 Feb 2017 23:04:49 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79463] [7 Regression] ICE for -g with ./g++.dg/cpp1y/pr79435.C
Date: Mon, 13 Feb 2017 23: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: 7.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-79463-4-9iazUttxPx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79463-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79463-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01527.txt.bz2
Content-length: 2071

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79463

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-13
                 CC|                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed:

$ gcc -S -g /src/gcc/git/gcc/testsuite/g++.dg/cpp1y/pr79435.C
/src/gcc/git/gcc/testsuite/g++.dg/cpp1y/pr79435.C:5:10: warning: ‘a’ has
incomplete type
 extern A a; // { dg-error "'a' has incomplete type" }
          ^
/src/gcc/git/gcc/testsuite/g++.dg/cpp1y/pr79435.C:4:8: note: forward
declaration of ‘struct A’
 struct A;
        ^
/src/gcc/git/gcc/testsuite/g++.dg/cpp1y/pr79435.C:5:10: internal compiler
error: Segmentation fault
 extern A a; // { dg-error "'a' has incomplete type" }
          ^
0x11634ca crash_signal
        /src/gcc/git/gcc/toplev.c:337
0x8de987 check_abi_tags
        /src/gcc/git/gcc/cp/class.c:1616
0x8dec79 check_abi_tags(tree_node*)
        /src/gcc/git/gcc/cp/class.c:1654
0xa5a2b4 write_mangled_name
        /src/gcc/git/gcc/cp/mangle.c:770
0xa6b474 mangle_decl_string
        /src/gcc/git/gcc/cp/mangle.c:3757
0xa6b4ba get_mangled_id
        /src/gcc/git/gcc/cp/mangle.c:3779
0xa6b97d mangle_decl(tree_node*)
        /src/gcc/git/gcc/cp/mangle.c:3849
0x14adb0e decl_assembler_name(tree_node*)
        /src/gcc/git/gcc/tree.c:671
0xcd068f dwarf2out_early_finish
        /src/gcc/git/gcc/dwarf2out.c:29900
0xc2d836 symbol_table::finalize_compilation_unit()
        /src/gcc/git/gcc/cgraphunit.c:2617
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-553996-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 23:09:49 2017
Return-Path: <gcc-bugs-return-553996-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119491 invoked by alias); 13 Feb 2017 23:09: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 119227 invoked by uid 55); 13 Feb 2017 23:09:42 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Mon, 13 Feb 2017 23:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.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:
Message-ID: <bug-79341-4-NOICNhMldY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01528.txt.bz2
Content-length: 507

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79341

--- Comment #54 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Feb 13 23:09:09 2017
New Revision: 245411

URL: https://gcc.gnu.org/viewcvs?rev=245411&root=gcc&view=rev
Log:
        PR sanitizer/79341
        * c-c++-common/ubsan/float-cast-overflow-8.c (TEST): Make min and max
        variables volatile.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/c-c++-common/ubsan/float-cast-overflow-8.c
>From gcc-bugs-return-553997-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 23:12:25 2017
Return-Path: <gcc-bugs-return-553997-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122105 invoked by alias); 13 Feb 2017 23:12: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 122012 invoked by uid 48); 13 Feb 2017 23:12:12 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79458] attributes on constructor between class name and parameter list not accepted
Date: Mon, 13 Feb 2017 23:12: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.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-79458-4-gv0TKlqxb8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79458-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79458-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01529.txt.bz2
Content-length: 996

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79458

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |msebor at gcc dot gnu.org
         Resolution|---                         |INVALID

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
The attribute comes before the function name:

$ cat t.C && gcc -S -Wall t.C
struct test {
  __attribute__ ((nonnull)) test (char*);
  [[gnu::nonnull]] test (char*, char*);
};

test a (0);
test b (0, 0);
t.C:6:10: warning: null argument where non-null required (argument 2)
[-Wnonnul]
 test a (0);
          ^
t.C:7:13: warning: null argument where non-null required (argument 2)
[-Wnonnul]
 test b (0, 0);
             ^
t.C:7:13: warning: null argument where non-null required (argument 3)
[-Wnonnul]
>From gcc-bugs-return-553998-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 23:14:33 2017
Return-Path: <gcc-bugs-return-553998-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125630 invoked by alias); 13 Feb 2017 23: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 125531 invoked by uid 48); 13 Feb 2017 23:14:18 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79495] [6/7 Regression] ICE in extract_constrain_insn, at recog.c:2213
Date: Mon, 13 Feb 2017 23: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: 7.0.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak at gmail dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ubizjak at gmail dot com
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to attachments.created
Message-ID: <bug-79495-4-jpyGZmuiHs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79495-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79495-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01530.txt.bz2
Content-length: 625

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79495

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |ubizjak at gmail dot com

--- Comment #2 from Uroš Bizjak <ubizjak at gmail dot com> ---
Created attachment 40733
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40733&action=edit
Patch in testing

Add correct movxf_internal constraint for 64bit targets.
>From gcc-bugs-return-553999-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 23:55:54 2017
Return-Path: <gcc-bugs-return-553999-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84520 invoked by alias); 13 Feb 2017 23:55: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 83600 invoked by uid 48); 13 Feb 2017 23:55:40 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/79273] FAIL: c-c++-common/Wduplicated-branches-13.c -std=gnu++98 (test for excess errors)
Date: Mon, 13 Feb 2017 23:55: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-79273-4-Vw30Ibofyt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79273-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79273-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01531.txt.bz2
Content-length: 908

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79273

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|2017-01-30 00:00:00         |2017-02-13
                 CC|                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
I can't reproduce these failures with an hppa2.0w-hp-hpux11.11 cross-compiler
and I don't see them in the most recent test results for the target
(https://gcc.gnu.org/ml/gcc-testresults/2017-02/msg01446.html), or on
arm-none-linux-gnueabi
(https://gcc.gnu.org/ml/gcc-testresults/2017-02/msg01227.html).  Is this still
an issue or has the problem been fixed?
>From gcc-bugs-return-554000-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 13 23:58:22 2017
Return-Path: <gcc-bugs-return-554000-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86340 invoked by alias); 13 Feb 2017 23:58:22 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 86233 invoked by uid 55); 13 Feb 2017 23:58:09 -0000
From: "joseph at codesourcery dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79479] -Woverflow false alarm in unreachable expression
Date: Mon, 13 Feb 2017 23: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
X-Bugzilla-Severity: normal
X-Bugzilla-Who: joseph at codesourcery dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79479-4-zQZlUwGG5r@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79479-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79479-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01532.txt.bz2
Content-length: 217

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79479

--- Comment #10 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
This is arguably the same as or similar to bug 4210 and its duplicates.
>From gcc-bugs-return-554001-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 00:05:36 2017
Return-Path: <gcc-bugs-return-554001-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94187 invoked by alias); 14 Feb 2017 00:05: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 93983 invoked by uid 48); 14 Feb 2017 00:05:23 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79498] [5/7 Regression] ICE in df_insn_delete, at df-scan.c:948
Date: Tue, 14 Feb 2017 00: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: 7.0.1
X-Bugzilla-Keywords: ice-on-valid-code
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-79498-4-Vr0LDuwFZB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79498-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79498-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01533.txt.bz2
Content-length: 243

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79498

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
Created attachment 40734
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40734&action=edit
A patch

I am testing this.
>From gcc-bugs-return-554002-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 00:21:59 2017
Return-Path: <gcc-bugs-return-554002-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55466 invoked by alias); 14 Feb 2017 00:21: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 55347 invoked by uid 48); 14 Feb 2017 00:21:47 -0000
From: "brooks at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/58909] C++11's condition variables fail with static linking
Date: Tue, 14 Feb 2017 00: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: brooks at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-58909-4-pwfCAF2ORC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58909-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58909-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01534.txt.bz2
Content-length: 1104

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58909

Brooks Moses <brooks at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |brooks at gcc dot gnu.org

--- Comment #5 from Brooks Moses <brooks at gcc dot gnu.org> ---
How is this "invalid", though?

If there is, as you said on bug 57740, an issue of "not understanding the
interaction between weak links and archives" rather than a bug in how they
interact, then who is it that has the misunderstanding?

joel@'s code doesn't have weak links in it.  It just defines a
std::condition_variable.

Either joel@'s code is bad for some very non-obvious reason, or he needs to do
special things on his link line to make it link correctly (which, at minimum,
needs documentation in the libstdc++ manual), or the misunderstanding is in
libstdc++ and thus libstdc++ needs to be fixed.

In either of those cases, this is a libstdc++ bug, whether of documentation or
of creation of weak links.  No?
>From gcc-bugs-return-554003-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 01:19:24 2017
Return-Path: <gcc-bugs-return-554003-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44564 invoked by alias); 14 Feb 2017 01:19: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 44344 invoked by uid 48); 14 Feb 2017 01:19:10 -0000
From: "danglin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/79273] FAIL: c-c++-common/Wduplicated-branches-13.c -std=gnu++98 (test for excess errors)
Date: Tue, 14 Feb 2017 01:19: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: danglin 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-79273-4-7qgQPiVDst@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79273-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79273-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01535.txt.bz2
Content-length: 674

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79273

John David Anglin <danglin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from John David Anglin <danglin at gcc dot gnu.org> ---
I believe this was fixed by the following:

2017-01-27  Jakub Jelinek  <jakub@redhat.com>

        PR c/79199
        * c-c++-common/Wduplicated-branches-13.c: Require int32plus effective
        target.  Use 4294967293U instead of 4294967293.
>From gcc-bugs-return-554004-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 02:05:53 2017
Return-Path: <gcc-bugs-return-554004-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75226 invoked by alias); 14 Feb 2017 02:05: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 74905 invoked by uid 48); 14 Feb 2017 02:05:39 -0000
From: "richard-gccbugzilla at metafoo dot co.uk" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79500] New: non-template deduction guides cause crash
Date: Tue, 14 Feb 2017 02:05: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.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: richard-gccbugzilla at metafoo dot co.uk
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-79500-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01536.txt.bz2
Content-length: 681

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79500

            Bug ID: 79500
           Summary: non-template deduction guides cause crash
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: richard-gccbugzilla at metafoo dot co.uk
  Target Milestone: ---

Testcase:

template<typename T> struct A {};
A(...) -> A<int>;
A a = {};


results in:

<source>:3:8: internal compiler error: tree check: expected template_decl, have
function_decl in do_class_deduction, at cp/pt.c:25096
A a = {};
       ^
>From gcc-bugs-return-554005-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 02:26:43 2017
Return-Path: <gcc-bugs-return-554005-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59099 invoked by alias); 14 Feb 2017 02:26: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 58983 invoked by uid 48); 14 Feb 2017 02:26:27 -0000
From: "richard-gccbugzilla at metafoo dot co.uk" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79501] New: member deduction guide not recognized
Date: Tue, 14 Feb 2017 02: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: richard-gccbugzilla at metafoo dot co.uk
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-79501-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01537.txt.bz2
Content-length: 955

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79501

            Bug ID: 79501
           Summary: member deduction guide not recognized
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: richard-gccbugzilla at metafoo dot co.uk
  Target Milestone: ---

struct X {
  template<typename T> struct A {};
  A() -> A<int>;
};

... results in:

<source>:3:10: error: ISO C++ forbids declaration of 'A' with no type
[-fpermissive]
  A() -> A<int>;
         ^~~~~~
<source>:3:10: error: 'A' function with trailing return type not declared with
'auto' type specifier


... and ...

struct X {
  template<typename T> struct A {};
  template<typename T> A() -> A<int>;
};

... results in:

<source>:3:24: error: deduction guide 'X::A() -> X::A<int>' must be declared at
namespace scope
>From gcc-bugs-return-554006-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 04:08:09 2017
Return-Path: <gcc-bugs-return-554006-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30084 invoked by alias); 14 Feb 2017 04:08: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 29989 invoked by uid 48); 14 Feb 2017 04:07:55 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79479] -Woverflow false alarm in unreachable expression
Date: Tue, 14 Feb 2017 04:08: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
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79479-4-8YXZgcnXob@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79479-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79479-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01538.txt.bz2
Content-length: 1288

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79479

--- Comment #11 from Martin Sebor <msebor at gcc dot gnu.org> ---
Yes, bug 4210 looks like a duplicate.   The test case from attachment 40722
recast in the context of that enhancement request looks like this:

  int too_large (long x)
  {
    const int b = sizeof (int) < sizeof (long)
    if (b)
      return 32768 * 65536L < x;
    return 0;
  }

An even less straightforward example might be one where b is an element of an
array initialized (or assigned to) from constants, or, for a type with more
than two values, in some set that excludes the tested value, or the result of a
function call with constant arguments expanded inline by the optimizer.  Etc. 
(Note that in all of these examples the warning is expected to do more than
what it's intended and documented to do, namely "warn about compile-time
overflow in constant expressions.")

Deferring the warning until later stages of optimization in an effort to expand
the set of contexts in which it recognizes that a constant expression cannot be
evaluated at runtime would quite likely come at the cost of a growing rate of
both false negatives and other false positives resulting from the very
transformations the smarter warning would have to depend on.
>From gcc-bugs-return-554007-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 04:39:45 2017
Return-Path: <gcc-bugs-return-554007-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 63446 invoked by alias); 14 Feb 2017 04:39:44 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 63327 invoked by uid 55); 14 Feb 2017 04:39:31 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79496] call to snprintf eliminated with -Wformat-truncation=2
Date: Tue, 14 Feb 2017 04:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: patch, wrong-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:
Message-ID: <bug-79496-4-uWdNR3SEl8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79496-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79496-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01539.txt.bz2
Content-length: 842

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79496

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Tue Feb 14 04:38:54 2017
New Revision: 245415

URL: https://gcc.gnu.org/viewcvs?rev=245415&root=gcc&view=rev
Log:
PR middle-end/79496 - call to snprintf with zero size eliminated with
-Wformat-truncation=2

gcc/ChangeLog:

        PR middle-end/79496
        * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
        clearing info.nowrite flag when snprintf size argument is a range.

gcc/testsuite/ChangeLog:

        PR middle-end/79496
        * gcc.dg/tree-ssa/builtin-snprintf-2.c: New test.


Added:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-snprintf-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimple-ssa-sprintf.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-554008-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 04:40:23 2017
Return-Path: <gcc-bugs-return-554008-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64484 invoked by alias); 14 Feb 2017 04:40: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 64316 invoked by uid 48); 14 Feb 2017 04:40:11 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79496] call to snprintf eliminated with -Wformat-truncation=2
Date: Tue, 14 Feb 2017 04: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: 7.0
X-Bugzilla-Keywords: patch, wrong-code
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
Message-ID: <bug-79496-4-W4j53ReEWK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79496-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79496-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01540.txt.bz2
Content-length: 435

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79496

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
Fixed via r245415.
>From gcc-bugs-return-554009-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 06:14:45 2017
Return-Path: <gcc-bugs-return-554009-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52984 invoked by alias); 14 Feb 2017 06:14:45 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 52387 invoked by uid 48); 14 Feb 2017 06:14:26 -0000
From: "lucdanton at free dot fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79502] New: [[nodiscard]] attribute ignored for class template
Date: Tue, 14 Feb 2017 06: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: lucdanton at free dot 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-79502-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01541.txt.bz2
Content-length: 715

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79502

            Bug ID: 79502
           Summary: [[nodiscard]] attribute ignored for class template
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: lucdanton at free dot fr
  Target Milestone: ---

On r245381, the demonstration program does not complain when compiled.

//------------------------------
template<typename>
struct [[nodiscard]] missiles {};

missiles<void> make() { return {}; }

int main()
{
    // result value ignored here
    make();
}
//------------------------------
>From gcc-bugs-return-554010-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 06:18:45 2017
Return-Path: <gcc-bugs-return-554010-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16972 invoked by alias); 14 Feb 2017 06:18:45 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 121709 invoked by uid 48); 14 Feb 2017 06:18:32 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79502] [[nodiscard]] attribute ignored for class template
Date: Tue, 14 Feb 2017 06: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: 7.0.1
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: dependson
Message-ID: <bug-79502-4-722rimEmGC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79502-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79502-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01542.txt.bz2
Content-length: 550

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79502

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |38172

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Related to PR 38172.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38172
[Bug 38172] warn_unused_result does not work with structs not containing a copy
constructor
>From gcc-bugs-return-554011-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 06:55:01 2017
Return-Path: <gcc-bugs-return-554011-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58031 invoked by alias); 14 Feb 2017 06:55: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 57742 invoked by uid 48); 14 Feb 2017 06:54:48 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/58909] C++11's condition variables fail with static linking
Date: Tue, 14 Feb 2017 06: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-58909-4-LFjBxqKeVc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58909-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58909-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01543.txt.bz2
Content-length: 185

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58909

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
INVALID means it is not a gcc bug, glibc has a separate bugzilla.
>From gcc-bugs-return-554012-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 07:05:48 2017
Return-Path: <gcc-bugs-return-554012-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92445 invoked by alias); 14 Feb 2017 07:05: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 92304 invoked by uid 48); 14 Feb 2017 07:05:35 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79498] [5/7 Regression] ICE in df_insn_delete, at df-scan.c:948
Date: Tue, 14 Feb 2017 07: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: 7.0.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak 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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79498-4-QXKtDzFnWZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79498-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79498-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01544.txt.bz2
Content-length: 291

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79498

--- Comment #4 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to H.J. Lu from comment #3)
> Created attachment 40734 [details]
> A patch
> 
> I am testing this.

Patch is pre-approved for mainline and release branches.
>From gcc-bugs-return-554013-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 07:43:24 2017
Return-Path: <gcc-bugs-return-554013-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55823 invoked by alias); 14 Feb 2017 07:43: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 55516 invoked by uid 48); 14 Feb 2017 07:43:10 -0000
From: "lucdanton at free dot fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79503] New: [new inheriting ctors] spurious bad candidate from same or derived type
Date: Tue, 14 Feb 2017 07:43: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.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: lucdanton at free dot 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-79503-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01545.txt.bz2
Content-length: 1464

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79503

            Bug ID: 79503
           Summary: [new inheriting ctors] spurious bad candidate from
                    same or derived type
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: lucdanton at free dot fr
  Target Milestone: ---

My understanding of the new inheriting constructor rules is a bit shaky so I
may be off here. The testcase:

//--------------------
struct payload {};

struct base: private payload {
    base(payload) {}
};

struct derived: base {
    using base::base;
};

int main()
{
    payload data;
    // error: no matching function for call to 'derived::derived(payload&)'
    // note: candidate: base::base(payload)
    // note:   an inherited constructor is not a candidate for initialization
from an expression of the same or derived type
    derived demo(data);
}
//--------------------

Compilation fails on recent trunk with e.g.:
    g++-trunk -std=c++14 main.cpp
but succeeds with -fno-new-inheriting-ctors. A hint that something is wrong is
that there is no error if base derives from some other class than payload.

At the very least the last note is misleading: all inherited candidates are
from base whereas the expression has type payload which is neither the same nor
derived from it.
>From gcc-bugs-return-554014-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 07:47:01 2017
Return-Path: <gcc-bugs-return-554014-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62374 invoked by alias); 14 Feb 2017 07: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 62034 invoked by uid 48); 14 Feb 2017 07:46:48 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79502] [[nodiscard]] attribute ignored for class template
Date: Tue, 14 Feb 2017 07: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79502-4-2A6nVMa0XN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79502-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79502-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01546.txt.bz2
Content-length: 470

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79502

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> ---
How is it related?  nodiscard has completely different warning code from
warn_unused_result.
>From gcc-bugs-return-554015-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 07:48:51 2017
Return-Path: <gcc-bugs-return-554015-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66525 invoked by alias); 14 Feb 2017 07:48:51 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 65141 invoked by uid 48); 14 Feb 2017 07:48:32 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79502] [[nodiscard]] attribute ignored for class template
Date: Tue, 14 Feb 2017 07: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: 7.0.1
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: attachments.created
Message-ID: <bug-79502-4-0JQAaY2zaR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79502-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79502-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01547.txt.bz2
Content-length: 392

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79502

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 40735
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40735&action=edit
gcc7-pr79502.patch

Untested fix.  The bug as I see is that we don't actually propagate the
attributes from template to its instantiations, except for non-dependent enum.
>From gcc-bugs-return-554016-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 07:49:56 2017
Return-Path: <gcc-bugs-return-554016-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 69244 invoked by alias); 14 Feb 2017 07:49: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 68701 invoked by uid 48); 14 Feb 2017 07:49:43 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79502] [c++1z] [[nodiscard]] attribute ignored for class template
Date: Tue, 14 Feb 2017 07:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0.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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc short_desc everconfirmed
Message-ID: <bug-79502-4-Lg81pe9lPr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79502-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79502-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01548.txt.bz2
Content-length: 681

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79502

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-14
                 CC|                            |jason at gcc dot gnu.org
            Summary|[[nodiscard]] attribute     |[c++1z] [[nodiscard]]
                   |ignored for class template  |attribute ignored for class
                   |                            |template
     Ever confirmed|0                           |1
>From gcc-bugs-return-554017-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 07:59:01 2017
Return-Path: <gcc-bugs-return-554017-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127362 invoked by alias); 14 Feb 2017 07: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 127223 invoked by uid 55); 14 Feb 2017 07:58:47 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79432] [7 Regression] ICE: verify_ssa failed
Date: Tue, 14 Feb 2017 07: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: 7.0
X-Bugzilla-Keywords: ice-checking
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79432-4-dqNy0o2k8d@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79432-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79432-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01549.txt.bz2
Content-length: 747

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79432

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Tue Feb 14 07:58:12 2017
New Revision: 245417

URL: https://gcc.gnu.org/viewcvs?rev=245417&root=gcc&view=rev
Log:
2017-02-14  Richard Biener  <rguenther@suse.de>

        PR middle-end/79432
        * tree-into-ssa.c (insert_phi_nodes): When the function can
        have abnormal edges rewrite SSA names with broken use-def
        dominance out of SSA and register them for PHI insertion.

        * gcc.dg/torture/pr79432.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr79432.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-into-ssa.c
>From gcc-bugs-return-554018-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 08:00:55 2017
Return-Path: <gcc-bugs-return-554018-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129627 invoked by alias); 14 Feb 2017 08:00: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 129431 invoked by uid 48); 14 Feb 2017 08:00:38 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79498] [5/7 Regression] ICE in df_insn_delete, at df-scan.c:948
Date: Tue, 14 Feb 2017 08:00: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.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79498-4-V8Bk5CQgn6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79498-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79498-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01550.txt.bz2
Content-length: 485

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79498

--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Martin Liška from comment #2)
> Confirmed, the df-scan ICE appeared in r239383 and the folding stuff
> disappeared in r233852.

Ok, problem with 5 branch is that r233852 was wrongly back-ported (r234773),
the hunk in fold-const.c is not applied. Applying the hunk, ICE has gone for
GCC 5 branch. I'm going to test it once more and send to ML.
>From gcc-bugs-return-554019-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 08:04:27 2017
Return-Path: <gcc-bugs-return-554019-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6043 invoked by alias); 14 Feb 2017 08: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 5949 invoked by uid 55); 14 Feb 2017 08:04:14 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79471] valgrind error for gcc.c-torture/compile/limits-fnargs.c
Date: Tue, 14 Feb 2017 08:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79471-4-KNbdtBLGKW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79471-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79471-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01551.txt.bz2
Content-length: 615

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79471

--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Tue Feb 14 08:03:42 2017
New Revision: 245418

URL: https://gcc.gnu.org/viewcvs?rev=245418&root=gcc&view=rev
Log:
Replace XALLOCAVEC with XCNEWVEC (PR c/79471).

2017-02-14  Martin Liska  <mliska@suse.cz>

        Backport from mainline
        2017-02-13  Martin Liska  <mliska@suse.cz>

        PR c/79471
        * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.

Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/calls.c
>From gcc-bugs-return-554020-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 08:05:15 2017
Return-Path: <gcc-bugs-return-554020-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10461 invoked by alias); 14 Feb 2017 08:05:14 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 10281 invoked by uid 55); 14 Feb 2017 08:05:01 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/61225] [5/6/7 Regression] Several new failures after r210458 on x86_64-*-* with -m32
Date: Tue, 14 Feb 2017 08: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: 5.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenther at suse dot de
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-61225-4-FOXsDMO3Yp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61225-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61225-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01552.txt.bz2
Content-length: 2465

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61225

--- Comment #32 from rguenther at suse dot de <rguenther at suse dot de> ---
On Mon, 13 Feb 2017, ubizjak at gmail dot com wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61225
> 
> Uroš Bizjak <ubizjak at gmail dot com> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |rguenth at gcc dot gnu.org
> 
> --- Comment #31 from Uroš Bizjak <ubizjak at gmail dot com> ---
> What I find interesting here is, that following testcase:
> 
> --cut here--
> void foo (void *);
> 
> #define F(T, OP, OPN) \
> T *                     \
> f##T##OPN (T *x, T y)   \
> {                       \
>   *x OP y;              \
>   if (!*x)              \
>     foo (x);            \
>   return x;             \
> }
> 
> #define G(T) \
> F (T, |=, or)           \
> F (T, ^=, xor)
> 
> G (int)
> --cut here--
> 
> in fact also fails on x86_64 (-Os, -O2):
> 
> fintxor:
> .LFB1:
>         movl    (%rdi), %eax
>         pushq   %rbx
> .LCFI2:
>         movq    %rdi, %rbx
>         movl    %eax, %edx
>         xorl    %esi, %edx
>         cmpl    %esi, %eax
>         movl    %edx, (%rdi)
>         jne     .L6
>         call    foo
> .L6:
>         movq    %rbx, %rax
>         popq    %rbx
> .LCFI3:
>         ret
> 
> The failure is not detected, since the test scans only for TEST insn, not also
> for CMP.
> 
> The difference between these two functions is already in the .optimized tree
> dump between fintor (good):
> 
> fintor (int * x, int y)
> {
>   int _1;
>   int _2;
> 
>   <bb 2> [100.00%]:
>   _1 = *x_5(D);
>   _2 = _1 | y_6(D);
>   *x_5(D) = _2;
>   if (_2 == 0)
>     goto <bb 3>; [36.64%]
>   else
>     goto <bb 4>; [63.36%]
> 
>   <bb 3> [36.64%]:
>   foo (x_5(D));
> 
>   <bb 4> [100.00%]:
>   return x_5(D);
> 
> }
> 
> and fintxor (bad):
> 
> fintxor (int * x, int y)
> {
>   int _1;
>   int _2;
> 
>   <bb 2> [100.00%]:
>   _1 = *x_5(D);
>   _2 = _1 ^ y_6(D);
>   *x_5(D) = _2;
>   if (_1 == y_6(D))

That's from

/* Equality compare simplifications from fold_binary  */
(for cmp (eq ne)
...
 /* (X ^ Y) == 0 becomes X == Y, and (X ^ Y) != 0 becomes X != Y.  */
 (simplify
  (cmp (bit_xor @0 @1) integer_zerop)
  (cmp @0 @1))

not considering other uses.
>From gcc-bugs-return-554021-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 08:06:23 2017
Return-Path: <gcc-bugs-return-554021-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26282 invoked by alias); 14 Feb 2017 08:06:23 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 18418 invoked by uid 55); 14 Feb 2017 08:06:10 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79471] valgrind error for gcc.c-torture/compile/limits-fnargs.c
Date: Tue, 14 Feb 2017 08: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:
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: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79471-4-7t1AGkLqee@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79471-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79471-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01553.txt.bz2
Content-length: 615

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79471

--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Tue Feb 14 08:05:38 2017
New Revision: 245419

URL: https://gcc.gnu.org/viewcvs?rev=245419&root=gcc&view=rev
Log:
Replace XALLOCAVEC with XCNEWVEC (PR c/79471).

2017-02-14  Martin Liska  <mliska@suse.cz>

        Backport from mainline
        2017-02-13  Martin Liska  <mliska@suse.cz>

        PR c/79471
        * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.

Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/calls.c
>From gcc-bugs-return-554022-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 08:07:05 2017
Return-Path: <gcc-bugs-return-554022-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27490 invoked by alias); 14 Feb 2017 08:07: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 27370 invoked by uid 48); 14 Feb 2017 08:06:52 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79471] valgrind error for gcc.c-torture/compile/limits-fnargs.c
Date: Tue, 14 Feb 2017 08:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79471-4-fzqQfZT7XH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79471-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79471-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01554.txt.bz2
Content-length: 457

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79471

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed on both active branches.
>From gcc-bugs-return-554023-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 08:23:18 2017
Return-Path: <gcc-bugs-return-554023-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33515 invoked by alias); 14 Feb 2017 08:23: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 33382 invoked by uid 48); 14 Feb 2017 08:23:04 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79489] Strange static branch prediction for n != 0
Date: Tue, 14 Feb 2017 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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc assigned_to everconfirmed
Message-ID: <bug-79489-4-KzKv7OdQxC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79489-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79489-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01555.txt.bz2
Content-length: 3291

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79489

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-14
                 CC|                            |hubicka at ucw dot cz
           Assignee|unassigned at gcc dot gnu.org      |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Marc Glisse from comment #0)
> http://stackoverflow.com/q/41880779/1918193
> 
> extern void foo();
> extern void bar();
> 
> int some_func(int n)
> {
>     if (n) {
>         foo();
>     }
>     else {
>         bar();
>     }
>     return 0;
> }
> 
> gcc's profile_estimate guesses (DS theory heuristics) that n is 0 with
> probability 54%. This seems strange, as other parts of the compiler predict
> == as more likely false (at least for types with precision > 1).

Huh, there are various (in my opinion real) issue that mix together.

Predictions for bb 2
  call heuristics of edge 2->4 (edge pair duplicate): 33.0%
  call heuristics of edge 2->3 (edge pair duplicate): 33.0%
  DS theory heuristics: 46.0%
  combined heuristics: 46.0%
  early return (on trees) heuristics of edge 2->3: 46.0%

1) we wrongly match early return heuristics. It's a known issue as mentioned in
predict.def:

/* Branch causing function to terminate is probably not taken. 
   FIXME: early return currently predicts code:
   int foo (int a)
   {
      if (a)
        bar();
      else
        bar2();
   }
   even though there is no return statement involved.  We probably want to
track
   this from FE or retire the predictor.  */
DEF_PREDICTOR (PRED_TREE_EARLY_RETURN, "early return (on trees)", HITRATE (54),
0)

2) We completely ignore 'n != 0' comparison as we consider it useless due to:

        /* Comparisons with 0 are often used for booleans and there is
           nothing useful to predict about them.  */
        else if (integer_zerop (op0)
                 || integer_zerop (op1))
          ;

> 
> Also, we may want to document somewhere that gcc tends to consider the
> "else" branch as more likely (or at least does not particularly favor the
> "then" branch), since there is quite a bit of information on the web that
> recommends writing conditions the other way around. But the heuristics are
> complicated enough that it is hard to come up with a statement that is true
> without being uselessly vague.

Yep, sometimes mixture of predictors result in strange results. However we do
not prefer
'else' as more likely compared to 'then' branch. It all depends on the
predictors, e.g.

some_func (int n)
{
  <bb 2> [100.00%]:
  if (n_2(D) != 0)
    goto <bb 3>; [46.00%]
  else
    goto <bb 4>; [54.00%]

is same to:

  <bb 2> [100.00%]:
  if (n_2(D) == 0)
    goto <bb 3>; [46.00%]
  else
    goto <bb 4>; [54.00%]

> 
> (I won't be surprised if this ends up as invalid or wontfix, but it felt
> worth forwarding)

I'm planning to discuss that with Honza and it should be done for GCC 8.

Thanks for report!
>From gcc-bugs-return-554024-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 08:26:53 2017
Return-Path: <gcc-bugs-return-554024-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 39552 invoked by alias); 14 Feb 2017 08: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 38928 invoked by uid 48); 14 Feb 2017 08:26:40 -0000
From: "brooks at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/58909] C++11's condition variables fail with static linking
Date: Tue, 14 Feb 2017 08: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: brooks 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-58909-4-3nd8quHNo7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58909-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58909-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01556.txt.bz2
Content-length: 631

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58909

--- Comment #7 from Brooks Moses <brooks at gcc dot gnu.org> ---
Right, understood, but Roland seemed pretty insistent in the discussion on bug
57740 that this was a libstdc++ bug, not a glibc bug.  Your contention is that
this is invalid because he's wrong about that, I take it?  And that rather than
libstdc++ documenting workarounds, this should be fixed by the "libpthread.a is
a single object file" fix?

Unfortunately, it seems fairly clear that filing this as a glibc bug would have
Roland closing it as invalid there, and this will simply not get fixed.  :(
>From gcc-bugs-return-554025-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 08:27:09 2017
Return-Path: <gcc-bugs-return-554025-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50719 invoked by alias); 14 Feb 2017 08:27: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 41906 invoked by uid 55); 14 Feb 2017 08:26:58 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79408] Missed VRP optimization of integer modulo
Date: Tue, 14 Feb 2017 08:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.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:
Message-ID: <bug-79408-4-bxmq4vRemz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79408-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79408-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01557.txt.bz2
Content-length: 739

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79408

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Feb 14 08:26:26 2017
New Revision: 245420

URL: https://gcc.gnu.org/viewcvs?rev=245420&root=gcc&view=rev
Log:
        PR tree-optimization/79408
        * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
        case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
        (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
        also if rhs1 is INTEGER_CST.

        * gcc.dg/tree-ssa/pr79408-2.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr79408-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vrp.c
>From gcc-bugs-return-554026-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 08:33:14 2017
Return-Path: <gcc-bugs-return-554026-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 83270 invoked by alias); 14 Feb 2017 08:33: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 83064 invoked by uid 48); 14 Feb 2017 08:33:01 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79335] [7 Regression] Conditional jump or move depends on uninitialised in value  get_scalar_to_descriptor_type(tree_node*, symbol_attribute) (trans-expr.c:53)
Date: Tue, 14 Feb 2017 08:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: vehre at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status
Message-ID: <bug-79335-4-y4OlSRrR4v@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79335-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79335-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01558.txt.bz2
Content-length: 1909

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79335

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |REOPENED

--- Comment #8 from Martin Liška <marxin at gcc dot gnu.org> ---
Thanks for fix, however there are still some issues:

$ valgrind --leak-check=yes --trace-children=yes ./xgcc -B.
/home/marxin/Programming/gcc/gcc/testsuite/gfortran.dg/coarray_lib_alloc_4.f90
-fcoarray=lib -lcaf_single 

==15334== Conditional jump or move depends on uninitialised value(s)
==15334==    at 0x95EE91: get_scalar_to_descriptor_type(tree_node*,
symbol_attribute) (trans-expr.c:53)
==15334==    by 0x95EFF0: gfc_conv_scalar_to_descriptor(gfc_se*, tree_node*,
symbol_attribute) (trans-expr.c:71)
==15334==    by 0x977D9C: gfc_trans_structure_assign(tree_node*, gfc_expr*,
bool, bool) (trans-expr.c:7552)
==15334==    by 0x97830F: gfc_conv_structure(gfc_se*, gfc_expr*, int)
(trans-expr.c:7646)
==15334==    by 0x978AD9: gfc_conv_expr(gfc_se*, gfc_expr*) (trans-expr.c:7813)
==15334==    by 0x97F5EC: gfc_trans_assignment_1(gfc_expr*, gfc_expr*, bool,
bool, bool, bool) (trans-expr.c:9923)
==15334==    by 0x9804A5: gfc_trans_assignment(gfc_expr*, gfc_expr*, bool,
bool, bool, bool) (trans-expr.c:10231)
==15334==    by 0x9804E1: gfc_trans_init_assign(gfc_code*) (trans-expr.c:10237)
==15334==    by 0x9D2655: gfc_trans_allocate(gfc_code*) (trans-stmt.c:6328)
==15334==    by 0x92077B: trans_code(gfc_code*, tree_node*) (trans.c:1965)
==15334==    by 0x9209F6: gfc_trans_code(gfc_code*) (trans.c:2124)
==15334==    by 0x95B503: gfc_generate_function_code(gfc_namespace*)
(trans-decl.c:6306)
...
>From gcc-bugs-return-554027-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 08:46:32 2017
Return-Path: <gcc-bugs-return-554027-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117970 invoked by alias); 14 Feb 2017 08:46: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 117022 invoked by uid 55); 14 Feb 2017 08:46:18 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79462] [7 Regression] sh: Stack smashing detected when building __ashrdi3 in libgcc
Date: Tue, 14 Feb 2017 08:46: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.1
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: P4
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79462-4-eovCHVESls@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79462-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79462-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01559.txt.bz2
Content-length: 418

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79462

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Feb 14 08:45:31 2017
New Revision: 245421

URL: https://gcc.gnu.org/viewcvs?rev=245421&root=gcc&view=rev
Log:
        PR target/79462
        * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/sh/sh.c
>From gcc-bugs-return-554028-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 08:47:44 2017
Return-Path: <gcc-bugs-return-554028-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121073 invoked by alias); 14 Feb 2017 08:47: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 120928 invoked by uid 48); 14 Feb 2017 08:47:34 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/61225] [5/6/7 Regression] Several new failures after r210458 on x86_64-*-* with -m32
Date: Tue, 14 Feb 2017 08:47: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: 5.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak 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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-61225-4-LdAB00duGV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61225-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61225-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01560.txt.bz2
Content-length: 1266

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61225

--- Comment #33 from Uroš Bizjak <ubizjak at gmail dot com> ---
Looking at PR49095, it seems to me that the remaining of this PR is just a
testsuite regression.

PR49095 introduces various peephole2 patterns that generate RMW versions of x86
insns, and fshrink-wrap interferes with these delicate code sequences.

Since the purpose of gcc.target/i386/pr49095.c is to test peepholes, we should
simply add -fno-shrink-wrap to the original testcase, like:

--cut here--
diff --git a/gcc/testsuite/gcc.target/i386/pr49095.c
b/gcc/testsuite/gcc.target/i386/pr49095.c
index 5fde08b..73758f8 100644
--- a/gcc/testsuite/gcc.target/i386/pr49095.c
+++ b/gcc/testsuite/gcc.target/i386/pr49095.c
@@ -1,7 +1,7 @@
 /* PR rtl-optimization/49095 */
 /* { dg-do compile } */
-/* { dg-options "-Os" } */
-/* { dg-options "-Os -mregparm=2" { target ia32 } } */
+/* { dg-options "-Os -fno-shrink-wrap" } */
+/* { dg-additional-options "-mregparm=2" { target ia32 } } */

 void foo (void *);

@@ -70,5 +70,4 @@ G (short)
 G (int)
 G (long)

-/* See PR61225 for the XFAIL.  */
-/* { dg-final { scan-assembler-not "test\[lq\]" { xfail { ia32 } } } } */
+/* { dg-final { scan-assembler-not "test\[lq\]" } } */
--cut here--
>From gcc-bugs-return-554029-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 08:48:48 2017
Return-Path: <gcc-bugs-return-554029-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125089 invoked by alias); 14 Feb 2017 08: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 124463 invoked by uid 48); 14 Feb 2017 08:48:34 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79462] [7 Regression] sh: Stack smashing detected when building __ashrdi3 in libgcc
Date: Tue, 14 Feb 2017 08:48: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.1
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: P4
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79462-4-ssIwh2Ditg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79462-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79462-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01561.txt.bz2
Content-length: 423

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79462

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-554030-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 08:58:52 2017
Return-Path: <gcc-bugs-return-554030-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24895 invoked by alias); 14 Feb 2017 08:58:52 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 24582 invoked by uid 48); 14 Feb 2017 08:58:39 -0000
From: "Predelnik at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79504] New: Mix of perfect forwarding and reference qualifier leads to recursive template instantiation.
Date: Tue, 14 Feb 2017 08: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: Predelnik at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-79504-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01562.txt.bz2
Content-length: 1361

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79504

            Bug ID: 79504
           Summary: Mix of perfect forwarding and reference qualifier
                    leads to recursive template instantiation.
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Predelnik at gmail dot com
  Target Milestone: ---

The following example seems correct to me and is accepted by msvc/clang but gcc
rejects it starting from version 4.8 up to current day versions with "template
instantiation depth exceeds maximum of 900". Removing trailing type helps, so
it's gotta be problem with f in trailing type being the wrong one I guess.

#include <utility>
struct A 
{
    void f () & {}
    template <typename ...Args> auto f (Args &&... args) && -> decltype  
 (std::move (this->f (std::forward<Args> (args)...)))
    {                                                                          
      return std::move (this->f (std::forward<Args> (args)...));       
    }
};
int main (){
    A p;
    p.f ();
}
>From gcc-bugs-return-554031-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 08:59:54 2017
Return-Path: <gcc-bugs-return-554031-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43833 invoked by alias); 14 Feb 2017 08:59: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 43772 invoked by uid 48); 14 Feb 2017 08:59:48 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79489] Strange static branch prediction for n != 0
Date: Tue, 14 Feb 2017 08: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: 7.0.1
X-Bugzilla-Keywords:
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: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79489-4-36jm78ftWD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79489-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79489-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01563.txt.bz2
Content-length: 1778

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79489

--- Comment #2 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Martin Liška from comment #1)
> 1) we wrongly match early return heuristics.

Ah, right, that seems like an important heuristic, but it is very eager, it
applies even if both branches lead to return in equivalent ways. Adding another
function call before return 0 is not enough to disable it, I need to add an
if... On the other hand, I guess that in a less reduced testcase, after
inlining and everything, this may not be such a common case.

> 2) We completely ignore 'n != 0' comparison as we consider it useless due to:
> 
> 	/* Comparisons with 0 are often used for booleans and there is
> 	   nothing useful to predict about them.  */

Ah, right, I hadn't thought about this C misfeature :-( I doubt it would make
sense to look at the source language to tweak this heuristic for languages that
use a real 'bool' type... Actually, C uses int, C++ uses a prec=1 type, are
there other cases? Maybe ignoring !=0 could be limited to those 2 types, so at
least long would not be affected?

> Yep, sometimes mixture of predictors result in strange results. However we
> do not prefer
> 'else' as more likely compared to 'then' branch. It all depends on the
> predictors, e.g.
> 
> some_func (int n)
> {
>   <bb 2> [100.00%]:
>   if (n_2(D) != 0)
>     goto <bb 3>; [46.00%]
>   else
>     goto <bb 4>; [54.00%]
> 
> is same to:
> 
>   <bb 2> [100.00%]:
>   if (n_2(D) == 0)
>     goto <bb 3>; [46.00%]
>   else
>     goto <bb 4>; [54.00%]

Well, in both cases the "else" branch has higher probability than the "then"
branch... But I understand your point.

Thank you for the detailed analysis, very helpful :-)
>From gcc-bugs-return-554032-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 09:08:12 2017
Return-Path: <gcc-bugs-return-554032-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 72117 invoked by alias); 14 Feb 2017 09:08:12 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 66059 invoked by uid 48); 14 Feb 2017 09:07:59 -0000
From: "dhowells at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79462] [7 Regression] sh: Stack smashing detected when building __ashrdi3 in libgcc
Date: Tue, 14 Feb 2017 09:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dhowells at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79462-4-pj2BGciUqE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79462-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79462-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01564.txt.bz2
Content-length: 168

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79462

--- Comment #8 from dhowells at redhat dot com <dhowells at redhat dot com> ---
The patch works for me, thanks!
>From gcc-bugs-return-554033-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 09:30:48 2017
Return-Path: <gcc-bugs-return-554033-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 123688 invoked by alias); 14 Feb 2017 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 113824 invoked by uid 55); 14 Feb 2017 09:30:31 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79460] gcc fails to optimise out a trivial additive loop for seemingly arbitrary numbers of iterations
Date: Tue, 14 Feb 2017 09:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
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-79460-4-OHQOebPUvq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79460-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79460-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01565.txt.bz2
Content-length: 4036

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79460

--- Comment #6 from rguenther at suse dot de <rguenther at suse dot de> ---
On Mon, 13 Feb 2017, amker at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79460
> 
> --- Comment #5 from amker at gcc dot gnu.org ---
> (In reply to Jakub Jelinek from comment #4)
> > (In reply to Richard Biener from comment #3)
> > > In this case it is complete unrolling that can estimate the non-vector code
> > > to constant fold but not the vectorized code.  OTOH it's quite excessive
> > > work done by the unroller when doing this for large N...
> > > 
> > > And yes, SCEV final value replacement doesn't know how to handle float
> > > reductions
> > > (we have a different PR for that).
> > 
> > Doesn't handle float reductions nor vector (integer or vector) reductions.
> > Even the vector ones would be useful, if e.g. to a vector every iteration
> > adds a VECTOR_CST or similar, then it could be still nicely optimized.
> Integer version should have already been supported now.
> 
> > 
> > For the 202 case, it seems we are generating a scalar loop epilogue (not
> > needed for 200) and somehow it seems something in the vector is actually
> > able to figure out the floating point final value, because we get:
> >   # p_2 = PHI <2.01e+2(5), p_12(7)>
> >   # i_3 = PHI <200(5), i_13(7)>
> > on the scalar loop epilogue.  So if something in the vectorizer is able to
> > figure it out, why can't it just use that even in the case where no epilogue
> > loop is needed?
> IIUC, scev-ccp should be made query based interface so that it can be called
> for each loop closed phi at different compilation stage.  It also needs to be
> extended to cover basic floating point case like this.  Effectively, it need to
> do the same transformation as vectorizer does now, but just thought it might be
> a better place to do that.

Yeah, the vectorizer does this in vect_update_ivs_after_vectorizer
by accident I think - it sees the float "IV" and replaces the prologue
loop init by init + niter * step which is on the border of invalid
(without -ffp-contract=on/fast).  At least if the vectorizer can do this
then final value replacement can do so as well with

Index: gcc/tree-scalar-evolution.c
===================================================================
--- gcc/tree-scalar-evolution.c (revision 245417)
+++ gcc/tree-scalar-evolution.c (working copy)
@@ -3718,13 +3718,6 @@ final_value_replacement_loop (struct loo
          continue;
        }

-      if (!POINTER_TYPE_P (TREE_TYPE (def))
-         && !INTEGRAL_TYPE_P (TREE_TYPE (def)))
-       {
-         gsi_next (&psi);
-         continue;
-       }
-
       bool folded_casts;
       def = analyze_scalar_evolution_in_loop (ex_loop, loop, def,
                                              &folded_casts);

(rather than removing the condition replace it with a validity check -
like FP contraction?  etc...).
But ideally SCEV itself would contain those (or compute exact results
with rounding effects).

Like maybe simply

Index: gcc/tree-scalar-evolution.c
===================================================================
--- gcc/tree-scalar-evolution.c (revision 245417)
+++ gcc/tree-scalar-evolution.c (working copy)
@@ -3718,8 +3718,10 @@ final_value_replacement_loop (struct loo
          continue;
        }

-      if (!POINTER_TYPE_P (TREE_TYPE (def))
-         && !INTEGRAL_TYPE_P (TREE_TYPE (def)))
+      if (! (POINTER_TYPE_P (TREE_TYPE (def))
+            || INTEGRAL_TYPE_P (TREE_TYPE (def))
+            || (FLOAT_TYPE_P (TREE_TYPE (def))
+                && flag_fp_contract_mode == FP_CONTRACT_FAST)))
        {
          gsi_next (&psi);
          continue;

Richard.
>From gcc-bugs-return-554034-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 09:34:03 2017
Return-Path: <gcc-bugs-return-554034-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1382 invoked by alias); 14 Feb 2017 09:34: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 1139 invoked by uid 48); 14 Feb 2017 09:33:49 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79460] gcc fails to optimise out a trivial additive loop for seemingly arbitrary numbers of iterations
Date: Tue, 14 Feb 2017 09: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: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79460-4-I8MrxFw1Gd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79460-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79460-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01566.txt.bz2
Content-length: 382

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79460

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Shouldn't it (both in the vectorizer and in scev) be dependent not just on
flag_fp_contract_mode but also on some -ffast-math subflag?  Doing several
additions can e.g. raise different exceptions and have different roundings from
doing it as just one multiply.
>From gcc-bugs-return-554035-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 09:45:46 2017
Return-Path: <gcc-bugs-return-554035-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37847 invoked by alias); 14 Feb 2017 09:45: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 37382 invoked by uid 55); 14 Feb 2017 09:44:53 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79460] gcc fails to optimise out a trivial additive loop for seemingly arbitrary numbers of iterations
Date: Tue, 14 Feb 2017 09:45:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
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-79460-4-ZD1g7prwtC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79460-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79460-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01567.txt.bz2
Content-length: 840

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79460

--- Comment #8 from rguenther at suse dot de <rguenther at suse dot de> ---
On Tue, 14 Feb 2017, jakub at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79460
> 
> --- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
> Shouldn't it (both in the vectorizer and in scev) be dependent not just on
> flag_fp_contract_mode but also on some -ffast-math subflag?  Doing several
> additions can e.g. raise different exceptions and have different roundings from
> doing it as just one multiply.

Maybe, but I don't see which (apart from flag_unsafe_math_optimizations
of course but we'd want to get rid of that...).  reassoc uses
flag_unsafe_math_optimizations (and does this for SCALAR_FLOAT_TYPE_P
only).  The docs only mention FMA for fp-contract...
>From gcc-bugs-return-554036-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 09:52:57 2017
Return-Path: <gcc-bugs-return-554036-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60423 invoked by alias); 14 Feb 2017 09:52: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 60214 invoked by uid 48); 14 Feb 2017 09:52:43 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79460] gcc fails to optimise out a trivial additive loop for seemingly arbitrary numbers of iterations
Date: Tue, 14 Feb 2017 09:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79460-4-niuip9kKuK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79460-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79460-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01568.txt.bz2
Content-length: 1333

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79460

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to rguenther@suse.de from comment #8)
> On Tue, 14 Feb 2017, jakub at gcc dot gnu.org wrote:
> 
> > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79460
> > 
> > --- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
> > Shouldn't it (both in the vectorizer and in scev) be dependent not just on
> > flag_fp_contract_mode but also on some -ffast-math subflag?  Doing several
> > additions can e.g. raise different exceptions and have different roundings from
> > doing it as just one multiply.
> 
> Maybe, but I don't see which (apart from flag_unsafe_math_optimizations
> of course but we'd want to get rid of that...).  reassoc uses
> flag_unsafe_math_optimizations (and does this for SCALAR_FLOAT_TYPE_P
> only).  The docs only mention FMA for fp-contract...

fp-contract is I believe only about whether you are allowed to transform x = a
+ b * c; into a FMA or not (or similar expressions), so I think isn't even
related to this.  Even if we want to get rid of flag_unsafe_math_optimizations
eventually, it is better to use that if we don't know what exactly rather than
emit wrong-code with -fno-fast-math, we'll have to eventually add some new
flags or figure it out.
>From gcc-bugs-return-554037-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 09:59:14 2017
Return-Path: <gcc-bugs-return-554037-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90163 invoked by alias); 14 Feb 2017 09:59: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 89699 invoked by uid 48); 14 Feb 2017 09:58:59 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79505] New: Memory leaks in oacc_loop_discover_walk
Date: Tue, 14 Feb 2017 09: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: unknown
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 cc target_milestone
Message-ID: <bug-79505-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01569.txt.bz2
Content-length: 2318

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79505

            Bug ID: 79505
           Summary: Memory leaks in oacc_loop_discover_walk
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: cesar at codesourcery dot com, cltang at gcc dot gnu.org,
                    jsm28 at gcc dot gnu.org, nathan at gcc dot gnu.org
  Target Milestone: ---

Hello.

Starting from r245300, I can see following leaks:

$ valgrind --leak-check=yes --trace-children=yes gcc
/home/marxin/Programming/gcc/gcc/testsuite/c-c++-common/goacc-gomp/nesting-1.c
-fopenmp -c -fopenacc

==18313== 40 bytes in 1 blocks are definitely lost in loss record 17 of 806
==18313==    at 0x4C2B0AF: malloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==18313==    by 0x145C9BF: xrealloc (xmalloc.c:177)
==18313==    by 0xAB9643: reserve<gcall*> (vec.h:288)
==18313==    by 0xAB9643: reserve (vec.h:1445)
==18313==    by 0xAB9643: safe_push (vec.h:1554)
==18313==    by 0xAB9643: oacc_loop_discover_walk(oacc_loop*, basic_block_def*)
(omp-offload.c:900)
==18313==    by 0xAB98CB: oacc_loop_discover_walk(oacc_loop*, basic_block_def*)
(omp-offload.c:955)
==18313==    by 0xAB98CB: oacc_loop_discover_walk(oacc_loop*, basic_block_def*)
(omp-offload.c:955)
==18313==    by 0xAB9DD3: oacc_loop_discovery (omp-offload.c:991)
==18313==    by 0xAB9DD3: execute_oacc_device_lower (omp-offload.c:1450)
==18313==    by 0xAB9DD3: (anonymous
namespace)::pass_oacc_device_lower::execute(function*) (omp-offload.c:1658)
==18313==    by 0xB222CD: execute_one_pass(opt_pass*) (passes.c:2465)
==18313==    by 0xB22B97: execute_pass_list_1(opt_pass*) (passes.c:2554)
==18313==    by 0xB22BF4: execute_pass_list(function*, opt_pass*)
(passes.c:2565)
==18313==    by 0x7F918D: cgraph_node::expand() (cgraphunit.c:2038)
==18313==    by 0x7FA172: output_in_order(bool) (cgraphunit.c:2281)
==18313==    by 0x7FA51D: symbol_table::compile() [clone .part.52]
(cgraphunit.c:2525)
>From gcc-bugs-return-554038-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 10:00:58 2017
Return-Path: <gcc-bugs-return-554038-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 95991 invoked by alias); 14 Feb 2017 10:00: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 95709 invoked by uid 48); 14 Feb 2017 10:00:40 -0000
From: "amker at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79460] gcc fails to optimise out a trivial additive loop for seemingly arbitrary numbers of iterations
Date: Tue, 14 Feb 2017 10: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: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: amker at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79460-4-ZoE4fup33K@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79460-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79460-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01570.txt.bz2
Content-length: 1569

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79460

--- Comment #10 from amker at gcc dot gnu.org ---
(In reply to Jakub Jelinek from comment #9)
> (In reply to rguenther@suse.de from comment #8)
> > On Tue, 14 Feb 2017, jakub at gcc dot gnu.org wrote:
> > 
> > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79460
> > > 
> > > --- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
> > > Shouldn't it (both in the vectorizer and in scev) be dependent not just on
> > > flag_fp_contract_mode but also on some -ffast-math subflag?  Doing several
> > > additions can e.g. raise different exceptions and have different roundings from
> > > doing it as just one multiply.
> > 
> > Maybe, but I don't see which (apart from flag_unsafe_math_optimizations
> > of course but we'd want to get rid of that...).  reassoc uses
> > flag_unsafe_math_optimizations (and does this for SCALAR_FLOAT_TYPE_P
> > only).  The docs only mention FMA for fp-contract...
> 
> fp-contract is I believe only about whether you are allowed to transform x =
> a + b * c; into a FMA or not (or similar expressions), so I think isn't even
> related to this.  Even if we want to get rid of
> flag_unsafe_math_optimizations eventually, it is better to use that if we
> don't know what exactly rather than emit wrong-code with -fno-fast-math,
> we'll have to eventually add some new flags or figure it out.

I also think we need flag_unsafe_math_optimizations or similar on this, this is
risky transformation and we may put iterative numerical algorithms in danger.
>From gcc-bugs-return-554039-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 10:03:39 2017
Return-Path: <gcc-bugs-return-554039-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45948 invoked by alias); 14 Feb 2017 10:03: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 44721 invoked by uid 48); 14 Feb 2017 10:03:21 -0000
From: "mark at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79448] unhelpful -Wformat-truncation=2 INT_MAX warning
Date: Tue, 14 Feb 2017 10:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mark 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-79448-4-KkJlnJsrDs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79448-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79448-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01571.txt.bz2
Content-length: 1198

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79448

--- Comment #5 from Mark Wielaard <mark at gcc dot gnu.org> ---
(In reply to Martin Sebor from comment #4)
> Ouch.  When its size argument is zero, a snprintf call is a request to
> compute the size of output without actually writing any into the destination
> (which may be a null pointer).  At level 2 the checker uses the lower bound
> of the range of the size argument (for greater strictness) but fails to
> distinguish it from a constant zero.  Since the argument may or may not be
> zero this is not safe.  I've raised bug 79496 to track the problem (which is
> unrelated to this bug).

Thanks for fixing that bug.

I fetch the latest gcc svn trunk with that fix and added your proposed patch
for this bug on top and I no longer get false positives with
-Wformat-truncation=2 on my code base and all unit tests pass now. The only
warnings reported (with this patch applied) are cases where there is indeed a
possibility of truncation that wasn't handled in the code.

So if at all possible I would like to see this go in before gcc 7.1 is released
because without it -Wformat-truncation=2 isn't as useful as it could be.
>From gcc-bugs-return-554040-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 10:05:39 2017
Return-Path: <gcc-bugs-return-554040-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48925 invoked by alias); 14 Feb 2017 10:05:39 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 48502 invoked by uid 55); 14 Feb 2017 10:05:26 -0000
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79460] gcc fails to optimise out a trivial additive loop for seemingly arbitrary numbers of iterations
Date: Tue, 14 Feb 2017 10:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
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-79460-4-OKCM5LBi9r@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79460-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79460-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01572.txt.bz2
Content-length: 3931

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79460

--- Comment #11 from rguenther at suse dot de <rguenther at suse dot de> ---
On Tue, 14 Feb 2017, amker at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79460
> 
> --- Comment #10 from amker at gcc dot gnu.org ---
> (In reply to Jakub Jelinek from comment #9)
> > (In reply to rguenther@suse.de from comment #8)
> > > On Tue, 14 Feb 2017, jakub at gcc dot gnu.org wrote:
> > > 
> > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79460
> > > > 
> > > > --- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
> > > > Shouldn't it (both in the vectorizer and in scev) be dependent not just on
> > > > flag_fp_contract_mode but also on some -ffast-math subflag?  Doing several
> > > > additions can e.g. raise different exceptions and have different roundings from
> > > > doing it as just one multiply.
> > > 
> > > Maybe, but I don't see which (apart from flag_unsafe_math_optimizations
> > > of course but we'd want to get rid of that...).  reassoc uses
> > > flag_unsafe_math_optimizations (and does this for SCALAR_FLOAT_TYPE_P
> > > only).  The docs only mention FMA for fp-contract...
> > 
> > fp-contract is I believe only about whether you are allowed to transform x =
> > a + b * c; into a FMA or not (or similar expressions), so I think isn't even
> > related to this.  Even if we want to get rid of
> > flag_unsafe_math_optimizations eventually, it is better to use that if we
> > don't know what exactly rather than emit wrong-code with -fno-fast-math,
> > we'll have to eventually add some new flags or figure it out.
> 
> I also think we need flag_unsafe_math_optimizations or similar on this, this is
> risky transformation and we may put iterative numerical algorithms in danger.

And here's that unroll heuristic patch (cleaned up a bit), it makes us
consider all operations on constants (where SCEV can compute an evolution)
as constant (and actually also folds them in the poor-mans cprop code).
Only works up to 16 iterations of course (thus for the testcase for
an upper bound of 16*4).  Kind of unrelated to this PR of course.

Index: gcc/tree-ssa-loop-ivcanon.c
===================================================================
--- gcc/tree-ssa-loop-ivcanon.c (revision 245417)
+++ gcc/tree-ssa-loop-ivcanon.c (working copy)
@@ -157,8 +157,6 @@ struct loop_size
 static bool
 constant_after_peeling (tree op, gimple *stmt, struct loop *loop)
 {
-  affine_iv iv;
-
   if (is_gimple_min_invariant (op))
     return true;

@@ -189,11 +187,9 @@ constant_after_peeling (tree op, gimple
     }

   /* Induction variables are constants.  */
-  if (!simple_iv (loop, loop_containing_stmt (stmt), op, &iv, false))
-    return false;
-  if (!is_gimple_min_invariant (iv.base))
-    return false;
-  if (!is_gimple_min_invariant (iv.step))
+  tree ev = analyze_scalar_evolution (loop, op);
+  if (chrec_contains_undetermined (ev)
+      || chrec_contains_symbols (ev))
     return false;
   return true;
 }
@@ -1259,7 +1255,7 @@ propagate_constants_for_unrolling (basic

       if (! SSA_NAME_OCCURS_IN_ABNORMAL_PHI (result)
          && gimple_phi_num_args (phi) == 1
-         && TREE_CODE (arg) == INTEGER_CST)
+         && CONSTANT_CLASS_P (arg))
        {
          replace_uses_by (result, arg);
          gsi_remove (&gsi, true);
@@ -1276,7 +1272,7 @@ propagate_constants_for_unrolling (basic
       tree lhs;

       if (is_gimple_assign (stmt)
-         && gimple_assign_rhs_code (stmt) == INTEGER_CST
+         && TREE_CODE_CLASS (gimple_assign_rhs_code (stmt)) == 
tcc_constant
          && (lhs = gimple_assign_lhs (stmt), TREE_CODE (lhs) == SSA_NAME)
          && !SSA_NAME_OCCURS_IN_ABNORMAL_PHI (lhs))
        {
>From gcc-bugs-return-554041-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 10:14:03 2017
Return-Path: <gcc-bugs-return-554041-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23068 invoked by alias); 14 Feb 2017 10: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 12358 invoked by uid 48); 14 Feb 2017 10:13:50 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79472] [7 Regression] x86-64: Switch table generation fails if default case has different code
Date: Tue, 14 Feb 2017 10:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
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.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.isobsolete bug_status assigned_to attachments.created
Message-ID: <bug-79472-4-rQDRDSbT4D@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79472-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79472-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01573.txt.bz2
Content-length: 724

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79472

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #40726|0                           |1
        is obsolete|                            |
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 40736
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40736&action=edit
gcc7-pr79472.patch

Updated untested patch I'm going to bootstrap/regtest now.
>From gcc-bugs-return-554042-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 10:17:03 2017
Return-Path: <gcc-bugs-return-554042-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37905 invoked by alias); 14 Feb 2017 10:17: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 37800 invoked by uid 48); 14 Feb 2017 10:16:50 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79288] [7 Regression] TLS model wrong for static data members since r241137
Date: Tue, 14 Feb 2017 10: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: 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: P1
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79288-4-K4bQO33Qvr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79288-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79288-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01574.txt.bz2
Content-length: 200

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79288

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fix posted for review: http://gcc.gnu.org/ml/gcc-patches/2017-01/msg02349.html
>From gcc-bugs-return-554043-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 10:32:05 2017
Return-Path: <gcc-bugs-return-554043-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120588 invoked by alias); 14 Feb 2017 10:32:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 120280 invoked by uid 55); 14 Feb 2017 10:31:52 -0000
From: "ktkachov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/68664] [6/7 Regression] Speculative sqrt in c-ray main loop causes large slow down
Date: Tue, 14 Feb 2017 10: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: 6.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ktkachov at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: ktkachov at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-68664-4-G6F2XcOvVA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68664-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68664-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01575.txt.bz2
Content-length: 588

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68664

--- Comment #26 from ktkachov at gcc dot gnu.org ---
Author: ktkachov
Date: Tue Feb 14 10:31:14 2017
New Revision: 245424

URL: https://gcc.gnu.org/viewcvs?rev=245424&root=gcc&view=rev
Log:
[AArch64] PR rtl-optimization/68664 Implement TARGET_SCHED_CAN_SPECULATE_INSN
hook

        PR rtl-optimization/68664
        * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
        New function.
        (TARGET_SCHED_CAN_SPECULATE_INSN): Define.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/aarch64/aarch64.c
>From gcc-bugs-return-554044-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 10:34:38 2017
Return-Path: <gcc-bugs-return-554044-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13476 invoked by alias); 14 Feb 2017 10:34:38 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 13270 invoked by uid 55); 14 Feb 2017 10:34:26 -0000
From: "ktkachov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/68664] [6/7 Regression] Speculative sqrt in c-ray main loop causes large slow down
Date: Tue, 14 Feb 2017 10: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: 6.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ktkachov at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: ktkachov at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-68664-4-g5S2pZ25Ib@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68664-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68664-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01576.txt.bz2
Content-length: 585

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68664

--- Comment #27 from ktkachov at gcc dot gnu.org ---
Author: ktkachov
Date: Tue Feb 14 10:33:50 2017
New Revision: 245425

URL: https://gcc.gnu.org/viewcvs?rev=245425&root=gcc&view=rev
Log:
[ARM] PR rtl-optimization/68664 Implement TARGET_SCHED_CAN_SPECULATE_INSN hook

        PR rtl-optimization/68664
        * config/arm/arm.c (arm_sched_can_speculate_insn):
        New function.  Declare prototype.
        (TARGET_SCHED_CAN_SPECULATE_INSN): Define.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/arm/arm.c
>From gcc-bugs-return-554045-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 10:35:00 2017
Return-Path: <gcc-bugs-return-554045-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16330 invoked by alias); 14 Feb 2017 10:35: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 14259 invoked by uid 48); 14 Feb 2017 10:34:51 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79495] [6/7 Regression] ICE in extract_constrain_insn, at recog.c:2213
Date: Tue, 14 Feb 2017 10:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0.1
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: P2
X-Bugzilla-Assigned-To: ubizjak at gmail dot com
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority target_milestone
Message-ID: <bug-79495-4-jsyiFgtbDe@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79495-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79495-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01577.txt.bz2
Content-length: 345

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79495

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
   Target Milestone|7.0                         |6.4
>From gcc-bugs-return-554046-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 10:35:17 2017
Return-Path: <gcc-bugs-return-554046-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33939 invoked by alias); 14 Feb 2017 10: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 18514 invoked by uid 48); 14 Feb 2017 10:35:04 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79494] [5/6/7 Regression] ICE in maybe_record_trace_start, at dwarf2cfi.c:2330
Date: Tue, 14 Feb 2017 10:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0.1
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority target_milestone
Message-ID: <bug-79494-4-tQLPK0poa2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79494-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79494-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01578.txt.bz2
Content-length: 345

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79494

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
   Target Milestone|7.0                         |5.5
>From gcc-bugs-return-554047-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 10:36:41 2017
Return-Path: <gcc-bugs-return-554047-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58887 invoked by alias); 14 Feb 2017 10:36: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 58694 invoked by uid 48); 14 Feb 2017 10:36:27 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/79506] New: Compile time increase after r245366 (params.def (inline-min-speedup) Change from 10 to 8.)
Date: Tue, 14 Feb 2017 10:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ipa
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords: compile-time-hog
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-79506-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01579.txt.bz2
Content-length: 13816

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79506

            Bug ID: 79506
           Summary: Compile time increase after r245366 (params.def
                    (inline-min-speedup) Change from 10 to 8.)
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: compile-time-hog
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: hubicka at gcc dot gnu.org, rguenth at gcc dot gnu.org
  Target Milestone: ---

gfortran tfft2.f90 -O3  -Ofast -funroll-loops -march=native jumped after the
commit from 0.800s to 0.960s.

-ftime-report before:

Execution times (seconds)
 phase setup             :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
   181 kB ( 1%) ggc
 phase parsing           :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
  2080 kB ( 9%) ggc
 phase opt and generate  :   0.76 (100%) usr   0.02 (100%) sys   0.78 (98%)
wall   21378 kB (90%) ggc
 garbage collection      :   0.02 ( 3%) usr   0.00 ( 0%) sys   0.02 ( 3%) wall 
     0 kB ( 0%) ggc
 callgraph optimization  :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall 
     0 kB ( 0%) ggc
 ipa inlining heuristics :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall 
   290 kB ( 1%) ggc
 CFG verifier            :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.03 ( 4%) wall 
     0 kB ( 0%) ggc
 df multiple defs        :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall 
     0 kB ( 0%) ggc
 df reaching defs        :   0.00 ( 0%) usr   0.01 (50%) sys   0.00 ( 0%) wall 
     0 kB ( 0%) ggc
 df live regs            :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.02 ( 3%) wall 
     0 kB ( 0%) ggc
 df live&initialized regs:   0.03 ( 4%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
     0 kB ( 0%) ggc
 df reg dead/unused notes:   0.03 ( 4%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
   200 kB ( 1%) ggc
 register information    :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
     0 kB ( 0%) ggc
 alias analysis          :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
   729 kB ( 3%) ggc
 parser (global)         :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
  2080 kB ( 9%) ggc
 inline parameters       :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
    19 kB ( 0%) ggc
 tree VRP                :   0.01 ( 1%) usr   0.01 (50%) sys   0.00 ( 0%) wall 
   621 kB ( 3%) ggc
 tree Early VRP          :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall 
   135 kB ( 1%) ggc
 tree PTA                :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall 
    12 kB ( 0%) ggc
 tree SSA incremental    :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
   111 kB ( 0%) ggc
 tree CCP                :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall 
    18 kB ( 0%) ggc
 tree reassociation      :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
     5 kB ( 0%) ggc
 tree PRE                :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.02 ( 3%) wall 
   387 kB ( 2%) ggc
 tree FRE                :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
    62 kB ( 0%) ggc
 tree linearize phis     :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall 
    26 kB ( 0%) ggc
 tree conservative DCE   :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall 
    36 kB ( 0%) ggc
 tree DSE                :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
     0 kB ( 0%) ggc
 tree loop bounds        :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
   345 kB ( 1%) ggc
 tree loop unswitching   :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
   131 kB ( 1%) ggc
 complete unrolling      :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.02 ( 2%) wall 
  1232 kB ( 5%) ggc
 tree vectorization      :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.02 ( 3%) wall 
  1077 kB ( 5%) ggc
 tree slp vectorization  :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
   742 kB ( 3%) ggc
 tree iv optimization    :   0.03 ( 4%) usr   0.00 ( 0%) sys   0.05 ( 6%) wall 
  3937 kB (17%) ggc
 predictive commoning    :   0.02 ( 3%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
   426 kB ( 2%) ggc
 tree SSA verifier       :   0.04 ( 5%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
     0 kB ( 0%) ggc
 tree STMT verifier      :   0.08 (11%) usr   0.00 ( 0%) sys   0.08 (10%) wall 
     0 kB ( 0%) ggc
 expand                  :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
   884 kB ( 4%) ggc
 forward prop            :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
   355 kB ( 2%) ggc
 dead store elim1        :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
   230 kB ( 1%) ggc
 dead store elim2        :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
   234 kB ( 1%) ggc
 loop init               :   0.03 ( 4%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall 
   438 kB ( 2%) ggc
 loop invariant motion   :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
     4 kB ( 0%) ggc
 loop unrolling          :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
   906 kB ( 4%) ggc
 CPROP                   :   0.03 ( 4%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
   332 kB ( 1%) ggc
 PRE                     :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
     9 kB ( 0%) ggc
 CSE 2                   :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
    31 kB ( 0%) ggc
 branch prediction       :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall 
   110 kB ( 0%) ggc
 combiner                :   0.03 ( 4%) usr   0.00 ( 0%) sys   0.02 ( 3%) wall 
  1208 kB ( 5%) ggc
 integrated RA           :   0.04 ( 5%) usr   0.00 ( 0%) sys   0.05 ( 6%) wall 
  1853 kB ( 8%) ggc
 LRA non-specific        :   0.03 ( 4%) usr   0.00 ( 0%) sys   0.02 ( 2%) wall 
   265 kB ( 1%) ggc
 LRA reload inheritance  :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
    37 kB ( 0%) ggc
 LRA hard reg assignment :   0.02 ( 3%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
     0 kB ( 0%) ggc
 reload CSE regs         :   0.02 ( 3%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
   345 kB ( 1%) ggc
 load CSE after reload   :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.02 ( 2%) wall 
     9 kB ( 0%) ggc
 rename registers        :   0.03 ( 4%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
   134 kB ( 1%) ggc
 scheduling 2            :   0.05 ( 7%) usr   0.00 ( 0%) sys   0.03 ( 4%) wall 
    83 kB ( 0%) ggc
 reorder blocks          :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
    37 kB ( 0%) ggc
 shorten branches        :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall 
     0 kB ( 0%) ggc
 initialize rtl          :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
    12 kB ( 0%) ggc
 rest of compilation     :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.02 ( 2%) wall 
    95 kB ( 0%) ggc
 verify RTL sharing      :   0.03 ( 4%) usr   0.00 ( 0%) sys   0.07 ( 9%) wall 
     0 kB ( 0%) ggc
 TOTAL                 :   0.76             0.02             0.80             
23640 kB

After:

Execution times (seconds)
 phase parsing           :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
  2080 kB ( 7%) ggc
 phase opt and generate  :   0.90 (100%) usr   0.02 (100%) sys   0.92 (99%)
wall   26338 kB (92%) ggc
 garbage collection      :   0.02 ( 2%) usr   0.01 (50%) sys   0.02 ( 2%) wall 
     0 kB ( 0%) ggc
 ipa function splitting  :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
     0 kB ( 0%) ggc
 ipa icf                 :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall 
     0 kB ( 0%) ggc
 cfg cleanup             :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
   122 kB ( 0%) ggc
 CFG verifier            :   0.03 ( 3%) usr   0.00 ( 0%) sys   0.04 ( 4%) wall 
     0 kB ( 0%) ggc
 trivially dead code     :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall 
     0 kB ( 0%) ggc
 df reaching defs        :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
     0 kB ( 0%) ggc
 df live regs            :   0.05 ( 6%) usr   0.00 ( 0%) sys   0.02 ( 2%) wall 
     0 kB ( 0%) ggc
 df live&initialized regs:   0.01 ( 1%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
     0 kB ( 0%) ggc
 df reg dead/unused notes:   0.02 ( 2%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
   233 kB ( 1%) ggc
 alias analysis          :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
   885 kB ( 3%) ggc
 parser (global)         :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
  2080 kB ( 7%) ggc
 tree gimplify           :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall 
   343 kB ( 1%) ggc
 tree CFG cleanup        :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
    14 kB ( 0%) ggc
 tree VRP                :   0.02 ( 2%) usr   0.00 ( 0%) sys   0.03 ( 3%) wall 
   752 kB ( 3%) ggc
 tree PTA                :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
    14 kB ( 0%) ggc
 tree operand scan       :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.02 ( 2%) wall 
   522 kB ( 2%) ggc
 dominator optimization  :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall 
   157 kB ( 1%) ggc
 tree CCP                :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
    25 kB ( 0%) ggc
 tree PRE                :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.02 ( 2%) wall 
   453 kB ( 2%) ggc
 tree FRE                :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
    69 kB ( 0%) ggc
 tree loop bounds        :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall 
   463 kB ( 2%) ggc
 tree loop invariant motion:   0.00 ( 0%) usr   0.00 ( 0%) sys   0.02 ( 2%)
wall       8 kB ( 0%) ggc
 tree canonical iv       :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall 
   480 kB ( 2%) ggc
 complete unrolling      :   0.02 ( 2%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall 
  1611 kB ( 6%) ggc
 tree vectorization      :   0.02 ( 2%) usr   0.00 ( 0%) sys   0.02 ( 2%) wall 
  1384 kB ( 5%) ggc
 tree slp vectorization  :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall 
   924 kB ( 3%) ggc
 tree iv optimization    :   0.05 ( 6%) usr   0.00 ( 0%) sys   0.05 ( 5%) wall 
  5339 kB (19%) ggc
 predictive commoning    :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.02 ( 2%) wall 
   554 kB ( 2%) ggc
 tree SSA verifier       :   0.03 ( 3%) usr   0.00 ( 0%) sys   0.06 ( 6%) wall 
     0 kB ( 0%) ggc
 tree STMT verifier      :   0.08 ( 9%) usr   0.00 ( 0%) sys   0.05 ( 5%) wall 
     0 kB ( 0%) ggc
 expand vars             :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
   201 kB ( 1%) ggc
 forward prop            :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
   417 kB ( 1%) ggc
 CSE                     :   0.02 ( 2%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
    42 kB ( 0%) ggc
 dead store elim2        :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
   285 kB ( 1%) ggc
 loop init               :   0.02 ( 2%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
   545 kB ( 2%) ggc
 loop unrolling          :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall 
  1073 kB ( 4%) ggc
 CPROP                   :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.02 ( 2%) wall 
   390 kB ( 1%) ggc
 PRE                     :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
    11 kB ( 0%) ggc
 web                     :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall 
   162 kB ( 1%) ggc
 CSE 2                   :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.02 ( 2%) wall 
    34 kB ( 0%) ggc
 branch prediction       :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall 
   111 kB ( 0%) ggc
 combiner                :   0.03 ( 3%) usr   0.00 ( 0%) sys   0.04 ( 4%) wall 
  1445 kB ( 5%) ggc
 integrated RA           :   0.08 ( 9%) usr   0.00 ( 0%) sys   0.08 ( 9%) wall 
  2289 kB ( 8%) ggc
 LRA non-specific        :   0.03 ( 3%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
   313 kB ( 1%) ggc
 LRA virtuals elimination:   0.01 ( 1%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall 
    62 kB ( 0%) ggc
 LRA create live ranges  :   0.03 ( 3%) usr   0.00 ( 0%) sys   0.02 ( 2%) wall 
    48 kB ( 0%) ggc
 LRA hard reg assignment :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
     0 kB ( 0%) ggc
 reload CSE regs         :   0.02 ( 2%) usr   0.00 ( 0%) sys   0.02 ( 2%) wall 
   427 kB ( 1%) ggc
 load CSE after reload   :   0.02 ( 2%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
     9 kB ( 0%) ggc
 thread pro- & epilogue  :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
    22 kB ( 0%) ggc
 rename registers        :   0.02 ( 2%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
   175 kB ( 1%) ggc
 hard reg cprop          :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
     2 kB ( 0%) ggc
 scheduling 2            :   0.04 ( 4%) usr   0.00 ( 0%) sys   0.05 ( 5%) wall 
    72 kB ( 0%) ggc
 machine dep reorg       :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
    17 kB ( 0%) ggc
 reorder blocks          :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
    38 kB ( 0%) ggc
 initialize rtl          :   0.01 ( 1%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
    12 kB ( 0%) ggc
 rest of compilation     :   0.02 ( 2%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall 
   108 kB ( 0%) ggc
 verify RTL sharing      :   0.04 ( 4%) usr   0.01 (50%) sys   0.04 ( 4%) wall 
     0 kB ( 0%) ggc
 repair loop structures  :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 1%) wall 
     0 kB ( 0%) ggc
 TOTAL                 :   0.90             0.02             0.93             
28600 kB
>From gcc-bugs-return-554048-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 10:37:02 2017
Return-Path: <gcc-bugs-return-554048-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60310 invoked by alias); 14 Feb 2017 10:36: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 59769 invoked by uid 48); 14 Feb 2017 10:36:47 -0000
From: "ktkachov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/68664] [6 Regression] Speculative sqrt in c-ray main loop causes large slow down
Date: Tue, 14 Feb 2017 10: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: 6.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ktkachov at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: ktkachov at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_known_to_work short_desc
Message-ID: <bug-68664-4-r6inLjjNCq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68664-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68664-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01580.txt.bz2
Content-length: 714

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68664

ktkachov at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |7.0
            Summary|[6/7 Regression]            |[6 Regression] Speculative
                   |Speculative sqrt in c-ray   |sqrt in c-ray main loop
                   |main loop causes large slow |causes large slow down
                   |down                        |

--- Comment #28 from ktkachov at gcc dot gnu.org ---
Fixed on arm and aarch64 for GCC 7.
I'm not sure if it's appropriate to backport. Should this PR be closed now?
>From gcc-bugs-return-554049-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 10:38:19 2017
Return-Path: <gcc-bugs-return-554049-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62329 invoked by alias); 14 Feb 2017 10:38: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 62029 invoked by uid 48); 14 Feb 2017 10:38:04 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79491] Possibly inefficient code for the inner product of two vectors
Date: Tue, 14 Feb 2017 10: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: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords cf_gcctarget bug_status cf_reconfirmed_on component everconfirmed
Message-ID: <bug-79491-4-WoASk8Mqzb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79491-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79491-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01581.txt.bz2
Content-length: 1035

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79491

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
             Target|                            |x86_64-*-*, i?86-*-*
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-14
          Component|c                           |target
     Ever confirmed|0                           |1

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
I think that on most archs the cost of unaligned _loads_ are not too bad but
aligning stores can still free up store bandwith.  Unfortunately x86 globs
unaligned load/store into one parameter in its cost tables:

      case unaligned_load:
      case unaligned_store:
        return ix86_cost->vec_unalign_load_cost;

thus confirmed as x86 specific cost model issue.
>From gcc-bugs-return-554050-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 10:41:18 2017
Return-Path: <gcc-bugs-return-554050-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40245 invoked by alias); 14 Feb 2017 10:41: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 40141 invoked by uid 48); 14 Feb 2017 10:41:05 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79488] [7 Regression] ICE from lambda that has invalid return type
Date: Tue, 14 Feb 2017 10:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords: ice-on-invalid-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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-79488-4-nOAeDJbLDm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79488-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79488-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01582.txt.bz2
Content-length: 293

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79488

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |7.0
>From gcc-bugs-return-554051-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 10:43:35 2017
Return-Path: <gcc-bugs-return-554051-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80613 invoked by alias); 14 Feb 2017 10:43: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 80489 invoked by uid 48); 14 Feb 2017 10:43:22 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79505] [7 Regression] Memory leaks in oacc_loop_discover_walk
Date: Tue, 14 Feb 2017 10:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: version target_milestone short_desc
Message-ID: <bug-79505-4-Lgoarx5mAM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79505-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79505-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01583.txt.bz2
Content-length: 499

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79505

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unknown                     |7.0
   Target Milestone|---                         |7.0
            Summary|Memory leaks in             |[7 Regression] Memory leaks
                   |oacc_loop_discover_walk     |in oacc_loop_discover_walk
>From gcc-bugs-return-554054-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 10:46:35 2017
Return-Path: <gcc-bugs-return-554054-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111546 invoked by alias); 14 Feb 2017 10: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 110629 invoked by uid 55); 14 Feb 2017 10:46:17 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/70022] [4.9 Regression] ICE: in tree_to_shwi, at tree.c:7328 with out-of-bounds vector index
Date: Tue, 14 Feb 2017 10: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: 6.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: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-70022-4-xuunZ3bTeh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-70022-4@http.gcc.gnu.org/bugzilla/>
References: <bug-70022-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01586.txt.bz2
Content-length: 699

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70022

--- Comment #9 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Tue Feb 14 10:45:31 2017
New Revision: 245426

URL: https://gcc.gnu.org/viewcvs?rev=245426&root=gcc&view=rev
Log:
2016-03-01  Richard Biener  <rguenther@suse.de>

2017-02-14  Martin Liska  <mliska@suse.cz>

        Backport from mainline
        2016-03-01  Richard Biener  <rguenther@suse.de>

        PR middle-end/70022
        PR target/79498
        * fold-const.c (fold_indirect_ref_1): Fix range checking for
        vector BIT_FIELD_REF extract.

Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/fold-const.c
>From gcc-bugs-return-554052-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 10:46:24 2017
Return-Path: <gcc-bugs-return-554052-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110729 invoked by alias); 14 Feb 2017 10:46: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 110228 invoked by uid 48); 14 Feb 2017 10:46:08 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79498] [5/7 Regression] ICE in df_insn_delete, at df-scan.c:948
Date: Tue, 14 Feb 2017 10:46: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.1
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority target_milestone
Message-ID: <bug-79498-4-wKtHOXN79A@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79498-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79498-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01584.txt.bz2
Content-length: 345

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79498

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
   Target Milestone|7.0                         |5.5
>From gcc-bugs-return-554053-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 10:46:35 2017
Return-Path: <gcc-bugs-return-554053-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111537 invoked by alias); 14 Feb 2017 10: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 110856 invoked by uid 48); 14 Feb 2017 10:46:25 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79497] ICE in extract_insn, at recog.c:2311
Date: Tue, 14 Feb 2017 10:46: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.1
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: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-79497-4-IU702AbBts@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79497-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79497-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01585.txt.bz2
Content-length: 293

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79497

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|7.0                         |---
>From gcc-bugs-return-554055-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 10:46:35 2017
Return-Path: <gcc-bugs-return-554055-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111630 invoked by alias); 14 Feb 2017 10: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 110737 invoked by uid 55); 14 Feb 2017 10:46:22 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79498] [5/7 Regression] ICE in df_insn_delete, at df-scan.c:948
Date: Tue, 14 Feb 2017 10:46: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.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79498-4-MA58x6GRNR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79498-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79498-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01587.txt.bz2
Content-length: 699

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79498

--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Tue Feb 14 10:45:31 2017
New Revision: 245426

URL: https://gcc.gnu.org/viewcvs?rev=245426&root=gcc&view=rev
Log:
2016-03-01  Richard Biener  <rguenther@suse.de>

2017-02-14  Martin Liska  <mliska@suse.cz>

        Backport from mainline
        2016-03-01  Richard Biener  <rguenther@suse.de>

        PR middle-end/70022
        PR target/79498
        * fold-const.c (fold_indirect_ref_1): Fix range checking for
        vector BIT_FIELD_REF extract.

Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/fold-const.c
>From gcc-bugs-return-554057-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 10:47:02 2017
Return-Path: <gcc-bugs-return-554057-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113914 invoked by alias); 14 Feb 2017 10:47: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 113218 invoked by uid 48); 14 Feb 2017 10:46:46 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79432] [7 Regression] ICE: verify_ssa failed
Date: Tue, 14 Feb 2017 10: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: 7.0
X-Bugzilla-Keywords: ice-checking
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79432-4-MGVxPnz1VI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79432-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79432-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01589.txt.bz2
Content-length: 429

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79432

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-554056-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 10:47:02 2017
Return-Path: <gcc-bugs-return-554056-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113898 invoked by alias); 14 Feb 2017 10: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 113725 invoked by uid 48); 14 Feb 2017 10:46:51 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79498] [7 Regression] ICE in df_insn_delete, at df-scan.c:948
Date: Tue, 14 Feb 2017 10:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-79498-4-9UI3zyNFJr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79498-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79498-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01588.txt.bz2
Content-length: 538

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79498

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[5/7 Regression] ICE in     |[7 Regression] ICE in
                   |df_insn_delete, at          |df_insn_delete, at
                   |df-scan.c:948               |df-scan.c:948

--- Comment #7 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed on GCC 5 branch.
>From gcc-bugs-return-554058-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 10:48:18 2017
Return-Path: <gcc-bugs-return-554058-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116370 invoked by alias); 14 Feb 2017 10: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 115866 invoked by uid 48); 14 Feb 2017 10:47:51 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79498] [7 Regression] ICE in df_insn_delete, at df-scan.c:948
Date: Tue, 14 Feb 2017 10:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0.1
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: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority target_milestone
Message-ID: <bug-79498-4-XSJ4ON3rmO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79498-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79498-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01590.txt.bz2
Content-length: 451

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79498

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P1
   Target Milestone|5.5                         |7.0

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
Makes it a P1 GCC 7 regression then.
>From gcc-bugs-return-554059-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 10:51:34 2017
Return-Path: <gcc-bugs-return-554059-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120030 invoked by alias); 14 Feb 2017 10:51: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 119914 invoked by uid 48); 14 Feb 2017 10:51:24 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/58909] C++11's condition variables fail with static linking
Date: Tue, 14 Feb 2017 10: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-58909-4-ntARzniPgo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58909-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58909-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01591.txt.bz2
Content-length: 1009

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58909

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Well Roland's fix doesn't work, and his claims about libstdc++ problems are
based on ancient history, so I don't find his arguments very persuasive.

I'm happy to document the requirements in the libstdc++ manual, there's no
downside to that.

We can also avoid weak symbols for some functions that are only referenced from
headers, e.g. pthread_call_once. We only need the weak symbols in definitions
that end up in libstdc++.so and libstdc++.a, so that those libraries don't
unconditionally depend on libphtread. But if user code instantiates the
std::call_once function template then they should get a dependency on
pthread_call_once, because they're actually using it. Going via the
__gthread_call_once weak symbol has no benefit in that case. But the
std::condition_variable definitions are in the library, and so we do need to
use weak symbols for the cases involved in this PR.
>From gcc-bugs-return-554060-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 11:01:15 2017
Return-Path: <gcc-bugs-return-554060-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16614 invoked by alias); 14 Feb 2017 11: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 16186 invoked by uid 48); 14 Feb 2017 11:01:02 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66256] noexcept evaluation done before end of class
Date: Tue, 14 Feb 2017 11: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: 5.1.0
X-Bugzilla-Keywords: rejects-valid
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: keywords bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-66256-4-rp7888C3Ig@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66256-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66256-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01592.txt.bz2
Content-length: 465

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66256

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-14
     Ever confirmed|0                           |1
>From gcc-bugs-return-554061-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 11:02:14 2017
Return-Path: <gcc-bugs-return-554061-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18233 invoked by alias); 14 Feb 2017 11:02: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 18047 invoked by uid 48); 14 Feb 2017 11:02:01 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79504] Mix of perfect forwarding and reference qualifier leads to recursive template instantiation.
Date: Tue, 14 Feb 2017 11: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: 7.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-79504-4-SkyY0j9H8O@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79504-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79504-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01593.txt.bz2
Content-length: 766

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79504

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-14
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I think it has nothing to do with perfect forwarding, just the
reference-qualifier. Reduced:

struct A
{
  void f () & {}

  template <typename ...Args>
    auto f (Args &&... args) && -> decltype (this->f (args...))
    {
      return this->f (args...);
    }
};

int main (){
  A p;
  p.f ();
}
>From gcc-bugs-return-554062-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 11:04:15 2017
Return-Path: <gcc-bugs-return-554062-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77556 invoked by alias); 14 Feb 2017 11:04:15 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 77234 invoked by uid 48); 14 Feb 2017 11:04:01 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66256] noexcept evaluation done before end of class
Date: Tue, 14 Feb 2017 11: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: 5.1.0
X-Bugzilla-Keywords: rejects-valid
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-66256-4-uv9zqIGmIn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66256-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66256-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01594.txt.bz2
Content-length: 451

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66256

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Michael Mehlich from comment #1)
> BTW: The header file could be fixed easily by adding std:: in front of these
> swap occurrences.

No, because that would only consider std::swap and not other functions that can
be found by ADL. That problem is solved for GCC 6 and later by using
__is_nothrow_swappable instead.
>From gcc-bugs-return-554063-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 11:07:19 2017
Return-Path: <gcc-bugs-return-554063-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81878 invoked by alias); 14 Feb 2017 11:07:19 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 81714 invoked by uid 48); 14 Feb 2017 11:07:07 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79504] Overload resolution in trailing-return-type ignores reference qualifier and leads to recursive template instantiation.
Date: Tue, 14 Feb 2017 11: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: 7.0
X-Bugzilla-Keywords: rejects-valid
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: short_desc
Message-ID: <bug-79504-4-uYOxKS0rh9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79504-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79504-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01595.txt.bz2
Content-length: 918

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79504

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Mix of perfect forwarding   |Overload resolution in
                   |and reference qualifier     |trailing-return-type
                   |leads to recursive template |ignores reference qualifier
                   |instantiation.              |and leads to recursive
                   |                            |template instantiation.

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Tweaking the testcase confirms that the call in the function body correctly
resolves to void A::f()& but the one in the trailing-return-type doesn't seem
to consider the ref-qualifier, and incorrectly calls itself. Summary adjusted
accordingly.
>From gcc-bugs-return-554064-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 11:13:28 2017
Return-Path: <gcc-bugs-return-554064-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96011 invoked by alias); 14 Feb 2017 11:13: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 94587 invoked by uid 48); 14 Feb 2017 11:13:13 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/79506] Compile time increase after r245366 (params.def (inline-min-speedup) Change from 10 to 8.)
Date: Tue, 14 Feb 2017 11:13: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: unknown
X-Bugzilla-Keywords: compile-time-hog
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-79506-4-d3ASdOSeV0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79506-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79506-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01596.txt.bz2
Content-length: 4373

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79506

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Ok, so it's IVOPTs becoming relatively slower fastest (with --param
inline-min-speedup=8 it surpasses IRA as the most expensive pass).  34% of IVO
is
spent in simple_iv (and siblings), the other 34% are spent in
determine_group_iv_cost.

Overall it seems like just the regular "larger functions compile slower".

inline change (look at the weird -0.0 badness?!)

--- tfft2.f90.078i.inline.10    2017-02-14 12:06:39.638906303 +0100
+++ tfft2.f90.078i.inline.8     2017-02-14 12:06:49.199057817 +0100
@@ -4940,12 +4940,62 @@
 Processing frequency rfft
   Called by tfft that is executed once
   Called in loop
-  not inlinable: tfft/3 -> rfft/1, --param max-inline-insns-auto limit reached
+  decreasing badness tfft/3 -> rfft/1, -0.000000 to -0.000000
    Estimating body: tfft/3
    Known to be false: not inlined
    size:590 time:24774
  Inlined into tfft which now has time 24776 and size 593, net change of +462.
-Unit growth for small function inlining: 945->1407 (48%)
+
+Considering rfft/1 with 535 size
+ to be inlined into tfft/3 in tfft2.f90:36
+ Estimated badness is -0.000000, frequency 5.67.
+    Badness calculation for tfft/3 -> rfft/1
+      size growth 462, time 4083  big_speedup
+      -0.000000: guessed profile. frequency 5.670000, count 0 caller count 0
time w/o inlining 52479.620026, time w/ inlining 47841.559998 overall growth
462 (current) 924 (original) 66204 (compensated)
+      Adjusted by hints -0.000000
+               Scaling time by probability:0.000000
+               Accounting size:2.50, time:0.00 on predicate:(true)
+               Scaling time by probability:0.000000
+               Accounting size:2.00, time:0.00 on predicate:(true)
+               Accounting size:13.00, time:261.35 on predicate:(true)
+               Scaling time by probability:0.000000
+               Accounting size:4.00, time:0.00 on predicate:(true)
+               Scaling time by probability:0.000000
+               Accounting size:2.50, time:0.00 on predicate:(true)
+               Accounting size:6.00, time:35.31 on predicate:(true)
+               Scaling time by probability:0.000000
+               Accounting size:2.00, time:0.00 on predicate:(true)
+               Accounting size:28.00, time:524.72 on predicate:(true)
+               Scaling time by probability:0.000000
+               Accounting size:4.00, time:0.00 on predicate:(true)
+               Scaling time by probability:0.000000
+               Accounting size:12.00, time:0.00 on predicate:(true)
+               Accounting size:14.00, time:4.84 on predicate:(true)
+               Scaling time by probability:0.000000
+               Accounting size:2.00, time:0.00 on predicate:(true)
+               Accounting size:41.00, time:54.74 on predicate:(true)
+               Scaling time by probability:0.000000
+               Accounting size:2.00, time:0.00 on predicate:(true)
+               Accounting size:20.50, time:65.23 on predicate:(true)
+               Accounting size:65.00, time:2192.07 on predicate:(true)
+               Scaling time by probability:0.000000
+               Accounting size:1.50, time:0.00 on predicate:(true)
+               Accounting size:79.00, time:7097.12 on predicate:(true)
+               Accounting size:79.00, time:12617.33 on predicate:(true)
+               Accounting size:46.00, time:131.93 on predicate:(true)
+               Scaling time by probability:0.000000
+               Accounting size:2.50, time:0.00 on predicate:(true)
+               Accounting size:4.00, time:2.95 on predicate:(true)
+               Accounting size:4.00, time:6.58 on predicate:(true)
+               Accounting size:6.00, time:0.00 on predicate:(true)
+Processing frequency rfft
+  Called by tfft that is executed once
+  Called in loop
+   Estimating body: tfft/3
+   Known to be false: not inlined
+   size:1051 time:47842
+ Inlined into tfft which now has time 47844 and size 1054, net change of +461.
+Unit growth for small function inlining: 945->1868 (97%)


so we inline the main computation routine into the "main" try-this-N-times
loop.  Not sure why we get any estimated speedup here...  (maybe ipa-cp
propagated that constant call arg from both call sites, but inlining above
doesn't suggest that).
>From gcc-bugs-return-554065-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 11:26:53 2017
Return-Path: <gcc-bugs-return-554065-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32918 invoked by alias); 14 Feb 2017 11: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 32720 invoked by uid 48); 14 Feb 2017 11:26:40 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79464] [7 Regression] ICE in ipa_modify_formal_ parameters
Date: Tue, 14 Feb 2017 11: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: 7.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: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79464-4-IlJNJKraB9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79464-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79464-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01597.txt.bz2
Content-length: 4519

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79464

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> ---
The problem is that the middle-end doesn't like TYPE_ARG_TYPES being
inconsistent with DECL_ARGUMENTS (that we have in the former types for this,
__vtt_parm and for the int original argument, while DECL_ARGUMENTS doesn't have
that int argument).

I've tried to change that:
--- gcc/cp/class.c.jj   2017-02-07 18:44:43.000000000 +0100
+++ gcc/cp/class.c      2017-02-14 12:10:41.612988203 +0100
@@ -4761,12 +4761,14 @@ build_clone (tree fn, tree name)
        DECL_VINDEX (clone) = NULL_TREE;
     }

+  bool ctor_omit_inherited_parms_p = ctor_omit_inherited_parms (clone);
+
   /* If there was an in-charge parameter, drop it from the function
      type.  */
-  if (DECL_HAS_IN_CHARGE_PARM_P (clone))
+  if (DECL_HAS_IN_CHARGE_PARM_P (clone) || ctor_omit_inherited_parms_p)
     {
       tree basetype;
-      tree parmtypes;
+      tree parmtypes, orig_parmtypes;
       tree exceptions;

       exceptions = TYPE_RAISES_EXCEPTIONS (TREE_TYPE (clone));
@@ -4774,24 +4776,33 @@ build_clone (tree fn, tree name)
       parmtypes = TYPE_ARG_TYPES (TREE_TYPE (clone));
       /* Skip the `this' parameter.  */
       parmtypes = TREE_CHAIN (parmtypes);
+      orig_parmtypes = parmtypes;
       /* Skip the in-charge parameter.  */
-      parmtypes = TREE_CHAIN (parmtypes);
+      if (DECL_HAS_IN_CHARGE_PARM_P (clone))
+        parmtypes = TREE_CHAIN (parmtypes);
       /* And the VTT parm, in a complete [cd]tor.  */
       if (DECL_HAS_VTT_PARM_P (fn)
          && ! DECL_NEEDS_VTT_PARM_P (clone))
        parmtypes = TREE_CHAIN (parmtypes);
-       /* If this is subobject constructor or destructor, add the vtt
-        parameter.  */
-      TREE_TYPE (clone)
-       = build_method_type_directly (basetype,
-                                     TREE_TYPE (TREE_TYPE (clone)),
-                                     parmtypes);
-      if (exceptions)
-       TREE_TYPE (clone) = build_exception_variant (TREE_TYPE (clone),
-                                                    exceptions);
-      TREE_TYPE (clone)
-       = cp_build_type_attribute_variant (TREE_TYPE (clone),
-                                          TYPE_ATTRIBUTES (TREE_TYPE (fn)));
+      if (ctor_omit_inherited_parms_p
+         && TREE_CHAIN (parmtypes) != void_list_node)
+       parmtypes = tree_cons (NULL_TREE, TREE_VALUE (parmtypes),
+                              void_list_node);
+      if (parmtypes != orig_parmtypes)
+       {
+         /* If this is subobject constructor or destructor, add the vtt
+            parameter.  */
+         TREE_TYPE (clone)
+           = build_method_type_directly (basetype,
+                                         TREE_TYPE (TREE_TYPE (clone)),
+                                         parmtypes);
+         if (exceptions)
+           TREE_TYPE (clone) = build_exception_variant (TREE_TYPE (clone),
+                                                        exceptions);
+         tree attrs = TYPE_ATTRIBUTES (TREE_TYPE (fn));
+         TREE_TYPE (clone)
+           = cp_build_type_attribute_variant (TREE_TYPE (clone), attrs);
+       }
     }

   /* Copy the function parameters.  */
@@ -4818,7 +4829,7 @@ build_clone (tree fn, tree name)

   /* A base constructor inheriting from a virtual base doesn't get the
      arguments.  */
-  if (ctor_omit_inherited_parms (clone))
+  if (ctor_omit_inherited_parms_p)
     DECL_CHAIN (DECL_CHAIN (DECL_ARGUMENTS (clone))) = NULL_TREE;

   for (parms = DECL_ARGUMENTS (clone); parms; parms = DECL_CHAIN (parms))

but that breaks many other things; guess we'd need in various spots in the FE
start looking at TYPE_ARG_TYPES of DECL_CLONED_FUNCTION.
So, is the FE fixable for that, or do we need to adjust the METHOD_TYPE of the
inherited base ctors later (and if so, when?  At genericization time (do we
have a guarantee that the FE will not look at TYPE_ARG_TYPES of it anymore
though?), or at free_lang_data time (using some langhook?  Do we have a
guarantee nothing looks at TYPE_ARG_TYPES in the FE at this point?  And, won't
the middle-end be upset about this already from gimplification till
free_lang_data?
>From gcc-bugs-return-554066-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 11:51:06 2017
Return-Path: <gcc-bugs-return-554066-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 124505 invoked by alias); 14 Feb 2017 11:51: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 114497 invoked by uid 48); 14 Feb 2017 11:51:00 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79464] [7 Regression] ICE in ipa_modify_formal_ parameters
Date: Tue, 14 Feb 2017 11: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.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: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79464-4-k1NbQ3G7bb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79464-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79464-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01598.txt.bz2
Content-length: 834

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79464

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
And, to answer myself whether the middle-end does care about the METHOD_TYPE
being correct, yes, it does, e.g. that type is stored in gimple_call_fntype
on all the calls to such inherited base ctor, so it should be better correct.

On the other side there are over 120 direct TYPE_ARG_TYPES uses and almost 30
FUNCTION_FIRST_USER_PARMTYPE.  Assuming inherited base ctor clones are only
built post-instantiation, that could cut down many of those.  Perhaps
the FUNCTION_FIRST_USER_PARMTYPE macro could transparently return the
FUNCTION_FIRST_USER_PARMTYPE for the ctor it is cloned from if used on
inheriting base ctor, but a) is that correct/desirable in all cases b) what
about the direct TYPE_ARG_TYPES uses.
>From gcc-bugs-return-554067-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 11:52:44 2017
Return-Path: <gcc-bugs-return-554067-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20650 invoked by alias); 14 Feb 2017 11:52: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 2188 invoked by uid 48); 14 Feb 2017 11:52:31 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79420] [7 Regression] ICE on invalid C++ code on x86_64-linux-gnu: in tsubst_copy, at cp/pt.c:14573
Date: Tue, 14 Feb 2017 11: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: 7.0.1
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: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79420-4-4yq2BQnKOx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79420-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79420-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01599.txt.bz2
Content-length: 1074

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79420

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
We've got a dot expression 'f.x', where the postfix expression 'f' is an
OVERLOAD, and is incomplete.  Since r245223:
/* In a template, be permissive by treating an object expression
   of incomplete type as dependent (after a pedwarn).  */
we give a pedwarn and treat 'f' as dependent.  This then conflicts with this in
tsubst_copy:
    case OVERLOAD:
      /* An OVERLOAD will always be a non-dependent overload set; an
         overload set from function scope will just be represented with an
         IDENTIFIER_NODE, and from class scope with a BASELINK.  */
      gcc_assert (!uses_template_parms (t)); 
      return t;
but T is an overload with a template parameter -> crash.
>From gcc-bugs-return-554068-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 11:57:06 2017
Return-Path: <gcc-bugs-return-554068-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36212 invoked by alias); 14 Feb 2017 11: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 36055 invoked by uid 48); 14 Feb 2017 11:56:53 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79464] [7 Regression] ICE in ipa_modify_formal_ parameters
Date: Tue, 14 Feb 2017 11:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.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: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79464-4-awNde8brK4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79464-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79464-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01600.txt.bz2
Content-length: 718

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79464

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #3)
> On the other side there are over 120 direct TYPE_ARG_TYPES uses and almost 30
> FUNCTION_FIRST_USER_PARMTYPE.  Assuming inherited base ctor clones are only

In the C++ FE I mean.  Code outside of the C++ FE better should see the actual
METHOD_TYPE (i.e. one without the extra arguments).  On the other side, e.g.
mangling really wants to see the original user arguments (but that of course
can be handled in write_method_parms; the main question is how many places need
to be changed if we fix up TYPE_ARG_TYPES of the METHOD_TYPE immediately).
>From gcc-bugs-return-554069-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 12:11:23 2017
Return-Path: <gcc-bugs-return-554069-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73396 invoked by alias); 14 Feb 2017 12:11: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 73155 invoked by uid 48); 14 Feb 2017 12:11:05 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/79441] [7 regression] gnat.dg/pack9.adb fails
Date: Tue, 14 Feb 2017 12:11: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: 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: P4
X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority cc
Message-ID: <bug-79441-4-ckhnQ2V0iT@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79441-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79441-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01601.txt.bz2
Content-length: 363

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79441

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
                 CC|                            |jakub at gcc dot gnu.org
>From gcc-bugs-return-554070-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 12:12:53 2017
Return-Path: <gcc-bugs-return-554070-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75026 invoked by alias); 14 Feb 2017 12:12: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 74823 invoked by uid 48); 14 Feb 2017 12:12:37 -0000
From: "hubicka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79224] [7 Regression] Large C-Ray slowdown
Date: Tue, 14 Feb 2017 12:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hubicka at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79224-4-qiclTm1eit@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79224-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79224-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01602.txt.bz2
Content-length: 3352

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79224

--- Comment #9 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Most of the regression caused by the inlining difference is fixed now, but the
solution is not ideal.
According to Czerny we still have quite noticeable regression
https://gcc.opensuse.org/c++bench-czerny/c-ray/ and code size is bigger.

Morever we get noticeable code size growth in wave (808569->814865, 0.8%) and
Botan (1780199->1789329)

The other change is
160810 0.33 30089 13360 2281 
160811 0.27 30089 12656 2560 
Perhaps this patch might be a suspect, but I have no idea
2016-08-10  Yuri Rumyantsev  <ysrumyan@gmail.com>                               

        PR tree-optimization/71734                                              
        * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument               
        REF_LOOP, invoke ref_indep_loop_p_1.                                    
        (outermost_indep_loop): Pass LOOP argumnet where REF was defined        
        to ref_indep_loop_p.                                                    
        (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,            
        combine it with ref_indep_lopp_p_2, update SAFELEN if only REF          
        is inside LOOP, do not cache dpendence value for loops with             
        non-zero SAFELEN.                                                       
        (ref_indep_loop_p_2): Delete function.                                  
        (can_sm_ref_p): Pass LOOP as additional argument to                     
        ref_indep_loop_p.                                                       


One more important issue I noticed is that inline metric always compare the
estimated runtime of offline copy with the runtime of specialized copy after
inlining (with known constants and other context). 

This is OK for size metrics, but not OK for speed.  The offline copy is run in
the same context, in particular if some code is guarded by a conditional that
is false, it is not executed and should not be acocunted to offline path.  This
makes the inline metric to be skewed toward inlining which eliminates large
conditionals.  I will fix that in next stage1, but I am not sure how much we
can still do in current stage4.

One observation is that overall runtime/size estimates after early opt has
quite improved in last two releases where I did not do re-tunning of
parameters. Perhaps it is time to tune down a bit early inlining and
inline-insns-auto again...
>From gcc-bugs-return-554071-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 12:19:41 2017
Return-Path: <gcc-bugs-return-554071-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8018 invoked by alias); 14 Feb 2017 12:19: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 120051 invoked by uid 55); 14 Feb 2017 12:19:26 -0000
From: "hubicka at ucw dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79489] Strange static branch prediction for n != 0
Date: Tue, 14 Feb 2017 12:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hubicka at ucw dot cz
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79489-4-yHIZLCmFwO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79489-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79489-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01603.txt.bz2
Content-length: 2400

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79489

--- Comment #3 from Jan Hubicka <hubicka at ucw dot cz> ---
> 1) we wrongly match early return heuristics. It's a known issue as mentioned in
> predict.def:
> 
> /* Branch causing function to terminate is probably not taken. 
>    FIXME: early return currently predicts code:
>    int foo (int a)
>    {
>       if (a)
>         bar();
>       else
>         bar2();
>    }
>    even though there is no return statement involved.  We probably want to
> track
>    this from FE or retire the predictor.  */
> DEF_PREDICTOR (PRED_TREE_EARLY_RETURN, "early return (on trees)", HITRATE (54),
> 0)

True, the problem here is that we used to have multiple return statements in
the gimple
bodies and then it was possible to match what is first one.  Now we merge them
into single
return statement and lose information about original placement.  I think we
could
keep there predict_stmts to handle the info.

This can be done by FE or by gimplifier.

> 
> 2) We completely ignore 'n != 0' comparison as we consider it useless due to:
> 
>         /* Comparisons with 0 are often used for booleans and there is
>            nothing useful to predict about them.  */
>         else if (integer_zerop (op0)
>                  || integer_zerop (op1))
>           ;

I think it is reasonable thing to do.  You can try to invent new PRED_NONZERO
heuristics and see what hitrate it is.  I remember I did it long time ago and
it did not seem to be very useful.  Perhaps things has changed.

Perhaps we can get bit smarter and recognize boolean comparsions. Consider:
t(int a, int b)
{
  if (a==7||b==1)
    test();
}

which is seen by predict.c as:

  _3 = a_2(D) == 7;
  _5 = b_4(D) == 1;
  _6 = _3 | _5;
  if (_6 != 0)
    goto <bb 3>;
  else
    goto <bb 4>;

so predict.c does not really see that there are two independent conditions and
interpret it as comparsion of _6 being non-zero.   We could easily look into
cases comparsion operator is SSA name which is a result of boolean operation
and behave smarter. It would make sense to predict independently the value of
_3 and _5 and combine it.  For that we however would need to have
infrastructure for predictions on values and then combine them same way as
predictions on edges.

This would be also more systematic way of handling builtin_expect.

Honza
>From gcc-bugs-return-554073-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 12:35:40 2017
Return-Path: <gcc-bugs-return-554073-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11835 invoked by alias); 14 Feb 2017 12:35:40 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 11753 invoked by uid 48); 14 Feb 2017 12:35:32 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79447] [F08] gfortran rejects valid & accepts invalid internal subprogram in a submodule
Date: Tue, 14 Feb 2017 12:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pault 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-79447-4-43DncTwHbL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79447-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79447-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01605.txt.bz2
Content-length: 388

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79447

--- Comment #3 from Paul Thomas <pault at gcc dot gnu.org> ---
Hi Damian,

Thanks for the report. I am back in France for a couple of days, tidying up
things like utility company contracts and the pile of "stuff" that I left in a
friend's garage. I'll get onto this as soon as I am able - certainly this week.

Best regards

Paul
>From gcc-bugs-return-554072-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 12:35:12 2017
Return-Path: <gcc-bugs-return-554072-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10865 invoked by alias); 14 Feb 2017 12:35: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 10606 invoked by uid 48); 14 Feb 2017 12:35:00 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79420] [7 Regression] ICE on invalid C++ code on x86_64-linux-gnu: in tsubst_copy, at cp/pt.c:14573
Date: Tue, 14 Feb 2017 12:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0.1
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: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79420-4-ArEQkHS4ai@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79420-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79420-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01604.txt.bz2
Content-length: 714

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79420

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
One way would be to never change OVERLOADs back to being dependent, as in
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -7331,7 +7331,8 @@ cp_parser_postfix_dot_deref_expression (cp_parser
*parser,
           (scope, current_class_type))))
    {
      scope = complete_type (scope);
-     if (!COMPLETE_TYPE_P (scope))
+     if (!COMPLETE_TYPE_P (scope)
+         && TREE_CODE (postfix_expression) != OVERLOAD)
        {
          /* In a template, be permissive by treating an object expression
         of incomplete type as dependent (after a pedwarn).  */


but I really need Jason.
>From gcc-bugs-return-554074-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 12:43:53 2017
Return-Path: <gcc-bugs-return-554074-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23087 invoked by alias); 14 Feb 2017 12:43:52 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 130358 invoked by uid 48); 14 Feb 2017 12:43:40 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79505] [7 Regression] Memory leaks in oacc_loop_discover_walk
Date: Tue, 14 Feb 2017 12: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: 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: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed attachments.created
Message-ID: <bug-79505-4-CKYdMbAC5j@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79505-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79505-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01606.txt.bz2
Content-length: 689

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79505

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2017-02-14
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 40737
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40737&action=edit
gcc7-pr79505.patch

Untested fix.
>From gcc-bugs-return-554075-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 12:57:10 2017
Return-Path: <gcc-bugs-return-554075-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10942 invoked by alias); 14 Feb 2017 12:57: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 10664 invoked by uid 48); 14 Feb 2017 12:56:55 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79488] [7 Regression] ICE from lambda that has invalid return type
Date: Tue, 14 Feb 2017 12: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: 7.0.1
X-Bugzilla-Keywords: error-recovery
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub 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.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords priority bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-79488-4-mHwY08SvV6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79488-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79488-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01607.txt.bz2
Content-length: 960

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79488

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-invalid-code         |error-recovery
           Priority|P3                          |P4
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-14
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |jason at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started most likely with r152318 when lambda support has been introduced, but I
lack many revisions around that, r152040 rejects it because it doesn't support
lambdas, and r152438 ICEs on it, don't have anything in between.
>From gcc-bugs-return-554076-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 13:01:26 2017
Return-Path: <gcc-bugs-return-554076-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15527 invoked by alias); 14 Feb 2017 13:01: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 15384 invoked by uid 48); 14 Feb 2017 13:01:10 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79463] [7 Regression] ICE for -g with ./g++.dg/cpp1y/pr79435.C
Date: Tue, 14 Feb 2017 13: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: 7.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79463-4-sBoUyD9SNR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79463-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79463-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01608.txt.bz2
Content-length: 474

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79463

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r245223.
>From gcc-bugs-return-554077-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 13:10:10 2017
Return-Path: <gcc-bugs-return-554077-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57535 invoked by alias); 14 Feb 2017 13:10: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 56516 invoked by uid 48); 14 Feb 2017 13:09:56 -0000
From: "zherczeg at inf dot u-szeged.hu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79507] New: Incorrect array item inlining when ASAN is enabled
Date: Tue, 14 Feb 2017 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: lto
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: zherczeg at inf dot u-szeged.hu
X-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-79507-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01609.txt.bz2
Content-length: 3330

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79507

            Bug ID: 79507
           Summary: Incorrect array item inlining when ASAN is enabled
           Product: gcc
           Version: lto
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zherczeg at inf dot u-szeged.hu
  Target Milestone: ---

Hi,

Tl;DR inlined address of a static array item is invalid.

GCC version: gcc-5 (Ubuntu 5.4.1-2ubuntu1~14.04) 5.4.1 20160904

First, you need a jerryscript:
https://github.com/jerryscript-project/jerryscript

Checkout commit 66683e5d4b3d9474e86900b86be29105524b740c

Compile (note: LTO enabled):

tools/build.py --clean --compile-flag="-fsanitize=address -m32 
-fno-omit-frame-pointer -fno-common -g" --linker-flag=-fsanitize=address 
--jerry-libc=off --static-link=off --strip=off --system-allocator=on

Put the following into a test file (e.g. test.js):

''.replace(/^/g, 'b')

build/bin/jerry test.js

Result: ASAN error

What happens?

There is a function in lit-magic-strings.c which returns with a string based on
an ID. The strings are stored in a static const array.

const lit_utf8_byte_t *
lit_get_magic_string_utf8 (lit_magic_string_id_t id) /**< magic string id */
{
  static const lit_utf8_byte_t * const lit_magic_strings[] JERRY_CONST_DATA =
  {
#define LIT_MAGIC_STRING_FIRST_STRING_WITH_SIZE(size, id)
#define LIT_MAGIC_STRING_DEF(id, utf8_string) \
    (const lit_utf8_byte_t *) utf8_string,
#include "lit-magic-strings.inc.h"
#undef LIT_MAGIC_STRING_DEF
#undef LIT_MAGIC_STRING_FIRST_STRING_WITH_SIZE
  };

  JERRY_ASSERT (id < LIT_MAGIC_STRING__COUNT);

  return lit_magic_strings[id];
} /* lit_get_magic_string_utf8 */

The compiler tries to inline this function, which is obviously clever.

In ecma_regexp_exec_helper (ecma-regexp-object.c) you can find the following
code:

  ECMA_STRING_TO_UTF8_STRING (input_string_p, input_buffer_p,
input_buffer_size);

  if (input_buffer_size == 0u)
  {
    input_curr_p = lit_get_magic_string_utf8 (LIT_MAGIC_STRING__EMPTY);
  }
  else
  {
    input_curr_p = input_buffer_p;
  }

In case of the example above, the string is empty, so input_buffer_size == 0,
and input_curr_p is loaded by the following instruction:

   0x08060528 <ecma_regexp_exec_helper+333>:    mov    $0x80ba160,%esi
   0x0806052d <ecma_regexp_exec_helper+338>:    mov    %eax,%edx (not relevant,
instruction scheduling)
   0x0806052f <ecma_regexp_exec_helper+340>:    mov    %eax,%edi (not relevant,
instruction scheduling)
   0x08060531 <ecma_regexp_exec_helper+342>:    test   %ecx,%ecx
   0x08060533 <ecma_regexp_exec_helper+344>:    cmovne -0x188(%ebp),%esi

So input_curr_p receives the 0x80ba160 value. This value MUST be the same as
input_buffer_p, but they are not when these compiler options are used. The
ecma_string_raw_chars function calls lit_get_magic_string_utf8 but with an
indirect id.

0x080761c8 <ecma_string_raw_chars+466>:      lea    0x80b1700(,%edx,4),%edi

(gdb) x 0x80b1700
0x80b1700 <lit_magic_strings.3362.9502>:        0x080ad940

As you can see the first item (LIT_MAGIC_STRING__EMPTY is equals to 0) of the
array is 0x080ad940.

Because 0x80ba160 != 0x080ad940 the code crashes later.
>From gcc-bugs-return-554078-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 13:12:54 2017
Return-Path: <gcc-bugs-return-554078-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 101034 invoked by alias); 14 Feb 2017 13:12: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 83367 invoked by uid 48); 14 Feb 2017 13:12:41 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79420] [7 Regression] ICE on invalid C++ code on x86_64-linux-gnu: in tsubst_copy, at cp/pt.c:14573
Date: Tue, 14 Feb 2017 13:12: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.1
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: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79420-4-xVhToA1EwN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79420-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79420-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01610.txt.bz2
Content-length: 238

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79420

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
A similar testcase:

struct S;
extern S s;
template<int> int f ()
{ 
  return s.x;
}

void g ()
{ 
  f<0> ();
}
>From gcc-bugs-return-554079-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 13:19:16 2017
Return-Path: <gcc-bugs-return-554079-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109702 invoked by alias); 14 Feb 2017 13:19: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 109585 invoked by uid 48); 14 Feb 2017 13:19:03 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79463] [7 Regression] ICE for -g with ./g++.dg/cpp1y/pr79435.C
Date: Tue, 14 Feb 2017 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: 7.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: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79463-4-reqBEWwr2f@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79463-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79463-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01611.txt.bz2
Content-length: 548

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79463

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> ---
Definitely related to PR79420, especially Comment 4, where a VAR_DECL is made
to be dependent, its type set to null, and subsequent code cannot cope with
that.
>From gcc-bugs-return-554080-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 13:22:51 2017
Return-Path: <gcc-bugs-return-554080-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108947 invoked by alias); 14 Feb 2017 13:22:51 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 108816 invoked by uid 48); 14 Feb 2017 13:22:39 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79463] [7 Regression] ICE for -g with ./g++.dg/cpp1y/pr79435.C
Date: Tue, 14 Feb 2017 13: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: 7.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79463-4-xkV6o7zuhW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79463-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79463-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01612.txt.bz2
Content-length: 398

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79463

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Yeah.  In this particular case it is only the check_abi_tags that assumes a
VAR_DECL has always non-NULL TREE_TYPE, if I return in gdb from there early the
result looks reasonable (likely because we now have early dwarf and the fact
that a has type A has been emitted earlier.
>From gcc-bugs-return-554081-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 13:23:29 2017
Return-Path: <gcc-bugs-return-554081-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110025 invoked by alias); 14 Feb 2017 13:23: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 109888 invoked by uid 48); 14 Feb 2017 13:23:17 -0000
From: "trufanovan at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79508] New: Parse error in template argument list using nested template arguments
Date: Tue, 14 Feb 2017 13:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trufanovan 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-79508-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01613.txt.bz2
Content-length: 6552

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79508

            Bug ID: 79508
           Summary: Parse error in template argument list using nested
                    template arguments
           Product: gcc
           Version: 6.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trufanovan at gmail dot com
  Target Milestone: ---

Created attachment 40738
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40738&action=edit
ii file

It's probably a regression.
I was trying to compile a popular opensourse project on my Kubuntu 16.10
4.8.0-38-generic with gcc 6.2.0 20161005 and got a compilation error.
The original problem was reported to project authors on GitHub:
https://github.com/JohnLangford/vowpal_wabbit/issues/1183
We found out that it's gcc version specific - it works for clang and gcc
4.6-4.9.

I've simplified the code. The sample to reproduce the problem is:

> code start: t.cpp
class C
{
public: 
    template< void(*F)()> void set_default() {  }       
};


template <class T> void random_positive()
{
}

template<class T> void initialize(T& x)
{
x.template set_default<random_positive<T> >();
}

int main ()
{
    C x;
    initialize<C>(x);
}
>code end: t.cpp

I'm getting 

> compilation output:
t.cpp: In function ‘void initialize(T&)’:
t.cpp:18:12: error: parse error in template argument list
 x.template set_default<random_positive<T> >();
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
t.cpp:18:12: error: expected identifier

> compilation output end

Below are commad lines for old g++ and clangs that doesn't cause the problem so
produce no output to console + the command line of g++-6 with all verbose :


>truf@truf-laptop:~$ clear
>truf@truf-laptop:~$ /usr/bin/g++-4.6  -Wall -Wextra -c t.cpp -o t.o
>truf@truf-laptop:~$ /usr/bin/g++-4.8  -Wall -Wextra -c t.cpp -o t.o
>truf@truf-laptop:~$ /usr/bin/g++-4.9  -Wall -Wextra -c t.cpp -o t.o
>truf@truf-laptop:~$ /usr/bin/clang++-3.6  -Wall -Wextra -c t.cpp -o t.o
>truf@truf-laptop:~$ /usr/bin/clang++-3.8  -Wall -Wextra -c t.cpp -o t.o
>truf@truf-laptop:~$ /usr/bin/g++-6  -Wall -Wextra -c t.cpp -o t.o
t.cpp: In function ‘void initialize(T&)’:
t.cpp:18:12: error: parse error in template argument list
 x.template set_default<random_positive<T> >();
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
t.cpp:18:12: error: expected identifier
>truf@truf-laptop:~$ /usr/bin/g++-6  -v -save-temps -Wall -Wextra -fno-strict-aliasing -fwrapv -fno-aggressive-loop-optimizations -c t.cpp -o t.o
Using built-in specs.
COLLECT_GCC=/usr/bin/g++-6
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 6.2.0-5ubuntu12'
--with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs
--enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-6 --program-prefix=x86_64-linux-gnu- --enable-shared
--enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/
--enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie
--with-system-zlib --disable-browser-plugin --enable-java-awt=gtk
--enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre
--enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64
--with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686
--with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib
--with-tune=generic --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 6.2.0 20161005 (Ubuntu 6.2.0-5ubuntu12) 
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-Wall' '-Wextra' '-fno-strict-aliasing'
'-fwrapv' '-fno-aggressive-loop-optimizations' '-c' '-o' 't.o' '-shared-libgcc'
'-mtune=generic' '-march=x86-64'
 /usr/lib/gcc/x86_64-linux-gnu/6/cc1plus -E -quiet -v -imultiarch
x86_64-linux-gnu -D_GNU_SOURCE t.cpp -mtune=generic -march=x86-64 -Wall -Wextra
-fno-strict-aliasing -fwrapv -fno-aggressive-loop-optimizations
-fpch-preprocess -fstack-protector-strong -Wformat-security -o t.ii
ignoring duplicate directory "/usr/include/x86_64-linux-gnu/c++/6"
ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-linux-gnu/6/../../../../x86_64-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/c++/6
 /usr/include/x86_64-linux-gnu/c++/6
 /usr/include/c++/6/backward
 /usr/lib/gcc/x86_64-linux-gnu/6/include
 /usr/local/include
 /usr/lib/gcc/x86_64-linux-gnu/6/include-fixed
 /usr/include/x86_64-linux-gnu
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-Wall' '-Wextra' '-fno-strict-aliasing'
'-fwrapv' '-fno-aggressive-loop-optimizations' '-c' '-o' 't.o' '-shared-libgcc'
'-mtune=generic' '-march=x86-64'
 /usr/lib/gcc/x86_64-linux-gnu/6/cc1plus -fpreprocessed t.ii -quiet -dumpbase
t.cpp -mtune=generic -march=x86-64 -auxbase-strip t.o -Wall -Wextra -version
-fno-strict-aliasing -fwrapv -fno-aggressive-loop-optimizations
-fstack-protector-strong -Wformat-security -o t.s
GNU C++14 (Ubuntu 6.2.0-5ubuntu12) version 6.2.0 20161005 (x86_64-linux-gnu)
        compiled by GNU C version 6.2.0 20161005, GMP version 6.1.1, MPFR
version 3.1.5, MPC version 1.0.3, isl version 0.15
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++14 (Ubuntu 6.2.0-5ubuntu12) version 6.2.0 20161005 (x86_64-linux-gnu)
        compiled by GNU C version 6.2.0 20161005, GMP version 6.1.1, MPFR
version 3.1.5, MPC version 1.0.3, isl version 0.15
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: df259ea45bcfc8adc9cf4871d1d696af
t.cpp: In function ‘void initialize(T&)’:
t.cpp:18:12: error: parse error in template argument list
 x.template set_default<random_positive<T> >();
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
t.cpp:18:12: error: expected identifier
truf@truf-laptop:~$
>From gcc-bugs-return-554082-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 13:40:16 2017
Return-Path: <gcc-bugs-return-554082-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16286 invoked by alias); 14 Feb 2017 13:40: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 16062 invoked by uid 48); 14 Feb 2017 13:40:02 -0000
From: "wbx at openadk dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79509] New: m68k/coldfire: Internal error, aborting at dw2gencfi.c:214 in emit_expr_encoded
Date: Tue, 14 Feb 2017 13:40: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: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wbx at openadk 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-79509-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01614.txt.bz2
Content-length: 950

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79509

            Bug ID: 79509
           Summary: m68k/coldfire: Internal error, aborting at
                    dw2gencfi.c:214 in emit_expr_encoded
           Product: gcc
           Version: 6.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: wbx at openadk dot org
  Target Milestone: ---

At least three packages in Buildroot are failing with this Internal Error
for m68k/coldfire target. GCC 6.3, Binutils 2.26.1 is in use.

The problem can be avoided by using -fno-dwarf2-cfi-asm in CXXFLAGS.

The packages failing are: 
kmsxx from https://github.com/tomba/kmsxx
lcdapi from https://github.com/spdawson/lcdapi
libasplib from https://github.com/AchimTuran/asplib

Not sure how to provide a simple test case.
It seems only to happen for C++ applications/libraries.
>From gcc-bugs-return-554083-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 13:52:06 2017
Return-Path: <gcc-bugs-return-554083-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120011 invoked by alias); 14 Feb 2017 13: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 68939 invoked by uid 48); 14 Feb 2017 13:51:53 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79507] Incorrect array item inlining when ASAN is enabled
Date: Tue, 14 Feb 2017 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: lto
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79507-4-2heguOpq8T@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79507-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79507-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01615.txt.bz2
Content-length: 208

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79507

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Maybe this is an incarnation of PR50199 and -fmerge-constants doesn't fully fix
it.
>From gcc-bugs-return-554084-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 13:57:32 2017
Return-Path: <gcc-bugs-return-554084-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110471 invoked by alias); 14 Feb 2017 13:57: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 110305 invoked by uid 48); 14 Feb 2017 13:57:19 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79420] [7 Regression] ICE on invalid C++ code on x86_64-linux-gnu: in tsubst_copy, at cp/pt.c:14573
Date: Tue, 14 Feb 2017 13:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0.1
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: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79420-4-pT2EMqPiGX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79420-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79420-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01616.txt.bz2
Content-length: 338

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79420

--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Given PR79463 and Comment 4, it seems that we shouldn't change at least
VAR_DECLs and OVERLOADs back to dependent.  Maybe limit what kind of object
expressions we want to treat dependent.

Anybody have a suggestion?
>From gcc-bugs-return-554085-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 14:12:41 2017
Return-Path: <gcc-bugs-return-554085-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24888 invoked by alias); 14 Feb 2017 14:12: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 24748 invoked by uid 48); 14 Feb 2017 14:12:28 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79460] gcc fails to optimise out a trivial additive loop for seemingly arbitrary numbers of iterations
Date: Tue, 14 Feb 2017 14: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: 7.0
X-Bugzilla-Keywords: missed-optimization
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: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79460-4-hMGZhSL1ja@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79460-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79460-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01617.txt.bz2
Content-length: 479

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79460

--- Comment #12 from Segher Boessenkool <segher at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #7)
> Shouldn't it (both in the vectorizer and in scev) be dependent not just on
> flag_fp_contract_mode but also on some -ffast-math subflag?  Doing several
> additions can e.g. raise different exceptions and have different roundings
> from doing it as just one multiply.

This needs -fassociative-math I think?
>From gcc-bugs-return-554086-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 14:12:59 2017
Return-Path: <gcc-bugs-return-554086-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27923 invoked by alias); 14 Feb 2017 14:12: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 25206 invoked by uid 48); 14 Feb 2017 14:12:44 -0000
From: "p.chevalier at psenterprise dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79510] New: #pragma GCC diagnostic pop/push/ignored doesn't work as expected in template code
Date: Tue, 14 Feb 2017 14: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: 6.3.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: p.chevalier at psenterprise 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-79510-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01618.txt.bz2
Content-length: 2467

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79510

            Bug ID: 79510
           Summary: #pragma GCC diagnostic pop/push/ignored doesn't work
                    as expected in template code
           Product: gcc
           Version: 6.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: p.chevalier at psenterprise dot com
  Target Milestone: ---

Created attachment 40739
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40739&action=edit
main.cxx

If a line of code in a template function would trigger a warning, surrounding
it with #pragma push/ignored/pop doesn't work.

The warning still appears at the call site of the template function, where it
gets instantiated.

Using clang 3.9.1 with the exact same scenario doesn't exhibit the bug.

To reproduce, compile the following main.cxx:
--------------------------------------------------------------------------------
#include <iostream>

template <typename... T>
void print_tuple(T... args) {
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-variable"
#else
#ifdef __gcc__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-variable"
#endif
#endif
    // We use the braced initialization list to expand the parameter pack
    // apply is unused on purpose
    auto apply = {(std::cout << args << " ", 0)...};
#ifdef __clang__
#pragma clang diagnostic pop
#else
#ifdef __gcc__
#pragma GCC diagnostic pop
#endif
#endif

    std::cout << std::endl;
}

int main() {
    print_tuple("clang++", "--std=c++14", "-Wall", "-Werror", "main.cxx", "✓");
    print_tuple("g++", "--std=c++14", "-Wall", "-Werror", "main.cxx", "✗");
    print_tuple("g++", "complains", "where", "print_tuple", "is", "called");
}
--------------------------------------------------------------------------------

g++ --std=c++14 -Wall -Werror main.cxx

produces the following output:

main.cxx: In instantiation of ‘void print_tuple(T ...) [with T = {const char*,
const char*, const char*, const char*, const char*, const char*}]’:
main.cxx:29:80:   required from here
main.cxx:16:10: error: unused variable ‘apply’ [-Werror=unused-variable]
     auto apply = {(std::cout << args << " ", 0)...};
          ^~~~~
cc1plus: all warnings being treated as errors
>From gcc-bugs-return-554087-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 14:17:51 2017
Return-Path: <gcc-bugs-return-554087-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37998 invoked by alias); 14 Feb 2017 14:17: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 37523 invoked by uid 48); 14 Feb 2017 14:17:38 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/68664] [6 Regression] Speculative sqrt in c-ray main loop causes large slow down
Date: Tue, 14 Feb 2017 14:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: ktkachov at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-68664-4-42F6WNo2UL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68664-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68664-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01619.txt.bz2
Content-length: 497

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68664

Segher Boessenkool <segher at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #29 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Yeah let's close it, fixed on all reported targets.  Thanks Kyrill.
>From gcc-bugs-return-554088-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 14:36:09 2017
Return-Path: <gcc-bugs-return-554088-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116258 invoked by alias); 14 Feb 2017 14:36: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 116105 invoked by uid 48); 14 Feb 2017 14:35:55 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79420] [7 Regression] ICE on invalid C++ code on x86_64-linux-gnu: in tsubst_copy, at cp/pt.c:14573
Date: Tue, 14 Feb 2017 14: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: 7.0.1
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason 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.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79420-4-TKbx5xqCAM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79420-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79420-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01620.txt.bz2
Content-length: 423

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79420

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Marek Polacek from comment #5)
> Given PR79463 and Comment 4, it seems that we shouldn't change at least
> VAR_DECLs and OVERLOADs back to dependent.

We can treat them as dependent, but we shouldn't clobber the TREE_TYPE of a
VAR_DECL or OVERLOAD.  We should only do that for EXPR_P trees.
>From gcc-bugs-return-554089-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 14:40:34 2017
Return-Path: <gcc-bugs-return-554089-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126493 invoked by alias); 14 Feb 2017 14:40: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 126246 invoked by uid 48); 14 Feb 2017 14:40:15 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79464] [7 Regression] ICE in ipa_modify_formal_ parameters
Date: Tue, 14 Feb 2017 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: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-79464-4-M807OJeopo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79464-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79464-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01621.txt.bz2
Content-length: 378

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79464

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-554091-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 14:47:43 2017
Return-Path: <gcc-bugs-return-554091-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9382 invoked by alias); 14 Feb 2017 14:47: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 9206 invoked by uid 48); 14 Feb 2017 14:47:37 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79463] [7 Regression] ICE for -g with ./g++.dg/cpp1y/pr79435.C
Date: Tue, 14 Feb 2017 14: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: 7.0
X-Bugzilla-Keywords: ice-on-invalid-code
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-79463-4-splZ6ahAvU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79463-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79463-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01623.txt.bz2
Content-length: 384

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79463

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-554090-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 14:47:42 2017
Return-Path: <gcc-bugs-return-554090-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9367 invoked by alias); 14 Feb 2017 14:47: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 9030 invoked by uid 48); 14 Feb 2017 14:47:29 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79420] [7 Regression] ICE on invalid C++ code on x86_64-linux-gnu: in tsubst_copy, at cp/pt.c:14573
Date: Tue, 14 Feb 2017 14: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: 7.0.1
X-Bugzilla-Keywords: ice-on-invalid-code
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-79420-4-hWls8oKEA1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79420-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79420-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01622.txt.bz2
Content-length: 384

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79420

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-554092-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 14:52:03 2017
Return-Path: <gcc-bugs-return-554092-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22127 invoked by alias); 14 Feb 2017 14:52:03 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 22029 invoked by uid 48); 14 Feb 2017 14:51:50 -0000
From: "jplejacq at quoininc dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79458] attributes on constructor between class name and parameter list not accepted
Date: Tue, 14 Feb 2017 14: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: 7.0.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jplejacq at quoininc 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-79458-4-RA7GacPLe4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79458-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79458-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01624.txt.bz2
Content-length: 294

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79458

--- Comment #2 from Jean Pierre LeJacq <jplejacq at quoininc dot com> ---
Clang 5.0.0 (trunk 295037) accepts the attribute in both locations.

GCC and Clang accept the attribute in both locations for functions other than
the constructor.
>From gcc-bugs-return-554093-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 14:58:51 2017
Return-Path: <gcc-bugs-return-554093-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48811 invoked by alias); 14 Feb 2017 14: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 48687 invoked by uid 48); 14 Feb 2017 14:58:37 -0000
From: "damian at sourceryinstitute dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79447] [F08] gfortran rejects valid & accepts invalid internal subprogram in a submodule
Date: Tue, 14 Feb 2017 14:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: damian at sourceryinstitute 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:
Message-ID: <bug-79447-4-68SpUsZX0D@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79447-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79447-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01625.txt.bz2
Content-length: 298

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79447

--- Comment #4 from Damian Rouson <damian at sourceryinstitute dot org> ---
Hi Paul,

Thanks for the updates.  My son loves to host garage sales so let us know if
you're getting rid of the "stuff" and we'll drop by. :) Safe travels. 

Damian
>From gcc-bugs-return-554094-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 15:01:03 2017
Return-Path: <gcc-bugs-return-554094-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53019 invoked by alias); 14 Feb 2017 15: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 52782 invoked by uid 48); 14 Feb 2017 15:00:47 -0000
From: "jeromerobert at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/67308] FATAL: ThreadSanitizer: unexpected memory mapping
Date: Tue, 14 Feb 2017 15: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: 5.2.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jeromerobert 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-67308-4-WRVkgMf5Zg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67308-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67308-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01626.txt.bz2
Content-length: 353

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67308

--- Comment #5 from Jerome Robert <jeromerobert at gmx dot com> ---
I did not test my self but this is supposed to be fixed in trunk (and not
backported to 6.x):

https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=241977
http://llvm.org/viewvc/llvm-project?view=revision&revision=282152
>From gcc-bugs-return-554095-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 15:08:38 2017
Return-Path: <gcc-bugs-return-554095-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76754 invoked by alias); 14 Feb 2017 15:08: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 76623 invoked by uid 48); 14 Feb 2017 15:08:25 -0000
From: "mikhail at pilin dot name" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79511] New: Convertation issues in std::codecvt_utf8_utf16
Date: Tue, 14 Feb 2017 15:08: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mikhail at pilin dot name
X-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-79511-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01627.txt.bz2
Content-length: 910

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511

            Bug ID: 79511
           Summary: Convertation issues in std::codecvt_utf8_utf16
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mikhail at pilin dot name
  Target Milestone: ---

Hi,

I found two issues in std::codecvt_utf8_utf16 for GCC v5.4 (Clang v3.8 has no
issues here):

1. \xEF\xBF\xBF (UTF8) convered to \xD7FF\xDFFF (UTF16), but should be \xFFFF
(UTF16). (Attention: \xD7FF is not is high surrogate region [D800..DBFF]).
Please see non character representation table in
http://www.unicode.org/faq/private_use.html#noncharacters

2. std::codecvt_utf8_utf16 requires std::little_endian on x86_64. Otherwise big
endian order is used as default!
>From gcc-bugs-return-554096-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 15:25:12 2017
Return-Path: <gcc-bugs-return-554096-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106484 invoked by alias); 14 Feb 2017 15:25: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 99249 invoked by uid 48); 14 Feb 2017 15:25:03 -0000
From: "gerhard.steinmetz.fortran@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79499] ICE in rtl_verify_bb_insns, at cfgrtl.c:2661
Date: Tue, 14 Feb 2017 15: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: 7.0.1
X-Bugzilla-Keywords: ice-checking, ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gerhard.steinmetz.fortran@t-online.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-79499-4-4TBEO5NcoJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79499-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79499-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01628.txt.bz2
Content-length: 2214

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79499

--- Comment #1 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
Original files from ./gcc/testsuite/gcc.dg/torture.
Oh, and gcc-5 (configured with --enable-checking=yes) also gives
that ICE for pr57478.c (but not for pr78542.c).

Whereas with release versions 5/6/7 (--enable-checking=release) :


$ cat z1.c     # slightly reduced/modified pr57478.c
typedef struct Node Node;
struct Node
{
  Node *Suc, *SubBestSuc;
};
void
foo (Node *N)
{
  do
    {
      N->SubBestSuc = N->Suc;
    }
  while (N = N->Suc);
}


$ gcc-7-20170212-rel -O2 -fsplit-stack -fno-omit-frame-pointer -c z1.c
z1.c: In function 'foo':
z1.c:14:1: internal compiler error: in maybe_add_or_update_dep_1, at
sched-deps.c:924
 }
 ^
0x10cab94 maybe_add_or_update_dep_1
        ../../gcc/sched-deps.c:924
0x10cacf9 haifa_note_dep
        ../../gcc/sched-deps.c:1866
0x10c2fc2 note_dep
        ../../gcc/sched-deps.c:1901
0x10c2fc2 add_dependence_1
        ../../gcc/sched-deps.c:4285
0x10c5163 add_dependence(rtx_insn*, rtx_insn*, reg_note)
        ../../gcc/sched-deps.c:1553
0xa35b9e add_branch_dependences
        ../../gcc/sched-rgn.c:2507
0xa35b9e compute_block_dependences
        ../../gcc/sched-rgn.c:2725
0xa35b9e sched_rgn_compute_dependencies(int)
        ../../gcc/sched-rgn.c:3347
0xa37a7b schedule_region
        ../../gcc/sched-rgn.c:3103
0xa37a7b schedule_insns()
        ../../gcc/sched-rgn.c:3506
0xa3807d schedule_insns()
        ../../gcc/sched-rgn.c:3491
0xa3807d rest_of_handle_sched2
        ../../gcc/sched-rgn.c:3730
0xa3807d execute
        ../../gcc/sched-rgn.c:3866



$ gcc-7-20170212-rel -Os -fsplit-stack -fno-omit-frame-pointer -c z1.c
z1.c: In function 'foo':
z1.c:14:1: internal compiler error: in schedule_block, at haifa-sched.c:6681
 }
 ^
0x105edd1 schedule_block(basic_block_def**, void*)
        ../../gcc/haifa-sched.c:6681
0xa37d3a schedule_region
        ../../gcc/sched-rgn.c:3169
0xa37d3a schedule_insns()
        ../../gcc/sched-rgn.c:3506
0xa3807d schedule_insns()
        ../../gcc/sched-rgn.c:3491
0xa3807d rest_of_handle_sched2
        ../../gcc/sched-rgn.c:3730
0xa3807d execute
        ../../gcc/sched-rgn.c:3866
>From gcc-bugs-return-554097-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 15:27:23 2017
Return-Path: <gcc-bugs-return-554097-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 124482 invoked by alias); 14 Feb 2017 15: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 119984 invoked by uid 48); 14 Feb 2017 15:27:10 -0000
From: "gerhard.steinmetz.fortran@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79512] New: ICE: Segfault in gimple_build_call_1, at gimple.c:218
Date: Tue, 14 Feb 2017 15:27: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.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gerhard.steinmetz.fortran@t-online.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
Message-ID: <bug-79512-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01629.txt.bz2
Content-length: 1383

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79512

            Bug ID: 79512
           Summary: ICE: Segfault in gimple_build_call_1, at gimple.c:218
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fortran@t-online.de
  Target Milestone: ---

Version 6/7 (on x86_64 GNU/Linux) with option -fopenmp-simd
ICEs for testsuite files ./g++.dg/gomp/target-teams-1.C
and ./g++.dg/gomp/teams-1.C. Last one reduced :


$ cat z1.cc
void
bar ()
{
  #pragma omp target
  #pragma omp teams
    {
      int i;
      goto ok1;
      for (i = 0; i < 10; ++i)
        { ok1: break; }
    }
}


$ gcc-7-20170212 -fopenmp -c z1.cc
$ gcc-7-20170212 -fopenmp-simd -c z1.cc
z1.cc: In function 'void bar()':
z1.cc:4:11: internal compiler error: Segmentation fault
   #pragma omp target
           ^~~
0xde341f crash_signal
        ../../gcc/toplev.c:333
0xb3456d gimple_build_call_1
        ../../gcc/gimple.c:218
0xb3456d gimple_build_call_vec(tree_node*, vec<tree_node*, va_heap, vl_ptr>)
        ../../gcc/gimple.c:235
0xcb6f33 expand_omp_target
        ../../gcc/omp-expand.c:7535
0xcc1ebc expand_omp
        ../../gcc/omp-expand.c:7938
0xcc42bd execute_expand_omp
        ../../gcc/omp-expand.c:8118
>From gcc-bugs-return-554098-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 15:29:06 2017
Return-Path: <gcc-bugs-return-554098-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7655 invoked by alias); 14 Feb 2017 15:29: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 1191 invoked by uid 48); 14 Feb 2017 15:28:47 -0000
From: "krebbel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79487] Invalid _Decimal32 comparison on s390x
Date: Tue, 14 Feb 2017 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: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: krebbel 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-79487-4-pCghfIDYeI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01630.txt.bz2
Content-length: 1177

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79487

Andreas Krebbel <krebbel at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-14
     Ever confirmed|0                           |1

--- Comment #3 from Andreas Krebbel <krebbel at gcc dot gnu.org> ---
(In reply to Dominik Vogt from comment #0)
> Note that this does not happen on Power which has similar DFP instructions. 
> Gcc does not store the constant with 64 bit precision in the literal pool
> there.

On Power the constant is forced into the literal pool right from the start.
This appears to hide it from CSE. We probably would get the same effect by
rejecting decimal floats in legitimate_constant_p:

@@ -3830,6 +3830,9 @@ s390_legitimate_constant_p (machine_mode mode, rtx op)
        return 0;
     }

+  if (DECIMAL_FLOAT_MODE_P (mode))
+    return 0;
+
   /* Accept all non-symbolic constants.  */
   if (!SYMBOLIC_CONST (op))
     return 1;

However, that's probably not a real fix.
>From gcc-bugs-return-554099-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 15:55:00 2017
Return-Path: <gcc-bugs-return-554099-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42265 invoked by alias); 14 Feb 2017 15:54: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 42033 invoked by uid 55); 14 Feb 2017 15:54:45 -0000
From: "law at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79095] [7 regression] spurious stringop-overflow warning
Date: Tue, 14 Feb 2017 15: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: 7.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: law at redhat dot com
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79095-4-Gwo63xBUqR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79095-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79095-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01631.txt.bz2
Content-length: 1934

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79095

--- Comment #13 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Author: law
Date: Tue Feb 14 15:54:09 2017
New Revision: 245434

URL: https://gcc.gnu.org/viewcvs?rev=245434&root=gcc&view=rev
Log:
        PR tree-optimization/79095
        * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
        if the numerator has the range ~[0,0] make the resultant range ~[0,0].
        (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
        if the operands are known to be not equal, then the resulting range
        is ~[0,0].
        (intersect_ranges): If the new range is ~[0,0] and the old range is
        wide, then prefer ~[0,0].
        * tree-vrp.c (overflow_comparison_p_1): New function.
        (overflow_comparison_p): New function.
        * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
        if NAME is used in an overflow test.
        (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
        overflow check that can be expressed as an equality test, then adjust
        ops to be that equality test.

        PR tree-optimization/79095
        * g++.dg/pr79095-1.C: New test
        * g++.dg/pr79095-2.C: New test
        * g++.dg/pr79095-3.C: New test
        * g++.dg/pr79095-4.C: New test
        * g++.dg/pr79095-5.C: New test
        * gcc.c-torture/execute/arith-1.c: Update with more cases.
        * gcc.dg/tree-ssa/pr79095-1.c: New test.

Added:
    trunk/gcc/testsuite/g++.dg/pr79095-1.C
    trunk/gcc/testsuite/g++.dg/pr79095-2.C
    trunk/gcc/testsuite/g++.dg/pr79095-3.C
    trunk/gcc/testsuite/g++.dg/pr79095-4.C
    trunk/gcc/testsuite/g++.dg/pr79095-5.C
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr79095.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.c-torture/execute/arith-1.c
    trunk/gcc/tree-vrp.c
>From gcc-bugs-return-554100-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 15:55:22 2017
Return-Path: <gcc-bugs-return-554100-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43159 invoked by alias); 14 Feb 2017 15:55: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 43055 invoked by uid 48); 14 Feb 2017 15:55:10 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79095] [7 regression] spurious stringop-overflow warning
Date: Tue, 14 Feb 2017 15:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: law at redhat dot com
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79095-4-CcQOYsXCtB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79095-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79095-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01632.txt.bz2
Content-length: 448

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79095

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #14 from Jeffrey A. Law <law at redhat dot com> ---
Bogus warnings fixed on the trunk.
>From gcc-bugs-return-554101-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 16:01:46 2017
Return-Path: <gcc-bugs-return-554101-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64381 invoked by alias); 14 Feb 2017 16:01: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 64135 invoked by uid 48); 14 Feb 2017 16:01:32 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79508] [6/7 Regression] Parse error in template argument list using nested template arguments
Date: Tue, 14 Feb 2017 16: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: 6.2.0
X-Bugzilla-Keywords: rejects-valid
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: keywords bug_status cf_reconfirmed_on cf_known_to_work short_desc everconfirmed
Message-ID: <bug-79508-4-kCo7Et1uRZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79508-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79508-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01633.txt.bz2
Content-length: 933

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79508

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-14
      Known to work|                            |5.4.1
            Summary|Parse error in template     |[6/7 Regression] Parse
                   |argument list using nested  |error in template argument
                   |template arguments          |list using nested template
                   |                            |arguments
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Confirmed, I'm bisecting to find where the regression started.
>From gcc-bugs-return-554102-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 16:14:40 2017
Return-Path: <gcc-bugs-return-554102-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 40852 invoked by alias); 14 Feb 2017 16:14: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 40759 invoked by uid 48); 14 Feb 2017 16:14:27 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/45397] [5/6/7 Regression] Issues with integer narrowing conversions
Date: Tue, 14 Feb 2017 16:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.6.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-45397-4-THV7vm5HV3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-45397-4@http.gcc.gnu.org/bugzilla/>
References: <bug-45397-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01634.txt.bz2
Content-length: 1394

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45397

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |law at redhat dot com

--- Comment #21 from Jeffrey A. Law <law at redhat dot com> ---
Couldn't we solve this with a pattern like this in match.pd:

(simplify
  (convert (plus:c @0 (convert @1)))
  (if (INTEGRAL_TYPE_P (TREE_TYPE (@1))
       && INTEGRAL_TYPE_P (TREE_TYPE (@0))
       && INTEGRAL_TYPE_P (type)
       && types_match (@1, type)
       && (TYPE_PRECISION (TREE_TYPE (@1)) > TYPE_PRECISION (TREE_TYPE (@0))))
    (bit_and (plus (convert @0) @1)
       { wide_int_to_tree
                (type, wi::mask (TYPE_PRECISION (TREE_TYPE (@0)), false,
TYPE_PRECISION (type))); })))

Essentially this widens the arithmetic, then masks off undesirable bits in the
result.  As written I think this doesn't reduce the number of expressions
consistently even though it helps the testcase.

The reason it helps the testcase is the (convert @0) in the output pattern
turns out to be a common subexpression.  If (convert @0) is CSE-able, then this
does reduce the number of expressions.  Though we probably want to avoid
widening beyond a target's wordsize (which I loathe to test for).

Thoughts anyone?
>From gcc-bugs-return-554103-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 16:22:55 2017
Return-Path: <gcc-bugs-return-554103-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 82237 invoked by alias); 14 Feb 2017 16:22: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 82102 invoked by uid 48); 14 Feb 2017 16:22:40 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79487] Invalid _Decimal32 comparison on s390x
Date: Tue, 14 Feb 2017 16: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: 7.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.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-79487-4-O1qsBjO2Gr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01635.txt.bz2
Content-length: 1209

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79487

--- Comment #4 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
What happens in Cse1 is that the constant is propagated into the FLOAT_EXTEND
expression, resulting in

  (float_expand:DD (const_double:SD -9223372036854775808))

which is eventually simplified using simplify_const_unary_operation.  This has
a case dealing with FLOAT_EXTEND:

        case FLOAT_EXTEND: 
          /* All this does is change the mode, unless changing 
             mode class.  */ 
          /* Don't perform the operation if flag_signaling_nans is on 
             and the operand is a signaling NaN.  */ 
          if ((GET_MODE_CLASS (mode) != GET_MODE_CLASS (GET_MODE (op)) 
               || d.decimal) 
              && !(HONOR_SNANS (mode) && REAL_VALUE_ISSIGNALING_NAN (d))) 
            real_convert (&d, mode, &d); 
          break; 

This test fails, so the following code just strips the FLOAT_EXTEND:DD and
replaces the mode in const_double with the target mode:

  (const_double:DD -9223372036854775808)

which is wrong.  Shouldn't this truncate the constant to the source mode first
before converting it to the target mode?
>From gcc-bugs-return-554104-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 16:40:07 2017
Return-Path: <gcc-bugs-return-554104-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18710 invoked by alias); 14 Feb 2017 16:40: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 17283 invoked by uid 48); 14 Feb 2017 16:39:54 -0000
From: "krebbel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79487] Invalid _Decimal32 comparison on s390x
Date: Tue, 14 Feb 2017 16:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: krebbel 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-79487-4-WQg6uRJnQt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01636.txt.bz2
Content-length: 890

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79487

--- Comment #5 from Andreas Krebbel <krebbel at gcc dot gnu.org> ---
the real_convert invocation has been added with:

commit 21be42575a11522f5b73d88da65f681711c335a0
Author: jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Thu Mar 24 18:58:58 2011 +0000

            PR debug/48204
            * simplify-rtx.c (simplify_const_unary_operation): Call
            real_convert when changing mode class with FLOAT_EXTEND.

            * gcc.dg/dfp/pr48204.c: New test.


    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171423
138bc75d-0d04-0410-961f-82ee72b054a4

Perhaps we have to do the real_convert unconditionally?!

Usually most of the constants are probably converted on tree level. For decimal
float the convert is added late during RTL expansion because that's the point
were it SD mode operations are lacking.
>From gcc-bugs-return-554105-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 16:41:36 2017
Return-Path: <gcc-bugs-return-554105-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 22627 invoked by alias); 14 Feb 2017 16:41: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 22396 invoked by uid 48); 14 Feb 2017 16:41:23 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79487] Invalid _Decimal32 comparison on s390x
Date: Tue, 14 Feb 2017 16: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: 7.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.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-79487-4-RZ6jK4h8L1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01637.txt.bz2
Content-length: 808

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79487

--- Comment #6 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
This experimental patch fixes the problem:

diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c
index aa45973..2e67cff 100644
--- a/gcc/simplify-rtx.c
+++ b/gcc/simplify-rtx.c
@@ -1897,6 +1897,8 @@ simplify_const_unary_operation (enum rtx_code code,
machine_mode mode,
             mode class.  */
          /* Don't perform the operation if flag_signaling_nans is on
             and the operand is a signaling NaN.  */
+         if (d.decimal)
+           real_convert (&d, GET_MODE (op), &d);
          if (GET_MODE_CLASS (mode) != GET_MODE_CLASS (GET_MODE (op))
              && !(HONOR_SNANS (mode) && REAL_VALUE_ISSIGNALING_NAN (d)))
            real_convert (&d, mode, &d);
>From gcc-bugs-return-554106-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 16:43:06 2017
Return-Path: <gcc-bugs-return-554106-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25392 invoked by alias); 14 Feb 2017 16: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 24143 invoked by uid 48); 14 Feb 2017 16:42:51 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79487] Invalid _Decimal32 comparison on s390x
Date: Tue, 14 Feb 2017 16:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.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-79487-4-Qnd1rThEzh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01638.txt.bz2
Content-length: 371

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79487

--- Comment #7 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
(In reply to Andreas Krebbel from comment #5)
> Perhaps we have to do the real_convert unconditionally?!

The real_convert to "mode" is not enough.  Before converting to the target
mode, the constant needs to be truncted to the source mode first.
>From gcc-bugs-return-554107-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 16:43:12 2017
Return-Path: <gcc-bugs-return-554107-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26179 invoked by alias); 14 Feb 2017 16: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 24860 invoked by uid 48); 14 Feb 2017 16:42:59 -0000
From: "tulipawn at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/77468] [7 Regression] C-ray regression on Aarch64
Date: Tue, 14 Feb 2017 16:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tulipawn at gmail dot com
X-Bugzilla-Status: REOPENED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-77468-4-EHM80FsGUn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77468-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77468-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01639.txt.bz2
Content-length: 716

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77468

PeteVine <tulipawn at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|DUPLICATE                   |---

--- Comment #22 from PeteVine <tulipawn at gmail dot com> ---
@ktkachov I've just retested with your patches from PR68664 and it looks like
this could be a different issue, concerning Cortex-A53 codegen exclusively. 

Using -mcpu=thunderx demonstrates the problem (as well as gcc7 superiority
probably):

http://openbenchmarking.org/result/1702146-RI-1609039HA18
>From gcc-bugs-return-554108-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 16:44:42 2017
Return-Path: <gcc-bugs-return-554108-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32161 invoked by alias); 14 Feb 2017 16:44: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 28624 invoked by uid 48); 14 Feb 2017 16:44:29 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79508] [6/7 Regression] Parse error in template argument list using nested template arguments
Date: Tue, 14 Feb 2017 16:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 6.2.0
X-Bugzilla-Keywords: rejects-valid
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: cc
Message-ID: <bug-79508-4-D9AiGCe4Kf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79508-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79508-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01640.txt.bz2
Content-length: 754

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79508

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
It began with r233277

        PR c++/10200

        * parser.c (cp_parser_lookup_name): When looking for a template
        after . or ->, only consider class templates.
        (cp_parser_postfix_dot_deref_expression): Handle the current
        instantiation.  Remember a dependent object expression.
        * typeck2.c (build_x_arrow): Handle the current instantiation.
>From gcc-bugs-return-554109-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 16:45:42 2017
Return-Path: <gcc-bugs-return-554109-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38494 invoked by alias); 14 Feb 2017 16:45: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 34504 invoked by uid 55); 14 Feb 2017 16:45:13 -0000
From: "law at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79404] [7 Regression] h8300: ICE at gcc/ira.c:5541 whilst building libgcc
Date: Tue, 14 Feb 2017 16: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: law at redhat dot com
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79404-4-JY1rRsdFQp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79404-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79404-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01641.txt.bz2
Content-length: 458

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79404

--- Comment #4 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Author: law
Date: Tue Feb 14 16:44:33 2017
New Revision: 245436

URL: https://gcc.gnu.org/viewcvs?rev=245436&root=gcc&view=rev
Log:
        PR target/79404
        * ira-costs.c (scan_one_insn): Initialize register move costs
        for pseudos seen in USE/CLOBBER insns.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ira-costs.c
>From gcc-bugs-return-554110-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 16:46:02 2017
Return-Path: <gcc-bugs-return-554110-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42808 invoked by alias); 14 Feb 2017 16:46: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 40852 invoked by uid 48); 14 Feb 2017 16:45:41 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79404] [7 Regression] h8300: ICE at gcc/ira.c:5541 whilst building libgcc
Date: Tue, 14 Feb 2017 16:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: law at redhat dot com
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79404-4-s7xAbOKONY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79404-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79404-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01642.txt.bz2
Content-length: 428

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79404

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Jeffrey A. Law <law at redhat dot com> ---
Fixed on trunk.
>From gcc-bugs-return-554111-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 16:47:06 2017
Return-Path: <gcc-bugs-return-554111-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47729 invoked by alias); 14 Feb 2017 16:47: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 44987 invoked by uid 48); 14 Feb 2017 16:47:00 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79487] Invalid _Decimal32 comparison on s390x
Date: Tue, 14 Feb 2017 16:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.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:
Message-ID: <bug-79487-4-ssyPfpskLo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01643.txt.bz2
Content-length: 1466

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79487

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Dominik Vogt from comment #4)
> What happens in Cse1 is that the constant is propagated into the
> FLOAT_EXTEND expression, resulting in
> 
>   (float_expand:DD (const_double:SD -9223372036854775808))
> 
> which is eventually simplified using simplify_const_unary_operation.  This
> has a case dealing with FLOAT_EXTEND:
> 
>         case FLOAT_EXTEND: 
>           /* All this does is change the mode, unless changing 
>              mode class.  */ 
>           /* Don't perform the operation if flag_signaling_nans is on 
>              and the operand is a signaling NaN.  */ 
>           if ((GET_MODE_CLASS (mode) != GET_MODE_CLASS (GET_MODE (op)) 
>                || d.decimal) 
>               && !(HONOR_SNANS (mode) && REAL_VALUE_ISSIGNALING_NAN (d))) 
>             real_convert (&d, mode, &d); 
>           break; 
> 
> This test fails, so the following code just strips the FLOAT_EXTEND:DD and
> replaces the mode in const_double with the target mode:
> 
>   (const_double:DD -9223372036854775808)
> 
> which is wrong.  Shouldn't this truncate the constant to the source mode
> first before converting it to the target mode?

This isn't truncation, but extension (SDmode to DDmode).  I presume all SDmode
values are representable in DDmode, so I don't see anything wrong on that.
>From gcc-bugs-return-554113-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 16:52:11 2017
Return-Path: <gcc-bugs-return-554113-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113630 invoked by alias); 14 Feb 2017 16:52: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 113572 invoked by uid 48); 14 Feb 2017 16:52:07 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/21485] [5/6/7 Regression] missed load PRE, PRE makes i?86/7 suck
Date: Tue, 14 Feb 2017 16:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.0.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-21485-4-dUAQrSPSCo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-21485-4@http.gcc.gnu.org/bugzilla/>
References: <bug-21485-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01645.txt.bz2
Content-length: 2314

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=21485

--- Comment #63 from Jeffrey A. Law <law at redhat dot com> ---
So going back to the gcc-3.4 code the major change is we make much more use of
the complex addressing modes on x86:

NumSift:
.LFB2:
        pushq   %rbx
.LCFI0:
        movq    %rsi, %r8
        .p2align 4,,7
.L11:
        leaq    (%r8,%r8), %rcx
        cmpq    %rdx, %rcx
        ja      .L10
.L14:
        cmpq    %rdx, %rcx
        movq    %rcx, %rsi
        jae     .L4
        movq    8(%rdi,%rcx,8), %rbx
        cmpq    %rbx, (%rdi,%rcx,8)
        leaq    1(%rcx), %rax
        cmovl   %rax, %rsi
.L4:
        movq    (%rdi,%r8,8), %rax
        movq    (%rdi,%rsi,8), %rcx
        cmpq    %rcx, %rax
        jge     .L6
        movq    %rax, (%rdi,%rsi,8)
        movq    %rcx, (%rdi,%r8,8)
        movq    %rsi, %r8
        leaq    (%r8,%r8), %rcx
        cmpq    %rdx, %rcx
        jbe     .L14
.L10:
        popq    %rbx
        ret
        .p2align 4,,7
.L6:
        leaq    1(%rdx), %r8
        jmp     .L11


Contrast the loop body to what we generate now:
NumSift:
.LFB0:
        .cfi_startproc
        pushq   %rbx
        .cfi_def_cfa_offset 16
        .cfi_offset 3, -16
        leaq    1(%rdx), %rbx
.L2:
        leaq    (%rsi,%rsi), %rcx
        cmpq    %rdx, %rcx
        ja      .L9
.L6:
        movq    %rsi, %rax
        salq    $4, %rax
        addq    %rdi, %rax
        cmpq    %rdx, %rcx
        movq    (%rax), %r8
        jnb     .L3
        leaq    1(%rcx), %r9
        leaq    (%rdi,%r9,8), %r10
        movq    (%r10), %r11
        cmpq    %r8, %r11
        jle     .L3
        movq    %r11, %r8
        movq    %r10, %rax
        movq    %r9, %rcx
.L3:
        leaq    (%rdi,%rsi,8), %r9
        movq    %rbx, %rsi
        movq    (%r9), %r10
        cmpq    %r8, %r10
        jge     .L2
        movq    %rcx, %rsi
        movq    %r10, (%rax)
        movq    %r8, (%r9)
        leaq    (%rsi,%rsi), %rcx
        cmpq    %rdx, %rcx
        jbe     .L6
.L9:
        popq    %rbx

I haven't looked deeply at the dumps, but I suspect that CSE/PRE on the address
arithmetic spoils our ability to utilize the complex addressing modes.  Which
would tend match the findings from c#62 where a change in a conditional
inhibits PRE and we end up with better code.
>From gcc-bugs-return-554112-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 16:52:11 2017
Return-Path: <gcc-bugs-return-554112-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113617 invoked by alias); 14 Feb 2017 16:52: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 113395 invoked by uid 55); 14 Feb 2017 16:51:56 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79448] unhelpful -Wformat-truncation=2 INT_MAX warning
Date: Tue, 14 Feb 2017 16:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79448-4-865m3lsp59@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79448-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79448-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01644.txt.bz2
Content-length: 985

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79448

--- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Tue Feb 14 16:51:24 2017
New Revision: 245437

URL: https://gcc.gnu.org/viewcvs?rev=245437&root=gcc&view=rev
Log:
PR middle-end/79448 - unhelpful -Wformat-truncation=2 warning

gcc/testsuite/ChangeLog:

        PR middle-end/79448
        * gcc.dg/tree-ssa/builtin-snprintf-warn-3.c: New test.
        * gcc.dg/tree-ssa/pr79448-2.c: New test.
        * gcc.dg/tree-ssa/pr79448.c: New test.

gcc/ChangeLog:

        PR middle-end/79448
        * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
          warning for strings of unknown length.


Added:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-snprintf-warn-3.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr79448-2.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr79448.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimple-ssa-sprintf.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-554114-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 16:52:33 2017
Return-Path: <gcc-bugs-return-554114-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115286 invoked by alias); 14 Feb 2017 16:52: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 115140 invoked by uid 48); 14 Feb 2017 16:52:25 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79448] unhelpful -Wformat-truncation=2 INT_MAX warning
Date: Tue, 14 Feb 2017 16:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.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: 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
Message-ID: <bug-79448-4-gDPNLU1IGO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79448-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79448-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01646.txt.bz2
Content-length: 468

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79448

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Martin Sebor <msebor at gcc dot gnu.org> ---
Fixed via r245437.

Thanks for verifying the fixes!
>From gcc-bugs-return-554115-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 16:52:53 2017
Return-Path: <gcc-bugs-return-554115-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116106 invoked by alias); 14 Feb 2017 16:52: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 116000 invoked by uid 48); 14 Feb 2017 16:52:47 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79487] Invalid _Decimal32 comparison on s390x
Date: Tue, 14 Feb 2017 16:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.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-79487-4-rPJ5xnFPCS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01647.txt.bz2
Content-length: 440

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79487

--- Comment #9 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
(In reply to Jakub Jelinek from comment #8)
> This isn't truncation, but extension (SDmode to DDmode).  I presume all
> SDmode values are representable in DDmode, so I don't see anything wrong on
> that.

But -9223372036854775808 *isn't* an SDmode constant - the mantissa is too short
to represent the constant.
>From gcc-bugs-return-554117-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 16:54:54 2017
Return-Path: <gcc-bugs-return-554117-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121179 invoked by alias); 14 Feb 2017 16: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 120916 invoked by uid 48); 14 Feb 2017 16:54:40 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79511] Convertation issues in std::codecvt_utf8_utf16
Date: Tue, 14 Feb 2017 16: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: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi 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-79511-4-hUcl9EQuxJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79511-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79511-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01649.txt.bz2
Content-length: 1385

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-02-14
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to ww898 from comment #0)
> Hi,
> 
> I found two issues in std::codecvt_utf8_utf16 for GCC v5.4 (Clang v3.8 has
> no issues here):
> 
> 1. \xEF\xBF\xBF (UTF8) convered to \xD7FF\xDFFF (UTF16), but should be
> \xFFFF (UTF16). (Attention: \xD7FF is not is high surrogate region
> [D800..DBFF]). Please see non character representation table in
> http://www.unicode.org/faq/private_use.html#noncharacters

Please provide a testcase, this is not a helpful bug report.

You were asked to read https://gcc.gnu.org/bugs/ first.

> 2. std::codecvt_utf8_utf16 requires std::little_endian on x86_64. Otherwise
> big endian order is used as default!

I think that's correct, the default is specified by the C++ standard and
doesn't depend on the target platform:

"If (Mode & little_endian), the facet shall generate a multibyte sequence in
little-endian order, as opposed to the default big-endian order."
>From gcc-bugs-return-554116-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 16:54:05 2017
Return-Path: <gcc-bugs-return-554116-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119847 invoked by alias); 14 Feb 2017 16:54: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 119650 invoked by uid 55); 14 Feb 2017 16:53:56 -0000
From: "hjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79498] [7 Regression] ICE in df_insn_delete, at df-scan.c:948
Date: Tue, 14 Feb 2017 16:54: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.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79498-4-s4bnVbJAF5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79498-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79498-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01648.txt.bz2
Content-length: 970

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79498

--- Comment #9 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Tue Feb 14 16:53:22 2017
New Revision: 245438

URL: https://gcc.gnu.org/viewcvs?rev=245438&root=gcc&view=rev
Log:
Properly store 128-bit constant in large model

When converting TI store with CONST_INT to V1TI store with CONST_VECTOR
in large model, an extra instruction may be needed to load CONST_VECTOR
into a register.  Insert the extra instruction to the right place.

gcc/

        PR target/79498
        * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
        the extra instruction to the right place to store 128-bit constant
        when needed.

gcc/testsuite/

        PR target/79498
        * gcc.target/i386/pr79498.c: New test.

Added:
    trunk/gcc/testsuite/gcc.target/i386/pr79498.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-554118-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 16:55:04 2017
Return-Path: <gcc-bugs-return-554118-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122085 invoked by alias); 14 Feb 2017 16:55: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 121131 invoked by uid 48); 14 Feb 2017 16:54:51 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79498] [7 Regression] ICE in df_insn_delete, at df-scan.c:948
Date: Tue, 14 Feb 2017 16: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: 7.0.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79498-4-adr4aVkKEA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79498-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79498-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01650.txt.bz2
Content-length: 416

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79498

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #10 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed.
>From gcc-bugs-return-554119-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 16:56:24 2017
Return-Path: <gcc-bugs-return-554119-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 124200 invoked by alias); 14 Feb 2017 16:56: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 123850 invoked by uid 48); 14 Feb 2017 16:56:10 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79487] Invalid _Decimal32 comparison on s390x
Date: Tue, 14 Feb 2017 16: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: 7.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:
Message-ID: <bug-79487-4-Fp0xvdvj9h@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01651.txt.bz2
Content-length: 151

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79487

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Then the bug happened earlier.
>From gcc-bugs-return-554120-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 17:01:33 2017
Return-Path: <gcc-bugs-return-554120-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13474 invoked by alias); 14 Feb 2017 17: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 13372 invoked by uid 48); 14 Feb 2017 17:01:23 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79487] Invalid _Decimal32 comparison on s390x
Date: Tue, 14 Feb 2017 17:01:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.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-79487-4-mnnSvSo4MD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01652.txt.bz2
Content-length: 481

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79487

--- Comment #11 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
Well, then, what is the place where the constant should be truncated to what
its mode can represent?

Right at the start of the Tree dumps there seems to be a difference between
float and _Decimal32.  Float constants are printed in E-Notation while
_Decimal32 constants are just printed as integers (with the above value, not
verified with anything else).
>From gcc-bugs-return-554121-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 17:07:45 2017
Return-Path: <gcc-bugs-return-554121-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34544 invoked by alias); 14 Feb 2017 17:07: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 34442 invoked by uid 48); 14 Feb 2017 17:07:38 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79487] Invalid _Decimal32 comparison on s390x
Date: Tue, 14 Feb 2017 17:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.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:
Message-ID: <bug-79487-4-nps367cXyB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01653.txt.bz2
Content-length: 1254

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79487

--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I see this is done in:
#0  decimal_from_integer (r=0x7fffffffd1a0) at ../../gcc/real.c:2328
#1  0x0000000000d9b341 in real_from_integer (r=0x7fffffffd1a0, fmt=...,
val_in=..., sgn=SIGNED) at ../../gcc/real.c:2268
#2  0x00000000011d8671 in real_value_from_int_cst (type=0x7ffff00769d8,
i=0x7ffff005ec48) at ../../gcc/tree.c:1967
#3  0x00000000011d86d5 in build_real_from_int_cst (type=<real_type
0x7ffff00769d8 _Decimal32>, i=0x7ffff005ec48) at ../../gcc/tree.c:1980
#4  0x0000000000a766cd in fold_convert_const (code=FLOAT_EXPR, type=<real_type
0x7ffff00769d8 _Decimal32>, arg1=<integer_cst 0x7ffff005ec48>)
    at ../../gcc/fold-const.c:2110
#5  0x0000000000a731d6 in const_unop (code=FLOAT_EXPR, type=<real_type
0x7ffff00769d8 _Decimal32>, arg0=<integer_cst 0x7ffff005ec48>)
    at ../../gcc/fold-const.c:1566
...
or so.  Would be useful to check something similar with non-decimal floats,
whether already real_value_from_int_cst or build_real_from_int_cst or whatever
these call perform the rounding etc. (say when it is -0x7fffffffffffffffL
and it is cast to float where it isn't representable).
>From gcc-bugs-return-554122-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 17:08:06 2017
Return-Path: <gcc-bugs-return-554122-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35474 invoked by alias); 14 Feb 2017 17:08: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 35398 invoked by uid 48); 14 Feb 2017 17:08:01 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/44440] ira_initialization and buitins construction taking too much of startup time
Date: Tue, 14 Feb 2017 17:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc short_desc
Message-ID: <bug-44440-4-HUDnWppHNt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-44440-4@http.gcc.gnu.org/bugzilla/>
References: <bug-44440-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01654.txt.bz2
Content-length: 778

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44440

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |law at redhat dot com
            Summary|[5/6/7 regression]          |ira_initialization and
                   |ira_initialization and      |buitins construction taking
                   |buitins construction taking |too much of startup time
                   |too much of startup time    |

--- Comment #16 from Jeffrey A. Law <law at redhat dot com> ---
Attached to our meta bug for old slowdowns/memory consumption issues. 
Regression marker removed.  AFAIK nobody is working on this.
>From gcc-bugs-return-554123-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 17:13:37 2017
Return-Path: <gcc-bugs-return-554123-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94972 invoked by alias); 14 Feb 2017 17:13: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 94915 invoked by uid 48); 14 Feb 2017 17:13:24 -0000
From: "benni.buch at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79513] New: std::visit doesn't handle references
Date: Tue, 14 Feb 2017 17:13: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: benni.buch 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-79513-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01655.txt.bz2
Content-length: 3236

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79513

            Bug ID: 79513
           Summary: std::visit doesn't handle references
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: benni.buch at gmail dot com
  Target Milestone: ---

#include <variant>

int main(){
        std::variant<int> v(5);
        std::visit([](int&){}, v);
        std::visit([](int&&){}, std::move(v));
}


Should be a valid program, but libstdc++ discards in both cases the references:

In file included from main.cpp:1:0:
/usr/local/include/c++/7.0.1/variant: In instantiation of 'constexpr
decltype(auto) std::visit(_Visitor&&, _Variants&& ...) [with _Visitor =
main()::<lambda(int&&)>; _Variants = {std::variant<int>}]':
main.cpp:6:38:   required from here
/usr/local/include/c++/7.0.1/variant:1266:44: error: no match for call to
'(main()::<lambda(int&&)>) (std::variant_alternative_t<0, std::variant<int>
>&)'
  decltype(std::forward<_Visitor>(__visitor)(get<0>(__variants)...));
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/7.0.1/variant:1266:44: note: candidate: void (*)(int&&)
<conversion>
/usr/local/include/c++/7.0.1/variant:1266:44: note:   conversion of argument 2
would be ill-formed:
/usr/local/include/c++/7.0.1/variant:1266:44: error: cannot bind rvalue
reference of type 'int&&' to lvalue of type 'std::variant_alternative_t<0,
std::variant<int> > {aka int}'
main.cpp:6:21: note: candidate: main()::<lambda(int&&)> <near match>
  std::visit([](int&&){}, std::move(v));
                     ^
main.cpp:6:21: note:   conversion of argument 1 would be ill-formed:
In file included from main.cpp:1:0:
/usr/local/include/c++/7.0.1/variant:1266:44: error: cannot bind rvalue
reference of type 'int&&' to lvalue of type 'std::variant_alternative_t<0,
std::variant<int> > {aka int}'
  decltype(std::forward<_Visitor>(__visitor)(get<0>(__variants)...));
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/7.0.1/variant:1266:44: error: no match for call to
'(main()::<lambda(int&&)>) (std::variant_alternative_t<0, std::variant<int>
>&)'
/usr/local/include/c++/7.0.1/variant:1266:44: note: candidate: void (*)(int&&)
<conversion>
/usr/local/include/c++/7.0.1/variant:1266:44: note:   conversion of argument 2
would be ill-formed:
/usr/local/include/c++/7.0.1/variant:1266:44: error: cannot bind rvalue
reference of type 'int&&' to lvalue of type 'std::variant_alternative_t<0,
std::variant<int> > {aka int}'
main.cpp:6:21: note: candidate: main()::<lambda(int&&)> <near match>
  std::visit([](int&&){}, std::move(v));
                     ^
main.cpp:6:21: note:   conversion of argument 1 would be ill-formed:
In file included from main.cpp:1:0:
/usr/local/include/c++/7.0.1/variant:1266:44: error: cannot bind rvalue
reference of type 'int&&' to lvalue of type 'std::variant_alternative_t<0,
std::variant<int> > {aka int}'
  decltype(std::forward<_Visitor>(__visitor)(get<0>(__variants)...));
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
>From gcc-bugs-return-554124-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 17:14:00 2017
Return-Path: <gcc-bugs-return-554124-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100162 invoked by alias); 14 Feb 2017 17:13: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 95723 invoked by uid 48); 14 Feb 2017 17:13:49 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79487] Invalid _Decimal32 comparison on s390x
Date: Tue, 14 Feb 2017 17:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.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-79487-4-MoeCRTPJ32@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01656.txt.bz2
Content-length: 834

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79487

--- Comment #13 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
From the "optimize" dump:

With float:
  if (tem.1_3 != -9.223372036854775808e+18)

With _Decimal32:
  if (tem.1_3 != -9223372036854775808)

This precision of the constant and the representation as floating point versus
integer value continues to the pass before Cse1 (Dfinit):

With float:
  (insn 5 2 11 2 (set (mem/v/c:SF (plus:DI (reg/f:DI 34 %fp)
                  (const_int -4 [0xfffffffffffffffc])) [1 tem+0 S4 A32])
          (const_double:SF -9.223372036854775808e+18 [-0x0.8p+64]))

With _Decimal32:
  (insn 5 2 15 2 (set (mem/v/c:SD (plus:DI (reg/f:DI 34 %fp)
                  (const_int -4 [0xfffffffffffffffc])) [1 tem+0 S4 A32])
          (const_double:SD -9223372036854775808 [N/A]))
>From gcc-bugs-return-554125-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 17:15:36 2017
Return-Path: <gcc-bugs-return-554125-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129962 invoked by alias); 14 Feb 2017 17:15: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 129632 invoked by uid 48); 14 Feb 2017 17:15:01 -0000
From: "mikhail at pilin dot name" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79511] Convertation issues in std::codecvt_utf8_utf16
Date: Tue, 14 Feb 2017 17: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: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mikhail at pilin dot name
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-79511-4-l99Utd5jUq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79511-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79511-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01657.txt.bz2
Content-length: 502

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511

--- Comment #2 from ww898 <mikhail at pilin dot name> ---
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.2 LTS
Release:        16.04
Codename:       xenial

$ uname -a
Linux 3.4.0+ #1 PREEMPT Thu Aug 1 17:06:05 CST 2013 x86_64 x86_64 x86_64
GNU/Linux

$ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609


Options was taken form CMake v3.5.1 by default and -std=c++11 was added.
>From gcc-bugs-return-554126-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 17:18:28 2017
Return-Path: <gcc-bugs-return-554126-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53025 invoked by alias); 14 Feb 2017 17:18: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 52629 invoked by uid 48); 14 Feb 2017 17:18:04 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/54063] [5/6/7 regression] on powerpc64 gcc 4.9/5/6/7 generates larger code for global variable accesses than gcc 4.7
Date: Tue, 14 Feb 2017 17:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: steven at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc target_milestone
Message-ID: <bug-54063-4-63biPcTHJ9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-54063-4@http.gcc.gnu.org/bugzilla/>
References: <bug-54063-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01658.txt.bz2
Content-length: 640

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54063

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |law at redhat dot com
   Target Milestone|5.5                         |8.0

--- Comment #14 from Jeffrey A. Law <law at redhat dot com> ---
I think this is ultimately a WONTFIX.  At the least it's not under any
consideration at all for gcc-7.  I'm moving the target milestone, but seriously
think WONTFIX should be considered as the ultimate resolution.
>From gcc-bugs-return-554127-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 17:18:52 2017
Return-Path: <gcc-bugs-return-554127-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54740 invoked by alias); 14 Feb 2017 17:18: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 54671 invoked by uid 48); 14 Feb 2017 17:18:43 -0000
From: "mikhail at pilin dot name" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79511] Convertation issues in std::codecvt_utf8_utf16
Date: Tue, 14 Feb 2017 17:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mikhail at pilin dot name
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-79511-4-RLYKxmEoTY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79511-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79511-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01659.txt.bz2
Content-length: 531

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511

--- Comment #3 from ww898 <mikhail at pilin dot name> ---
Repro:

std::wstring_convert<std::codecvt_utf8_utf16<wchar_t, 0x10ffffUL,
std::little_endian>> _Conv;

std::string _Src("\xEF\xBF\xBF");
auto const _Dst = _Conv.from_bytes(&*_Src.begin(), &*_Src.end());
if (_Dst.size() == 2)
  std::cout << std::hex << (unsigned)_Dst[0] << ":" << (unsigned)_Dst[1] <<
std::endl;
else
  std::cout << std::hex << (unsigned)_Dst[0] << std::endl;

Error is when _Dst.size() == 2.
>From gcc-bugs-return-554128-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 17:20:50 2017
Return-Path: <gcc-bugs-return-554128-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80937 invoked by alias); 14 Feb 2017 17:20: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 80642 invoked by uid 48); 14 Feb 2017 17:20:37 -0000
From: "ilg at livius dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/72792] allocator_traits is too strict about rebinding
Date: Tue, 14 Feb 2017 17:20: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: 6.1.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ilg at livius dot net
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-72792-4-Q4wDzvJFmD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-72792-4@http.gcc.gnu.org/bugzilla/>
References: <bug-72792-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01660.txt.bz2
Content-length: 471

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72792

Liviu Ionescu <ilg at livius dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ilg at livius dot net

--- Comment #4 from Liviu Ionescu <ilg at livius dot net> ---
any chance to back port this to 6.x? 

this bug simply prevents using GCC 6.x, which is a real pity.
>From gcc-bugs-return-554129-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 17:20:50 2017
Return-Path: <gcc-bugs-return-554129-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80948 invoked by alias); 14 Feb 2017 17:20:50 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 80597 invoked by uid 48); 14 Feb 2017 17:20:35 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79487] Invalid _Decimal32 comparison on s390x
Date: Tue, 14 Feb 2017 17: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: 7.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.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-79487-4-0hEYp8hv4D@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01661.txt.bz2
Content-length: 400

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79487

--- Comment #14 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
To me, it looks like the same bug does not happen with float just because there
is no need to convert this to 64 bit format for the comparison. 
simplify_const_unary_operation is not executed - if it was the same would have
happened for the float to double conversion.
>From gcc-bugs-return-554131-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 17:34:10 2017
Return-Path: <gcc-bugs-return-554131-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34242 invoked by alias); 14 Feb 2017 17:34: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 34001 invoked by uid 55); 14 Feb 2017 17:33:55 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79420] [7 Regression] ICE on invalid C++ code on x86_64-linux-gnu: in tsubst_copy, at cp/pt.c:14573
Date: Tue, 14 Feb 2017 17: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: 7.0.1
X-Bugzilla-Keywords: ice-on-invalid-code
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79420-4-vv9yA44RA3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79420-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79420-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01663.txt.bz2
Content-length: 830

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79420

--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Feb 14 17:33:21 2017
New Revision: 245440

URL: https://gcc.gnu.org/viewcvs?rev=245440&root=gcc&view=rev
Log:
        PR c++/79420
        PR c++/79463
        * parser.c (cp_parser_postfix_dot_deref_expression): Avoid
        clobbering if the postfix expression isn't an EXPR_P.

        * g++.dg/cpp1y/pr79463.C: New.
        * g++.dg/template/incomplete10.C: New.
        * g++.dg/template/incomplete9.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/pr79463.C
    trunk/gcc/testsuite/g++.dg/template/incomplete10.C
    trunk/gcc/testsuite/g++.dg/template/incomplete9.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-554130-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 17:34:10 2017
Return-Path: <gcc-bugs-return-554130-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34216 invoked by alias); 14 Feb 2017 17: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 34007 invoked by uid 55); 14 Feb 2017 17:33:56 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79463] [7 Regression] ICE for -g with ./g++.dg/cpp1y/pr79435.C
Date: Tue, 14 Feb 2017 17: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: 7.0
X-Bugzilla-Keywords: ice-on-invalid-code
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79463-4-IkzXWoxQtw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79463-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79463-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01662.txt.bz2
Content-length: 830

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79463

--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Feb 14 17:33:21 2017
New Revision: 245440

URL: https://gcc.gnu.org/viewcvs?rev=245440&root=gcc&view=rev
Log:
        PR c++/79420
        PR c++/79463
        * parser.c (cp_parser_postfix_dot_deref_expression): Avoid
        clobbering if the postfix expression isn't an EXPR_P.

        * g++.dg/cpp1y/pr79463.C: New.
        * g++.dg/template/incomplete10.C: New.
        * g++.dg/template/incomplete9.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/pr79463.C
    trunk/gcc/testsuite/g++.dg/template/incomplete10.C
    trunk/gcc/testsuite/g++.dg/template/incomplete9.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-554133-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 17:35:50 2017
Return-Path: <gcc-bugs-return-554133-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42565 invoked by alias); 14 Feb 2017 17:35: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 40112 invoked by uid 48); 14 Feb 2017 17:35:36 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79463] [7 Regression] ICE for -g with ./g++.dg/cpp1y/pr79435.C
Date: Tue, 14 Feb 2017 17:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79463-4-uM0pJNtuny@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79463-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79463-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01665.txt.bz2
Content-length: 429

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79463

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-554132-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 17:35:40 2017
Return-Path: <gcc-bugs-return-554132-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41492 invoked by alias); 14 Feb 2017 17:35: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 39721 invoked by uid 48); 14 Feb 2017 17:35:26 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79420] [7 Regression] ICE on invalid C++ code on x86_64-linux-gnu: in tsubst_copy, at cp/pt.c:14573
Date: Tue, 14 Feb 2017 17:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79420-4-KsTQ82v9ig@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79420-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79420-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01664.txt.bz2
Content-length: 429

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79420

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #8 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-554134-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 17:42:37 2017
Return-Path: <gcc-bugs-return-554134-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53543 invoked by alias); 14 Feb 2017 17:42: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 53361 invoked by uid 48); 14 Feb 2017 17:42:23 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79511] Convertation issues in std::codecvt_utf8_utf16
Date: Tue, 14 Feb 2017 17: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: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status
Message-ID: <bug-79511-4-UbhpXuJpBI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79511-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79511-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01666.txt.bz2
Content-length: 435

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Thanks!

VC++/Dinkumware and Clang/libc++ print "ffff"

We print "d7ff:dfff"
>From gcc-bugs-return-554135-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 17:43:54 2017
Return-Path: <gcc-bugs-return-554135-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 56723 invoked by alias); 14 Feb 2017 17:43: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 56506 invoked by uid 48); 14 Feb 2017 17:43:40 -0000
From: "eggert at gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79479] -Woverflow false alarm in unreachable expression
Date: Tue, 14 Feb 2017 17:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: eggert at gnu 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:
Message-ID: <bug-79479-4-K9p8N0GBY1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79479-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79479-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01667.txt.bz2
Content-length: 683

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79479

--- Comment #12 from Paul Eggert <eggert at gnu dot org> ---
If the proposed change would introduce significant problems with false
positives or false negatives, then surely GCC already has these problems in
conditional expressions. These problems ought to be addressed regardless of
what GCC does with conditional statements. What false-positive and/or
false-negative problems are these? Should they have bug reports?

I'm still mystified as to why a conditional statement should generate false
positives that the equivalent conditional expression does not generate. This
makes little sense from the programmer's point of view.
>From gcc-bugs-return-554136-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 17:44:56 2017
Return-Path: <gcc-bugs-return-554136-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59573 invoked by alias); 14 Feb 2017 17:44: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 59424 invoked by uid 48); 14 Feb 2017 17:44:49 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79512] [6/7 Regression] ICE: Segfault in gimple_build_call_1, at gimple.c:218
Date: Tue, 14 Feb 2017 17:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc target_milestone short_desc everconfirmed
Message-ID: <bug-79512-4-PbhnDwRWpo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79512-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79512-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01668.txt.bz2
Content-length: 1047

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79512

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-14
                 CC|                            |marxin at gcc dot gnu.org,
                   |                            |vries at gcc dot gnu.org
   Target Milestone|---                         |7.0
            Summary|ICE: Segfault in            |[6/7 Regression] ICE:
                   |gimple_build_call_1, at     |Segfault in
                   |gimple.c:218                |gimple_build_call_1, at
                   |                            |gimple.c:218
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r224745.
>From gcc-bugs-return-554137-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 17:44:56 2017
Return-Path: <gcc-bugs-return-554137-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59582 invoked by alias); 14 Feb 2017 17:44: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 59434 invoked by uid 48); 14 Feb 2017 17:44:49 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/72792] allocator_traits is too strict about rebinding
Date: Tue, 14 Feb 2017 17:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 6.1.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-72792-4-dMQHMI9dn6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-72792-4@http.gcc.gnu.org/bugzilla/>
References: <bug-72792-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01669.txt.bz2
Content-length: 529

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72792

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Liviu Ionescu from comment #4)
> any chance to back port this to 6.x? 

Yes, soon.

> this bug simply prevents using GCC 6.x, which is a real pity.

Lots of people are using it without problems. Most people will never even
notice this bug, and no user has ever reported it to us, I found it myself. If
you have real world code that is affected by this you have the first case I'm
aware of.
>From gcc-bugs-return-554138-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 17:49:15 2017
Return-Path: <gcc-bugs-return-554138-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67069 invoked by alias); 14 Feb 2017 17:49:15 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 65983 invoked by uid 48); 14 Feb 2017 17:48:54 -0000
From: "mikhail at pilin dot name" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79511] Convertation issues in std::codecvt_utf8_utf16
Date: Tue, 14 Feb 2017 17:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mikhail at pilin dot name
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-79511-4-5PTLwPqYee@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79511-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79511-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01670.txt.bz2
Content-length: 568

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511

--- Comment #5 from ww898 <mikhail at pilin dot name> ---
The question about std::little_endian is still alive...

MSVC 2013/2015/2017, Clang 3.4/3.8 work on little endian computers x86/x86_64
and have little endian by default.
http://en.cppreference.com/w/cpp/locale/codecvt_mode says that "assume the
input is in little-endian byte order (applies to UTF-16 input only, the default
is big-endian)". May I wrong, but it says about input. My example produce the
UTF-16 output.

Could you please comment that?
>From gcc-bugs-return-554139-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 17:50:46 2017
Return-Path: <gcc-bugs-return-554139-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73230 invoked by alias); 14 Feb 2017 17: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 73039 invoked by uid 48); 14 Feb 2017 17:50:36 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/36750] -Wmissing-field-initializers relaxation request
Date: Tue, 14 Feb 2017 17:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 4.1.2
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-36750-4-SpX3cFwAte@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-36750-4@http.gcc.gnu.org/bugzilla/>
References: <bug-36750-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01671.txt.bz2
Content-length: 171

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36750

--- Comment #14 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I think PR 61489 changed the behaviour for GCC 5.
>From gcc-bugs-return-554140-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 17:53:25 2017
Return-Path: <gcc-bugs-return-554140-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 76337 invoked by alias); 14 Feb 2017 17:53: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 76101 invoked by uid 55); 14 Feb 2017 17:53:12 -0000
From: "uros at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79495] [6/7 Regression] ICE in extract_constrain_insn, at recog.c:2213
Date: Tue, 14 Feb 2017 17:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: uros at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: ubizjak at gmail dot com
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79495-4-bhOzsjCVJe@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79495-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79495-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01672.txt.bz2
Content-length: 639

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79495

--- Comment #3 from uros at gcc dot gnu.org ---
Author: uros
Date: Tue Feb 14 17:52:37 2017
New Revision: 245441

URL: https://gcc.gnu.org/viewcvs?rev=245441&root=gcc&view=rev
Log:
        PR target/79495
        * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.

testsuite/ChangeLog:

2017-02-14  Uros Bizjak  <ubizjak@gmail.com>

        PR target/79495
        * gcc.target/i386/pr79495.c: New test.


Added:
    trunk/gcc/testsuite/gcc.target/i386/pr79495.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.md
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-554141-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 17:53:47 2017
Return-Path: <gcc-bugs-return-554141-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77231 invoked by alias); 14 Feb 2017 17:53: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 77036 invoked by uid 48); 14 Feb 2017 17:53:33 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79487] Invalid _Decimal32 comparison on s390x
Date: Tue, 14 Feb 2017 17:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.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:
Message-ID: <bug-79487-4-PqJAsZb8vx@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01673.txt.bz2
Content-length: 1234

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79487

--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Dominik Vogt from comment #14)
> To me, it looks like the same bug does not happen with float just because
> there is no need to convert this to 64 bit format for the comparison. 
> simplify_const_unary_operation is not executed - if it was the same would
> have happened for the float to double conversion.

No, the thing is, for non-decimal constants, the REAL_CSTs already contain the
right rounded values for their type.
If that is not the case with decimal floats, something is wrong.
Consider that you say convert 10 different unsigned long long values to 10
different _Decimal32 variables and then add them all (as _Decimal32) up.
Where is the rounding to _Decimal32 after each such addition performed?
For float, this happens on each of the integer to float conversions (when
REAL_CST is created) and then on each of the additions.
Apparently decimal REAL_CSTs are all _Decimal128 precision.
The only function that does something in a different precision is
decimal_round_for_format and that doesn't seem to be called after each
decimal_real_operation, or during decimal_from_integer etc.
>From gcc-bugs-return-554142-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 17:54:43 2017
Return-Path: <gcc-bugs-return-554142-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 83542 invoked by alias); 14 Feb 2017 17:54: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 82379 invoked by uid 48); 14 Feb 2017 17:54:37 -0000
From: "tulipawn at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/53659] ARM: Using -mcpu=cortex-a9 option results in bad performance for Cortex-A9 processor in C-Ray phoronix benchmark
Date: Tue, 14 Feb 2017 17:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: tulipawn at gmail dot com
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-53659-4-sbavfxA04t@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53659-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53659-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01674.txt.bz2
Content-length: 1002

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53659

--- Comment #12 from PeteVine <tulipawn at gmail dot com> ---
Nice, PR68664 patch has fixed the issue.

FWIW, unlike previously, running on a Cortex-A53, showed perfect alignment with
core type (-mfpu=vfpv3) on the first run:

Cortex-A8
Rendering took: 1 seconds (1801 milliseconds)

Cortex-A5
Rendering took: 1 seconds (1708 milliseconds)

Cortex-A7
Rendering took: 1 seconds (1699 milliseconds)

Cortex-A9
Rendering took: 1 seconds (1644 milliseconds)

Cortex-A15
Rendering took: 1 seconds (1637 milliseconds)

whereas using -mfpu=vfpv4 favours Cortex-A5 code's execution:

Cortex-A8
Rendering took: 1 seconds (1803 milliseconds)

Cortex-A5
Rendering took: 1 seconds (1506 milliseconds)

Cortex-A7
Rendering took: 1 seconds (1636 milliseconds)

Cortex-A9
Rendering took: 1 seconds (1645 milliseconds)

Cortex-A15
Rendering took: 1 seconds (1643 milliseconds)

but that's probably expected. Not sure about A8's codegen performance though.
>From gcc-bugs-return-554143-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 17:54:54 2017
Return-Path: <gcc-bugs-return-554143-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84358 invoked by alias); 14 Feb 2017 17:54: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 83457 invoked by uid 55); 14 Feb 2017 17:54:40 -0000
From: "uros at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/61225] [5/6/7 Regression] Several new failures after r210458 on x86_64-*-* with -m32
Date: Tue, 14 Feb 2017 17:54: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: 5.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: uros 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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-61225-4-O87F7BYKdr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61225-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61225-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01675.txt.bz2
Content-length: 505

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61225

--- Comment #34 from uros at gcc dot gnu.org ---
Author: uros
Date: Tue Feb 14 17:54:01 2017
New Revision: 245442

URL: https://gcc.gnu.org/viewcvs?rev=245442&root=gcc&view=rev
Log:
        PR middle-end/61225
        * gcc.target/i386/pr49095.c: Add -fno-shrink-wrap to dg-options.
        Use dg-additional-options for ia32 target.  Remove XFAIL.


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/i386/pr49095.c
>From gcc-bugs-return-554144-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 17:58:37 2017
Return-Path: <gcc-bugs-return-554144-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 90237 invoked by alias); 14 Feb 2017 17:58: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 90112 invoked by uid 48); 14 Feb 2017 17:58:23 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79511] Convertation issues in std::codecvt_utf8_utf16
Date: Tue, 14 Feb 2017 17:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79511-4-5WpGVrDTnN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79511-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79511-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01676.txt.bz2
Content-length: 686

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I disagree with the cppreference docs. The standard says:

"If (Mode & little_endian), the facet shall generate a multibyte sequence in
                                            ^^^^^^^^
little-endian order, as opposed to the default big-endian order."

i.e. little_endian affects the generated sequence, i.e. the output.


But maybe I'm wrong, I consider the specification of <codecvt> to be one of the
worst parts of the C++ standard, it's completely unclear, and a poor API
anyway.

If you have a testcase that you think demonstrates a bug please provide it.
>From gcc-bugs-return-554145-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 18:00:25 2017
Return-Path: <gcc-bugs-return-554145-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92502 invoked by alias); 14 Feb 2017 18:00: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 91605 invoked by uid 48); 14 Feb 2017 17:59:53 -0000
From: "ilg at livius dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/72792] allocator_traits is too strict about rebinding
Date: Tue, 14 Feb 2017 18:00: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: 6.1.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ilg at livius dot net
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-72792-4-EUeK7ZYQDQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-72792-4@http.gcc.gnu.org/bugzilla/>
References: <bug-72792-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01677.txt.bz2
Content-length: 1053

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72792

--- Comment #6 from Liviu Ionescu <ilg at livius dot net> ---
> If you have real world code that is affected ...

I do, it is called µOS++, and it is a C++ RTOS with advanced memory management
features, using C++17 memory resources and C++11 standard allocators:

https://github.com/micro-os-plus/micro-os-plus-iii

It was developed on clang and GCC 5.x. When I tried GCC 6.x, it failed. Today I
took some time to understand why, and discovered the static assert in the
allocator_traits<> template.

I removed it and this solved the problem.

Now I'm working on a patch for GCC 6.x distributions, so I can run my tests on
CI servers until 6.4 will be released.

I'm a bit surprised that there were no other reports, according to my tests the
bug affected all custom allocators that use pointers to functions or pointer to
class members as template parameters. (I wrote a simple test, trying several
types of template parameters).

any estimate when the new release will be available?
>From gcc-bugs-return-554146-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 18:02:12 2017
Return-Path: <gcc-bugs-return-554146-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99617 invoked by alias); 14 Feb 2017 18:02: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 99379 invoked by uid 48); 14 Feb 2017 18:01:59 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/60936] [5/6 Regression] Binary code bloat with std::string
Date: Tue, 14 Feb 2017 18:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc short_desc
Message-ID: <bug-60936-4-f3CComhE8j@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60936-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60936-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01678.txt.bz2
Content-length: 545

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60936

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |law at redhat dot com
            Summary|[5/6/7 Regression] Binary   |[5/6 Regression] Binary
                   |code bloat with std::string |code bloat with std::string

--- Comment #29 from Jeffrey A. Law <law at redhat dot com> ---
Addressed on the trunk.
>From gcc-bugs-return-554147-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 18:04:10 2017
Return-Path: <gcc-bugs-return-554147-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113277 invoked by alias); 14 Feb 2017 18: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 87123 invoked by uid 48); 14 Feb 2017 18:03:55 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79487] Invalid _Decimal32 comparison on s390x
Date: Tue, 14 Feb 2017 18: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: 7.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.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-79487-4-oZTRqksm1Y@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01679.txt.bz2
Content-length: 247

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79487

--- Comment #16 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
> the REAL_CSTs already contain the right rounded values for their type

Is there a way to see these values in the dumps?
>From gcc-bugs-return-554148-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 18:07:22 2017
Return-Path: <gcc-bugs-return-554148-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4556 invoked by alias); 14 Feb 2017 18:07: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 4143 invoked by uid 48); 14 Feb 2017 18:07:08 -0000
From: "jgreenhalgh at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/77468] [7 Regression] C-ray regression on Aarch64
Date: Tue, 14 Feb 2017 18:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jgreenhalgh 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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-77468-4-oRnnuPIhC3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77468-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77468-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01680.txt.bz2
Content-length: 1217

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77468

James Greenhalgh <jgreenhalgh at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #23 from James Greenhalgh <jgreenhalgh at gcc dot gnu.org> ---
I see a 13% performance improvement between trunk with ktkachov's patch applied
and yesterday's trunk when compiling with -mcpu=cortex-a53 . In my tests
-mcpu=cortex-a53 is equivalent to -mcpu=thunderx (-mcpu=cortex-a53 comes out
slightly ahead, but not in a significant way, and not in a way I'd expect to
reproduce across platforms).

My only guess (from the magnitude of the difference you still see, and the
improvement expected from ktkachov's patch) is that you didn't pick up the
changes (perhaps they were not in the 20170214 snapshot you used?). We're going
to be at an impasse here, as I can't validate your toolchain or environment,
but everything I can see, and our analysis of the bug to this point, suggests
that this can be considered fixed on trunk.
>From gcc-bugs-return-554149-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 18:25:39 2017
Return-Path: <gcc-bugs-return-554149-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48204 invoked by alias); 14 Feb 2017 18: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 46698 invoked by uid 48); 14 Feb 2017 18:25:18 -0000
From: "mikhail at pilin dot name" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79511] Convertation issues in std::codecvt_utf8_utf16
Date: Tue, 14 Feb 2017 18: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: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mikhail at pilin dot name
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-79511-4-JopS8Kf79y@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79511-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79511-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01681.txt.bz2
Content-length: 397

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511

--- Comment #7 from ww898 <mikhail at pilin dot name> ---
Yes, I have: https://github.com/ww898/utf-cpp.

To make errors please uncomment here:
https://github.com/ww898/utf-cpp/blob/master/test/utf_converters_test.cpp#L781

P.S. It is possible to use no library version of boost test, but it requires
some changes in test sources and CMake.
>From gcc-bugs-return-554150-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 18:30:47 2017
Return-Path: <gcc-bugs-return-554150-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65150 invoked by alias); 14 Feb 2017 18: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 64790 invoked by uid 48); 14 Feb 2017 18:30:21 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/72792] allocator_traits is too strict about rebinding
Date: Tue, 14 Feb 2017 18:30: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: 6.1.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-72792-4-8vhLjL0U7A@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-72792-4@http.gcc.gnu.org/bugzilla/>
References: <bug-72792-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01682.txt.bz2
Content-length: 1564

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72792

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Liviu Ionescu from comment #6)
> > If you have real world code that is affected ...
> 
> I do, it is called µOS++, and it is a C++ RTOS with advanced memory
> management features, using C++17 memory resources and C++11 standard
> allocators:
> 
> https://github.com/micro-os-plus/micro-os-plus-iii
> 
> It was developed on clang and GCC 5.x. When I tried GCC 6.x, it failed.
> Today I took some time to understand why, and discovered the static assert
> in the allocator_traits<> template.
> 
> I removed it and this solved the problem.
> 
> Now I'm working on a patch for GCC 6.x distributions, so I can run my tests
> on CI servers until 6.4 will be released.
> 
> I'm a bit surprised that there were no other reports, according to my tests
> the bug affected all custom allocators that use pointers to functions or
> pointer to class members as template parameters. (I wrote a simple test,
> trying several types of template parameters).

Only if they don't provide their own "rebind"

If the allocator provides a rebind then it will be used, and there's no need
for the deduction (which fails with non-type template parameters).

The simplest fix would be to add rebind to your allocators:

template<class T, void*(*F)(int)>
struct Alloc
{
  using value_type = T;

  template<typename U>
    struct rebind {
      using other = Alloc<U, F>;
    };

  // ...
};

This will work with any C++11 compiler.
>From gcc-bugs-return-554151-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 18:32:10 2017
Return-Path: <gcc-bugs-return-554151-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 68526 invoked by alias); 14 Feb 2017 18:32: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 67913 invoked by uid 48); 14 Feb 2017 18:31:56 -0000
From: "gerhard.steinmetz.fortran@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79514] New: ICE in curr_insn_transform, at lra-constraints.c:3773
Date: Tue, 14 Feb 2017 18:32: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.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gerhard.steinmetz.fortran@t-online.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
Message-ID: <bug-79514-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01683.txt.bz2
Content-length: 2329

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79514

            Bug ID: 79514
           Summary: ICE in curr_insn_transform, at lra-constraints.c:3773
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fortran@t-online.de
  Target Milestone: ---

A test run with -m96bit-long-double (on x86_64 GNU/Linux)
gives ICEs down to 4.9 for several testsuite files.

An incomplete list :
  ./gcc.c-torture/execute/20020413-1.c
  ./gcc.c-torture/compile/20031208-1.c
  ./gcc.c-torture/execute/20080502-1.c
  ./gcc.c-torture/compile/20080628-1.c
  ./gcc.c-torture/execute/va-arg-6.c
  ./gcc.dg/torture/float128-extend-inf.c
  ./gcc.dg/torture/float128-extend-nan.c
  ./gcc.dg/torture/float128-extendxf-underflow.c
  ./gcc.dg/torture/pr50092.c
  ./gcc.dg/tree-ssa/backprop-6.c
  ./gcc.dg/dfp/wtr-conversion-1.c
  ./gcc.dg/wtr-conversion-1.c
  ./gcc.dg/builtins-7.c
  ./gcc.dg/builtins-21.c
  ./gcc.dg/builtins-36.c
  ./gcc.dg/builtins-65.c
  ./gcc.dg/pr43305.c
  ./gcc.dg/pr46251.c
  ./gcc.dg/pr50132.c
  ./gcc.dg/pr52592.c
  ./gcc.dg/pr56424.c
  ./gcc.dg/pr68474.c


For example :

$ cat pr46251.c
void foo (long double *x)
{
  __builtin_sincosl (*x, x, x);
}


$ gcc-7-20170212 -m96bit-long-double -c pr46251.c
pr46251.c: In function 'foo':
pr46251.c:4:1: error: unable to generate reloads for:
 }
 ^
(insn 10 9 11 2 (set (mem:XF (pre_modify:DI (reg/f:DI 7 sp)
                (plus:DI (reg/f:DI 7 sp)
                    (const_int -16 [0xfffffffffffffff0]))) [2  S12 A32])
        (reg:XF 87 [ _1 ])) "pr46251.c":3 118 {*pushxf}
     (expr_list:REG_DEAD (reg:XF 87 [ _1 ])
        (expr_list:REG_ARGS_SIZE (const_int 16 [0x10])
            (nil))))
pr46251.c:4:1: internal compiler error: in curr_insn_transform, at
lra-constraints.c:3773
0xb894d8 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        ../../gcc/rtl-error.c:108
0xa87e17 curr_insn_transform
        ../../gcc/lra-constraints.c:3773
0xa89ce6 lra_constraints(bool)
        ../../gcc/lra-constraints.c:4732
0xa73ee6 lra(_IO_FILE*)
        ../../gcc/lra.c:2378
0xa2a389 do_reload
        ../../gcc/ira.c:5400
0xa2a389 execute
        ../../gcc/ira.c:5584
>From gcc-bugs-return-554153-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 18:34:26 2017
Return-Path: <gcc-bugs-return-554153-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 72178 invoked by alias); 14 Feb 2017 18:34:25 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 72049 invoked by uid 48); 14 Feb 2017 18:34:13 -0000
From: "gerhard.steinmetz.fortran@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79515] New: ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in do_warn_double_promotion, at c-family/c-warn.c:1867
Date: Tue, 14 Feb 2017 18:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gerhard.steinmetz.fortran@t-online.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
Message-ID: <bug-79515-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01685.txt.bz2
Content-length: 3010

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79515

            Bug ID: 79515
           Summary: ICE: tree check: expected class 'type', have
                    'exceptional' (error_mark) in
                    do_warn_double_promotion, at c-family/c-warn.c:1867
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fortran@t-online.de
  Target Milestone: ---

A test run with -Wdouble-promotion (on x86_64 GNU/Linux) gives
ICEs down to 4.9 (configured with --enable-checking=yes) for a few
testsuite files :
  ./gcc.dg/dfp/floatn.c
  ./gcc.dg/dfp/usual-arith-conv-bad-2.c
  ./gcc.dg/dfp/usual-arith-conv-bad.c


$ cat usual-arith-conv-bad-2.c
extern _Decimal64 x;
extern int i;
void
foo (void)
{
  if (x <= 2.0)
    i++;
}


$ gcc-7-20170212 -Wdouble-promotion -c usual-arith-conv-bad-2.c
usual-arith-conv-bad-2.c: In function 'foo':
usual-arith-conv-bad-2.c:6:3: error: can't mix operands of decimal float and
other float types
   if (x <= 2.0)
   ^~
usual-arith-conv-bad-2.c:6:3: internal compiler error: tree check: expected
class 'type', have 'exceptional' (error_mark) in do_warn_double_promotion, at
c-family/c-warn.c:1867
0xe9f207 tree_class_check_failed(tree_node const*, tree_code_class, char
const*, int, char const*)
        ../../gcc/tree.c:9866
0x764c29 tree_class_check(tree_node*, tree_code_class, char const*, int, char
const*)
        ../../gcc/tree.h:3187
0x764c29 do_warn_double_promotion(tree_node*, tree_node*, tree_node*, char
const*, unsigned int)
        ../../gcc/c-family/c-warn.c:1867
0x699dbb build_binary_op(unsigned int, tree_code, tree_node*, tree_node*, int)
        ../../gcc/c/c-typeck.c:11568
0x69d836 parser_build_binary_op(unsigned int, tree_code, c_expr, c_expr)
        ../../gcc/c/c-typeck.c:3633
0x6bae1a c_parser_binary_expression
        ../../gcc/c/c-parser.c:6818
0x6bb2b5 c_parser_conditional_expression
        ../../gcc/c/c-parser.c:6458
0x6bba10 c_parser_expr_no_commas
        ../../gcc/c/c-parser.c:6375
0x6bbc92 c_parser_expression
        ../../gcc/c/c-parser.c:8597
0x6be519 c_parser_expression_conv
        ../../gcc/c/c-parser.c:8630
0x6be592 c_parser_condition
        ../../gcc/c/c-parser.c:5421
0x6be627 c_parser_paren_condition
        ../../gcc/c/c-parser.c:5440
0x6d2a89 c_parser_if_statement
        ../../gcc/c/c-parser.c:5602
0x6d2a89 c_parser_statement_after_labels
        ../../gcc/c/c-parser.c:5222
0x6d3f47 c_parser_compound_statement_nostart
        ../../gcc/c/c-parser.c:4907
0x6d469e c_parser_compound_statement
        ../../gcc/c/c-parser.c:4740
0x6cfadc c_parser_declaration_or_fndef
        ../../gcc/c/c-parser.c:2112
0x6d7aeb c_parser_external_declaration
        ../../gcc/c/c-parser.c:1468
0x6d8549 c_parser_translation_unit
        ../../gcc/c/c-parser.c:1348
0x6d8549 c_parse_file()
        ../../gcc/c/c-parser.c:18190
>From gcc-bugs-return-554152-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 18:34:03 2017
Return-Path: <gcc-bugs-return-554152-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71181 invoked by alias); 14 Feb 2017 18:34: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 71019 invoked by uid 48); 14 Feb 2017 18:33:48 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/72792] allocator_traits is too strict about rebinding
Date: Tue, 14 Feb 2017 18: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: 6.1.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-72792-4-DWe6QYxz7Z@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-72792-4@http.gcc.gnu.org/bugzilla/>
References: <bug-72792-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01684.txt.bz2
Content-length: 637

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72792

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
If you don't provide this, then allocator_traits::rebind_alloc can't be used,
even after this bug is fixed. That means you can't use your allocators with
node-based contains like std::list.

So adding the rebind improves your allocators anyway.

Simply removing the static_assert from allocator_traits doesn't make your
allocator more useful, it just means you don't notice the problem until you try
to use it in a node-based container (or with std::allocate_shared, or in
std::promise, or several other places).
>From gcc-bugs-return-554154-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 18:38:05 2017
Return-Path: <gcc-bugs-return-554154-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 83735 invoked by alias); 14 Feb 2017 18:38: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 83532 invoked by uid 48); 14 Feb 2017 18:37:52 -0000
From: "gerhard.steinmetz.fortran@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79516] New: ICE: unspellable token PRAGMA_EOL
Date: Tue, 14 Feb 2017 18:38: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.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gerhard.steinmetz.fortran@t-online.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
Message-ID: <bug-79516-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01686.txt.bz2
Content-length: 2174

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79516

            Bug ID: 79516
           Summary: ICE: unspellable token PRAGMA_EOL
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fortran@t-online.de
  Target Milestone: ---

For versions down to at least 4.8 (on x86_64 GNU/Linux) with
options "-E -traditional" or "-traditional-cpp" applied to file
./gcc/testsuite/gcc.dg/pragma-message.c or this reduced variant :


$ cat z1.c
#pragma message "Okay 1"
#if 0
#pragma message ("Not printed")
#endif


$ gcc-7-20170212 -E -traditional -c z1.c
# 1 "z1.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 31 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4

# 17 "/usr/include/stdc-predef.h" 3 4

......

# 32 "<command-line>" 2
# 1 "z1.c"
z1.c:2:0: internal compiler error: unspellable token PRAGMA_EOL
 #if 0

0x71734a c_cpp_error(cpp_reader*, int, int, rich_location*, char const*,
__va_list_tag (*) [1])
        ../../gcc/c-family/c-common.c:6191
0x13f7174 cpp_diagnostic_at
        ../../libcpp/errors.c:60
0x13f7356 cpp_error(cpp_reader*, int, char const*, ...)
        ../../libcpp/errors.c:104
0x140039d cpp_spell_token(cpp_reader*, cpp_token const*, unsigned char*, bool)
        ../../libcpp/lex.c:3248
0x1401d67 cpp_token_as_text(cpp_reader*, cpp_token const*)
        ../../libcpp/lex.c:3263
0x13fb10e _cpp_parse_expr
        ../../libcpp/expr.c:1334
0x13f3b63 do_if
        ../../libcpp/directives.c:2049
0x13f5306 _cpp_handle_directive
        ../../libcpp/directives.c:547
0x140ea75 _cpp_scan_out_logical_line
        ../../libcpp/traditional.c:772
0x140f2eb _cpp_read_logical_line_trad
        ../../libcpp/traditional.c:310
0x737cb7 scan_translation_unit_trad
        ../../gcc/c-family/c-ppoutput.c:320
0x737cb7 preprocess_file(cpp_reader*)
        ../../gcc/c-family/c-ppoutput.c:96
0x736520 c_common_init()
        ../../gcc/c-family/c-opts.c:1083
0x64be4e lang_dependent_init
        ../../gcc/toplev.c:1745
0x64be4e do_compile
        ../../gcc/toplev.c:1968
>From gcc-bugs-return-554155-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 18:39:55 2017
Return-Path: <gcc-bugs-return-554155-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 88687 invoked by alias); 14 Feb 2017 18:39: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 88222 invoked by uid 48); 14 Feb 2017 18:39:42 -0000
From: "trufanovan at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79508] [6/7 Regression] Parse error in template argument list using nested template arguments
Date: Tue, 14 Feb 2017 18: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: 6.2.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trufanovan 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-79508-4-Mcldl3D7JE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79508-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79508-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01687.txt.bz2
Content-length: 1144

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79508

--- Comment #3 from Alexander Trufanov <trufanovan at gmail dot com> ---
>When looking for a template after . or ->, only consider class templates.

Looks like it means the problem at least can be workarounded by wrapping
function into a class. The code:

>code
class C
{
public: 
    template< class T> void set_default() { }   
};

template <class T> class random_positive_wrapper
{
 void random_positive() { }
};

template<class T> void initialize(T& x)
{
x.template set_default<random_positive_wrapper<T> >();
}

int main ()
{
    C x;
    initialize<C>(x);
}

>code end

works:

truf@truf-laptop:~$ /usr/bin/g++  -Wall -Wextra -c t.cpp -o t.o
truf@truf-laptop:~$ /usr/bin/g++-4.6  -Wall -Wextra -c t.cpp -o t.o
truf@truf-laptop:~$ /usr/bin/g++-4.8  -Wall -Wextra -c t.cpp -o t.o
truf@truf-laptop:~$ /usr/bin/g++-4.9  -Wall -Wextra -c t.cpp -o t.o
truf@truf-laptop:~$ /usr/bin/clang++-3.6  -Wall -Wextra -c t.cpp -o t.o
truf@truf-laptop:~$ /usr/bin/clang++-3.8  -Wall -Wextra -c t.cpp -o t.o
truf@truf-laptop:~$ /usr/bin/g++-6  -Wall -Wextra -c t.cpp -o t.o
truf@truf-laptop:~$
>From gcc-bugs-return-554156-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 19:07:06 2017
Return-Path: <gcc-bugs-return-554156-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33832 invoked by alias); 14 Feb 2017 19:07:06 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 33570 invoked by uid 48); 14 Feb 2017 19:06:51 -0000
From: "bernds at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/79405] [7 Regression] Compile-time hog w/ -O2 (-Os, -O3) on 32-bit BE powerpc targets
Date: Tue, 14 Feb 2017 19: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: 7.0
X-Bugzilla-Keywords: compile-time-hog
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bernds at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: bernds at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc assigned_to
Message-ID: <bug-79405-4-HHZsuVIuRl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79405-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79405-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01688.txt.bz2
Content-length: 592

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79405

Bernd Schmidt <bernds at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bernds at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |bernds at gcc dot gnu.org

--- Comment #4 from Bernd Schmidt <bernds at gcc dot gnu.org> ---
Oscillating, replacing two registers with each other in a single location.
Probably related to one of them being uninitialized.
>From gcc-bugs-return-554157-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 19:22:05 2017
Return-Path: <gcc-bugs-return-554157-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 93766 invoked by alias); 14 Feb 2017 19:22: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 93484 invoked by uid 48); 14 Feb 2017 19:21:50 -0000
From: "gnu at oss dot m-berberich.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79517] New: using a deque supresses compiler warning for undefined behavior
Date: Tue, 14 Feb 2017 19:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 6.3.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gnu at oss dot m-berberich.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-79517-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01689.txt.bz2
Content-length: 2901

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79517

            Bug ID: 79517
           Summary: using a deque supresses compiler warning for undefined
                    behavior
           Product: gcc
           Version: 6.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gnu at oss dot m-berberich.de
  Target Milestone: ---

Created attachment 40740
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40740&action=edit
source-code

This attached code terminates if compiled without optimization, but does not
terminate if compiled with ‘-O2’ or ‘-O3’. This is due to undefined behavior
caused by an signed integer overflow.

g++ does not give any warning on compiling. If the the line ‘std::deque<float>
d;’ is removed g++ does give a warning as expected.


> g++ -O3 bug.cc
bug.cc: In function ‘int main()’:
bug.cc:7:16: warning: iteration 447392 invokes undefined behavior
[-Waggressive-loop-optimizations]
     data[i] = n++;
               ~^~
bug.cc:16:17: note: within this loop
   for(int i=0; i<800000; ++i) {
                ~^~~~~~~


So creating an unused deque suppresses the compilerwarning. I don’t think this
should happen.

> g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-6'
--with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs
--enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-6 --program-prefix=x86_64-linux-gnu- --enable-shared
--enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/
--enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie
--with-system-zlib --disable-browser-plugin --enable-java-awt=gtk
--enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre
--enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64
--with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--with-target-system-zlib --enable-objc-gc=auto --enable-multiarch
--with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32
--enable-multilib --with-tune=generic --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 6.3.0 20170205 (Debian 6.3.0-6)
>From gcc-bugs-return-554158-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 19:22:21 2017
Return-Path: <gcc-bugs-return-554158-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 94716 invoked by alias); 14 Feb 2017 19:22: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 94097 invoked by uid 48); 14 Feb 2017 19:22:07 -0000
From: "ilg at livius dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/72792] allocator_traits is too strict about rebinding
Date: Tue, 14 Feb 2017 19: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: 6.1.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ilg at livius dot net
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-72792-4-y0iiz83nvm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-72792-4@http.gcc.gnu.org/bugzilla/>
References: <bug-72792-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01690.txt.bz2
Content-length: 577

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72792

--- Comment #9 from Liviu Ionescu <ilg at livius dot net> ---
My allocator was defined as:

using F = memory_resource* (void);
template<typename T, typename L, F get_resource>
  class allocator_stateless_polymorphic_synchronized

I added the following inside the class:

    template<typename U>
      struct rebind
        {
          using other = allocator_stateless_polymorphic_synchronized<U, L,
get_resource>;
        };

and apparently this avoided the bug.


Thank you for your help, highly appreciated.

Liviu
>From gcc-bugs-return-554160-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 19:26:29 2017
Return-Path: <gcc-bugs-return-554160-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30249 invoked by alias); 14 Feb 2017 19:26: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 30095 invoked by uid 55); 14 Feb 2017 19:26:16 -0000
From: "uros at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/61225] [5/6/7 Regression] Several new failures after r210458 on x86_64-*-* with -m32
Date: Tue, 14 Feb 2017 19:26: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: 5.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: uros 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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-61225-4-pOvJLicKUX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61225-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61225-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01692.txt.bz2
Content-length: 892

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61225

--- Comment #35 from uros at gcc dot gnu.org ---
Author: uros
Date: Tue Feb 14 19:25:42 2017
New Revision: 245443

URL: https://gcc.gnu.org/viewcvs?rev=245443&root=gcc&view=rev
Log:
        PR target/79495
        * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.

testsuite/ChangeLog:

        PR target/79495
        * gcc.target/i386/pr79495.c: New test.

        PR middle-end/61225
        * gcc.target/i386/pr49095.c: Add -fno-shrink-wrap to dg-options.
        Use dg-additional-options for ia32 target.  Remove XFAIL.


Added:
    branches/gcc-6-branch/gcc/testsuite/gcc.target/i386/pr79495.c
Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/config/i386/i386.md
    branches/gcc-6-branch/gcc/testsuite/ChangeLog
    branches/gcc-6-branch/gcc/testsuite/gcc.target/i386/pr49095.c
>From gcc-bugs-return-554159-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 19:26:29 2017
Return-Path: <gcc-bugs-return-554159-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30239 invoked by alias); 14 Feb 2017 19:26: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 29936 invoked by uid 55); 14 Feb 2017 19:26:15 -0000
From: "uros at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79495] [6/7 Regression] ICE in extract_constrain_insn, at recog.c:2213
Date: Tue, 14 Feb 2017 19: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: 7.0.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: uros at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: ubizjak at gmail dot com
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79495-4-pIVkLCdWO1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79495-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79495-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01691.txt.bz2
Content-length: 891

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79495

--- Comment #4 from uros at gcc dot gnu.org ---
Author: uros
Date: Tue Feb 14 19:25:42 2017
New Revision: 245443

URL: https://gcc.gnu.org/viewcvs?rev=245443&root=gcc&view=rev
Log:
        PR target/79495
        * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.

testsuite/ChangeLog:

        PR target/79495
        * gcc.target/i386/pr79495.c: New test.

        PR middle-end/61225
        * gcc.target/i386/pr49095.c: Add -fno-shrink-wrap to dg-options.
        Use dg-additional-options for ia32 target.  Remove XFAIL.


Added:
    branches/gcc-6-branch/gcc/testsuite/gcc.target/i386/pr79495.c
Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/config/i386/i386.md
    branches/gcc-6-branch/gcc/testsuite/ChangeLog
    branches/gcc-6-branch/gcc/testsuite/gcc.target/i386/pr49095.c
>From gcc-bugs-return-554161-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 19:27:34 2017
Return-Path: <gcc-bugs-return-554161-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43895 invoked by alias); 14 Feb 2017 19:27: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 43469 invoked by uid 48); 14 Feb 2017 19:27:21 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79495] [6/7 Regression] ICE in extract_constrain_insn, at recog.c:2213
Date: Tue, 14 Feb 2017 19: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: 7.0.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: ubizjak at gmail dot com
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79495-4-qY9EWLq4x6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79495-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79495-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01693.txt.bz2
Content-length: 429

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79495

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Uroš Bizjak <ubizjak at gmail dot com> ---
Fixed.
>From gcc-bugs-return-554162-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 19:28:32 2017
Return-Path: <gcc-bugs-return-554162-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45768 invoked by alias); 14 Feb 2017 19:28: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 45438 invoked by uid 48); 14 Feb 2017 19:28:19 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/61225] [5/6/7 Regression] Several new failures after r210458 on x86_64-*-* with -m32
Date: Tue, 14 Feb 2017 19:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-61225-4-8zutEXdEfH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61225-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61225-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01694.txt.bz2
Content-length: 430

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61225

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #36 from Uroš Bizjak <ubizjak at gmail dot com> ---
Fixed.
>From gcc-bugs-return-554164-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 19:29:50 2017
Return-Path: <gcc-bugs-return-554164-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 49645 invoked by alias); 14 Feb 2017 19:29: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 49026 invoked by uid 48); 14 Feb 2017 19:29:36 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79517] using a deque supresses compiler warning for undefined behavior
Date: Tue, 14 Feb 2017 19: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: 6.3.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: keywords bug_status cf_reconfirmed_on component everconfirmed
Message-ID: <bug-79517-4-DahJy8Q5pt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79517-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79517-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01696.txt.bz2
Content-length: 663

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79517

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-14
          Component|libstdc++                   |c++
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Not a libstdc++ bug, the warning (and its suppression) are done by the
compiler.
>From gcc-bugs-return-554163-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 19:29:33 2017
Return-Path: <gcc-bugs-return-554163-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48607 invoked by alias); 14 Feb 2017 19:29: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 47905 invoked by uid 48); 14 Feb 2017 19:29:18 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79487] Invalid _Decimal32 comparison on s390x
Date: Tue, 14 Feb 2017 19: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: 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:
Message-ID: <bug-79487-4-vlGQZGrT0X@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01695.txt.bz2
Content-length: 1356

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79487

--- Comment #17 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Well, the values are printed.  As you say, -9223372036854775808 is not valid
_Decimal32 value, so it should never be printed for something that is
_Decimal32.

Actually trying:

_Decimal32
foo (void)
{ 
  _Decimal32 a = 9999999LL;
  _Decimal32 b = 9999999LL;
  _Decimal32 c = b + a;
  _Decimal32 d = c + a;
  _Decimal32 e = d + a;
  _Decimal32 f = e + a;
  _Decimal32 g = f + a;
  _Decimal32 h = g + a;
  _Decimal32 i = h + a;
  _Decimal32 j = i + a;
  _Decimal32 k = j + a;
  _Decimal32 l = k + a;
  return l;
}

_Decimal32
bar (void)
{ 
  _Decimal128 a = 9999999LL;
  _Decimal128 b = 9999999LL;
  _Decimal128 c = b + a;
  _Decimal128 d = c + a;
  _Decimal128 e = d + a;
  _Decimal128 f = e + a;
  _Decimal128 g = f + a;
  _Decimal128 h = g + a;
  _Decimal128 i = h + a;
  _Decimal128 j = i + a;
  _Decimal128 k = j + a;
  _Decimal128 l = k + a;
  return (_Decimal32) l;
}

I see decimal_round_for_format being called 13 times for _Decimal32 and 10
times for _Decimal128, so clearly at least const_binop does the right thing.
So perhaps in real_from_integer change:
   if (fmt.decimal_p ())
     decimal_from_integer (r);
-  else if (fmt)
+  if (fmt)
    real_convert (r, fmt, r);
?
>From gcc-bugs-return-554165-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 19:38:17 2017
Return-Path: <gcc-bugs-return-554165-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 96493 invoked by alias); 14 Feb 2017 19: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 96232 invoked by uid 48); 14 Feb 2017 19:38:03 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/69558] [6/7 Regression] glib2 warning pragmas stopped working
Date: Tue, 14 Feb 2017 19: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: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-69558-4-qipJf7TQxP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69558-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69558-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01697.txt.bz2
Content-length: 428

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69558

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|7.0                         |8.0

--- Comment #19 from Jeffrey A. Law <law at redhat dot com> ---
Same arguments that deferred this to gcc-7 apply now to defer it to gcc-8.
>From gcc-bugs-return-554166-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 19:39:59 2017
Return-Path: <gcc-bugs-return-554166-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3778 invoked by alias); 14 Feb 2017 19:39: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 3575 invoked by uid 55); 14 Feb 2017 19:39:50 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79481] AVX512PF: unmasked gather prefetch intrinsics missing
Date: Tue, 14 Feb 2017 19:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0.1
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-79481-4-0CADRyAguV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79481-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79481-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01698.txt.bz2
Content-length: 2674

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79481

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Feb 14 19:39:17 2017
New Revision: 245444

URL: https://gcc.gnu.org/viewcvs?rev=245444&root=gcc&view=rev
Log:
        PR target/79481
        * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
        _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
        _mm512_prefetch_i64gather_ps): New inline functions and macros.

        * gcc.target/i386/sse-14.c (test_2vx): Add void return type.
        (test_3vx): Change return type from int to void. 
        (_mm512_prefetch_i32gather_ps, _mm512_prefetch_i32scatter_ps,
        _mm512_prefetch_i64gather_ps, _mm512_prefetch_i64scatter_ps,
        _mm512_prefetch_i32gather_pd, _mm512_prefetch_i32scatter_pd,
        _mm512_prefetch_i64gather_pd, _mm512_prefetch_i64scatter_pd): New
        tests.
        * gcc.target/i386/sse-22.c (test_2vx): Add void return type.
        (test_3vx): Change return type from int to void.
        (_mm512_prefetch_i32gather_ps, _mm512_prefetch_i32scatter_ps,
        _mm512_prefetch_i64gather_ps, _mm512_prefetch_i64scatter_ps,
        _mm512_prefetch_i32gather_pd, _mm512_prefetch_i32scatter_pd,
        _mm512_prefetch_i64gather_pd, _mm512_prefetch_i64scatter_pd): New
        tests.
        * gcc.target/i386/avx512pf-vgatherpf0dpd-1.c: Add non-masked
        intrinsic.  Change scan-assembler-times number from 1 to 2.
        * gcc.target/i386/avx512pf-vgatherpf0dps-1.c: Likewise.
        * gcc.target/i386/avx512pf-vgatherpf0qpd-1.c: Likewise.
        * gcc.target/i386/avx512pf-vgatherpf0qps-1.c: Likewise.
        * gcc.target/i386/avx512pf-vgatherpf1dpd-1.c: Likewise.
        * gcc.target/i386/avx512pf-vgatherpf1dps-1.c: Likewise.
        * gcc.target/i386/avx512pf-vgatherpf1qpd-1.c: Likewise.
        * gcc.target/i386/avx512pf-vgatherpf1qps-1.c: Likewise.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/avx512pfintrin.h
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/i386/avx512pf-vgatherpf0dpd-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512pf-vgatherpf0dps-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512pf-vgatherpf0qpd-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512pf-vgatherpf0qps-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512pf-vgatherpf1dpd-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512pf-vgatherpf1dps-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512pf-vgatherpf1qpd-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx512pf-vgatherpf1qps-1.c
    trunk/gcc/testsuite/gcc.target/i386/sse-14.c
    trunk/gcc/testsuite/gcc.target/i386/sse-22.c
>From gcc-bugs-return-554167-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 19:41:11 2017
Return-Path: <gcc-bugs-return-554167-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7406 invoked by alias); 14 Feb 2017 19:41: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 6208 invoked by uid 55); 14 Feb 2017 19:40:59 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79505] [7 Regression] Memory leaks in oacc_loop_discover_walk
Date: Tue, 14 Feb 2017 19:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 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: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79505-4-MuppLGnMpI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79505-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79505-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01699.txt.bz2
Content-length: 484

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79505

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Feb 14 19:40:27 2017
New Revision: 245445

URL: https://gcc.gnu.org/viewcvs?rev=245445&root=gcc&view=rev
Log:
        PR middle-end/79505
        * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
        (new_oacc_loop_raw): Don't clear already cleared fields.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/omp-offload.c
>From gcc-bugs-return-554168-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 19:52:53 2017
Return-Path: <gcc-bugs-return-554168-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33317 invoked by alias); 14 Feb 2017 19:52: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 33065 invoked by uid 48); 14 Feb 2017 19:52:39 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79458] attributes on constructor between class name and parameter list not accepted
Date: Tue, 14 Feb 2017 19: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: 7.0.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on resolution everconfirmed
Message-ID: <bug-79458-4-IFlWVg3Rru@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79458-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79458-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01700.txt.bz2
Content-length: 675

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79458

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |NEW
   Last reconfirmed|                            |2017-02-14
         Resolution|INVALID                     |---
     Ever confirmed|0                           |1

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
I think you're right, it looks like C++ attributes can appear in more/different
lexical contexts than the traditional GCC __attribute__ can.  Confirmed.
>From gcc-bugs-return-554169-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 20:05:17 2017
Return-Path: <gcc-bugs-return-554169-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30718 invoked by alias); 14 Feb 2017 20:05: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 29642 invoked by uid 48); 14 Feb 2017 20:05:02 -0000
From: "tulipawn at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/77468] [7 Regression] C-ray regression on Aarch64
Date: Tue, 14 Feb 2017 20: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: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tulipawn at gmail 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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-77468-4-ykZziw3EuC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77468-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77468-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01701.txt.bz2
Content-length: 286

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77468

--- Comment #24 from PeteVine <tulipawn at gmail dot com> ---
I did a git pull and restarted the build so unless something didn't get
reconfigured, it definitely should've been included. If you see the
improvement, never mind then.
>From gcc-bugs-return-554171-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 20:08:17 2017
Return-Path: <gcc-bugs-return-554171-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41548 invoked by alias); 14 Feb 2017 20:08: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 40927 invoked by uid 55); 14 Feb 2017 20:08:10 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/78134] set::set lower_bound() for transparent comparator returns const_iterator
Date: Tue, 14 Feb 2017 20: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: 6.2.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: P3
X-Bugzilla-Assigned-To: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78134-4-oUCgUw1q3Y@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78134-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78134-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01703.txt.bz2
Content-length: 1898

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78134

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue Feb 14 20:07:37 2017
New Revision: 245447

URL: https://gcc.gnu.org/viewcvs?rev=245447&root=gcc&view=rev
Log:
PR78134 fix return types of heterogeneous lookup functions

Backport from mainline
2017-01-11  Jonathan Wakely  <jwakely@redhat.com>

        PR libstdc++/78134
        * include/bits/stl_map.h (map::lower_bound, map::upper_bound)
        (map::equal_range): Fix return type of heterogeneous overloads.
        * include/bits/stl_multimap.h (multimap::lower_bound)
        (multimap::upper_bound, multimap::equal_range): Likewise.
        * include/bits/stl_multiset.h (multiset::lower_bound)
        (multiset::upper_bound, multiset::equal_range): Likewise.
        * include/bits/stl_set.h (set::lower_bound, set::upper_bound)
        (set::equal_range): Likewise.
        * testsuite/23_containers/map/operations/2.cc: Check return types.
        * testsuite/23_containers/multimap/operations/2.cc: Likewise.
        * testsuite/23_containers/multiset/operations/2.cc: Likewise.
        * testsuite/23_containers/set/operations/2.cc: Likewise.

Modified:
    branches/gcc-6-branch/libstdc++-v3/ChangeLog
    branches/gcc-6-branch/libstdc++-v3/include/bits/stl_map.h
    branches/gcc-6-branch/libstdc++-v3/include/bits/stl_multimap.h
    branches/gcc-6-branch/libstdc++-v3/include/bits/stl_multiset.h
    branches/gcc-6-branch/libstdc++-v3/include/bits/stl_set.h
   
branches/gcc-6-branch/libstdc++-v3/testsuite/23_containers/map/operations/2.cc
   
branches/gcc-6-branch/libstdc++-v3/testsuite/23_containers/multimap/operations/2.cc
   
branches/gcc-6-branch/libstdc++-v3/testsuite/23_containers/multiset/operations/2.cc
   
branches/gcc-6-branch/libstdc++-v3/testsuite/23_containers/set/operations/2.cc
>From gcc-bugs-return-554172-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 20:08:29 2017
Return-Path: <gcc-bugs-return-554172-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 42608 invoked by alias); 14 Feb 2017 20:08: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 41416 invoked by uid 55); 14 Feb 2017 20:08:15 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/78702] [libstdc++] class __shim in locale::facet is private
Date: Tue, 14 Feb 2017 20: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78702-4-xWBKQla21H@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78702-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78702-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01704.txt.bz2
Content-length: 842

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78702

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue Feb 14 20:07:42 2017
New Revision: 245448

URL: https://gcc.gnu.org/viewcvs?rev=245448&root=gcc&view=rev
Log:
PR78702 fix accessibility of locale::facet::__shim

Backport from mainline
2017-01-16  Jonathan Wakely  <jwakely@redhat.com>

        PR libstdc++/78702
        * include/bits/locale_classes.h (locale::facet::__shim): Change from
        private to protected.
        * src/c++11/cxx11-shim_facets.cc (__shim_accessor): Define helper to
        make locale::facet::__shim accessible.

Modified:
    branches/gcc-6-branch/libstdc++-v3/ChangeLog
    branches/gcc-6-branch/libstdc++-v3/include/bits/locale_classes.h
    branches/gcc-6-branch/libstdc++-v3/src/c++11/cxx11-shim_facets.cc
>From gcc-bugs-return-554174-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 20:08:41 2017
Return-Path: <gcc-bugs-return-554174-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43690 invoked by alias); 14 Feb 2017 20:08: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 42436 invoked by uid 55); 14 Feb 2017 20:08:27 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/69301] std::atomic<T>::load() won't compile if T doesn't have a default constructor
Date: Tue, 14 Feb 2017 20: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: 5.3.0
X-Bugzilla-Keywords: rejects-valid
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-69301-4-ldWgEmwW5E@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69301-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69301-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01706.txt.bz2
Content-length: 1153

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69301

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue Feb 14 20:07:54 2017
New Revision: 245450

URL: https://gcc.gnu.org/viewcvs?rev=245450&root=gcc&view=rev
Log:
PR69301 don't assume atomic<T> can default construct T

Backport from mainline
2017-01-18  Jonathan Wakely  <jwakely@redhat.com>

        PR libstdc++/69301
        * include/std/atomic (atomic<T>::load, atomic<T>::exchange): Use
        aligned buffer instead of default-initialized variable.
        * testsuite/29_atomics/atomic/69301.cc: New test.
        * include/experimental/memory (observer_ptr::release): Use reserved
        name.
        * include/ext/pointer.h (_Pointer_adapter::operator++(int))
        (_Pointer_adapter::operator--(int)): Likewise.

Added:
    branches/gcc-6-branch/libstdc++-v3/testsuite/29_atomics/atomic/69301.cc
Modified:
    branches/gcc-6-branch/libstdc++-v3/ChangeLog
    branches/gcc-6-branch/libstdc++-v3/include/experimental/memory
    branches/gcc-6-branch/libstdc++-v3/include/ext/pointer.h
    branches/gcc-6-branch/libstdc++-v3/include/std/atomic
>From gcc-bugs-return-554176-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 20:08:59 2017
Return-Path: <gcc-bugs-return-554176-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45289 invoked by alias); 14 Feb 2017 20:08:59 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 44258 invoked by uid 55); 14 Feb 2017 20:08:46 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/72792] allocator_traits is too strict about rebinding
Date: Tue, 14 Feb 2017 20: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: 6.1.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-72792-4-bfX8tsUuWG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-72792-4@http.gcc.gnu.org/bugzilla/>
References: <bug-72792-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01705.txt.bz2
Content-length: 2549

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72792

--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue Feb 14 20:08:12 2017
New Revision: 245452

URL: https://gcc.gnu.org/viewcvs?rev=245452&root=gcc&view=rev
Log:
PR72792 PR72793 relax requirements on rebind members

Backport from mainline
2017-01-20  Jonathan Wakely  <jwakely@redhat.com>

        PR libstdc++/72792
        * include/bits/alloc_traits.h (__allocator_traits_base::__diff_type)
        (__allocator_traits_base::__size_type): Remove.
        (allocator_traits::_Ptr): New class template to detect const and void
        pointer types without instantiating pointer_traits::rebind
        unnecessarily.
        (allocator_traits::_Diff): Likewise for detecting difference_type.
        (allocator_traits::_Size): New class template to detect size_type
        without instantiating make_unsigned unnecessarily.
        * include/bits/ptr_traits.h (pointer_traits::element_type): Use
        __detected_or_t instead of __detected_or_t_.
        * include/std/type_traits (__detected_or_t_): Remove.
        * testsuite/20_util/allocator_traits/members/pointers.cc: New test.

        PR libstdc++/72792
        PR libstdc++/72793
        * include/bits/alloc_traits.h (__allocator_traits_base::__rebind):
        Replace with class template using void_t.
        (__alloc_rebind): Define in terms of
        __allocator_traits_base::__rebind.
        (allocator_traits): Remove unconditional static_assert for
        rebind_alloc.
        * include/bits/ptr_traits.h (__replace_first_arg): Remove type member.
        (pointer_traits::__rebind): Replace with class template using void_t.
        (pointer_traits::rebind): Define in terms of __rebind.
        (pointer_traits): Remove unconditional static_assert for rebind.
        * testsuite/20_util/allocator_traits/members/rebind_alloc.cc: New test.
        * testsuite/20_util/pointer_traits/rebind.cc: New test.

Added:
   
branches/gcc-6-branch/libstdc++-v3/testsuite/20_util/allocator_traits/members/pointers.cc
   
branches/gcc-6-branch/libstdc++-v3/testsuite/20_util/allocator_traits/members/rebind_alloc.cc
   
branches/gcc-6-branch/libstdc++-v3/testsuite/20_util/pointer_traits/rebind.cc
Modified:
    branches/gcc-6-branch/libstdc++-v3/ChangeLog
    branches/gcc-6-branch/libstdc++-v3/include/bits/alloc_traits.h
    branches/gcc-6-branch/libstdc++-v3/include/bits/ptr_traits.h
    branches/gcc-6-branch/libstdc++-v3/include/std/type_traits
>From gcc-bugs-return-554177-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 20:09:00 2017
Return-Path: <gcc-bugs-return-554177-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45330 invoked by alias); 14 Feb 2017 20:08:59 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 44272 invoked by uid 55); 14 Feb 2017 20:08:46 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/72793] pointer_traits is too strict about rebinding
Date: Tue, 14 Feb 2017 20: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: 6.1.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-72793-4-TtDbNDPohJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-72793-4@http.gcc.gnu.org/bugzilla/>
References: <bug-72793-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01708.txt.bz2
Content-length: 2548

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72793

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue Feb 14 20:08:12 2017
New Revision: 245452

URL: https://gcc.gnu.org/viewcvs?rev=245452&root=gcc&view=rev
Log:
PR72792 PR72793 relax requirements on rebind members

Backport from mainline
2017-01-20  Jonathan Wakely  <jwakely@redhat.com>

        PR libstdc++/72792
        * include/bits/alloc_traits.h (__allocator_traits_base::__diff_type)
        (__allocator_traits_base::__size_type): Remove.
        (allocator_traits::_Ptr): New class template to detect const and void
        pointer types without instantiating pointer_traits::rebind
        unnecessarily.
        (allocator_traits::_Diff): Likewise for detecting difference_type.
        (allocator_traits::_Size): New class template to detect size_type
        without instantiating make_unsigned unnecessarily.
        * include/bits/ptr_traits.h (pointer_traits::element_type): Use
        __detected_or_t instead of __detected_or_t_.
        * include/std/type_traits (__detected_or_t_): Remove.
        * testsuite/20_util/allocator_traits/members/pointers.cc: New test.

        PR libstdc++/72792
        PR libstdc++/72793
        * include/bits/alloc_traits.h (__allocator_traits_base::__rebind):
        Replace with class template using void_t.
        (__alloc_rebind): Define in terms of
        __allocator_traits_base::__rebind.
        (allocator_traits): Remove unconditional static_assert for
        rebind_alloc.
        * include/bits/ptr_traits.h (__replace_first_arg): Remove type member.
        (pointer_traits::__rebind): Replace with class template using void_t.
        (pointer_traits::rebind): Define in terms of __rebind.
        (pointer_traits): Remove unconditional static_assert for rebind.
        * testsuite/20_util/allocator_traits/members/rebind_alloc.cc: New test.
        * testsuite/20_util/pointer_traits/rebind.cc: New test.

Added:
   
branches/gcc-6-branch/libstdc++-v3/testsuite/20_util/allocator_traits/members/pointers.cc
   
branches/gcc-6-branch/libstdc++-v3/testsuite/20_util/allocator_traits/members/rebind_alloc.cc
   
branches/gcc-6-branch/libstdc++-v3/testsuite/20_util/pointer_traits/rebind.cc
Modified:
    branches/gcc-6-branch/libstdc++-v3/ChangeLog
    branches/gcc-6-branch/libstdc++-v3/include/bits/alloc_traits.h
    branches/gcc-6-branch/libstdc++-v3/include/bits/ptr_traits.h
    branches/gcc-6-branch/libstdc++-v3/include/std/type_traits
>From gcc-bugs-return-554173-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 20:08:39 2017
Return-Path: <gcc-bugs-return-554173-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43426 invoked by alias); 14 Feb 2017 20:08: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 41928 invoked by uid 55); 14 Feb 2017 20:08:21 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79114] [6 Regression] std::throw_with_nested("string literal") is rejected
Date: Tue, 14 Feb 2017 20: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: 6.3.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: P2
X-Bugzilla-Assigned-To: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79114-4-IDn8jMhMiM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79114-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79114-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01709.txt.bz2
Content-length: 828

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79114

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue Feb 14 20:07:48 2017
New Revision: 245449

URL: https://gcc.gnu.org/viewcvs?rev=245449&root=gcc&view=rev
Log:
PR79114 use decayed type in std::throw_with_nested assertion

Backport from mainline
2017-01-17  Jonathan Wakely  <jwakely@redhat.com>

        PR libstdc++/79114
        * libsupc++/nested_exception.h (throw_with_nested): Use decay instead
        of remove_reference.
        * testsuite/18_support/nested_exception/79114.cc: New test.

Added:
   
branches/gcc-6-branch/libstdc++-v3/testsuite/18_support/nested_exception/79114.cc
Modified:
    branches/gcc-6-branch/libstdc++-v3/ChangeLog
    branches/gcc-6-branch/libstdc++-v3/libsupc++/nested_exception.h
>From gcc-bugs-return-554175-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 20:08:53 2017
Return-Path: <gcc-bugs-return-554175-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44765 invoked by alias); 14 Feb 2017 20:08: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 43632 invoked by uid 55); 14 Feb 2017 20:08:40 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/69321] Error on use of non-copyable type with any_cast
Date: Tue, 14 Feb 2017 20: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: 6.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-69321-4-NLlCsCHdpv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69321-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69321-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01707.txt.bz2
Content-length: 825

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69321

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue Feb 14 20:08:04 2017
New Revision: 245451

URL: https://gcc.gnu.org/viewcvs?rev=245451&root=gcc&view=rev
Log:
PR69321 fix any_cast<T>(any*) for non-copyable T

Backport from mainline
2017-01-20  Jonathan Wakely  <jwakely@redhat.com>

        PR libstdc++/69321
        * include/experimental/any (__any_caster): Avoid instantiating
        manager function for types that can't be stored in any.
        * testsuite/experimental/any/misc/any_cast.cc: Likewise.

Modified:
    branches/gcc-6-branch/libstdc++-v3/ChangeLog
    branches/gcc-6-branch/libstdc++-v3/include/experimental/any
   
branches/gcc-6-branch/libstdc++-v3/testsuite/experimental/any/misc/any_cast.cc
>From gcc-bugs-return-554170-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 20:08:17 2017
Return-Path: <gcc-bugs-return-554170-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 41528 invoked by alias); 14 Feb 2017 20:08: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 40159 invoked by uid 55); 14 Feb 2017 20:08:03 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/78273] The transparent version of {map,set}::count should call _M_count_tr
Date: Tue, 14 Feb 2017 20: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78273-4-T82S02jYt2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78273-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78273-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01702.txt.bz2
Content-length: 1205

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78273

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue Feb 14 20:07:26 2017
New Revision: 245446

URL: https://gcc.gnu.org/viewcvs?rev=245446&root=gcc&view=rev
Log:
PR78273 fix count to work with partitioning function

Backport from mainline
2017-01-11  Jonathan Wakely  <jwakely@redhat.com>

        PR libstdc++/78273
        * include/bits/stl_map.h (map::count<_Kt>(const _Kt&)): Don't assume
        the heterogeneous comparison can only find one match.
        * include/bits/stl_set.h (set::count<_Kt>(const _Kt&)): Likewise.
        * testsuite/23_containers/map/operations/2.cc: Test count works with
        comparison function that just partitions rather than sorting.
        * testsuite/23_containers/set/operations/2.cc: Likewise.

Modified:
    branches/gcc-6-branch/libstdc++-v3/ChangeLog
    branches/gcc-6-branch/libstdc++-v3/include/bits/stl_map.h
    branches/gcc-6-branch/libstdc++-v3/include/bits/stl_set.h
   
branches/gcc-6-branch/libstdc++-v3/testsuite/23_containers/map/operations/2.cc
   
branches/gcc-6-branch/libstdc++-v3/testsuite/23_containers/set/operations/2.cc
>From gcc-bugs-return-554178-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 20:11:56 2017
Return-Path: <gcc-bugs-return-554178-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 57148 invoked by alias); 14 Feb 2017 20:11: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 56906 invoked by uid 48); 14 Feb 2017 20:11:41 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79114] [6 Regression] std::throw_with_nested("string literal") is rejected
Date: Tue, 14 Feb 2017 20: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: 6.3.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79114-4-IXinDQx9LD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79114-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79114-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01710.txt.bz2
Content-length: 440

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79114

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed for 6.4 and 7.1
>From gcc-bugs-return-554179-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 20:12:28 2017
Return-Path: <gcc-bugs-return-554179-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58424 invoked by alias); 14 Feb 2017 20:12: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 58255 invoked by uid 48); 14 Feb 2017 20:12:22 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/69321] Error on use of non-copyable type with any_cast
Date: Tue, 14 Feb 2017 20:12: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: 6.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-69321-4-AEX0go7otb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69321-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69321-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01711.txt.bz2
Content-length: 291

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69321

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|7.0                         |6.4
>From gcc-bugs-return-554180-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 20:14:34 2017
Return-Path: <gcc-bugs-return-554180-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 72359 invoked by alias); 14 Feb 2017 20:14: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 52839 invoked by uid 48); 14 Feb 2017 20:14:19 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/72792] [6/7 Regression] allocator_traits is too strict about rebinding
Date: Tue, 14 Feb 2017 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: 6.1.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_known_to_work target_milestone short_desc
Message-ID: <bug-72792-4-nhKP67AjXZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-72792-4@http.gcc.gnu.org/bugzilla/>
References: <bug-72792-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01712.txt.bz2
Content-length: 721

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72792

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |5.4.0
   Target Milestone|7.0                         |6.4
            Summary|allocator_traits is too     |[6/7 Regression]
                   |strict about rebinding      |allocator_traits is too
                   |                            |strict about rebinding

--- Comment #11 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I hadn't noticed this was actually a regression since 5.x, but it's fixed for
6.4 now anyway.
>From gcc-bugs-return-554181-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 20:15:49 2017
Return-Path: <gcc-bugs-return-554181-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110102 invoked by alias); 14 Feb 2017 20:15: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 109740 invoked by uid 48); 14 Feb 2017 20:15:21 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/72793] [6/7 Regression] pointer_traits is too strict about rebinding
Date: Tue, 14 Feb 2017 20: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: 6.1.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_known_to_work target_milestone short_desc
Message-ID: <bug-72793-4-vwD4YJGL1W@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-72793-4@http.gcc.gnu.org/bugzilla/>
References: <bug-72793-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01713.txt.bz2
Content-length: 718

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72793

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |5.4.0
   Target Milestone|7.0                         |6.4
            Summary|pointer_traits is too       |[6/7 Regression]
                   |strict about rebinding      |pointer_traits is too
                   |                            |strict about rebinding

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I hadn't noticed this was actually a regression since 5.x, but it's fixed for
6.4 now anyway.
>From gcc-bugs-return-554182-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 20:33:54 2017
Return-Path: <gcc-bugs-return-554182-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 51647 invoked by alias); 14 Feb 2017 20:33: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 51274 invoked by uid 48); 14 Feb 2017 20:33:41 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79481] AVX512PF: unmasked gather prefetch intrinsics missing
Date: Tue, 14 Feb 2017 20: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: 7.0.1
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-79481-4-8LVkD7FRRJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79481-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79481-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01714.txt.bz2
Content-length: 423

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79481

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-554183-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 20:34:07 2017
Return-Path: <gcc-bugs-return-554183-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53417 invoked by alias); 14 Feb 2017 20:34:07 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 51629 invoked by uid 48); 14 Feb 2017 20:33:53 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79505] [7 Regression] Memory leaks in oacc_loop_discover_walk
Date: Tue, 14 Feb 2017 20:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79505-4-E7vFspg4hB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79505-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79505-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01715.txt.bz2
Content-length: 423

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79505

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-554184-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 20:38:52 2017
Return-Path: <gcc-bugs-return-554184-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60352 invoked by alias); 14 Feb 2017 20:38: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 60007 invoked by uid 48); 14 Feb 2017 20:38:38 -0000
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79478] possible gimple error with gcc.dg/gimplefe-16.c
Date: Tue, 14 Feb 2017 20:38:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dcb314 at hotmail 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-79478-4-TjEWvAsHw0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79478-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79478-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01716.txt.bz2
Content-length: 292

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79478

--- Comment #5 from David Binderman <dcb314 at hotmail dot com> ---
(In reply to prathamesh3492 from comment #4)
> David, could you please confirm if r245406 fixes the error for you ?

I tried out revision 245439 and it looks fine to me.
>From gcc-bugs-return-554185-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 20:43:02 2017
Return-Path: <gcc-bugs-return-554185-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 67482 invoked by alias); 14 Feb 2017 20:43: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 67293 invoked by uid 48); 14 Feb 2017 20:42:49 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79487] Invalid _Decimal32 comparison on s390x
Date: Tue, 14 Feb 2017 20: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: 7.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: attachments.created
Message-ID: <bug-79487-4-rOdVa9QFFw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01717.txt.bz2
Content-length: 446

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79487

--- Comment #18 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 40741
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40741&action=edit
gcc7-pr79487.patch

Untested fix.  Seems at least from eyeballing the #c0 testcase (which is not
executable) this does the right thing.  Haven't tried it on
float-cast-overflow-10.c with the -8.c volatile hack removed though.
>From gcc-bugs-return-554186-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 20:59:14 2017
Return-Path: <gcc-bugs-return-554186-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117206 invoked by alias); 14 Feb 2017 20: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 117040 invoked by uid 48); 14 Feb 2017 20:58:59 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79487] Invalid _Decimal32 comparison on s390x
Date: Tue, 14 Feb 2017 20: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: 7.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.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-79487-4-B1KrXcuSgX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01718.txt.bz2
Content-length: 444

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79487

--- Comment #19 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
It fixes the local test case extracted from float-cast-overflow-10.c.  The
patch probably should also add a test case; the one I have is very specific to
s390x; would something like the code in comment 17 work?

(Regression tests on s390 and s390x with the volatile removed from
float-cast-overflow-8.c are running.)
>From gcc-bugs-return-554187-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 21:17:57 2017
Return-Path: <gcc-bugs-return-554187-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108296 invoked by alias); 14 Feb 2017 21:17: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 108178 invoked by uid 55); 14 Feb 2017 21:17:51 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/78134] set::set lower_bound() for transparent comparator returns const_iterator
Date: Tue, 14 Feb 2017 21:17: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: 6.2.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: P3
X-Bugzilla-Assigned-To: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78134-4-xQojt47T4A@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78134-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78134-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01719.txt.bz2
Content-length: 1898

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78134

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue Feb 14 21:17:18 2017
New Revision: 245455

URL: https://gcc.gnu.org/viewcvs?rev=245455&root=gcc&view=rev
Log:
PR78134 fix return types of heterogeneous lookup functions

Backport from mainline
2017-01-11  Jonathan Wakely  <jwakely@redhat.com>

        PR libstdc++/78134
        * include/bits/stl_map.h (map::lower_bound, map::upper_bound)
        (map::equal_range): Fix return type of heterogeneous overloads.
        * include/bits/stl_multimap.h (multimap::lower_bound)
        (multimap::upper_bound, multimap::equal_range): Likewise.
        * include/bits/stl_multiset.h (multiset::lower_bound)
        (multiset::upper_bound, multiset::equal_range): Likewise.
        * include/bits/stl_set.h (set::lower_bound, set::upper_bound)
        (set::equal_range): Likewise.
        * testsuite/23_containers/map/operations/2.cc: Check return types.
        * testsuite/23_containers/multimap/operations/2.cc: Likewise.
        * testsuite/23_containers/multiset/operations/2.cc: Likewise.
        * testsuite/23_containers/set/operations/2.cc: Likewise.

Modified:
    branches/gcc-5-branch/libstdc++-v3/ChangeLog
    branches/gcc-5-branch/libstdc++-v3/include/bits/stl_map.h
    branches/gcc-5-branch/libstdc++-v3/include/bits/stl_multimap.h
    branches/gcc-5-branch/libstdc++-v3/include/bits/stl_multiset.h
    branches/gcc-5-branch/libstdc++-v3/include/bits/stl_set.h
   
branches/gcc-5-branch/libstdc++-v3/testsuite/23_containers/map/operations/2.cc
   
branches/gcc-5-branch/libstdc++-v3/testsuite/23_containers/multimap/operations/2.cc
   
branches/gcc-5-branch/libstdc++-v3/testsuite/23_containers/multiset/operations/2.cc
   
branches/gcc-5-branch/libstdc++-v3/testsuite/23_containers/set/operations/2.cc
>From gcc-bugs-return-554190-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 21:18:15 2017
Return-Path: <gcc-bugs-return-554190-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110138 invoked by alias); 14 Feb 2017 21:18: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 108816 invoked by uid 55); 14 Feb 2017 21:18:01 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/69301] std::atomic<T>::load() won't compile if T doesn't have a default constructor
Date: Tue, 14 Feb 2017 21:18: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.3.0
X-Bugzilla-Keywords: rejects-valid
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-69301-4-5KZp97n0Mj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69301-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69301-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01723.txt.bz2
Content-length: 996

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69301

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue Feb 14 21:17:29 2017
New Revision: 245457

URL: https://gcc.gnu.org/viewcvs?rev=245457&root=gcc&view=rev
Log:
PR69301 don't assume atomic<T> can default construct T

Backport from mainline
2017-01-18  Jonathan Wakely  <jwakely@redhat.com>

        PR libstdc++/69301
        * include/std/atomic (atomic<T>::load, atomic<T>::exchange): Use
        aligned buffer instead of default-initialized variable.
        * testsuite/29_atomics/atomic/69301.cc: New test.
        * include/ext/pointer.h (_Pointer_adapter::operator++(int))
        (_Pointer_adapter::operator--(int)): Likewise.

Added:
    branches/gcc-5-branch/libstdc++-v3/testsuite/29_atomics/atomic/69301.cc
Modified:
    branches/gcc-5-branch/libstdc++-v3/ChangeLog
    branches/gcc-5-branch/libstdc++-v3/include/ext/pointer.h
    branches/gcc-5-branch/libstdc++-v3/include/std/atomic
>From gcc-bugs-return-554188-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 21:17:57 2017
Return-Path: <gcc-bugs-return-554188-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 108305 invoked by alias); 14 Feb 2017 21:17: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 108103 invoked by uid 55); 14 Feb 2017 21:17:44 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/78273] The transparent version of {map,set}::count should call _M_count_tr
Date: Tue, 14 Feb 2017 21:18: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: 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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78273-4-vtaufMTDpe@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78273-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78273-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01721.txt.bz2
Content-length: 1205

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78273

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue Feb 14 21:17:11 2017
New Revision: 245454

URL: https://gcc.gnu.org/viewcvs?rev=245454&root=gcc&view=rev
Log:
PR78273 fix count to work with partitioning function

Backport from mainline
2017-01-11  Jonathan Wakely  <jwakely@redhat.com>

        PR libstdc++/78273
        * include/bits/stl_map.h (map::count<_Kt>(const _Kt&)): Don't assume
        the heterogeneous comparison can only find one match.
        * include/bits/stl_set.h (set::count<_Kt>(const _Kt&)): Likewise.
        * testsuite/23_containers/map/operations/2.cc: Test count works with
        comparison function that just partitions rather than sorting.
        * testsuite/23_containers/set/operations/2.cc: Likewise.

Modified:
    branches/gcc-5-branch/libstdc++-v3/ChangeLog
    branches/gcc-5-branch/libstdc++-v3/include/bits/stl_map.h
    branches/gcc-5-branch/libstdc++-v3/include/bits/stl_set.h
   
branches/gcc-5-branch/libstdc++-v3/testsuite/23_containers/map/operations/2.cc
   
branches/gcc-5-branch/libstdc++-v3/testsuite/23_containers/set/operations/2.cc
>From gcc-bugs-return-554191-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 21:18:22 2017
Return-Path: <gcc-bugs-return-554191-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110876 invoked by alias); 14 Feb 2017 21:18: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 109457 invoked by uid 55); 14 Feb 2017 21:18:07 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/69321] Error on use of non-copyable type with any_cast
Date: Tue, 14 Feb 2017 21:18: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: 6.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-69321-4-fgP5sHeLXq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69321-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69321-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01722.txt.bz2
Content-length: 996

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69321

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue Feb 14 21:17:34 2017
New Revision: 245458

URL: https://gcc.gnu.org/viewcvs?rev=245458&root=gcc&view=rev
Log:
PR69321 fix any_cast<T>(any*) for non-copyable T

Backport from mainline
2017-01-20  Jonathan Wakely  <jwakely@redhat.com>

        PR libstdc++/69321
        * include/experimental/any (__any_caster): Avoid instantiating
        manager function for types that can't be stored in any.
        * testsuite/experimental/any/misc/any_cast.cc: Likewise.
        * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.

Modified:
    branches/gcc-5-branch/libstdc++-v3/ChangeLog
    branches/gcc-5-branch/libstdc++-v3/include/experimental/any
   
branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/any/misc/any_cast.cc
   
branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/any/misc/any_cast_neg.cc
>From gcc-bugs-return-554189-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 21:18:09 2017
Return-Path: <gcc-bugs-return-554189-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109619 invoked by alias); 14 Feb 2017 21:18: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 108270 invoked by uid 55); 14 Feb 2017 21:17:56 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/78702] [libstdc++] class __shim in locale::facet is private
Date: Tue, 14 Feb 2017 21:18: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: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78702-4-fsvWo7bNfn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78702-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78702-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01720.txt.bz2
Content-length: 842

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78702

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue Feb 14 21:17:23 2017
New Revision: 245456

URL: https://gcc.gnu.org/viewcvs?rev=245456&root=gcc&view=rev
Log:
PR78702 fix accessibility of locale::facet::__shim

Backport from mainline
2017-01-16  Jonathan Wakely  <jwakely@redhat.com>

        PR libstdc++/78702
        * include/bits/locale_classes.h (locale::facet::__shim): Change from
        private to protected.
        * src/c++11/cxx11-shim_facets.cc (__shim_accessor): Define helper to
        make locale::facet::__shim accessible.

Modified:
    branches/gcc-5-branch/libstdc++-v3/ChangeLog
    branches/gcc-5-branch/libstdc++-v3/include/bits/locale_classes.h
    branches/gcc-5-branch/libstdc++-v3/src/c++11/cxx11-shim_facets.cc
>From gcc-bugs-return-554192-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 21:20:03 2017
Return-Path: <gcc-bugs-return-554192-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112903 invoked by alias); 14 Feb 2017 21:20: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 112668 invoked by uid 48); 14 Feb 2017 21:19:52 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/65135] [5/6 Regression] Performance regression  in pic mode after r220674.
Date: Tue, 14 Feb 2017 21:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-65135-4-FxTQzwvTxA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65135-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65135-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01724.txt.bz2
Content-length: 617

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65135

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[5/6/7 Regression]          |[5/6 Regression]
                   |Performance regression  in  |Performance regression  in
                   |pic mode after r220674.     |pic mode after r220674.

--- Comment #11 from Jeffrey A. Law <law at redhat dot com> ---
This was fixed long ago.  The unnecessary spills are gone and we get much more
efficient loop code.
>From gcc-bugs-return-554193-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 21:25:33 2017
Return-Path: <gcc-bugs-return-554193-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8695 invoked by alias); 14 Feb 2017 21:25: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 8453 invoked by uid 48); 14 Feb 2017 21:25:05 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/78134] set::set lower_bound() for transparent comparator returns const_iterator
Date: Tue, 14 Feb 2017 21: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: 6.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-78134-4-5WgQSanl8L@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78134-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78134-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01725.txt.bz2
Content-length: 440

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78134

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed for 5.5 and 6.4
>From gcc-bugs-return-554194-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 21:25:35 2017
Return-Path: <gcc-bugs-return-554194-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8842 invoked by alias); 14 Feb 2017 21: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 8588 invoked by uid 48); 14 Feb 2017 21:25:15 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/78839] [6 Regression] DWARF output different between GCC 5 and 6
Date: Tue, 14 Feb 2017 21:25: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: 6.1.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: P2
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-78839-4-PhGuWI5VCC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78839-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78839-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01726.txt.bz2
Content-length: 424

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78839

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-554195-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 21:25:48 2017
Return-Path: <gcc-bugs-return-554195-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9931 invoked by alias); 14 Feb 2017 21:25: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 8786 invoked by uid 48); 14 Feb 2017 21:25:28 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/78273] The transparent version of {map,set}::count should call _M_count_tr
Date: Tue, 14 Feb 2017 21: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-78273-4-0Qa7BKNAWf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78273-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78273-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01727.txt.bz2
Content-length: 440

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78273

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed for 5.5 and 6.4
>From gcc-bugs-return-554198-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 21:26:56 2017
Return-Path: <gcc-bugs-return-554198-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13129 invoked by alias); 14 Feb 2017 21:26: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 12600 invoked by uid 48); 14 Feb 2017 21:26:47 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/69321] Error on use of non-copyable type with any_cast
Date: Tue, 14 Feb 2017 21: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: 6.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-69321-4-DMNcBbYz5B@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69321-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69321-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01730.txt.bz2
Content-length: 380

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69321

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|6.4                         |5.5

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed for 5.5 and 6.4
>From gcc-bugs-return-554197-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 21:26:43 2017
Return-Path: <gcc-bugs-return-554197-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12291 invoked by alias); 14 Feb 2017 21:26: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 11718 invoked by uid 48); 14 Feb 2017 21:26:29 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/69301] std::atomic<T>::load() won't compile if T doesn't have a default constructor
Date: Tue, 14 Feb 2017 21: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: 5.3.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-69301-4-pQMZR7MMiy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69301-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69301-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01728.txt.bz2
Content-length: 493

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69301

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |5.5

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed for 5.5 and 6.4
>From gcc-bugs-return-554196-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 21:25:59 2017
Return-Path: <gcc-bugs-return-554196-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10481 invoked by alias); 14 Feb 2017 21: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 10028 invoked by uid 48); 14 Feb 2017 21:25:49 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/78702] [libstdc++] class __shim in locale::facet is private
Date: Tue, 14 Feb 2017 21: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-78702-4-onCWOqtg4p@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78702-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78702-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01729.txt.bz2
Content-length: 380

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78702

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|7.0                         |5.5

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed for 5.5 and 6.4
>From gcc-bugs-return-554199-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 21:30:29 2017
Return-Path: <gcc-bugs-return-554199-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34162 invoked by alias); 14 Feb 2017 21:30: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 33594 invoked by uid 48); 14 Feb 2017 21:29:55 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79513] std::visit doesn't handle references
Date: Tue, 14 Feb 2017 21:30: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.1
X-Bugzilla-Keywords: rejects-valid
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: keywords bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-79513-4-eeRT57iEak@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79513-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79513-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01731.txt.bz2
Content-length: 541

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79513

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-14
                 CC|                            |timshen at gcc dot gnu.org
     Ever confirmed|0                           |1
>From gcc-bugs-return-554200-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 21:44:02 2017
Return-Path: <gcc-bugs-return-554200-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121174 invoked by alias); 14 Feb 2017 21:44: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 112788 invoked by uid 48); 14 Feb 2017 21:43:54 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79487] Invalid _Decimal32 comparison on s390x
Date: Tue, 14 Feb 2017 21: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: 7.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:
Message-ID: <bug-79487-4-sRz933OXUM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01732.txt.bz2
Content-length: 635

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79487

--- Comment #20 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Dominik Vogt from comment #19)
> It fixes the local test case extracted from float-cast-overflow-10.c.  The
> patch probably should also add a test case; the one I have is very specific
> to s390x; would something like the code in comment 17 work?

As the problem isn't in the arithmetics, but just in the conversion from
integer to _Decimal{32,64}, we'd need something different.

> (Regression tests on s390 and s390x with the volatile removed from
> float-cast-overflow-8.c are running.)

Thanks.
>From gcc-bugs-return-554201-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 21:45:56 2017
Return-Path: <gcc-bugs-return-554201-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52652 invoked by alias); 14 Feb 2017 21: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 52499 invoked by uid 48); 14 Feb 2017 21:45:45 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79487] Invalid _Decimal32 comparison on s390x
Date: Tue, 14 Feb 2017 21: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: 7.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: attachments.isobsolete attachments.created
Message-ID: <bug-79487-4-t9AWLaxdDG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01733.txt.bz2
Content-length: 609

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79487

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #40741|0                           |1
        is obsolete|                            |

--- Comment #21 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 40742
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40742&action=edit
gcc7-pr79487.patch

So perhaps like this?  Would be nice to test it also with -O0 and the old
compiler.
>From gcc-bugs-return-554202-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 21:47:42 2017
Return-Path: <gcc-bugs-return-554202-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59038 invoked by alias); 14 Feb 2017 21:47: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 58460 invoked by uid 48); 14 Feb 2017 21:47:28 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79487] Invalid _Decimal32 comparison on s390x
Date: Tue, 14 Feb 2017 21:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.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:
Message-ID: <bug-79487-4-ZeBiLiaSS7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01734.txt.bz2
Content-length: 399

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79487

--- Comment #22 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #21)
> Created attachment 40742 [details]
> gcc7-pr79487.patch
> 
> So perhaps like this?  Would be nice to test it also with -O0 and the old
> compiler.

Just tried that on x86_64 with gcc 6.3.1 and it succeeds at -O0 and fails at
-O2.
>From gcc-bugs-return-554203-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 22:02:09 2017
Return-Path: <gcc-bugs-return-554203-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 2878 invoked by alias); 14 Feb 2017 22:02: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 2706 invoked by uid 48); 14 Feb 2017 22:01:52 -0000
From: "pthaugen at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79347] [7 regression] vect_do_peeling is messing up profile
Date: Tue, 14 Feb 2017 22: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pthaugen at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: amker at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79347-4-O5cU7gd5Gj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79347-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79347-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01735.txt.bz2
Content-length: 567

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79347

Pat Haugen <pthaugen at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pthaugen at gcc dot gnu.org

--- Comment #7 from Pat Haugen <pthaugen at gcc dot gnu.org> ---
See pr77536 for similar issue. Not sure if that should be marked as dup of this
one or left open as a more general bug on what should be done to specifically
fix the vectorized loop.
>From gcc-bugs-return-554204-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 22:16:58 2017
Return-Path: <gcc-bugs-return-554204-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23844 invoked by alias); 14 Feb 2017 22:16: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 23775 invoked by uid 48); 14 Feb 2017 22:16:45 -0000
From: "evan@coeus-group.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79518] New: __builtin_assume_aligned should mark argument as aligned
Date: Tue, 14 Feb 2017 22:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: evan@coeus-group.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-79518-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01736.txt.bz2
Content-length: 2129

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79518

            Bug ID: 79518
           Summary: __builtin_assume_aligned should mark argument as
                    aligned
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: evan@coeus-group.com
  Target Milestone: ---

TL;DR: It would be very helpful if __builtin_assume_aligned() would mark its
first argument as aligned (assuming it represents a variable).

I'm trying to implement a macro to abstract away compiler differences, but
__builtin_assume_aligned works very differently than other compiler's
alternatives, and it's making it impossible to support GCC.

ICC's __assume_aligned marks the argument as aligned:

    __assume_aligned(arg, 16)
    /* Compiler knows arg is 16-byte aligned */

MSVC wants you to use __assume, which is ugly, but can be made to work the same
way (people often wrap it up in a macro that looks like the Intel version):

    __assume((((char*) arg) - ((char*) 0)) % (16) == 0)
    /* Compiler knows arg is 16-byte aligned */

clang can also (I believe) be made to work similarly.  They have an internal
macro
(http://llvm.org/docs/doxygen/html/Compiler_8h.html#a2fd576fb00a760ba803c8a171bff051a)
called LLVM_ASSUME_ALIGNED which is defined as

    # define LLVM_ASSUME_ALIGNED(p, a) \
               (((uintptr_t(p) % (a)) == 0) ? (p) : (LLVM_BUILTIN_UNREACHABLE,
(p)))

This doesn't seem to have an effect on GCC (using __builtin_unreachable and a C
style cast), though.  FWIW, I'd consider making that work to be an acceptable
solution, too, though I think improving __builtin_assume_aligned would be much
better as it would be more discoverable.

Unfortunately, it's not easy to smooth out this particular difference.  There
are some details at <https://github.com/nemequ/hedley/issues/1>, but basically
I can't find a good solution which works with both styles, mostly due to the
standard multiple-evaluation of macro arguments SNAFU.
>From gcc-bugs-return-554205-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 22:17:59 2017
Return-Path: <gcc-bugs-return-554205-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25562 invoked by alias); 14 Feb 2017 22:17:58 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 25400 invoked by uid 55); 14 Feb 2017 22:17:52 -0000
From: "vmakarov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79282] [7 Regresion] FAIL: gcc.target/arm/neon-for-64bits-1.c scan-assembler-times vshr 0
Date: Tue, 14 Feb 2017 22:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.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: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79282-4-ZVqqBOOqEw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79282-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79282-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01737.txt.bz2
Content-length: 1084

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79282

--- Comment #8 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
Author: vmakarov
Date: Tue Feb 14 22:17:19 2017
New Revision: 245459

URL: https://gcc.gnu.org/viewcvs?rev=245459&root=gcc&view=rev
Log:
2017-02-14  Vladimir Makarov  <vmakarov@redhat.com>

        PR target/79282
        * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
        member early_clobber_alts.
        * lra-lives.c (reg_early_clobber_p): New.
        (process_bb_lives): Use it.
        * lra.c (new_insn_reg): New arg early_clobber_alts.  Use it.
        (debug_operand_data): Initialize early_clobber_alts.
        (setup_operand_alternative): Set up early_clobber_alts.
        (collect_non_operand_hard_regs): Ditto.  Pass early clobber
        alternatives to new_insn_reg.
        (add_regs_to_insn_regno_info): Add arg early_clobber_alts.  Use
        it.
        (lra_update_insn_regno_info): Pass the new arg.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/lra-int.h
    trunk/gcc/lra-lives.c
    trunk/gcc/lra.c
>From gcc-bugs-return-554206-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 22:20:37 2017
Return-Path: <gcc-bugs-return-554206-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75396 invoked by alias); 14 Feb 2017 22:20: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 73848 invoked by uid 48); 14 Feb 2017 22:20:23 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79518] __builtin_assume_aligned should mark argument as aligned
Date: Tue, 14 Feb 2017 22: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: unknown
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-79518-4-Zw1cyM5jFw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79518-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79518-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01738.txt.bz2
Content-length: 233

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79518

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Why can't you use:
#define     __assume_aligned(arg, align)  arg = __builtin_assume_aligned (arg,
align)

?
>From gcc-bugs-return-554207-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 22:21:57 2017
Return-Path: <gcc-bugs-return-554207-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77832 invoked by alias); 14 Feb 2017 22: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 77742 invoked by uid 48); 14 Feb 2017 22:21:44 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79487] Invalid _Decimal32 comparison on s390x
Date: Tue, 14 Feb 2017 22:21:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.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-79487-4-9esve0bjP9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01739.txt.bz2
Content-length: 274

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79487

--- Comment #23 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
Same result on s390x (on a zEC12 using -with-arch=zEC12):

Without patch:
 * -O0 -> PASS
 * -O2 -> FAIL

With patch:
 * -O0 -> PASS
 * -O2 -> PASS
>From gcc-bugs-return-554208-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 22:35:22 2017
Return-Path: <gcc-bugs-return-554208-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11541 invoked by alias); 14 Feb 2017 22:35: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 11424 invoked by uid 48); 14 Feb 2017 22:35:08 -0000
From: "reichelt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79519] New: [5/6/7 Regression] ICE deleting template friend function
Date: Tue, 14 Feb 2017 22:35: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.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: reichelt 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-79519-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01740.txt.bz2
Content-length: 2786

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79519

            Bug ID: 79519
           Summary: [5/6/7 Regression] ICE deleting template friend
                    function
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: reichelt at gcc dot gnu.org
  Target Milestone: ---

The following invalid code snippet triggers since GCC 5.1.0:

======================================================
struct A
{
  template<typename> void foo();
};

struct B
{
  template<typename> friend void A::foo() = delete;
};
======================================================

bug.cc:8:45: internal compiler error: in grokfield, at cp/decl2.c:930
   template<typename> friend void A::foo() = delete;
                                             ^~~~~~
0x6ec8b1 grokfield(cp_declarator const*, cp_decl_specifier_seq*, tree_node*,
bool, tree_node*, tree_node*)
        ../../gcc/gcc/cp/decl2.c:930
0x7390a3 cp_parser_init_declarator
        ../../gcc/gcc/cp/parser.c:19375
0x71321a cp_parser_single_declaration
        ../../gcc/gcc/cp/parser.c:26728
0x73361c cp_parser_template_declaration_after_parameters
        ../../gcc/gcc/cp/parser.c:26332
0x7332ac cp_parser_explicit_template_declaration
        ../../gcc/gcc/cp/parser.c:26567
0x7332ac cp_parser_template_declaration_after_export
        ../../gcc/gcc/cp/parser.c:26586
0x70e571 cp_parser_member_declaration
        ../../gcc/gcc/cp/parser.c:23024
0x70f3fa cp_parser_member_specification_opt
        ../../gcc/gcc/cp/parser.c:22951
0x70f3fa cp_parser_class_specifier_1
        ../../gcc/gcc/cp/parser.c:22107
0x711a29 cp_parser_class_specifier
        ../../gcc/gcc/cp/parser.c:22359
0x711a29 cp_parser_type_specifier
        ../../gcc/gcc/cp/parser.c:16432
0x71291a cp_parser_decl_specifier_seq
        ../../gcc/gcc/cp/parser.c:13345
0x739b01 cp_parser_simple_declaration
        ../../gcc/gcc/cp/parser.c:12670
0x73aa25 cp_parser_block_declaration
        ../../gcc/gcc/cp/parser.c:12617
0x7135d4 cp_parser_declaration
        ../../gcc/gcc/cp/parser.c:12515
0x74406b cp_parser_declaration_seq_opt
        ../../gcc/gcc/cp/parser.c:12391
0x74434a cp_parser_translation_unit
        ../../gcc/gcc/cp/parser.c:4366
0x74434a c_parse_file()
        ../../gcc/gcc/cp/parser.c:38425
0x8a2f73 c_common_parse_file()
        ../../gcc/gcc/c-family/c-opts.c:1107
Please submit a full bug report, [etc.]
>From gcc-bugs-return-554209-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 22:41:29 2017
Return-Path: <gcc-bugs-return-554209-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43293 invoked by alias); 14 Feb 2017 22:41:28 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 42734 invoked by uid 48); 14 Feb 2017 22:41:13 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79466] strange varargs warnings on superflous paranthesises
Date: Tue, 14 Feb 2017 22: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: 5.4.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc cf_known_to_work everconfirmed cf_known_to_fail
Message-ID: <bug-79466-4-WGfiyDYKiE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79466-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79466-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01741.txt.bz2
Content-length: 819

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79466

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-14
                 CC|                            |msebor at gcc dot gnu.org
      Known to work|                            |6.3.0, 7.0
     Ever confirmed|0                           |1
      Known to fail|                            |5.4.0

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed with 5.x.  Neither 6.x nor the latest trunk complain.  The warning
went away after r236616.
>From gcc-bugs-return-554210-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 22:45:39 2017
Return-Path: <gcc-bugs-return-554210-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53602 invoked by alias); 14 Feb 2017 22:45: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 53382 invoked by uid 48); 14 Feb 2017 22:45:16 -0000
From: "evan@coeus-group.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79518] __builtin_assume_aligned should mark argument as aligned
Date: Tue, 14 Feb 2017 22: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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: evan@coeus-group.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-79518-4-VYa8QQRATr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79518-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79518-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01742.txt.bz2
Content-length: 555

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79518

--- Comment #2 from Evan Nemerson <evan@coeus-group.com> ---
(In reply to Andrew Pinski from comment #1)
> Why can't you use:
> #define     __assume_aligned(arg, align)  arg = __builtin_assume_aligned
> (arg, align)
> 
> ?

arg may be read-only.  void* const arg = ...; __assume_aligned(arg, 16)

arg is also evaluated twice, though I'm not sure how much of a problem that
would be in this situation, or how helpful __assume_aligned would be for other
compilers where it would matter…
>From gcc-bugs-return-554211-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 22:49:49 2017
Return-Path: <gcc-bugs-return-554211-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 72179 invoked by alias); 14 Feb 2017 22:49: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 65302 invoked by uid 48); 14 Feb 2017 22:49:35 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79470] [7 Regression] "partial specialization is not more specialized" with variadic non-type const& template parameters
Date: Tue, 14 Feb 2017 22:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc short_desc everconfirmed
Message-ID: <bug-79470-4-rF8pOEjXXd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79470-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79470-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01743.txt.bz2
Content-length: 1398

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79470

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-14
                 CC|                            |msebor at gcc dot gnu.org
            Summary|"partial specialization is  |[7 Regression] "partial
                   |not more specialized" with  |specialization is not more
                   |variadic non-type const&    |specialized" with variadic
                   |template parameters         |non-type const& template
                   |(possible regression)       |parameters
     Ever confirmed|0                           |1

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed.  Besides Clang, EDG 4.11 also accepts the code in strict mode. 
Bisection points to r243868 (gcc 7.0.0):

r243868 | jason | 2016-12-21 14:38:35 -0500 (Wed, 21 Dec 2016) | 5 lines

Check that a partial specialization is more specialized.

        * pt.c (process_partial_specialization): Use
        get_partial_spec_bindings to check that the partial specialization
        is more specialized than the primary template.
>From gcc-bugs-return-554212-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 22:59:43 2017
Return-Path: <gcc-bugs-return-554212-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84915 invoked by alias); 14 Feb 2017 22:59: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 84706 invoked by uid 48); 14 Feb 2017 22:59:29 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79476] C++ frontend ignores diagnostic pragma in macro
Date: Tue, 14 Feb 2017 22: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: 6.3.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor 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: keywords bug_status cc resolution
Message-ID: <bug-79476-4-8L8hqNoz4V@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79476-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79476-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01744.txt.bz2
Content-length: 1132

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79476

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |msebor at gcc dot gnu.org
         Resolution|---                         |DUPLICATE

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
I'm pretty sure this is a duplicate of bug 69558, although according to my
bisection the commit that caused it is r214221 (gcc 5.0.0):

r214221 | manu | 2014-08-20 08:48:16 -0400 (Wed, 20 Aug 2014) | 19 lines

gcc/ChangeLog:

2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>

        PR c/59304
        * opts-common.c (set_option): Call diagnostic_classify_diagnostic
        before setting the option.
        * diagnostic.c (diagnostic_classify_diagnostic): Record
        command-line status.

*** This bug has been marked as a duplicate of bug 69558 ***
>From gcc-bugs-return-554213-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 22:59:44 2017
Return-Path: <gcc-bugs-return-554213-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 85072 invoked by alias); 14 Feb 2017 22:59: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 84772 invoked by uid 48); 14 Feb 2017 22:59:31 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/69558] [6/7 Regression] glib2 warning pragmas stopped working
Date: Tue, 14 Feb 2017 22: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: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 8.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-69558-4-Be3kcPlFhC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-69558-4@http.gcc.gnu.org/bugzilla/>
References: <bug-69558-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01745.txt.bz2
Content-length: 433

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69558

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jak@jak-linux.org

--- Comment #20 from Martin Sebor <msebor at gcc dot gnu.org> ---
*** Bug 79476 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-554214-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 23:06:11 2017
Return-Path: <gcc-bugs-return-554214-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91473 invoked by alias); 14 Feb 2017 23:06: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 91208 invoked by uid 48); 14 Feb 2017 23:05:57 -0000
From: "columbo@gmx-topmail.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79520] New: Spurious caching for constexpr arguments
Date: Tue, 14 Feb 2017 23:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: columbo@gmx-topmail.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
Message-ID: <bug-79520-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01746.txt.bz2
Content-length: 722

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79520

            Bug ID: 79520
           Summary: Spurious caching for constexpr arguments
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: columbo@gmx-topmail.de
  Target Milestone: ---

constexpr int f(int const& x) {return x;}

constexpr struct S {
    int x = 0;
    constexpr S() {(void)f(x); x = 1;}
} s;

static_assert(f(s.x) == 1, "");

---

Presumably s.x is taken to be "immutable" because s is constexpr, while that's
obviously not true during the period of construction.
>From gcc-bugs-return-554215-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 23:09:07 2017
Return-Path: <gcc-bugs-return-554215-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118431 invoked by alias); 14 Feb 2017 23: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 118245 invoked by uid 48); 14 Feb 2017 23:08:53 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79476] C++ frontend ignores diagnostic pragma in macro
Date: Tue, 14 Feb 2017 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: 6.3.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor 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:
Message-ID: <bug-79476-4-eOpZgW9Xft@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79476-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79476-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01747.txt.bz2
Content-length: 393

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79476

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
(In reply to Martin Sebor from comment #2)
> I'm pretty sure this is a duplicate of bug 69558, although according to my
> bisection the commit that caused it is r214221 (gcc 5.0.0):

Actually, looking more closely, that's not the right commit. (It's still a dupe
though.)
>From gcc-bugs-return-554216-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 23:24:58 2017
Return-Path: <gcc-bugs-return-554216-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43336 invoked by alias); 14 Feb 2017 23:24: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 43079 invoked by uid 48); 14 Feb 2017 23:24:44 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug translation/79477] Please write code more translator-friendly
Date: Tue, 14 Feb 2017 23:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: translation
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords cf_gcctarget bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-79477-4-wRfEl8DOB8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79477-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79477-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01748.txt.bz2
Content-length: 1302

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79477

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Target|                            |powerpc*-*-*
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-14
                 CC|                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
For what it's worth, your request makes sense to me, but I suspect that in its
current form it may go unnoticed.  If you would like to see those error calls
changed I'd suggest to file separate bugs for the parts of the compiler (e.g.,
the targets) that they appear in and highlight the occurrences you find tedious
to deal with.  If you would to make a plea to all GCC developers to follow this
practice then bringing it up on the GCC mailing lists might be an effective
approach.

Since the error messages you list are issued by the powerpc target I've taken
the liberty to set it for this bug and confirm it on that basis.
>From gcc-bugs-return-554217-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 23:48:55 2017
Return-Path: <gcc-bugs-return-554217-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77256 invoked by alias); 14 Feb 2017 23:48: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 77080 invoked by uid 48); 14 Feb 2017 23:48:26 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79500] [7 Regression] [c++1z] non-template deduction guides cause crash
Date: Tue, 14 Feb 2017 23: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: 7.0.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: msebor at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc short_desc everconfirmed
Message-ID: <bug-79500-4-hBqZSy47Dd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79500-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79500-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01749.txt.bz2
Content-length: 2391

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79500

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-14
                 CC|                            |msebor at gcc dot gnu.org
            Summary|non-template deduction      |[7 Regression] [c++1z]
                   |guides cause crash          |non-template deduction
                   |                            |guides cause crash
     Ever confirmed|0                           |1

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed.  It's a recent regression but I don't have access to the binaries to
bisect it.

$ gcc -S -Wall -std=c++1z t.C

t.C:4:8: internal compiler error: tree check: expected template_decl, have
function_decl in do_class_deduction, at cp/pt.c:25096
 A a = {};
        ^
0x14cf5c5 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        /src/gcc/svn/gcc/tree.c:9815
0x7c7c14 tree_check(tree_node*, char const*, int, char const*, tree_code)
        /src/gcc/svn/gcc/tree.h:3064
0x8c0fdb do_class_deduction
        /src/gcc/svn/gcc/cp/pt.c:25096
0x8c188a do_auto_deduction(tree_node*, tree_node*, tree_node*, int,
auto_deduction_context, tree_node*, int)
        /src/gcc/svn/gcc/cp/pt.c:25178
0x8137f2 cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int)
        /src/gcc/svn/gcc/cp/decl.c:6825
0x95c60a cp_parser_init_declarator
        /src/gcc/svn/gcc/cp/parser.c:19399
0x950808 cp_parser_simple_declaration
        /src/gcc/svn/gcc/cp/parser.c:12802
0x9503ac cp_parser_block_declaration
        /src/gcc/svn/gcc/cp/parser.c:12620
0x95012f cp_parser_declaration
        /src/gcc/svn/gcc/cp/parser.c:12517
0x94fc81 cp_parser_declaration_seq_opt
        /src/gcc/svn/gcc/cp/parser.c:12393
0x93e93f cp_parser_translation_unit
        /src/gcc/svn/gcc/cp/parser.c:4366
0x98ed41 c_parse_file()
        /src/gcc/svn/gcc/cp/parser.c:38427
0xb3b437 c_common_parse_file()
        /src/gcc/svn/gcc/c-family/c-opts.c:1107
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-554218-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Feb 14 23:56:49 2017
Return-Path: <gcc-bugs-return-554218-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 112106 invoked by alias); 14 Feb 2017 23:56: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 111711 invoked by uid 48); 14 Feb 2017 23:56:37 -0000
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79022] trunk/gcc/gengtype.h: create_nested_ptr_option: decl & defn don't match ?
Date: Tue, 14 Feb 2017 23: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: msebor 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: priority bug_status cf_reconfirmed_on cc everconfirmed bug_severity
Message-ID: <bug-79022-4-KKjWqqUysF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79022-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79022-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01750.txt.bz2
Content-length: 762

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79022

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-14
                 CC|                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1
           Severity|normal                      |minor

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed.  The parameter names between the function declaration in the header
and its definition don't match.
>From gcc-bugs-return-554219-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 00:02:46 2017
Return-Path: <gcc-bugs-return-554219-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9858 invoked by alias); 15 Feb 2017 00:02: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 9233 invoked by uid 48); 15 Feb 2017 00:02:32 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/77499] [7 Regression] Regression after code-hoisting, due to combine pass failing to evaluate known value range
Date: Wed, 15 Feb 2017 00: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: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-77499-4-DSAMXc0rR0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77499-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77499-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01751.txt.bz2
Content-length: 2106

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77499

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-15
     Ever confirmed|0                           |1

--- Comment #14 from Jeffrey A. Law <law at redhat dot com> ---
So the extensions seem to be directly related to the ARM's definition of
PROMOTE_FUNCTION_MODE.  Obviously we can't change that, but it's something to
keep in mind.

REE (if enabled) won't catch this case for multiple reasons.

So one odd way to perhaps make this work better would be to start with the code
prior to hoisting which looks something like this:

;;   basic block 3, loop depth 1
;;    pred:       6
;;                2
  # x_16 = PHI <x_3(6), x_6(D)(2)>
  # c_18 = PHI <c_14(6), c_7(D)(2)>
  _1 = c_18 % 3;
  if (_1 != 0)
    goto <bb 4>; [50.00%]
  else
    goto <bb 5>; [50.00%]
;;    succ:       4
;;                5

;;   basic block 4, loop depth 1
;;    pred:       3
  _2 = x_16 >> 1;
  x_12 = _2 ^ 45345;
  goto <bb 6>; [100.00%]
;;    succ:       6

;;   basic block 5, loop depth 1
;;    pred:       3
  x_11 = x_16 >> 1;
;;    succ:       6

;;   basic block 6, loop depth 1
;;    pred:       4
;;                5
  # x_3 = PHI <x_12(4), x_11(5)>
  c_14 = c_18 - e_13(D);
  if (d_8(D) < c_14)
    goto <bb 3>; [85.00%]
  else
    goto <bb 7>; [15.00%]
;;    succ:       3
;;                7


Then realize that block #5 can be rewritten as:
;;   basic block 5, loop depth 1
;;    pred:       3
  T = x_16 >> 1;
  x_11 = T ^ 0  (we happen to know that _1 has the value zero here)

Then we sink the common statements out of BBs 4 & 5 into bb6 which would looke
like

T = PHI (45345 (4), 0 (5))
T2 = x_16 >> 1;
x_3 = T2 ^ T;
c_14 = ...

That may bring the key statements into the same block and give the combiner a
chance.  But it's a fairly convoluted approach to this problem.
>From gcc-bugs-return-554220-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 00:26:54 2017
Return-Path: <gcc-bugs-return-554220-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 99794 invoked by alias); 15 Feb 2017 00:26: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 68797 invoked by uid 48); 15 Feb 2017 00:26:41 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79487] Invalid _Decimal32 comparison on s390x
Date: Wed, 15 Feb 2017 00: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: 7.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.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-79487-4-ZZBLDxZfOE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01752.txt.bz2
Content-length: 310

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79487

--- Comment #24 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
No regressions on s390x biarch, and s390 on a zEC12 configured with
-with-arch=zEC12.  The "volatile"-patch to float-cast-overflow-8.c is no longer
necessary.  Thanks for the help!
>From gcc-bugs-return-554221-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 00:49:19 2017
Return-Path: <gcc-bugs-return-554221-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116503 invoked by alias); 15 Feb 2017 00:49: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 116125 invoked by uid 48); 15 Feb 2017 00:49:05 -0000
From: "tulipawn at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/77468] [7 Regression] C-ray regression on Aarch64
Date: Wed, 15 Feb 2017 00:49: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: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tulipawn at gmail 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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-77468-4-ewdd7zfYno@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77468-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77468-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01753.txt.bz2
Content-length: 350

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77468

--- Comment #25 from PeteVine <tulipawn at gmail dot com> ---
The original issue never mentioned -Ofast or -ffast-math and I see no
difference at -Ofast, indeed:

http://openbenchmarking.org/result/1702153-RI-CRAYFAST424

@jgreenhalgh Can you confirm there's no regression @ -O3 as well? Thanks.
>From gcc-bugs-return-554222-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 06:34:20 2017
Return-Path: <gcc-bugs-return-554222-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 121147 invoked by alias); 15 Feb 2017 06:34: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 121034 invoked by uid 48); 15 Feb 2017 06:34:05 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79521] New: [7 Regression] Bootstrap failure on i686-linux starting with r245436
Date: Wed, 15 Feb 2017 06:34: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: 7.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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-79521-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01754.txt.bz2
Content-length: 969

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79521

            Bug ID: 79521
           Summary: [7 Regression] Bootstrap failure on i686-linux
                    starting with r245436
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

GCC on i686-linux ICEs while building libquadmath starting with r245436.
Reduced testcase (even reproduceable on x86_64-linux) with -O2 -m32 -mno-sse:

union U { __float128 v; struct { unsigned long long l, h; } w; };

__float128
foo (__float128 x, __float128 p)
{
  long long hx,hp;
  unsigned long long lx,lp;
  union U u1, u2;
  u1.v = x;
  hx = u1.w.h;
  lx = u1.w.l;
  u2.v = p;
  hp = u2.w.h;
  lp = u2.w.l;
  if (((hx-hp) | (lx-lp)) == 0)
    return 0.0Q * x;
  return p;
}
>From gcc-bugs-return-554223-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 06:36:35 2017
Return-Path: <gcc-bugs-return-554223-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17098 invoked by alias); 15 Feb 2017 06:36: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 15013 invoked by uid 48); 15 Feb 2017 06:36:21 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79521] [7 Regression] Bootstrap failure on i686-linux starting with r245436
Date: Wed, 15 Feb 2017 06:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority bug_status cf_reconfirmed_on cc target_milestone everconfirmed
Message-ID: <bug-79521-4-T4Xw9o4djR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79521-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79521-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01755.txt.bz2
Content-length: 1470

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79521

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-15
                 CC|                            |law at gcc dot gnu.org
   Target Milestone|---                         |7.0
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
In the IL we have:
(insn 30 13 26 2 (clobber (reg:TI 123)) "rq.i":21 -1
     (nil))
(insn 26 30 27 2 (set (subreg:SI (reg:TI 123) 0)
        (subreg:SI (reg/v:TF 122 [ p ]) 0)) "rq.i":21 82 {*movsi_internal}
     (nil))
(insn 27 26 28 2 (set (subreg:SI (reg:TI 123) 4)
        (subreg:SI (reg/v:TF 122 [ p ]) 4)) "rq.i":21 82 {*movsi_internal}
     (nil))
(insn 28 27 29 2 (set (subreg:SI (reg:TI 123) 8)
        (subreg:SI (reg/v:TF 122 [ p ]) 8)) "rq.i":21 82 {*movsi_internal}
     (nil))
(insn 29 28 31 2 (set (subreg:SI (reg:TI 123) 12)
        (subreg:SI (reg/v:TF 122 [ p ]) 12)) "rq.i":21 82 {*movsi_internal}
     (nil))
(insn 31 29 36 2 (set (reg/v:DI 108 [ hp ])
        (subreg:DI (reg:TI 123) 8)) "rq.i":21 81 {*movdi_internal}
     (nil))
even when TImode actually isn't supported by the target for arithmetics.
>From gcc-bugs-return-554224-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 07:00:52 2017
Return-Path: <gcc-bugs-return-554224-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122679 invoked by alias); 15 Feb 2017 07:00:52 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 90995 invoked by uid 55); 15 Feb 2017 07:00:36 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79079] [6] Wrong code gen for __builtin_mul_overflow when TRULY_NOOP_TRUNCATION (32, 64) == false
Date: Wed, 15 Feb 2017 07:00:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 6.1.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-79079-4-FViJ0PSu01@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79079-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79079-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01756.txt.bz2
Content-length: 625

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79079

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Feb 15 06:59:34 2017
New Revision: 245465

URL: https://gcc.gnu.org/viewcvs?rev=245465&root=gcc&view=rev
Log:
        Backported from mainline
        2017-01-17  Kito Cheng  <kito.cheng@gmail.com>
                    Kuan-Lin Chen  <kuanlinchentw@gmail.com>

        PR target/79079
        * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
        gen_lowpart.

Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/internal-fn.c
>From gcc-bugs-return-554225-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 07:02:03 2017
Return-Path: <gcc-bugs-return-554225-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 124150 invoked by alias); 15 Feb 2017 07:02: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 123918 invoked by uid 55); 15 Feb 2017 07:01:49 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79267] [6 Regression] internal compiler error with -O3 or -O2 -finline-functions
Date: Wed, 15 Feb 2017 07: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: 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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79267-4-rsGpsfAy5D@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79267-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79267-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01757.txt.bz2
Content-length: 746

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79267

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Feb 15 07:01:14 2017
New Revision: 245466

URL: https://gcc.gnu.org/viewcvs?rev=245466&root=gcc&view=rev
Log:
        Backported from mainline
        2017-01-31  Jakub Jelinek  <jakub@redhat.com>

        PR tree-optimization/79267
        * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
        if should_remove_lhs_p is true.

        * g++.dg/opt/pr79267.C: New test.

Added:
    branches/gcc-6-branch/gcc/testsuite/g++.dg/opt/pr79267.C
Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/testsuite/ChangeLog
    branches/gcc-6-branch/gcc/value-prof.c
>From gcc-bugs-return-554227-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 07:03:29 2017
Return-Path: <gcc-bugs-return-554227-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126978 invoked by alias); 15 Feb 2017 07:03: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 126849 invoked by uid 55); 15 Feb 2017 07:03:19 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79338] [6 Regression] Memory leak in tree-parloops.c
Date: Wed, 15 Feb 2017 07:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords: memory-hog
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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79338-4-g9IDPd8LeY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79338-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79338-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01759.txt.bz2
Content-length: 636

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79338

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Feb 15 07:02:45 2017
New Revision: 245468

URL: https://gcc.gnu.org/viewcvs?rev=245468&root=gcc&view=rev
Log:
        Backported from mainline
        2017-02-04  Jakub Jelinek  <jakub@redhat.com>

        PR tree-optimization/79338
        * tree-parloops.c (gather_scalar_reductions): Don't call
        vect_analyze_loop_form for loop->inner before destroying loop's
        loop_vinfo.

Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/tree-parloops.c
>From gcc-bugs-return-554226-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 07:03:06 2017
Return-Path: <gcc-bugs-return-554226-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 126004 invoked by alias); 15 Feb 2017 07:03: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 125777 invoked by uid 55); 15 Feb 2017 07:02:52 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79197] [5/6 Regression] ICE in extract_insn in gcc/recog.c:2311
Date: Wed, 15 Feb 2017 07:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79197-4-vB3Bm57grH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79197-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79197-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01758.txt.bz2
Content-length: 980

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79197

--- Comment #17 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Feb 15 07:02:15 2017
New Revision: 245467

URL: https://gcc.gnu.org/viewcvs?rev=245467&root=gcc&view=rev
Log:
        Backported from mainline
        2017-02-02  Jakub Jelinek  <jakub@redhat.com>

        PR target/79197
        * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to
...
        (fixuns_trunc<mode>di2): ... this, remove previous expander.  Put all
        conditions on a single line.

        * gcc.target/powerpc/pr79197.c: New test.
        * gcc.c-torture/compile/pr79197.c: New test.

Added:
    branches/gcc-6-branch/gcc/testsuite/gcc.c-torture/compile/pr79197.c
    branches/gcc-6-branch/gcc/testsuite/gcc.target/powerpc/pr79197.c
Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/config/rs6000/rs6000.md
    branches/gcc-6-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-554229-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 07:04:55 2017
Return-Path: <gcc-bugs-return-554229-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 129837 invoked by alias); 15 Feb 2017 07:04: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 129545 invoked by uid 55); 15 Feb 2017 07:04:39 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/79399] GCC fails to compile big source at -O0
Date: Wed, 15 Feb 2017 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: unknown
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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79399-4-VMsRfHUjnv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79399-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79399-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01761.txt.bz2
Content-length: 749

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79399

--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Feb 15 07:04:05 2017
New Revision: 245470

URL: https://gcc.gnu.org/viewcvs?rev=245470&root=gcc&view=rev
Log:
        Backported from mainline
        2017-02-07  Jakub Jelinek  <jakub@redhat.com>
                    Richard Biener  <rguenther@suse.de>

        PR middle-end/79399
        * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
        type from int to size_t.
        * ira-costs.c (struct_costs_size): Change type from int to size_t.

Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/ira-costs.c
    branches/gcc-6-branch/gcc/ira-int.h
>From gcc-bugs-return-554228-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 07:04:17 2017
Return-Path: <gcc-bugs-return-554228-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 128619 invoked by alias); 15 Feb 2017 07:04: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 128200 invoked by uid 55); 15 Feb 2017 07:04:03 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79377] [6 Regression] ICE with increment operator in -fpermissive mode
Date: Wed, 15 Feb 2017 07:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79377-4-UX3k2LRiY1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79377-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79377-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01760.txt.bz2
Content-length: 778

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79377

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Feb 15 07:03:30 2017
New Revision: 245469

URL: https://gcc.gnu.org/viewcvs?rev=245469&root=gcc&view=rev
Log:
        Backported from mainline
        2017-02-06  Jakub Jelinek  <jakub@redhat.com>

        PR c++/79377
        * tree.c (build_min_non_dep_op_overload): For POST{INC,DEC}REMENT_EXPR
        allow one fewer than expected arguments if flag_permissive.

        * g++.dg/lookup/pr79377.C: New test.

Added:
    branches/gcc-6-branch/gcc/testsuite/g++.dg/lookup/pr79377.C
Modified:
    branches/gcc-6-branch/gcc/cp/ChangeLog
    branches/gcc-6-branch/gcc/cp/tree.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-554230-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 07:06:26 2017
Return-Path: <gcc-bugs-return-554230-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 926 invoked by alias); 15 Feb 2017 07: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 772 invoked by uid 55); 15 Feb 2017 07:06:12 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79431] [6 Regression] ICE in get, at cgraph.h:397
Date: Wed, 15 Feb 2017 07: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: ice-on-valid-code, openmp
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79431-4-fJwKa8X4Ji@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79431-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79431-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01762.txt.bz2
Content-length: 1297

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79431

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Feb 15 07:05:39 2017
New Revision: 245471

URL: https://gcc.gnu.org/viewcvs?rev=245471&root=gcc&view=rev
Log:
        Backported from mainline
        2017-02-09  Jakub Jelinek  <jakub@redhat.com>

        PR c/79431
        * gimplify.c (gimplify_adjust_omp_clauses): Ignore
        "omp declare target link" attribute unless is_global_var.
        * omp-low.c (find_link_var_op): Likewise.

        * c-parser.c (c_parser_omp_declare_target): Don't invoke
        symtab_node::get on automatic variables.

        * parser.c (cp_parser_oacc_declare): Formatting fix.
        (cp_parser_omp_declare_target): Don't invoke symtab_node::get on
        automatic variables.

        * c-c++-common/gomp/pr79431.c: New test.

Added:
    branches/gcc-6-branch/gcc/testsuite/c-c++-common/gomp/pr79431.c
Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/c/ChangeLog
    branches/gcc-6-branch/gcc/c/c-parser.c
    branches/gcc-6-branch/gcc/cp/ChangeLog
    branches/gcc-6-branch/gcc/cp/parser.c
    branches/gcc-6-branch/gcc/gimplify.c
    branches/gcc-6-branch/gcc/omp-low.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-554231-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 07:07:08 2017
Return-Path: <gcc-bugs-return-554231-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3852 invoked by alias); 15 Feb 2017 07:07: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 3741 invoked by uid 55); 15 Feb 2017 07:07:01 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79429] [6 Regression] ICE in add_stmt, at cp/semantics.c:385
Date: Wed, 15 Feb 2017 07: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: 7.0
X-Bugzilla-Keywords: error-recovery, 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: P4
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79429-4-YOnnDGrYrh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79429-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79429-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01763.txt.bz2
Content-length: 1086

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79429

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Feb 15 07:06:29 2017
New Revision: 245472

URL: https://gcc.gnu.org/viewcvs?rev=245472&root=gcc&view=rev
Log:
        Backported from mainline
        2017-02-09  Jakub Jelinek  <jakub@redhat.com>

        PR c++/79429
        * parser.c (cp_parser_omp_ordered): Don't check for non-pragma_stmt
        non-pragma_compound context here.
        (cp_parser_omp_target): Likewise.
        (cp_parser_pragma): Don't call push_omp_privatization_clauses and
        parsing for ordered and target omp pragmas in non-pragma_stmt
        non-pragma_compound contexts.

        * c-c++-common/gomp/pr79429.c: New test.
        * g++.dg/gomp/pr79429.C: New test.

Added:
    branches/gcc-6-branch/gcc/testsuite/c-c++-common/gomp/pr79429.c
    branches/gcc-6-branch/gcc/testsuite/g++.dg/gomp/pr79429.C
Modified:
    branches/gcc-6-branch/gcc/cp/ChangeLog
    branches/gcc-6-branch/gcc/cp/parser.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog
>From gcc-bugs-return-554232-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 07:22:29 2017
Return-Path: <gcc-bugs-return-554232-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84531 invoked by alias); 15 Feb 2017 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 82514 invoked by uid 55); 15 Feb 2017 07:22:15 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79411] [5/6 Regression] ICE: SSA corruption (fail_abnormal_edge_coalesce)
Date: Wed, 15 Feb 2017 07:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79411-4-Jj01LXd2HO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79411-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79411-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01764.txt.bz2
Content-length: 882

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79411

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Feb 15 07:21:42 2017
New Revision: 245473

URL: https://gcc.gnu.org/viewcvs?rev=245473&root=gcc&view=rev
Log:
        Backported from mainline
        2017-02-10  Jakub Jelinek  <jakub@redhat.com>

        PR tree-optimization/79411
        * tree-ssa-reassoc.c (is_reassociable_op): Return false if
        stmt operands are SSA_NAMEs used in abnormal phis.
        (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
        phis.

        * gcc.c-torture/compile/pr79411.c: New test.

Added:
    branches/gcc-6-branch/gcc/testsuite/gcc.c-torture/compile/pr79411.c
Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/testsuite/ChangeLog
    branches/gcc-6-branch/gcc/tree-ssa-reassoc.c
>From gcc-bugs-return-554233-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 07:24:52 2017
Return-Path: <gcc-bugs-return-554233-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 103124 invoked by alias); 15 Feb 2017 07: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 102574 invoked by uid 48); 15 Feb 2017 07:24:44 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79079] [6] Wrong code gen for __builtin_mul_overflow when TRULY_NOOP_TRUNCATION (32, 64) == false
Date: Wed, 15 Feb 2017 07: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: 6.1.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: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79079-4-CSXJq5nTMo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79079-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79079-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01765.txt.bz2
Content-length: 423

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79079

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-554234-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 07:25:56 2017
Return-Path: <gcc-bugs-return-554234-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 105272 invoked by alias); 15 Feb 2017 07:25:55 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 105123 invoked by uid 48); 15 Feb 2017 07:25:47 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79267] [6 Regression] internal compiler error with -O3 or -O2 -finline-functions
Date: Wed, 15 Feb 2017 07: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: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79267-4-OJZieeMNqi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79267-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79267-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01766.txt.bz2
Content-length: 423

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79267

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> ---
Fixed.
>From gcc-bugs-return-554236-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 07:26:15 2017
Return-Path: <gcc-bugs-return-554236-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106228 invoked by alias); 15 Feb 2017 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 105987 invoked by uid 48); 15 Feb 2017 07:26:01 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79197] [5 Regression] ICE in extract_insn in gcc/recog.c:2311
Date: Wed, 15 Feb 2017 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: 7.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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-79197-4-oRiwrtqlL5@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79197-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79197-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01768.txt.bz2
Content-length: 526

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79197

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[5/6 Regression] ICE in     |[5 Regression] ICE in
                   |extract_insn in             |extract_insn in
                   |gcc/recog.c:2311            |gcc/recog.c:2311

--- Comment #18 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed also for 6.4.
>From gcc-bugs-return-554237-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 07:26:30 2017
Return-Path: <gcc-bugs-return-554237-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 107834 invoked by alias); 15 Feb 2017 07:26: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 106651 invoked by uid 48); 15 Feb 2017 07:26:17 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79377] [6 Regression] ICE with increment operator in -fpermissive mode
Date: Wed, 15 Feb 2017 07: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: 7.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79377-4-FEFUPhJLDA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79377-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79377-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01769.txt.bz2
Content-length: 423

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79377

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-554235-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 07:26:14 2017
Return-Path: <gcc-bugs-return-554235-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 106218 invoked by alias); 15 Feb 2017 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 106129 invoked by uid 48); 15 Feb 2017 07:26:09 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79338] [6 Regression] Memory leak in tree-parloops.c
Date: Wed, 15 Feb 2017 07:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 6.3.1
X-Bugzilla-Keywords: memory-hog
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79338-4-UchZncaEic@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79338-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79338-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01767.txt.bz2
Content-length: 423

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79338

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-554238-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 07:26:43 2017
Return-Path: <gcc-bugs-return-554238-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109248 invoked by alias); 15 Feb 2017 07:26: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 108199 invoked by uid 48); 15 Feb 2017 07:26:33 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79431] [6 Regression] ICE in get, at cgraph.h:397
Date: Wed, 15 Feb 2017 07: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: 7.0
X-Bugzilla-Keywords: ice-on-valid-code, openmp
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79431-4-sHMn3vryBf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79431-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79431-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01770.txt.bz2
Content-length: 423

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79431

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-554239-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 07:26:53 2017
Return-Path: <gcc-bugs-return-554239-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 110281 invoked by alias); 15 Feb 2017 07: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 109244 invoked by uid 48); 15 Feb 2017 07:26:42 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79429] [6 Regression] ICE in add_stmt, at cp/semantics.c:385
Date: Wed, 15 Feb 2017 07: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: 7.0
X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79429-4-ncm2N36FeN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79429-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79429-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01771.txt.bz2
Content-length: 423

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79429

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
>From gcc-bugs-return-554240-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 07:27:09 2017
Return-Path: <gcc-bugs-return-554240-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 111311 invoked by alias); 15 Feb 2017 07:27: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 110669 invoked by uid 48); 15 Feb 2017 07:26:56 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79411] [5 Regression] ICE: SSA corruption (fail_abnormal_edge_coalesce)
Date: Wed, 15 Feb 2017 07:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 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: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-79411-4-THhhYz1H39@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79411-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79411-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01772.txt.bz2
Content-length: 585

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79411

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[5/6 Regression] ICE: SSA   |[5 Regression] ICE: SSA
                   |corruption                  |corruption
                   |(fail_abnormal_edge_coalesc |(fail_abnormal_edge_coalesc
                   |e)                          |e)

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed also for 6.4.
>From gcc-bugs-return-554241-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 07:39:08 2017
Return-Path: <gcc-bugs-return-554241-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98227 invoked by alias); 15 Feb 2017 07: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 94716 invoked by uid 55); 15 Feb 2017 07:38:54 -0000
From: "timshen at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79513] std::visit doesn't handle references
Date: Wed, 15 Feb 2017 07: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: 7.0.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: timshen 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-79513-4-SW3b5UJmrc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79513-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79513-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01773.txt.bz2
Content-length: 602

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79513

--- Comment #1 from Tim Shen <timshen at gcc dot gnu.org> ---
Author: timshen
Date: Wed Feb 15 07:38:20 2017
New Revision: 245474

URL: https://gcc.gnu.org/viewcvs?rev=245474&root=gcc&view=rev
Log:
        PR libstdc++/79513
        * include/std/variant (visit()): Forward variant types to the return
        type detection code.
        * testsuite/20_util/variant/compile.cc: Add test cases.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/std/variant
    trunk/libstdc++-v3/testsuite/20_util/variant/compile.cc
>From gcc-bugs-return-554242-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 07:49:32 2017
Return-Path: <gcc-bugs-return-554242-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55992 invoked by alias); 15 Feb 2017 07:49:32 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 55884 invoked by uid 48); 15 Feb 2017 07:49:19 -0000
From: "timshen at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79513] std::visit doesn't handle references
Date: Wed, 15 Feb 2017 07:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: timshen 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-79513-4-ex07Rmca4W@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79513-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79513-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01774.txt.bz2
Content-length: 425

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79513

Tim Shen <timshen at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Tim Shen <timshen at gcc dot gnu.org> ---
Mark as fixed.
>From gcc-bugs-return-554243-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 07:53:02 2017
Return-Path: <gcc-bugs-return-554243-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 63109 invoked by alias); 15 Feb 2017 07:53: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 62938 invoked by uid 48); 15 Feb 2017 07:52:49 -0000
From: "d.v.a at ngs dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/60936] [5/6 Regression] Binary code bloat with std::string
Date: Wed, 15 Feb 2017 07:53: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.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: d.v.a at ngs dot ru
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-60936-4-Wu8bYg3xrH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60936-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60936-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01775.txt.bz2
Content-length: 181

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60936

--- Comment #30 from __vic <d.v.a at ngs dot ru> ---
Excellent job, Jonathan! With gcc-7-20170212 the binaries are slim again.
>From gcc-bugs-return-554244-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 08:00:57 2017
Return-Path: <gcc-bugs-return-554244-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 61378 invoked by alias); 15 Feb 2017 08:00: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 53206 invoked by uid 48); 15 Feb 2017 08:00:41 -0000
From: "jmichae3 at yahoo dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79522] New: std::regex_match always returns false
Date: Wed, 15 Feb 2017 08:00:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 6.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jmichae3 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
Message-ID: <bug-79522-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01776.txt.bz2
Content-length: 649

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79522

            Bug ID: 79522
           Summary: std::regex_match always returns false
           Product: gcc
           Version: 6.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jmichae3 at yahoo dot com
  Target Milestone: ---

#include <regex>
#include <iostream>
int main(int argc, char * argv[]) {
       
std::cout<<std::regex_match("def",std::regex("abcdefg",std::regex_constants::extended))<<std::endl;
        return 0;
}
//output:0
>From gcc-bugs-return-554245-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 08:03:42 2017
Return-Path: <gcc-bugs-return-554245-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 63610 invoked by alias); 15 Feb 2017 08:03: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 63463 invoked by uid 48); 15 Feb 2017 08:03:29 -0000
From: "jmichae3 at yahoo dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79522] std::regex_match always returns false
Date: Wed, 15 Feb 2017 08:03: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: 6.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jmichae3 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:
Message-ID: <bug-79522-4-Y8PJwZJroK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79522-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79522-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01777.txt.bz2
Content-length: 748

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79522

--- Comment #1 from Jim Michaels <jmichae3 at yahoo dot com> ---
 Tue 02/14/2017 23:45:45.01 L:\projects\find\1.0\win>g++ -static -lstdc++
-std=c++11 -o ut.exe unit-test-std-match.cpp

 Wed 02/15/2017  0:01:55.04 L:\projects\find\1.0\win>ut
0
0

here is updated test. I wondered if maybe someone got the haystack and needle
swapped. no difference.

#include <regex>
#include <iostream>
int main(int argc, char * argv[]) {
       
std::cout<<std::regex_match("def",std::regex("abcdefg",std::regex_constants::extended))<<std::endl;
       
std::cout<<std::regex_match("abcdefg",std::regex("def",std::regex_constants::extended))<<std::endl;
        return 0;
}
>From gcc-bugs-return-554246-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 08:09:30 2017
Return-Path: <gcc-bugs-return-554246-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116771 invoked by alias); 15 Feb 2017 08:09: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 116662 invoked by uid 48); 15 Feb 2017 08:09:17 -0000
From: "vehre at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79230] [7 Regression] [OOP] Run time error: double free or corruption
Date: Wed, 15 Feb 2017 08: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: 7.0.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vehre at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: vehre at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79230-4-8x4t8CJISL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79230-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79230-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01778.txt.bz2
Content-length: 419

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79230

vehre at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |FIXED

--- Comment #29 from vehre at gcc dot gnu.org ---
No regressions reported, closing.
>From gcc-bugs-return-554249-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 08:10:52 2017
Return-Path: <gcc-bugs-return-554249-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 119556 invoked by alias); 15 Feb 2017 08:10: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 119472 invoked by uid 48); 15 Feb 2017 08:10:44 -0000
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79523] New: valgrind error for gcc/testsuite/gfortran.dg/dtio_13.f90
Date: Wed, 15 Feb 2017 08:10: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.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-79523-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01781.txt.bz2
Content-length: 1110

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79523

            Bug ID: 79523
           Summary: valgrind error for
                    gcc/testsuite/gfortran.dg/dtio_13.f90
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

I just tried to compile the above test case with a valgrind version
of recent trunk gfortran. 

$ /home/dcb/gcc/results.245439/bin/gfortran -c   gfortran.dg/dtio_13.f90 

Ok the fortran produces error messages, but also

==32156== Invalid read of size 1
==32156==    at 0x65E1FF: gfc_find_typebound_dtio_proc(gfc_symbol*, bool, bool) 
(interface.c:4832)
==32156==    by 0x65E29C: gfc_find_specific_dtio_proc(gfc_symbol*, bool, bool)
(
interface.c:4878)
==32156==    by 0x6B8B0B: resolve_transfer (resolve.c:8962)
==32156==    by 0x6B8B0B: gfc_resolve_code(gfc_code*, gfc_namespace*)
(resolve.c
:11130)
>From gcc-bugs-return-554247-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 08:10:12 2017
Return-Path: <gcc-bugs-return-554247-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117972 invoked by alias); 15 Feb 2017 08:10: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 117669 invoked by uid 48); 15 Feb 2017 08:09:58 -0000
From: "vehre at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/78958] Unallocated memory access after SOURCE-ALLOCATEing unlimited polymorphic object
Date: Wed, 15 Feb 2017 08: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vehre at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: vehre at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-78958-4-ubUjtOBbEQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78958-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78958-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01779.txt.bz2
Content-length: 418

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78958

vehre at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |FIXED

--- Comment #9 from vehre at gcc dot gnu.org ---
No regressions reported, closing.
>From gcc-bugs-return-554248-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 08:10:12 2017
Return-Path: <gcc-bugs-return-554248-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117982 invoked by alias); 15 Feb 2017 08:10: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 117697 invoked by uid 48); 15 Feb 2017 08:09:59 -0000
From: "vehre at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/78672] Gfortran test suite failures with a sanitized compiler
Date: Wed, 15 Feb 2017 08:10: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vehre 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: bug_status resolution
Message-ID: <bug-78672-4-I2IAclsDVC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78672-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78672-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01780.txt.bz2
Content-length: 507

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78672
Bug 78672 depends on bug 78958, which changed state.

Bug 78958 Summary: Unallocated memory access after SOURCE-ALLOCATEing unlimited polymorphic object
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78958

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |FIXED
>From gcc-bugs-return-554250-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 08:11:19 2017
Return-Path: <gcc-bugs-return-554250-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120420 invoked by alias); 15 Feb 2017 08:11: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 120252 invoked by uid 48); 15 Feb 2017 08:11:00 -0000
From: "vehre at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79344] [7 Regression]  segmentation faults and run-time errors
Date: Wed, 15 Feb 2017 08: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vehre at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: vehre at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79344-4-TOQPV54Fk1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79344-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79344-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01782.txt.bz2
Content-length: 418

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79344

vehre at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |FIXED

--- Comment #9 from vehre at gcc dot gnu.org ---
No regressions reported, closing.
>From gcc-bugs-return-554251-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 08:26:14 2017
Return-Path: <gcc-bugs-return-554251-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55586 invoked by alias); 15 Feb 2017 08: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 55386 invoked by uid 48); 15 Feb 2017 08:26:01 -0000
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79524] New: valgrind error for gcc/testsuite/gfortran.dg/fimplicit_none_2.f90
Date: Wed, 15 Feb 2017 08:26: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.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-79524-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01783.txt.bz2
Content-length: 1036

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79524

            Bug ID: 79524
           Summary: valgrind error for
                    gcc/testsuite/gfortran.dg/fimplicit_none_2.f90
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

I just tried to compile the above fortran code on a recent
valgrind version of trunk gfortran.

/home/dcb/gcc/results.245439/bin/gfortran -c gfortran.dg/fimplicit_none_2.f90

After some errors, it said

==28421== Invalid read of size 8
==28421==    at 0x6B1095: check_host_association (resolve.c:5401)
==28421==    by 0x6B1095: gfc_resolve_expr(gfc_expr*) (resolve.c:6470)
==28421==    by 0x6B44AB: resolve_charlen(gfc_charlen*) [clone .part.60]
(resolv
e.c:11401)
==28421==    by 0x6BE77F: resolve_charlen (resolve.c:11392)
>From gcc-bugs-return-554252-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 08:45:57 2017
Return-Path: <gcc-bugs-return-554252-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 64691 invoked by alias); 15 Feb 2017 08: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 64629 invoked by uid 48); 15 Feb 2017 08:45:43 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79524] valgrind error for gcc/testsuite/gfortran.dg/fimplicit_none_2.f90
Date: Wed, 15 Feb 2017 08:45: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: 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-79524-4-SLrRjl276H@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79524-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79524-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01784.txt.bz2
Content-length: 11006

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79524

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-15
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Compiling the test with an instrumented gfortran (r245058) gives

/opt/gcc/_clean/gcc/testsuite/gfortran.dg/fimplicit_none_2.f90:5:34:

    character(*), parameter :: z(2) = [character(n) :: 'x', 'y'] ! { dg-error
"Scalar INTEGER expression expected" }
                                  1
Error: Cannot initialize parameter array at (1) with variable length elements
=================================================================
==67652==ERROR: AddressSanitizer: heap-use-after-free on address 0x604000000f78
at pc 0x0001003096af bp 0x7fff5fbfe910 sp 0x7fff5fbfe908
READ of size 8 at 0x604000000f78 thread T0
    #0 0x1003096ae in check_host_association(gfc_expr*)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1003096ae)
    #1 0x100305593 in gfc_resolve_expr(gfc_expr*)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x100305593)
    #2 0x1003194b5 in resolve_charlen(gfc_charlen*)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1003194b5)
    #3 0x10033d8c7 in resolve_types(gfc_namespace*)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x10033d8c7)
    #4 0x1002ec1e9 in gfc_resolve(gfc_namespace*)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1002ec1e9)
    #5 0x1002773e4 in resolve_all_program_units(gfc_namespace*)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1002773e4)
    #6 0x100292748 in gfc_parse_file()
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x100292748)
    #7 0x1003e8180 in gfc_be_parse_file()
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1003e8180)
    #8 0x104339598 in compile_file()
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x104339598)
    #9 0x10434208c in do_compile()
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x10434208c)
    #10 0x1061e1454 in toplev::main(int, char**)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1061e1454)
    #11 0x1061e6731 in main
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1061e6731)
    #12 0x7fffc2124254 in start (/usr/lib/system/libdyld.dylib+0x5254)

0x604000000f78 is located 40 bytes inside of 48-byte region
[0x604000000f50,0x604000000f80)
freed by thread T0 here:
    #0 0x15241b8e0 in wrap_free.part.0
(/opt/gcc/gcc7a/lib/libasan.4.dylib+0x638e0)
    #1 0x1003a1bf1 in gfc_delete_symtree(gfc_symtree**, char const*)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1003a1bf1)
    #2 0x1003b6c9d in gfc_restore_last_undo_checkpoint()
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1003b6c9d)
    #3 0x1003b6e6c in gfc_undo_symbols()
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1003b6e6c)
    #4 0x1002777d1 in reject_statement()
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1002777d1)
    #5 0x1002778d1 in match_word(char const*, match (*)(), locus*)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1002778d1)
    #6 0x100282b73 in decode_statement()
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x100282b73)
    #7 0x100285088 in next_free()
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x100285088)
    #8 0x10028594f in next_statement()
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x10028594f)
    #9 0x10028aa38 in parse_spec(gfc_statement)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x10028aa38)
    #10 0x1002908ef in parse_progunit(gfc_statement)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1002908ef)
    #11 0x10029270a in gfc_parse_file()
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x10029270a)
    #12 0x1003e8180 in gfc_be_parse_file()
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1003e8180)
    #13 0x104339598 in compile_file()
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x104339598)
    #14 0x10434208c in do_compile()
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x10434208c)
    #15 0x1061e1454 in toplev::main(int, char**)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1061e1454)
    #16 0x1061e6731 in main
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1061e6731)
    #17 0x7fffc2124254 in start (/usr/lib/system/libdyld.dylib+0x5254)

previously allocated by thread T0 here:
    #0 0x15241af60 in wrap_calloc (/opt/gcc/gcc7a/lib/libasan.4.dylib+0x62f60)
    #1 0x105fb8031 in xcalloc
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x105fb8031)
    #2 0x1003a1909 in gfc_new_symtree(gfc_symtree**, char const*)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1003a1909)
    #3 0x1003a50f6 in gfc_get_sym_tree(char const*, gfc_namespace*,
gfc_symtree**, bool)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1003a50f6)
    #4 0x1003a64e3 in gfc_get_ha_sym_tree(char const*, gfc_symtree**)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1003a64e3)
    #5 0x1002b0c75 in gfc_match_rvalue(gfc_expr**)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1002b0c75)
    #6 0x1001bad62 in match_primary(gfc_expr**)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1001bad62)
    #7 0x1001baffb in match_level_1(gfc_expr**)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1001baffb)
    #8 0x1001bb38c in match_mult_operand(gfc_expr**)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1001bb38c)
    #9 0x1001bbbb4 in match_add_operand(gfc_expr**)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1001bbbb4)
    #10 0x1001bc5a4 in match_level_2(gfc_expr**)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1001bc5a4)
    #11 0x1001bcad4 in match_level_3(gfc_expr**)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1001bcad4)
    #12 0x1001bcf3e in match_level_4(gfc_expr**)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1001bcf3e)
    #13 0x1001bde65 in match_and_operand(gfc_expr**)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1001bde65)
    #14 0x1001be10f in match_or_operand(gfc_expr**)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1001be10f)
    #15 0x1001be569 in match_equiv_operand(gfc_expr**)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1001be569)
    #16 0x1001be9ca in match_level_5(gfc_expr**)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1001be9ca)
    #17 0x1001ba879 in gfc_match_expr(gfc_expr**)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1001ba879)
    #18 0x100074295 in char_len_param_value(gfc_expr**, bool*)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x100074295)
    #19 0x100082228 in gfc_match_char_spec(gfc_typespec*)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x100082228)
    #20 0x1001a6b52 in gfc_match_type_spec(gfc_typespec*)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1001a6b52)
    #21 0x100018b82 
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x100018b82)
    #22 0x1001bad55 in match_primary(gfc_expr**)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1001bad55)
    #23 0x1001baffb in match_level_1(gfc_expr**)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1001baffb)
    #24 0x1001bb38c in match_mult_operand(gfc_expr**)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1001bb38c)
    #25 0x1001bbbb4 in match_add_operand(gfc_expr**)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1001bbbb4)
    #26 0x1001bc5a4 in match_level_2(gfc_expr**)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1001bc5a4)
    #27 0x1001bcad4 in match_level_3(gfc_expr**)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1001bcad4)
    #28 0x1001bcf3e in match_level_4(gfc_expr**)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1001bcf3e)
    #29 0x1001bde65 in match_and_operand(gfc_expr**)
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1001bde65)

SUMMARY: AddressSanitizer: heap-use-after-free
(/opt/gcc/gcc7g/libexec/gcc/x86_64-apple-darwin16.4.0/7.0.1/f951+0x1003096ae)
in check_host_association(gfc_expr*)
Shadow bytes around the buggy address:
  0x1c0800000190: fa fa fd fd fd fd fd fa fa fa 00 00 00 00 00 00
  0x1c08000001a0: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fd
  0x1c08000001b0: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fd
  0x1c08000001c0: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fa
  0x1c08000001d0: fa fa fd fd fd fd fd fa fa fa 00 00 00 00 00 00
=>0x1c08000001e0: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd[fd]
  0x1c08000001f0: fa fa fd fd fd fd fd fa fa fa 00 00 00 00 00 00
  0x1c0800000200: fa fa 00 00 00 00 00 00 fa fa 00 00 00 00 00 00
  0x1c0800000210: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fd
  0x1c0800000220: fa fa 00 00 00 00 00 00 fa fa fd fd fd fd fd fa
  0x1c0800000230: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fd
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==67652==ABORTING
f951: internal compiler error: Abort trap: 6
gfcg: internal compiler error: Abort trap: 6 (program f951)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

r245382 is OK. Note that the test expects the -fimplicit-none option. Do you
see the valgrind error with this option?
>From gcc-bugs-return-554253-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 08:49:24 2017
Return-Path: <gcc-bugs-return-554253-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 84729 invoked by alias); 15 Feb 2017 08:49: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 84648 invoked by uid 48); 15 Feb 2017 08:49:09 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79524] [7 Regression] valgrind error for gcc/testsuite/gfortran.dg/fimplicit_none_2.f90
Date: Wed, 15 Feb 2017 08:49: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: 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: short_desc
Message-ID: <bug-79524-4-dklhBwPsHE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79524-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79524-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01785.txt.bz2
Content-length: 622

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79524

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|valgrind error for          |[7 Regression] valgrind
                   |gcc/testsuite/gfortran.dg/f |error for
                   |implicit_none_2.f90         |gcc/testsuite/gfortran.dg/f
                   |                            |implicit_none_2.f90

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Likely a [7 Regression].
>From gcc-bugs-return-554254-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 08:59:22 2017
Return-Path: <gcc-bugs-return-554254-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91041 invoked by alias); 15 Feb 2017 08:59: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 90875 invoked by uid 48); 15 Feb 2017 08:59:07 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/79522] std::regex_match always returns false
Date: Wed, 15 Feb 2017 08:59: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: 6.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: INVALID
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79522-4-cKfDuZ7KjH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79522-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79522-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01786.txt.bz2
Content-length: 765

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79522

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
You did get them swapped. Obviously the regex "abcdefg" can't match "def".

But even in your second example the behaviour is correct, std::regex_match
matches the entire string, not any part of it. "def" doesn't match "abcdefg" it
only matches part of it. Use std::regex_search for that.

(And "I don't know how C++ works" is still not a bug)
>From gcc-bugs-return-554255-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 09:00:00 2017
Return-Path: <gcc-bugs-return-554255-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 92154 invoked by alias); 15 Feb 2017 08:59:59 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 92090 invoked by uid 48); 15 Feb 2017 08:59:53 -0000
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79524] [7 Regression] valgrind error for gcc/testsuite/gfortran.dg/fimplicit_none_2.f90
Date: Wed, 15 Feb 2017 08: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dcb314 at hotmail 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-79524-4-CMKsLJBO8X@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79524-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79524-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01787.txt.bz2
Content-length: 603

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79524

--- Comment #3 from David Binderman <dcb314 at hotmail dot com> ---

> Note that the test expects the -fimplicit-none option. Do you
> see the valgrind error with this option?

No I didn't.

$ /home/dcb/gcc/results.245439/bin/gfortran -c -fimplicit-none
gfortran.dg/fimplicit_none_2.f90
gfortran.dg/fimplicit_none_2.f90:5:48:

    character(*), parameter :: z(2) = [character(n) :: 'x', 'y'] ! { dg-error
"Scalar INTEGER expression expected" }
                                                1
Error: Scalar INTEGER expression expected at (1)
$
>From gcc-bugs-return-554256-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 09:01:52 2017
Return-Path: <gcc-bugs-return-554256-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98143 invoked by alias); 15 Feb 2017 09:01: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 97967 invoked by uid 55); 15 Feb 2017 09:01:38 -0000
From: "timshen at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/78723] [variant] P0393r3: "Making variant greater equal again" is unimplemented
Date: Wed, 15 Feb 2017 09: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: timshen at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: timshen at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-78723-4-crcxNi4L55@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78723-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78723-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01788.txt.bz2
Content-length: 761

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78723

--- Comment #4 from Tim Shen <timshen at gcc dot gnu.org> ---
Author: timshen
Date: Wed Feb 15 09:01:06 2017
New Revision: 245475

URL: https://gcc.gnu.org/viewcvs?rev=245475&root=gcc&view=rev
Log:
        PR libstdc++/78723
        * include/std/variant (operator<(), operator>(), operator<=(),
        operator>=(), operator==(), operator!=()): Implement P0393R3.
        * testsuite/20_util/variant/compile.cc: Adjust tests.
        * testsuite/20_util/variant/run.cc: Adjust tests.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/std/variant
    trunk/libstdc++-v3/testsuite/20_util/variant/compile.cc
    trunk/libstdc++-v3/testsuite/20_util/variant/run.cc
>From gcc-bugs-return-554257-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 09:09:04 2017
Return-Path: <gcc-bugs-return-554257-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116368 invoked by alias); 15 Feb 2017 09:09: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 116185 invoked by uid 48); 15 Feb 2017 09:08:50 -0000
From: "timshen at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/78723] [variant] P0393r3: "Making variant greater equal again" is unimplemented
Date: Wed, 15 Feb 2017 09:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: timshen at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: timshen at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-78723-4-dBddrNVFK9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-78723-4@http.gcc.gnu.org/bugzilla/>
References: <bug-78723-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01789.txt.bz2
Content-length: 425

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78723

Tim Shen <timshen at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Tim Shen <timshen at gcc dot gnu.org> ---
Mark as fixed.
>From gcc-bugs-return-554258-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 09:16:16 2017
Return-Path: <gcc-bugs-return-554258-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24795 invoked by alias); 15 Feb 2017 09:16: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 24555 invoked by uid 48); 15 Feb 2017 09:16:01 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79514] [5/6/7 Regression] ICE in curr_insn_transform, at lra-constraints.c:3773
Date: Wed, 15 Feb 2017 09:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc short_desc everconfirmed
Message-ID: <bug-79514-4-n7uKlzTum3@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79514-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79514-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01790.txt.bz2
Content-length: 874

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79514

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-15
                 CC|                            |marxin at gcc dot gnu.org
            Summary|ICE in curr_insn_transform, |[5/6/7 Regression] ICE in
                   |at lra-constraints.c:3773   |curr_insn_transform, at
                   |                            |lra-constraints.c:3773
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with GCC 4.9.1.
>From gcc-bugs-return-554259-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 09:18:45 2017
Return-Path: <gcc-bugs-return-554259-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27161 invoked by alias); 15 Feb 2017 09:18:45 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 27011 invoked by uid 48); 15 Feb 2017 09:18:32 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79515] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in do_warn_double_promotion, at c-family/c-warn.c:1867
Date: Wed, 15 Feb 2017 09: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-79515-4-g2fTFj4UXB@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79515-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79515-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01791.txt.bz2
Content-length: 622

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79515

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-15
                 CC|                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started in 4.6.0, where -Wdouble-promotion was introduced.
>From gcc-bugs-return-554260-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 09:20:40 2017
Return-Path: <gcc-bugs-return-554260-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31432 invoked by alias); 15 Feb 2017 09: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 29000 invoked by uid 48); 15 Feb 2017 09:20:26 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79516] ICE: unspellable token PRAGMA_EOL
Date: Wed, 15 Feb 2017 09: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: 7.0.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-79516-4-whwCLSBiRh@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79516-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79516-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01792.txt.bz2
Content-length: 599

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79516

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-15
                 CC|                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started in between 4.5.2 and 4.5.3.
>From gcc-bugs-return-554261-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 09:22:52 2017
Return-Path: <gcc-bugs-return-554261-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16874 invoked by alias); 15 Feb 2017 09: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 3747 invoked by uid 48); 15 Feb 2017 09:22:38 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/79421] gnat.dg/trampoline3.adb fails on s390x
Date: Wed, 15 Feb 2017 09:22: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.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-79421-4-GjRNwyKBpJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79421-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79421-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01793.txt.bz2
Content-length: 332

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79421

--- Comment #6 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
(In reply to Dominik Vogt from comment #5)
> Patch available here:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79421

Wrong link.  Patch is here:
https://gcc.gnu.org/ml/gcc-patches/2017-02/msg00692.html
>From gcc-bugs-return-554263-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 09:23:06 2017
Return-Path: <gcc-bugs-return-554263-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23641 invoked by alias); 15 Feb 2017 09:23: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 17742 invoked by uid 48); 15 Feb 2017 09:22:53 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79519] [5/6/7 Regression] ICE deleting template friend function
Date: Wed, 15 Feb 2017 09:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-79519-4-FqCrPvsB3r@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79519-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79519-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01794.txt.bz2
Content-length: 563

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79519

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-15
                 CC|                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed.
>From gcc-bugs-return-554262-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 09:22:52 2017
Return-Path: <gcc-bugs-return-554262-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17375 invoked by alias); 15 Feb 2017 09: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 10229 invoked by uid 48); 15 Feb 2017 09:22:45 -0000
From: "reichelt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79525] New: [c++1y] ICE with auto as function parameter
Date: Wed, 15 Feb 2017 09:23:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: reichelt 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-79525-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01795.txt.bz2
Content-length: 2187

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79525

            Bug ID: 79525
           Summary: [c++1y] ICE with auto as function parameter
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: reichelt at gcc dot gnu.org
  Target Milestone: ---

The following invalid code snippet triggers an ICE since the introduction
of auto as function parameter (GCC 4.9.0):

===================================
template<typename> struct A {};

struct B : A<void(auto)>
{
  B();
};
===================================

bug.cc:5:5: internal compiler error: in poplevel, at cp/decl.c:568
   B();
     ^
0x567483 poplevel(int, int, int)
        ../../gcc/gcc/cp/decl.c:568
0x5a1138 end_template_decl()
        ../../gcc/gcc/cp/pt.c:3795
0x6464d1 finish_fully_implicit_template
        ../../gcc/gcc/cp/parser.c:32147
0x64f7e1 cp_parser_member_declaration
        ../../gcc/gcc/cp/parser.c:20550
0x65248c cp_parser_member_specification_opt
        ../../gcc/gcc/cp/parser.c:20093
0x65248c cp_parser_class_specifier_1
        ../../gcc/gcc/cp/parser.c:19321
0x654d40 cp_parser_class_specifier
        ../../gcc/gcc/cp/parser.c:19548
0x654d40 cp_parser_type_specifier
        ../../gcc/gcc/cp/parser.c:14337
0x66d200 cp_parser_decl_specifier_seq
        ../../gcc/gcc/cp/parser.c:11573
0x672da9 cp_parser_simple_declaration
        ../../gcc/gcc/cp/parser.c:11163
0x656f13 cp_parser_block_declaration
        ../../gcc/gcc/cp/parser.c:11112
0x67d542 cp_parser_declaration
        ../../gcc/gcc/cp/parser.c:11009
0x67c238 cp_parser_declaration_seq_opt
        ../../gcc/gcc/cp/parser.c:10895
0x67daea cp_parser_translation_unit
        ../../gcc/gcc/cp/parser.c:4030
0x67daea c_parse_file()
        ../../gcc/gcc/cp/parser.c:31660
0x79e293 c_common_parse_file()
        ../../gcc/gcc/c-family/c-opts.c:1061
Please submit a full bug report, [etc.]
>From gcc-bugs-return-554264-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 09:28:47 2017
Return-Path: <gcc-bugs-return-554264-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127347 invoked by alias); 15 Feb 2017 09: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 122938 invoked by uid 55); 15 Feb 2017 09:28:30 -0000
From: "krebbel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79241] error wen compiling -Os, OK with another optimizations
Date: Wed, 15 Feb 2017 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.3
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: krebbel at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-79241-4-w3PwtfrdUP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79241-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79241-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01796.txt.bz2
Content-length: 568

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79241

--- Comment #6 from Andreas Krebbel <krebbel at gcc dot gnu.org> ---
Author: krebbel
Date: Wed Feb 15 09:27:57 2017
New Revision: 245476

URL: https://gcc.gnu.org/viewcvs?rev=245476&root=gcc&view=rev
Log:
PR target/79241: S/390: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.

gcc/ChangeLog:

2017-02-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>

        PR target/79421
        * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/s390/s390.c
>From gcc-bugs-return-554265-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 09:28:47 2017
Return-Path: <gcc-bugs-return-554265-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127380 invoked by alias); 15 Feb 2017 09:28: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 122964 invoked by uid 55); 15 Feb 2017 09:28:30 -0000
From: "krebbel at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/79421] gnat.dg/trampoline3.adb fails on s390x
Date: Wed, 15 Feb 2017 09:28: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: 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: 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-79421-4-Qa7y388Mnj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79421-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79421-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01797.txt.bz2
Content-length: 568

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79421

--- Comment #7 from Andreas Krebbel <krebbel at gcc dot gnu.org> ---
Author: krebbel
Date: Wed Feb 15 09:27:57 2017
New Revision: 245476

URL: https://gcc.gnu.org/viewcvs?rev=245476&root=gcc&view=rev
Log:
PR target/79241: S/390: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.

gcc/ChangeLog:

2017-02-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>

        PR target/79421
        * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/s390/s390.c
>From gcc-bugs-return-554266-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 09:29:50 2017
Return-Path: <gcc-bugs-return-554266-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 130504 invoked by alias); 15 Feb 2017 09:29: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 130348 invoked by uid 48); 15 Feb 2017 09:29:37 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79515] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in do_warn_double_promotion, at c-family/c-warn.c:1867
Date: Wed, 15 Feb 2017 09:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords:
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 cc assigned_to
Message-ID: <bug-79515-4-z0m5qLtTxZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79515-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79515-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01798.txt.bz2
Content-length: 536

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79515

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |mpolacek at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |mpolacek at gcc dot gnu.org

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Mine.
>From gcc-bugs-return-554267-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 09:41:39 2017
Return-Path: <gcc-bugs-return-554267-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37139 invoked by alias); 15 Feb 2017 09: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 36977 invoked by uid 48); 15 Feb 2017 09:41:22 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79523] [7 Regression] valgrind error for gcc/testsuite/gfortran.dg/dtio_13.f90
Date: Wed, 15 Feb 2017 09:41: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: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc target_milestone short_desc everconfirmed
Message-ID: <bug-79523-4-Gtm7Ec0Gwg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79523-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79523-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01799.txt.bz2
Content-length: 982

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79523

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-15
                 CC|                            |marxin at gcc dot gnu.org,
                   |                            |pault at gcc dot gnu.org
   Target Milestone|---                         |7.0
            Summary|valgrind error for          |[7 Regression] valgrind
                   |gcc/testsuite/gfortran.dg/d |error for
                   |tio_13.f90                  |gcc/testsuite/gfortran.dg/d
                   |                            |tio_13.f90
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r240493.
>From gcc-bugs-return-554268-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 09:49:41 2017
Return-Path: <gcc-bugs-return-554268-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75757 invoked by alias); 15 Feb 2017 09:49: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 75471 invoked by uid 48); 15 Feb 2017 09:49:25 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79524] [5/6/7 Regression] valgrind error for gcc/testsuite/gfortran.dg/fimplicit_none_2.f90
Date: Wed, 15 Feb 2017 09:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc cf_known_to_work short_desc cf_known_to_fail
Message-ID: <bug-79524-4-H1rc6HGnu2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79524-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79524-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01800.txt.bz2
Content-length: 981

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79524

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargl at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org
      Known to work|                            |5.1.0
            Summary|[7 Regression] valgrind     |[5/6/7 Regression] valgrind
                   |error for                   |error for
                   |gcc/testsuite/gfortran.dg/f |gcc/testsuite/gfortran.dg/f
                   |implicit_none_2.f90         |implicit_none_2.f90
      Known to fail|                            |5.4.0, 6.3.0, 7.0

--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r222342. It was probably somehow backported to 5 branch because
5.1.0 does not suffer from the leak.
>From gcc-bugs-return-554269-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 09:52:21 2017
Return-Path: <gcc-bugs-return-554269-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80142 invoked by alias); 15 Feb 2017 09: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 79835 invoked by uid 48); 15 Feb 2017 09:52:07 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79512] [6/7 Regression] ICE: Segfault in gimple_build_call_1, at gimple.c:218
Date: Wed, 15 Feb 2017 09: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: 7.0.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vries at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-79512-4-YPsRMkBbSF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79512-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79512-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01801.txt.bz2
Content-length: 1324

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79512

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 40743
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40743&action=edit
Demonstrator patch. Uses flag_openmp_simd in DEF_GOMP_BUILTIN

This patch roughly restores the situation from before r224745.

With the patch, and after renaming the test function to main, we get:
...
$ gcc test.c -fopenmp-simd 
/tmp/ccPdaFhw.o: In function `main':
test.c:(.text+0x4e): undefined reference to `GOMP_target_ext'
collect2: error: ld returned 1 exit status
...

Here ( https://gcc.gnu.org/ml/gcc-patches/2013-10/msg02275.html ) I read about
fopenmp-simd:
...
This patch add the new option "-fopenmp-simd", which allows to use OpenMP 4.0's
"simd" pragmas without enabling OpenMP's threading or target features - and,
thus, it also doesn't require linking of libgomp.
...

The fact that libgomp is required by the generated code, seems to mean that the
test-case is not a valid fopenmp-simd testcase. This is confirmed by the fact
that "#pragma omp target teams" is not listed as supported pragma in the
gcc-patches message above.

I think the correct handling in this case would be to ignore the pragmas, which
currently is not done, and that's probably the root cause of the ICE.
>From gcc-bugs-return-554270-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 09:52:31 2017
Return-Path: <gcc-bugs-return-554270-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 81012 invoked by alias); 15 Feb 2017 09:52: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 80099 invoked by uid 48); 15 Feb 2017 09:52:18 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79525] [c++1y] ICE with auto as function parameter
Date: Wed, 15 Feb 2017 09: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: 7.0
X-Bugzilla-Keywords: ice-on-invalid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-79525-4-MYMusXM5Aj@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79525-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79525-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01802.txt.bz2
Content-length: 563

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79525

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-15
                 CC|                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed.
>From gcc-bugs-return-554271-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 09:58:20 2017
Return-Path: <gcc-bugs-return-554271-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 100052 invoked by alias); 15 Feb 2017 09:58: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 99429 invoked by uid 48); 15 Feb 2017 09:58:07 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/68749] FAIL: gcc.dg/ifcvt-4.c scan-rtl-dump ce1 "2 true changes made"
Date: Wed, 15 Feb 2017 09:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-68749-4-ex9YdMCJRw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68749-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68749-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01803.txt.bz2
Content-length: 441

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68749

Dominik Vogt <vogt at linux dot vnet.ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vogt at linux dot vnet.ibm.com

--- Comment #12 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
This also fails on s390x with -m31 and s390.
>From gcc-bugs-return-554272-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 10:03:08 2017
Return-Path: <gcc-bugs-return-554272-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 123971 invoked by alias); 15 Feb 2017 10:03: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 123626 invoked by uid 48); 15 Feb 2017 10:02:54 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/79421] gnat.dg/trampoline3.adb fails on s390x
Date: Wed, 15 Feb 2017 10:03: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79421-4-DD4mMoNyf0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79421-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79421-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01804.txt.bz2
Content-length: 433

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79421

Dominik Vogt <vogt at linux dot vnet.ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #8 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
Fixed.
>From gcc-bugs-return-554273-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 10:11:51 2017
Return-Path: <gcc-bugs-return-554273-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36802 invoked by alias); 15 Feb 2017 10:11: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 36141 invoked by uid 48); 15 Feb 2017 10:11:37 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79526] New: loop-9.c fails on s390 + s390x
Date: Wed, 15 Feb 2017 10:11: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: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-79526-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01805.txt.bz2
Content-length: 568

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79526

            Bug ID: 79526
           Summary: loop-9.c fails on s390 + s390x
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vogt at linux dot vnet.ibm.com
  Target Milestone: ---

Some discussion on that issue is here.
https://gcc.gnu.org/ml/gcc/2015-12/msg00064.html

This should be fixed in the backend at some point in the future.
>From gcc-bugs-return-554274-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 10:29:56 2017
Return-Path: <gcc-bugs-return-554274-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 60370 invoked by alias); 15 Feb 2017 10:29: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 60177 invoked by uid 48); 15 Feb 2017 10:29:42 -0000
From: "stefan at reservoir dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79527] New: non-call-exceptions optimize attribute not propagated during inlining
Date: Wed, 15 Feb 2017 10:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: stefan at reservoir 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-79527-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01806.txt.bz2
Content-length: 5573

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79527

            Bug ID: 79527
           Summary: non-call-exceptions optimize attribute not propagated
                    during inlining
           Product: gcc
           Version: 5.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: stefan at reservoir dot com
  Target Milestone: ---

Created attachment 40744
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40744&action=edit
Output of -fdump-tree-einline-eh without -fnon-call-exceptions command line
flag

The following program shows that the 'optimize (( "non-call-exceptions" ))'
attribute of "inner" is not propagated when this function is inlined into
"outer" and hence no exception region and landing pad is generated.

When "inner" is declared "inline" but not "always_inline", it is not inlined
and the resulting code is ok.

It also works when "-fnon-call-exceptions" is specified on the command line.

It seems safe to allow this since at the time of inlining the exception landing
pads have been generated; and they are correctly copied when the global flag is
set.

Here is the preprocessed program:

# 1 "inline.cpp"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 1 "<command-line>" 2
# 1 "inline.cpp"
[[noreturn]] void my_exception_handler (void) noexcept;

inline __attribute__ (( __always_inline__ )) void
inner (int* x, int y)
__attribute__ (( __optimize__ ( "non-call-exceptions" ) ));

inline __attribute__ (( __always_inline__ )) void
inner (int* x, int y) {
  try {
    *x = y;
  }
  catch (...) {
    my_exception_handler ();
  }
}

extern void
outer (int* x, int y) {
  inner (x, y);
}

Compiled using:

g++ -v -save-temps -Wall -Wextra -std=gnu++14 -fdump-tree-einline-eh
-fnon-call-exceptions -O -S inline.ii
Using built-in specs.
COLLECT_GCC=g++
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
5.4.0-6ubuntu1~16.04.4' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs
--enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-5 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib
--disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-i386/jre --enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-i386
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-i386
--with-arch-directory=i386 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --enable-targets=all --enable-multiarch --disable-werror
--with-arch-32=i686 --with-multilib-list=m32,m64,mx32 --enable-multilib
--with-tune=generic --enable-checking=release --build=i686-linux-gnu
--host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4)
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-Wall' '-Wextra' '-std=gnu++14'
'-fdump-tree-einline-eh' '-fnon-call-exceptions' '-O' '-S' '-shared-libgcc'
'-mtune=generic' '-march=i686'
 /usr/lib/gcc/i686-linux-gnu/5/cc1plus -fpreprocessed inline.ii -quiet
-dumpbase inline.ii -mtune=generic -march=i686 -auxbase inline -O -Wall -Wextra
-std=gnu++14 -version -fdump-tree-einline-eh -fnon-call-exceptions -o inline.s
-fstack-protector-strong -Wformat-security
GNU C++14 (Ubuntu 5.4.0-6ubuntu1~16.04.4) version 5.4.0 20160609
(i686-linux-gnu)
        compiled by GNU C version 5.4.0 20160609, GMP version 6.1.0, MPFR
version 3.1.4, MPC version 1.0.3
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++14 (Ubuntu 5.4.0-6ubuntu1~16.04.4) version 5.4.0 20160609
(i686-linux-gnu)
        compiled by GNU C version 5.4.0 20160609, GMP version 6.1.0, MPFR
version 3.1.4, MPC version 1.0.3
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 427d6507e583781294a191f5962a1495
COMPILER_PATH=/usr/lib/gcc/i686-linux-gnu/5/:/usr/lib/gcc/i686-linux-gnu/5/:/usr/lib/gcc/i686-linux-gnu/:/usr/lib/gcc/i686-linux-gnu/5/:/usr/lib/gcc/i686-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/i686-linux-gnu/5/:/usr/lib/gcc/i686-linux-gnu/5/../../../i386-linux-gnu/:/usr/lib/gcc/i686-linux-gnu/5/../../../../lib/:/lib/i386-linux-gnu/:/lib/../lib/:/usr/lib/i386-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/i686-linux-gnu/5/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-Wall' '-Wextra' '-std=gnu++14'
'-fdump-tree-einline-eh' '-fnon-call-exceptions' '-O' '-S' '-shared-libgcc'
'-mtune=generic' '-march=i686'

Here is a possible solution to this problem:

diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index 70d0102..3cb7f2e 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -4633,6 +4633,8 @@ expand_call_inline (basic_block bb, gimple stmt,
copy_body_data *id)

   /* Add local vars in this inlined callee to caller.  */
   add_local_variables (id->src_cfun, cfun, id);
+  cfun->can_throw_non_call_exceptions |=
+    id->src_cfun->can_throw_non_call_exceptions;

   if (dump_file && (dump_flags & TDF_DETAILS))
     {
>From gcc-bugs-return-554275-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 10:30:46 2017
Return-Path: <gcc-bugs-return-554275-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 62172 invoked by alias); 15 Feb 2017 10: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 61922 invoked by uid 48); 15 Feb 2017 10:30:28 -0000
From: "stefan at reservoir dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79527] non-call-exceptions optimize attribute not propagated during inlining
Date: Wed, 15 Feb 2017 10:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: stefan at reservoir 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-79527-4-5gMtqpbrhb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79527-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79527-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01807.txt.bz2
Content-length: 311

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79527

--- Comment #1 from Stefan M Freudenberger <stefan at reservoir dot com> ---
Created attachment 40745
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40745&action=edit
Output of -fdump-tree-einline-eh with -fnon-call-exceptions command line flag
>From gcc-bugs-return-554276-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 10:32:54 2017
Return-Path: <gcc-bugs-return-554276-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70297 invoked by alias); 15 Feb 2017 10:32: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 70155 invoked by uid 48); 15 Feb 2017 10:32:42 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Wed, 15 Feb 2017 10:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.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-79341-4-6ykP4G13LQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01808.txt.bz2
Content-length: 303

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79341

--- Comment #55 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
(In reply to Dominik Vogt from comment #53)
> no fails with -m31; with -m64 null-deref-1.c fails with c and
> c++, and memcmp-1.c with c++ only.

memcmp-1.c is not reproducible.
>From gcc-bugs-return-554277-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 10:33:43 2017
Return-Path: <gcc-bugs-return-554277-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 72066 invoked by alias); 15 Feb 2017 10:33: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 71655 invoked by uid 48); 15 Feb 2017 10:33:30 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79527] non-call-exceptions optimize attribute not propagated during inlining
Date: Wed, 15 Feb 2017 10:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 5.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-79527-4-VAXXdoTzFm@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79527-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79527-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01809.txt.bz2
Content-length: 558

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79527

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-15
                 CC|                            |hubicka at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1
>From gcc-bugs-return-554278-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 10:35:19 2017
Return-Path: <gcc-bugs-return-554278-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 74474 invoked by alias); 15 Feb 2017 10:35: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 74201 invoked by uid 48); 15 Feb 2017 10:35:05 -0000
From: "tulipawn at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/77468] [7 Regression] C-ray regression on Aarch64
Date: Wed, 15 Feb 2017 10:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tulipawn at gmail 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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-77468-4-mswgMGt3V1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77468-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77468-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01810.txt.bz2
Content-length: 215

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77468

--- Comment #26 from PeteVine <tulipawn at gmail dot com> ---
OK, maybe this SoC is kinky, I give up:

http://openbenchmarking.org/result/1702154-RI-CRAYFAST326
>From gcc-bugs-return-554279-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 10:45:38 2017
Return-Path: <gcc-bugs-return-554279-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 122395 invoked by alias); 15 Feb 2017 10:45: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 122103 invoked by uid 48); 15 Feb 2017 10:45:14 -0000
From: "prathamesh3492 at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79478] possible gimple error with gcc.dg/gimplefe-16.c
Date: Wed, 15 Feb 2017 10: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: prathamesh3492 at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-79478-4-y98EkttIjO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79478-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79478-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01811.txt.bz2
Content-length: 409

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79478

prathamesh3492 at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from prathamesh3492 at gcc dot gnu.org ---
Fixed.
>From gcc-bugs-return-554280-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 10:46:57 2017
Return-Path: <gcc-bugs-return-554280-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 124604 invoked by alias); 15 Feb 2017 10: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 124514 invoked by uid 48); 15 Feb 2017 10:46:51 -0000
From: "jgreenhalgh at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/68749] FAIL: gcc.dg/ifcvt-4.c scan-rtl-dump ce1 "2 true changes made"
Date: Wed, 15 Feb 2017 10: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: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jgreenhalgh at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-68749-4-nfeLVW3V70@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68749-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68749-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01812.txt.bz2
Content-length: 579

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68749

--- Comment #13 from James Greenhalgh <jgreenhalgh at gcc dot gnu.org> ---
(In reply to Dominik Vogt from comment #12)
> This also fails on s390x with -m31 and s390.

I'd just add those targets to the dg-skip-if if they don't have support for
conditional select instructions.

I don't know the s390 backend, but if TARGET_Z196 is not true for s390/s390x
with -m31, then you don't have conditional move patterns - and the test will
fail. Just add s390 in with the other targets that don't generate conditional
instructions.
>From gcc-bugs-return-554281-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 11:25:42 2017
Return-Path: <gcc-bugs-return-554281-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25943 invoked by alias); 15 Feb 2017 11:25: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 25804 invoked by uid 48); 15 Feb 2017 11:25:29 -0000
From: "jgreenhalgh at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/77468] [7 Regression] C-ray regression on Aarch64
Date: Wed, 15 Feb 2017 11: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: 7.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jgreenhalgh 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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-77468-4-mOlHbneAM8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77468-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77468-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01813.txt.bz2
Content-length: 1516

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77468

--- Comment #27 from James Greenhalgh <jgreenhalgh at gcc dot gnu.org> ---
(In reply to PeteVine from comment #25)
> The original issue never mentioned -Ofast or -ffast-math and I see no
> difference at -Ofast, indeed:
> 
> http://openbenchmarking.org/result/1702153-RI-CRAYFAST424
> 
> @jgreenhalgh Can you confirm there's no regression @ -O3 as well? Thanks.

I'm getting confused here by the number of bugs trying to multiplex on the same
report. Aldy's reproducer instructions are with -ffast-math, and that's what
I've used in my analysis. It seems you are more interested in a run without
-ffast-math, which is presumably a separate issue.

There is a useful lesson here for bug reporting. Upload a preprocessed file,
with an explicit set of flags, and the explicit configuration of the compiler
you are using. Having a solid description of the input you are concerned about
is more useful to me than annotated output - I can generate that myself! Don't
assume that because you have easy access to a file on the internet I also have
easy access to it, the best way to get code in front of me is with a
preprocessed file.

I'll take a look at what causes the performance difference between
-mcpu=cortex-a53 and -mcpu=thunderx. I'm now using the flags:

  -O3 -mcpu=cortex-a53 -lpthread -lm -fomit-frame-pointer -fipa-pta
-march=armv8-a+crc

and

  -O3 -mcpu=thunderx -lpthread -lm -fomit-frame-pointer -fipa-pta
-march=armv8-a+crc
>From gcc-bugs-return-554282-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 11:31:29 2017
Return-Path: <gcc-bugs-return-554282-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71036 invoked by alias); 15 Feb 2017 11:31: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 70905 invoked by uid 48); 15 Feb 2017 11:31:22 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/68749] FAIL: gcc.dg/ifcvt-4.c scan-rtl-dump ce1 "2 true changes made"
Date: Wed, 15 Feb 2017 11:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-68749-4-Q7j8KMQWh1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-68749-4@http.gcc.gnu.org/bugzilla/>
References: <bug-68749-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01814.txt.bz2
Content-length: 253

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68749

--- Comment #14 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
Thanks.  Patch is here:
https://gcc.gnu.org/ml/gcc-patches/2017-02/msg00975.html
With that, the test is fine on s390 and s390x.
>From gcc-bugs-return-554283-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 11:50:58 2017
Return-Path: <gcc-bugs-return-554283-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 35465 invoked by alias); 15 Feb 2017 11:50: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 35287 invoked by uid 48); 15 Feb 2017 11:50:45 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79512] [6/7 Regression] ICE: Segfault in gimple_build_call_1, at gimple.c:218
Date: Wed, 15 Feb 2017 11:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.0.1
X-Bugzilla-Keywords: ice-on-valid-code, 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: 6.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority target_milestone
Message-ID: <bug-79512-4-EBwzoZs6nf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79512-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79512-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01815.txt.bz2
Content-length: 345

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79512

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
   Target Milestone|7.0                         |6.4
>From gcc-bugs-return-554284-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 11:51:08 2017
Return-Path: <gcc-bugs-return-554284-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 36268 invoked by alias); 15 Feb 2017 11:51: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 35419 invoked by uid 48); 15 Feb 2017 11:50:56 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79514] [5/6/7 Regression] ICE in curr_insn_transform, at lra-constraints.c:3773
Date: Wed, 15 Feb 2017 11: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: 7.0.1
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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority target_milestone
Message-ID: <bug-79514-4-tAangM0NZO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79514-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79514-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01816.txt.bz2
Content-length: 345

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79514

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
   Target Milestone|---                         |5.5
>From gcc-bugs-return-554285-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 11:53:50 2017
Return-Path: <gcc-bugs-return-554285-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44998 invoked by alias); 15 Feb 2017 11:53: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 43529 invoked by uid 48); 15 Feb 2017 11:53:37 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79518] __builtin_assume_aligned should mark argument as aligned
Date: Wed, 15 Feb 2017 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: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: rguenth 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 bug_severity
Message-ID: <bug-79518-4-px8DW5DVXw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79518-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79518-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01817.txt.bz2
Content-length: 637

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79518

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WONTFIX
           Severity|normal                      |enhancement

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
The builtin was made so any rvalue can be assigned an alignment.  It's not
clear what other compilers do to __assume_aligned (ptr + 3, 16) for example.
>From gcc-bugs-return-554286-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 11:54:06 2017
Return-Path: <gcc-bugs-return-554286-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 45921 invoked by alias); 15 Feb 2017 11:54: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 44973 invoked by uid 48); 15 Feb 2017 11:53:49 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/79519] [5/6/7 Regression] ICE deleting template friend function
Date: Wed, 15 Feb 2017 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: 7.0
X-Bugzilla-Keywords: ice-on-invalid-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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority target_milestone
Message-ID: <bug-79519-4-7BNAnLpVRA@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79519-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79519-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01818.txt.bz2
Content-length: 345

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79519

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
   Target Milestone|---                         |5.5
>From gcc-bugs-return-554288-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 11:55:20 2017
Return-Path: <gcc-bugs-return-554288-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52552 invoked by alias); 15 Feb 2017 11:55: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 47763 invoked by uid 48); 15 Feb 2017 11:55:07 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79524] [5/6/7 Regression] valgrind error for gcc/testsuite/gfortran.dg/fimplicit_none_2.f90
Date: Wed, 15 Feb 2017 11:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.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: 5.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority target_milestone
Message-ID: <bug-79524-4-gzvfLsuyKI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79524-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79524-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01820.txt.bz2
Content-length: 345

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79524

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
   Target Milestone|---                         |5.5
>From gcc-bugs-return-554287-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 11:55:04 2017
Return-Path: <gcc-bugs-return-554287-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47473 invoked by alias); 15 Feb 2017 11:55: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 47030 invoked by uid 48); 15 Feb 2017 11:54:55 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/79523] [7 Regression] valgrind error for gcc/testsuite/gfortran.dg/dtio_13.f90
Date: Wed, 15 Feb 2017 11:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 7.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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority
Message-ID: <bug-79523-4-Fh9pBX3Kse@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79523-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79523-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01819.txt.bz2
Content-length: 292

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79523

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
>From gcc-bugs-return-554289-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 12:19:06 2017
Return-Path: <gcc-bugs-return-554289-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23002 invoked by alias); 15 Feb 2017 12:19: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 22850 invoked by uid 48); 15 Feb 2017 12:18:53 -0000
From: "tulipawn at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/77468] [7 Regression] C-ray regression on Aarch64
Date: Wed, 15 Feb 2017 12: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: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tulipawn at gmail 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: 7.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-77468-4-7M79cluzVU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77468-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77468-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01821.txt.bz2
Content-length: 407

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77468

--- Comment #28 from PeteVine <tulipawn at gmail dot com> ---
Lesson learnt, thanks! 

If you look at the last -Ofast result (or 1702153-RI-CRAYFAST467), the suspect
difference is there (the compiler had been rebuilt from scratch with all the
patches), and I even managed to set a record performance with -mtune=thunderx.
I'm using an S905 SoC.
>From gcc-bugs-return-554290-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 12:20:45 2017
Return-Path: <gcc-bugs-return-554290-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26196 invoked by alias); 15 Feb 2017 12:20: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 25308 invoked by uid 55); 15 Feb 2017 12:20:30 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/79487] Invalid _Decimal32 comparison on s390x
Date: Wed, 15 Feb 2017 12: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: 7.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:
Message-ID: <bug-79487-4-z8iVgU6fba@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79487-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01822.txt.bz2
Content-length: 705

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79487

--- Comment #25 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Feb 15 12:19:53 2017
New Revision: 245477

URL: https://gcc.gnu.org/viewcvs?rev=245477&root=gcc&view=rev
Log:
        PR target/79487
        * real.c (real_from_integer): Call real_convert even for decimal.

        * gcc.dg/dfp/pr79487.c: New test.
        * c-c++-common/ubsan/float-cast-overflow-8.c (TEST): Revert
        2017-02-13 change.

Added:
    trunk/gcc/testsuite/gcc.dg/dfp/pr79487.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/real.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/c-c++-common/ubsan/float-cast-overflow-8.c
>From gcc-bugs-return-554291-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 12:37:50 2017
Return-Path: <gcc-bugs-return-554291-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32394 invoked by alias); 15 Feb 2017 12:37: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 31905 invoked by uid 48); 15 Feb 2017 12:37:36 -0000
From: "thopre01 at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/79273] FAIL: c-c++-common/Wduplicated-branches-13.c -std=gnu++98 (test for excess errors)
Date: Wed, 15 Feb 2017 12:37: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: thopre01 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-79273-4-BgaiqaHLDp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79273-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79273-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01823.txt.bz2
Content-length: 590

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79273

--- Comment #4 from Thomas Preud'homme <thopre01 at gcc dot gnu.org> ---
(In reply to Martin Sebor from comment #2)
> I can't reproduce these failures with an hppa2.0w-hp-hpux11.11
> cross-compiler and I don't see them in the most recent test results for the
> target (https://gcc.gnu.org/ml/gcc-testresults/2017-02/msg01446.html), or on
> arm-none-linux-gnueabi
> (https://gcc.gnu.org/ml/gcc-testresults/2017-02/msg01227.html).  Is this
> still an issue or has the problem been fixed?

It is now passing for arm-none-eabi as well.
>From gcc-bugs-return-554292-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 12:37:51 2017
Return-Path: <gcc-bugs-return-554292-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32402 invoked by alias); 15 Feb 2017 12:37: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 32310 invoked by uid 48); 15 Feb 2017 12:37:45 -0000
From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/79341] Many Asan tests fail on s390
Date: Wed, 15 Feb 2017 12:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vogt at linux dot vnet.ibm.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-79341-4-7Du3kX0A49@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79341-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01824.txt.bz2
Content-length: 369

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79341

--- Comment #56 from Dominik Vogt <vogt at linux dot vnet.ibm.com> ---
null-deref-1.c fails because the test expects this message in source line 10
but gets it for line 11:

    #0 0x1000853 in NullDeref .../c-c++-common/asan/null-deref-1.c:11
                                                                  ^^^^
>From gcc-bugs-return-554293-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 12:38:09 2017
Return-Path: <gcc-bugs-return-554293-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33773 invoked by alias); 15 Feb 2017 12:38:09 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 32870 invoked by uid 48); 15 Feb 2017 12:37:55 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79528] New: DFP double rounding bug
Date: Wed, 15 Feb 2017 12:38: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.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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-79528-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01825.txt.bz2
Content-length: 1828

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79528

            Bug ID: 79528
           Summary: DFP double rounding bug
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

r245477 can IMHO double round in certain cases, e.g. I believe
int
main ()
{
  // 99999994999999999999999999999999999
  _Decimal32 a = (((__int128_t) 0x134261629f6653ULL) << 64) |
0x0c750eb777ffffffULL;
  _Decimal32 b = 99999995LL;
  _Decimal32 c = 99999995000000LL;
  // 99999994499999999999999999999999999
  _Decimal32 d = (((__int128_t) 0x1342616101cf34ULL) << 64) |
0xbc8cce9903ffffffULL;
  _Decimal32 e = 99999994LL;
  if (a != 9.999999E+34DF /* rather than 1.000000E+35DF */
      || b != 1.000000E+8DF
      || c != 1.000000E+14DF
      || d != 9.999999E+34DF
      || e != 9.999999E+7DF)
    __builtin_abort ();
  return 0;
}
should pass, but it fails (but it failed already before r245477).  I don't know
decNumber library enough to fix this (and, I think the double rounding for
integer to _Decimal{32,64} conversions can only happen for 128-bit and larger
types, and the libraries don't really support such conversions anyway).

It seems besides conversion from integer to decimal{32,64} also all the
arithmetics e.g. in real_arithmetics are performed in _Decimal128 precision and
rounded according to that and then rounded again to the corresponding
_Decimal{32,64} type.  As the precision in decimal digits of _Decimal64 is just
16 and _Decimal128 is 34 decimal digits, perhaps it is just fine for +/-, but
not sure about multiplication or FMA (if we ever allow that for decimal float).
>From gcc-bugs-return-554294-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 12:40:42 2017
Return-Path: <gcc-bugs-return-554294-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37404 invoked by alias); 15 Feb 2017 12:40: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 36796 invoked by uid 48); 15 Feb 2017 12:40:28 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/79528] DFP double rounding bug
Date: Wed, 15 Feb 2017 12: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: 7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-79528-4-HSAx415BQI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-79528-4@http.gcc.gnu.org/bugzilla/>
References: <bug-79528-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01826.txt.bz2
Content-length: 640

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79528

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dje at gcc dot gnu.org,
                   |                            |vogt at linux dot vnet.ibm.com

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Note I'm not 100% sure about this, when compiled with ICC it aborts for both
values of a, and clang doesn't support decimal float at all, so I couldn't
verify with another compiler.
>From gcc-bugs-return-554295-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 12:40:43 2017
Return-Path: <gcc-bugs-return-554295-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 37483 invoked by alias); 15 Feb 2017 12: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 36821 invoked by uid 48); 15 Feb 2017 12:40:29 -0000
From: "mail@daniel-boehmer.net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/77369] incorrect noexcept specification deduction
Date: Wed, 15 Feb 2017 12: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: 6.1.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mail@daniel-boehmer.net
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-77369-4-Rpb0b4Dq1A@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-77369-4@http.gcc.gnu.org/bugzilla/>
References: <bug-77369-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01827.txt.bz2
Content-length: 859

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77369

Daniel Böhmer <mail@daniel-boehmer.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mail@daniel-boehmer.net

--- Comment #2 from Daniel Böhmer <mail@daniel-boehmer.net> ---
I can confirm this issue for GCC 6.2.0 and std=c++17


Considering the following example, this issue is problematic, where
std::terminate is called for func2(), instead of passing the exception to the
caller.


template<typename F> void caller(F&& f)
{
   std::forward<F>(f)();
}

void func1() noexcept
{
}

void func2()
{
   throw std::exception();
}

int main()
{
   caller(func1);

   try
   {
      caller(func2);
   }
   catch(...)
   {
   }   
   return 0;
}
>From gcc-bugs-return-554296-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 12:45:32 2017
Return-Path: <gcc-bugs-return-554296-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 47318 invoked by alias); 15 Feb 2017 12:45: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 46928 invoked by uid 48); 15 Feb 2017 12:45:03 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/79529] New: [7 Regression] ICE in is_maybe_undefined (tree-ssa-loop-unswitch.c:162)
Date: Wed, 15 Feb 2017 12: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: unknown
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone
Message-ID: <bug-79529-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2017-02/txt/msg01828.txt.bz2
Content-length: 2143

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79529

            Bug ID: 79529
           Summary: [7 Regression] ICE in is_maybe_undefined
                    (tree-ssa-loop-unswitch.c:162)
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: aldyh at gcc dot gnu.org, jamborm at gcc dot gnu.org
  Target Milestone: ---

Building Firefox with -flto and -O3, one can get:

/home/marxin/Programming/gecko-dev/intl/icu/source/i18n/dtptngen.cpp:1379:1:
internal compiler error: Segmentation fault
 DateTimePatternGenerator::getBestAppending(int32_t missingFields, int32_t
flags, UDateTimePatternMatchOptions options) {
 ^
0xcaea52 crash_signal
        ../../gcc/toplev.c:333
0x888c28 dominated_by_p(cdi_direction, basic_block_def const*, basic_block_def
const*)
        ../../gcc/dominance.c:1117
0xe465f0 is_maybe_undefined
        ../../gcc/tree-ssa-loop-unswitch.c:162
0xe46863 tree_may_unswitch_on
        ../../gcc/tree-ssa-loop-unswitch.c:222
0xe46beb tree_unswitch_single_loop
        ../../gcc/tree-ssa-loop-unswitch.c:322
0xe46379 tree_ssa_unswitch_loops()
        ../../gcc/tree-ssa-loop-unswitch.c:102
0xe48337 execute
        ../../gcc/tree-ssa-loop-unswitch.c:935

Problem is that:

if (dominated_by_p (CDI_DOMINATORS, loop->header, gimple_bb (def)))

where def is a gimple nop, which has gimple_bb (def) == NULL.

I guess following patch should fix that:

diff --git a/gcc/tree-ssa-loop-unswitch.c b/gcc/tree-ssa-loop-unswitch.c
index 4ef3a6bf80a..5716c99e58c 100644
--- a/gcc/tree-ssa-loop-unswitch.c
+++ b/gcc/tree-ssa-loop-unswitch.c
@@ -141,6 +141,9 @@ is_maybe_undefined (const tree name, gimple *stmt, struct
loop *loop)

       gimple *def = SSA_NAME_DEF_STMT (t);

+      if (gimple_nop_p (def))
+       return true;
+
       /* Check that all the PHI args are fully defined.  */
       if (gphi *phi = dyn_cast <gphi *> (def))
        {
>From gcc-bugs-return-554297-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 15 13:01:40 2017
Return-Path: <gcc-bugs-return-554297-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 86524 invoked by alias); 15 Feb 2017 13: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 85760 invoked by uid 89); 15 Feb 2017 13:01:39 -0000
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=esp, popping, culprit, contacting
X-HELO: mail-vk0-f50.google.com
Received: from mail-vk0-f50.google.com (HELO mail-vk0-f50.google.com) (209.85.213.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 15 Feb 2017 13:01:37 +0000
Received: by mail-vk0-f50.google.com with SMTP id k127so98169350vke.0        for <gcc-bugs@gcc.gnu.org>; Wed, 15 Feb 2017 05:01:37 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d\x1e100.net; s 161025;        h=x-gm-message-state:mime-version:from:date:message-id:subject:to;        bh=g8IlrhDiCsFxUoWC0Iv5KS8wLjlpbBGe0cPWRwKjKuU=;        b=t5CQYpHHxvWw9HS2GBJPs6Wwzcs1elUgJGL6FK6lem8AYIbNUvHSF+GDTP5/fhnorZ         QGHxixoRo627d/RcQ+YhoCy0QdngA0z0aJvuR5/T0EhSQW20h4Rl1jI+BPBJvc9qHbh+         l97d6/C9vUFfC3lM4IncjV5nbfZyEjIEDCnaBKmWu5JCDG2UuQ8RgTLCbXpeRjWjeAqA         uTLE3DPC9+XgWbReZidg1KEy1EKkckp2cZWN66HqZtJGpuBtMntOyYoh0olqTKmPhnFF         vjC6J5JSROPwAsbUPpI7LqOIf4vTv/baUL/mxWNN6DTgdzLZdLWR3QgF73JnPRe6hCeu         JetA=X-Gm-Message-State: AMke39nkckxEQvOdzkwHjgK1VEw7A6szNOPiTtJZVmDBceaHikj/LD4FSUwq3fnVDuMOqL/5oT46+G0eUH1NCA=X-Received: by 10.31.221.4 with SMTP id u4mr14315222vkg.67.1487163696216; Wed, 15 Feb 2017 05:01:36 -0800 (PST)
MIME-Version: 1.0
Received: by 10.176.0.19 with HTTP; Wed, 15 Feb 2017 05:01:35 -0800 (PST)
From: Katsunori Kumatani <katsunori.kumatani@gmail.com>
Date: Wed, 15 Feb 2017 13:01:00 -0000
Message-ID: <CAH0Jp5Ft=tt=zwKMykxg2vOdFO5W82wTe50jkDsWwbzVAm6X7g@mail.gmail.com>
Subject: [Regression] Wrong code generation with __restrict__ and inline asm since version 6
To: gcc-bugs@gcc.gnu.org
Content-Type: text/plain; charset=UTF-8
X-IsSubscribed: yes
X-SW-Source: 2017-02/txt/msg01829.txt.bz2
Content-length: 2826

Hello, I've posted on the mailing list because I could not get an
account on Bugzilla created, as it was disabled, and contacting the
overseer as instructed didn't quite work out: it's been two weeks
already and no response.

Anyway, this is a regression bug leading to wrong code generation with
__restrict__. I tracked down the culprit to be the  -fschedule-insns
option, so I used -O1 to track it as it is implicitly enabled in -O2
and higher. It only happens since GCC 6, version 5.4 is fine.

Simple test case of a simplistic memtest in asm:


inline void memset_test(void* a, char c, unsigned long n)
{
  // mark the pointer as a huge clobber via a local variable (which works)
  struct { char _[unsigned(~0U)>>1]; } *const m=(typeof(m))(a);
  asm("rep stosb":"+D"(a),"+c"(n),"=m"(*m):"a"(c));
}

void foo(char* __restrict__ a, int c)
{
  memset_test(a, 0, c);
  asm("xor %0, %0"::"q"(a[0]));
}


Compile the above with:  -m32 -O1 -fschedule-insns   (or -m64 which
has the same bug)

I've used Godbolt's Compiler Explorer to easily test multiple versions
and then confirmed it. Here's the example i386 output from GCC 6 or 7
snapshot (both are identical):

GCC 6.x or GCC 7:
        push    edi
        mov     eax, DWORD PTR [esp+8]
        mov     edi, eax
        mov     ecx, DWORD PTR [esp+12]
        movzx   edx, BYTE PTR [eax]        # this is WRONG
        mov     eax, 0
        rep stosb
        xor dl, dl
        pop     edi
        ret


GCC 5.4:
        push    edi
        mov     edx, DWORD PTR [esp+8]
        mov     edi, edx
        mov     ecx, DWORD PTR [esp+12]
        mov     eax, 0
        rep stosb
        movzx   eax, BYTE PTR [edx]        # CORRECT, after stosb
        xor al, al
        pop     edi
        ret

I don't have GCC 7 but this bug is confirmed on GCC 6 on my machine,
not just on Godbolt's site where I tested version 7.

Things to note:

This happens on GCC 6 and up to 7 only, GCC 5.4 generates correct output.
Other compilers, such as Clang and ICC, output correct code. So to me
the code must be correct, even old GCC agrees.

This happens once you turn on the -fschedule-insns option.
If you remove the __restrict__ from the pointer in foo's parameter,
the problem is gone.
Using "asm volatile" instead of "asm" in memset_test generates correct code.
Using "memory" clobber in that asm also generates correct code.


Most of these workarounds are not valid in this context because they
DISABLE the optimizations, so it's like preventing the problem from
popping up instead of solving it. "memory" clobber is obviously the
worst solution by far as it will kill any cached memory in registers.
"asm volatile" is probably the least bad workaround, __restrict__ is
definitely useful for same types the compiler can't otherwise know
they won't alias.


Please look into it.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-02-06 23:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-06 23:28 [Bug middle-end/79399] New: GCC fails to compile big source at -O0 babokin at gmail dot com

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).